xref: /openbmc/phosphor-objmgr/libmapper/mapper.h (revision 167e2379abb36d8c813fed0ee1da3b79715d477a)
1 #include <systemd/sd-bus.h>
2 #include <systemd/sd-event.h>
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 typedef enum mapper_operation { MAPPER_OP_REMOVE = 1 } mapper_operation;
8 typedef struct mapper_async_wait mapper_async_wait;
9 typedef struct mapper_async_subtree mapper_async_subtree;
10 void mapper_wait_async_free(mapper_async_wait *);
11 void mapper_subtree_async_free(mapper_async_subtree *);
12 
13 int mapper_wait_async(sd_bus *, sd_event *, char *[], void (*)(int, void *),
14                       void *, mapper_async_wait **);
15 int mapper_subtree_async(sd_bus *, sd_event *, char *, char *,
16                          void (*)(int, void *), void *, mapper_async_subtree **,
17                          int);
18 int mapper_get_service(sd_bus *conn, const char *obj, char **service);
19 int mapper_get_object(sd_bus *conn, const char *obj, sd_bus_message **reply);
20 #ifdef __cplusplus
21 }
22 #endif
23