blob: 854f40c65a3a118449b5410ffdd201be1cd054a4 [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
Ed Tanous167e2372018-05-07 11:59:10 -07007typedef enum mapper_operation { MAPPER_OP_REMOVE = 1 } mapper_operation;
Brad Bishop2afe7182016-08-13 14:08:17 -04008typedef struct mapper_async_wait mapper_async_wait;
Adriana Kobylak2a8bfc92017-05-11 09:16:02 -05009typedef struct mapper_async_subtree mapper_async_subtree;
Brad Bishop2afe7182016-08-13 14:08:17 -040010void mapper_wait_async_free(mapper_async_wait *);
Adriana Kobylak2a8bfc92017-05-11 09:16:02 -050011void mapper_subtree_async_free(mapper_async_subtree *);
Brad Bishop2afe7182016-08-13 14:08:17 -040012
Ed Tanous167e2372018-05-07 11:59:10 -070013int mapper_wait_async(sd_bus *, sd_event *, char *[], void (*)(int, void *),
14 void *, mapper_async_wait **);
Adriana Kobylak2a8bfc92017-05-11 09:16:02 -050015int mapper_subtree_async(sd_bus *, sd_event *, char *, char *,
Ed Tanous167e2372018-05-07 11:59:10 -070016 void (*)(int, void *), void *, mapper_async_subtree **,
17 int);
Brad Bishop62ece2b2016-07-25 09:00:51 -040018int mapper_get_service(sd_bus *conn, const char *obj, char **service);
Brad Bishop3d468792016-09-20 15:39:38 -040019int mapper_get_object(sd_bus *conn, const char *obj, sd_bus_message **reply);
Brad Bishop62ece2b2016-07-25 09:00:51 -040020#ifdef __cplusplus
21}
22#endif