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