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