FreeCalypso > hg > e1-fake-trau
annotate libutil/stdin_handler.h @ 6:3ab5e2e17da2 default tip
add README
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 29 Aug 2024 14:56:30 +0000 |
| parents | e5527fc2050b |
| children |
| rev | line source |
|---|---|
|
1
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This header file defines the interface to the stdin handler module: |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * gets called from Osmocom select loop for stdin, does line read and |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * initial parsing into arguments, then calls program-supplied handler. |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 */ |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 #pragma once |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 typedef void (*stdin_dispatch_t)(int argc, char **argv); |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
|
e5527fc2050b
libutil: copy from ice1-trau-tester
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 int stdin_select_cb(struct osmo_fd *ofd, unsigned int what); |
