William A. Kennington III | bbf456b | 2021-10-27 01:02:57 -0700 | [diff] [blame] | 1 | #pragma once |
Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 2 | #include <systemd/sd-bus.h> |
Brad Bishop | 3d46879 | 2016-09-20 15:39:38 -0400 | [diff] [blame] | 3 | #include <systemd/sd-event.h> |
Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 4 | |
| 5 | #ifdef __cplusplus |
George Liu | cf72403 | 2024-10-29 14:31:51 +0800 | [diff] [blame^] | 6 | extern "C" |
| 7 | { |
Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 8 | #endif |
Matt Spinler | cc6ee9c | 2018-09-19 13:23:13 -0500 | [diff] [blame] | 9 | typedef enum mapper_operation |
| 10 | { |
| 11 | MAPPER_OP_REMOVE = 1 |
| 12 | } mapper_operation; |
Brad Bishop | 2afe718 | 2016-08-13 14:08:17 -0400 | [diff] [blame] | 13 | typedef struct mapper_async_wait mapper_async_wait; |
Adriana Kobylak | 2a8bfc9 | 2017-05-11 09:16:02 -0500 | [diff] [blame] | 14 | typedef struct mapper_async_subtree mapper_async_subtree; |
Matt Spinler | cc6ee9c | 2018-09-19 13:23:13 -0500 | [diff] [blame] | 15 | void mapper_wait_async_free(mapper_async_wait*); |
| 16 | void mapper_subtree_async_free(mapper_async_subtree*); |
Brad Bishop | 2afe718 | 2016-08-13 14:08:17 -0400 | [diff] [blame] | 17 | |
John Wang | d0cf942 | 2019-09-17 16:01:34 +0800 | [diff] [blame] | 18 | 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] | 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); |
Brad Bishop | 62ece2b | 2016-07-25 09:00:51 -0400 | [diff] [blame] | 24 | #ifdef __cplusplus |
| 25 | } |
| 26 | #endif |