1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-15 01:01:54 +00:00

ctl: make cli_bus and cli_event global

The event-loop might be needed in later ctl additions for timeouts, so
make it global. Same for the bus-logic.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-05-08 11:35:33 +02:00
parent 430d565ccc
commit 0d5b431367
2 changed files with 5 additions and 2 deletions

View file

@ -40,8 +40,8 @@
* Helpers for interactive commands
*/
static sd_event *cli_event;
static sd_bus *cli_bus;
sd_event *cli_event;
sd_bus *cli_bus;
static sd_event_source *cli_sigs[_NSIG];
static sd_event_source *cli_stdin;
static bool cli_rl;

View file

@ -216,6 +216,9 @@ struct cli_cmd {
const char *desc;
};
extern sd_event *cli_event;
extern sd_bus *cli_bus;
int cli_init(sd_bus *bus, const struct cli_cmd *cmds);
void cli_destroy(void);
int cli_run(void);