I'm about to change the version in the full-fat parser to return
BusServiceDir structs. Name this one with "paths" instead, to avoid
confusion.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99825
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
goto out;
}
- service_dirs = bus_config_parser_get_service_dirs (parser);
+ service_dirs = bus_config_parser_get_service_paths (parser);
for (link = _dbus_list_get_first_link (service_dirs);
link != NULL;
link = _dbus_list_get_next_link (service_dirs, link))
return _dbus_string_get_const_data (&parser->bus_type);
}
+/*
+ * @returns A list of strings, owned by the BusConfigParser
+ */
DBusList**
-bus_config_parser_get_service_dirs (BusConfigParser *parser)
+bus_config_parser_get_service_paths (BusConfigParser *parser)
{
return &parser->service_dirs;
}
printf (" <type>system</type> OKAY!\n");
/* check dirs return value is okay */
- dirs = bus_config_parser_get_service_dirs (parser);
+ dirs = bus_config_parser_get_service_paths (parser);
if (dirs == NULL)
{
_dbus_warn ("Service dirs are NULL!");
/* Functions for extracting the parse results */
const char* bus_config_parser_get_user (BusConfigParser *parser);
const char* bus_config_parser_get_type (BusConfigParser *parser);
-DBusList** bus_config_parser_get_service_dirs (BusConfigParser *parser);
+DBusList** bus_config_parser_get_service_paths (BusConfigParser *parser);
/* Loader functions (backended off one of the XML parsers). Returns a
* finished ConfigParser.