diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-11 17:08:00 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-04-26 12:59:13 +0200 |
commit | 756c392103bc01d409c1760146ac2df7dd8f8ede (patch) | |
tree | a6d2841819a5f5076672bec486ad0bb503a2f422 /src/libelogind/sd-bus | |
parent | 20e696d0ded4e2f95ab20e95b148c806a3112949 (diff) |
Prep v228: Substitute declaration masks (4/4)
Diffstat (limited to 'src/libelogind/sd-bus')
-rw-r--r-- | src/libelogind/sd-bus/bus-match.h | 5 | ||||
-rw-r--r-- | src/libelogind/sd-bus/bus-message.h | 10 | ||||
-rw-r--r-- | src/libelogind/sd-bus/sd-bus.c | 5 |
3 files changed, 16 insertions, 4 deletions
diff --git a/src/libelogind/sd-bus/bus-match.h b/src/libelogind/sd-bus/bus-match.h index c33f35dbc..d30873665 100644 --- a/src/libelogind/sd-bus/bus-match.h +++ b/src/libelogind/sd-bus/bus-match.h @@ -97,6 +97,9 @@ enum bus_match_node_type bus_match_node_type_from_string(const char *k, size_t n int bus_match_parse(const char *match, struct bus_match_component **_components, unsigned *_n_components); void bus_match_parse_free(struct bus_match_component *components, unsigned n_components); -// UNNEEDED char *bus_match_to_string(struct bus_match_component *components, unsigned n_components); +/// UNNEEDED by elogind +#if 0 +char *bus_match_to_string(struct bus_match_component *components, unsigned n_components); +#endif // 0 enum bus_match_scope bus_match_get_scope(const struct bus_match_component *components, unsigned n_components); diff --git a/src/libelogind/sd-bus/bus-message.h b/src/libelogind/sd-bus/bus-message.h index 8aca18381..7efe3ffe8 100644 --- a/src/libelogind/sd-bus/bus-message.h +++ b/src/libelogind/sd-bus/bus-message.h @@ -194,7 +194,10 @@ static inline bool BUS_MESSAGE_IS_GVARIANT(sd_bus_message *m) { } int bus_message_seal(sd_bus_message *m, uint64_t serial, usec_t timeout); -// UNNEEDED int bus_message_get_blob(sd_bus_message *m, void **buffer, size_t *sz); +/// UNNEEDED by elogind +#if 0 +int bus_message_get_blob(sd_bus_message *m, void **buffer, size_t *sz); +#endif // 0 int bus_message_read_strv_extend(sd_bus_message *m, char ***l); int bus_message_from_header( @@ -240,7 +243,10 @@ int bus_message_new_synthetic_error(sd_bus *bus, uint64_t serial, const sd_bus_e int bus_message_remarshal(sd_bus *bus, sd_bus_message **m); -// UNNEEDED int bus_message_append_sender(sd_bus_message *m, const char *sender); +/// UNNEEDED by elogind +#if 0 +int bus_message_append_sender(sd_bus_message *m, const char *sender); +#endif // 0 void bus_message_set_sender_driver(sd_bus *bus, sd_bus_message *m); void bus_message_set_sender_local(sd_bus *bus, sd_bus_message *m); diff --git a/src/libelogind/sd-bus/sd-bus.c b/src/libelogind/sd-bus/sd-bus.c index 7e733cdea..630c84935 100644 --- a/src/libelogind/sd-bus/sd-bus.c +++ b/src/libelogind/sd-bus/sd-bus.c @@ -75,7 +75,10 @@ static int attach_io_events(sd_bus *b); static void detach_io_events(sd_bus *b); static thread_local sd_bus *default_system_bus = NULL; -// UNNEEDED static thread_local sd_bus *default_user_bus = NULL; +/// UNNEEDED by elogind +#if 0 +static thread_local sd_bus *default_user_bus = NULL; +#endif // 0 static thread_local sd_bus *default_starter_bus = NULL; static void bus_close_fds(sd_bus *b) { |