diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-07-04 17:09:23 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-05 08:51:07 +0200 |
commit | d039bb6e747bf119406f28a63fac10b7970260b7 (patch) | |
tree | 5ffd1e3d10a6cc847b889f25346cfdcd25579e28 /src/shared | |
parent | 0a197f579a42f75c0f448a50f9f1cf89aac71771 (diff) |
Prep v232: Mask new functions that are unneeded by elogind
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/bus-util.c | 2 | ||||
-rw-r--r-- | src/shared/bus-util.h | 2 | ||||
-rw-r--r-- | src/shared/conf-parser.c | 2 | ||||
-rw-r--r-- | src/shared/conf-parser.h | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index d22a613af..8bba92092 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1334,6 +1334,7 @@ int bus_property_get_bool( return sd_bus_message_append_basic(reply, 'b', &b); } +#if 0 /// UNNEEDED by elogind int bus_property_get_id128( sd_bus *bus, const char *path, @@ -1350,6 +1351,7 @@ int bus_property_get_id128( else return sd_bus_message_append_array(reply, 'y', id->bytes, 16); } +#endif // 0 #if __SIZEOF_SIZE_T__ != 8 int bus_property_get_size( diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 802983766..614f626e0 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -91,7 +91,9 @@ int bus_print_property(const char *name, sd_bus_message *property, bool value, b int bus_print_all_properties(sd_bus *bus, const char *dest, const char *path, char **filter, bool value, bool all); int bus_property_get_bool(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error); +#if 0 /// UNNEEDED by elogind int bus_property_get_id128(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error); +#endif // 0 #define bus_property_get_usec ((sd_bus_property_get_t) NULL) #define bus_property_set_usec ((sd_bus_property_set_t) NULL) diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 92baba603..9190ec9b8 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -443,6 +443,7 @@ int config_parse_many_nulstr( sections, lookup, table, relaxed, userdata); } +#if 0 /// UNNEEDED by elogind /* Parse each config file in the directories specified as strv. */ int config_parse_many( const char *conf_file, @@ -471,6 +472,7 @@ int config_parse_many( return config_parse_many_files(conf_file, files, sections, lookup, table, relaxed, userdata); } +#endif // 0 #define DEFINE_PARSER(type, vartype, conv_func) \ int config_parse_##type( \ diff --git a/src/shared/conf-parser.h b/src/shared/conf-parser.h index 2ca5aa63c..fe93c3c1e 100644 --- a/src/shared/conf-parser.h +++ b/src/shared/conf-parser.h @@ -105,6 +105,7 @@ int config_parse_many_nulstr( bool relaxed, void *userdata); +#if 0 /// UNNEEDED by elogind int config_parse_many( const char *conf_file, /* possibly NULL */ const char* const* conf_file_dirs, @@ -114,6 +115,7 @@ int config_parse_many( const void *table, bool relaxed, void *userdata); +#endif // 0 /* Generic parsers */ int config_parse_int(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |