blob: 3f86fa630f0769885d8033879dd206226c14a11b [file] [log] [blame]
William A. Kennington IIIbbf456b2021-10-27 01:02:57 -07001#pragma once
Brad Bishop62ece2b2016-07-25 09:00:51 -04002#include <systemd/sd-bus.h>
Brad Bishop3d468792016-09-20 15:39:38 -04003#include <systemd/sd-event.h>
Brad Bishop62ece2b2016-07-25 09:00:51 -04004
5#ifdef __cplusplus
6extern "C" {
7#endif
Matt Spinlercc6ee9c2018-09-19 13:23:13 -05008typedef enum mapper_operation
9{
10 MAPPER_OP_REMOVE = 1
11} mapper_operation;
Brad Bishop2afe7182016-08-13 14:08:17 -040012typedef struct mapper_async_wait mapper_async_wait;
Adriana Kobylak2a8bfc92017-05-11 09:16:02 -050013typedef struct mapper_async_subtree mapper_async_subtree;
Matt Spinlercc6ee9c2018-09-19 13:23:13 -050014void mapper_wait_async_free(mapper_async_wait*);
15void mapper_subtree_async_free(mapper_async_subtree*);
Brad Bishop2afe7182016-08-13 14:08:17 -040016
John Wangd0cf9422019-09-17 16:01:34 +080017int mapper_wait_async(sd_bus*, sd_event*, char*[], void (*)(int, void*), void*,
Matt Spinlercc6ee9c2018-09-19 13:23:13 -050018 mapper_async_wait**);
19int mapper_subtree_async(sd_bus*, sd_event*, char*, char*, void (*)(int, void*),
20 void*, mapper_async_subtree**, int);
21int mapper_get_service(sd_bus* conn, const char* obj, char** service);
22int mapper_get_object(sd_bus* conn, const char* obj, sd_bus_message** reply);
Brad Bishop62ece2b2016-07-25 09:00:51 -040023#ifdef __cplusplus
24}
25#endif