annotate libutil/stdin_handler.h @ 5:3604828b2f54

add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 29 Aug 2024 13:21:38 +0000
parents e5527fc2050b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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);