blob: b3c1284575c7af8b6e0d3f2489888fd1a1bb48cf [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
George Liucf724032024-10-29 14:31:51 +08006extern "C"
7{
Brad Bishop62ece2b2016-07-25 09:00:51 -04008#endif
Matt Spinlercc6ee9c2018-09-19 13:23:13 -05009typedef enum mapper_operation
10{
11 MAPPER_OP_REMOVE = 1
12} mapper_operation;
Brad Bishop2afe7182016-08-13 14:08:17 -040013typedef struct mapper_async_wait mapper_async_wait;
Adriana Kobylak2a8bfc92017-05-11 09:16:02 -050014typedef struct mapper_async_subtree mapper_async_subtree;
Matt Spinlercc6ee9c2018-09-19 13:23:13 -050015void mapper_wait_async_free(mapper_async_wait*);
16void mapper_subtree_async_free(mapper_async_subtree*);
Brad Bishop2afe7182016-08-13 14:08:17 -040017
John Wangd0cf9422019-09-17 16:01:34 +080018int mapper_wait_async(sd_bus*, sd_event*, char*[], void (*)(int, void*), void*,
Matt Spinlercc6ee9c2018-09-19 13:23:13 -050019 mapper_async_wait**);
20int mapper_subtree_async(sd_bus*, sd_event*, char*, char*, void (*)(int, void*),
21 void*, mapper_async_subtree**, int);
22int mapper_get_service(sd_bus* conn, const char* obj, char** service);
23int mapper_get_object(sd_bus* conn, const char* obj, sd_bus_message** reply);
Brad Bishop62ece2b2016-07-25 09:00:51 -040024#ifdef __cplusplus
25}
26#endif