Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 1 | #include <systemd/sd-bus.h> |
Brad Bishop | 3d46879 | 2016-09-20 15:39:38 -0400 | [diff] [blame] | 2 | #include <systemd/sd-event.h> |
Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
Matt Spinler | cc6ee9c | 2018-09-19 13:23:13 -0500 | [diff] [blame] | 7 | typedef enum mapper_operation |
| 8 | { |
| 9 | MAPPER_OP_REMOVE = 1 |
| 10 | } mapper_operation; |
Brad Bishop | 2afe718 | 2016-08-13 14:08:17 -0400 | [diff] [blame] | 11 | typedef struct mapper_async_wait mapper_async_wait; |
Adriana Kobylak | 2a8bfc9 | 2017-05-11 09:16:02 -0500 | [diff] [blame] | 12 | typedef struct mapper_async_subtree mapper_async_subtree; |
Matt Spinler | cc6ee9c | 2018-09-19 13:23:13 -0500 | [diff] [blame] | 13 | void mapper_wait_async_free(mapper_async_wait*); |
| 14 | void mapper_subtree_async_free(mapper_async_subtree*); |
Brad Bishop | 2afe718 | 2016-08-13 14:08:17 -0400 | [diff] [blame] | 15 | |
John Wang | d0cf942 | 2019-09-17 16:01:34 +0800 | [diff] [blame^] | 16 | int mapper_wait_async(sd_bus*, sd_event*, char*[], void (*)(int, void*), void*, |
Matt Spinler | cc6ee9c | 2018-09-19 13:23:13 -0500 | [diff] [blame] | 17 | mapper_async_wait**); |
| 18 | int mapper_subtree_async(sd_bus*, sd_event*, char*, char*, void (*)(int, void*), |
| 19 | void*, mapper_async_subtree**, int); |
| 20 | int mapper_get_service(sd_bus* conn, const char* obj, char** service); |
| 21 | int mapper_get_object(sd_bus* conn, const char* obj, sd_bus_message** reply); |
Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 22 | #ifdef __cplusplus |
| 23 | } |
| 24 | #endif |