blob: 1b37f34d7b106119f74f608297f3eca62ba97ec7 [file] [log] [blame]
Brad Bishop62ece2b2016-07-25 09:00:51 -04001#include <systemd/sd-bus.h>
Brad Bishop3d468792016-09-20 15:39:38 -04002#include <systemd/sd-event.h>
Brad Bishop62ece2b2016-07-25 09:00:51 -04003
4#ifdef __cplusplus
5extern "C" {
6#endif
Matt Spinlercc6ee9c2018-09-19 13:23:13 -05007typedef enum mapper_operation
8{
9 MAPPER_OP_REMOVE = 1
10} mapper_operation;
Brad Bishop2afe7182016-08-13 14:08:17 -040011typedef struct mapper_async_wait mapper_async_wait;
Adriana Kobylak2a8bfc92017-05-11 09:16:02 -050012typedef struct mapper_async_subtree mapper_async_subtree;
Matt Spinlercc6ee9c2018-09-19 13:23:13 -050013void mapper_wait_async_free(mapper_async_wait*);
14void mapper_subtree_async_free(mapper_async_subtree*);
Brad Bishop2afe7182016-08-13 14:08:17 -040015
John Wangd0cf9422019-09-17 16:01:34 +080016int mapper_wait_async(sd_bus*, sd_event*, char*[], void (*)(int, void*), void*,
Matt Spinlercc6ee9c2018-09-19 13:23:13 -050017 mapper_async_wait**);
18int mapper_subtree_async(sd_bus*, sd_event*, char*, char*, void (*)(int, void*),
19 void*, mapper_async_subtree**, int);
20int mapper_get_service(sd_bus* conn, const char* obj, char** service);
21int mapper_get_object(sd_bus* conn, const char* obj, sd_bus_message** reply);
Brad Bishop62ece2b2016-07-25 09:00:51 -040022#ifdef __cplusplus
23}
24#endif