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:
parent
430d565ccc
commit
0d5b431367
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue