summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps.h
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-11-01 23:30:46 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-11-01 23:30:46 +0000
commit5640f7a57b6c8b2e1847e99db412db3c41c9eb98 (patch)
tree206f2e037572003d5a20d285592e1e7267cb7509 /dbus/dbus-sysdeps.h
parentd3440ebe9de8ac9f817ae992244463c197c20f84 (diff)
* configure.in: expose DBUS_DATADIR
* bus/config-parser.c: add the standard_session_servicedirs element to the parser (bus_config_parser_content): process the standard_session_servicedirs element by getting the standard directories from sysdeps and merging them into the service directory list (test_default_session_servicedirs): make sure we get what we expect * bus/session.conf.in: replace the servicedir tag with the standard_session_servicedirs tag * dbus/dbus-list.h: remove the typedef of DBusList and place it in dbus-sysdeps.h to avoid circular header dependencies * dbus/dbus-sysdeps.h: add the typedef of DBusList * dbus/dbus-sysdeps-unix.c (split_paths_and_append): utility function which takes a string of directories delimited by colons, parses them out, appends a suffix and puts them in a list ignoring empty elements (_dbus_get_standard_session_servicedirs): returns the standard directories for a session bus to look for service activation files on Unix which includes the XDG_DATA_HOME, XDG_DATA_DIRS and DBUS_DATADIR directories * test/data/valid-config-files/many-rules.conf: add the standard_session_servicedirs tag to the valid config file tests
Diffstat (limited to 'dbus/dbus-sysdeps.h')
-rw-r--r--dbus/dbus-sysdeps.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h
index eb395e05..e7b3eac0 100644
--- a/dbus/dbus-sysdeps.h
+++ b/dbus/dbus-sysdeps.h
@@ -59,6 +59,9 @@ DBUS_BEGIN_DECLS
/** An opaque string type */
typedef struct DBusString DBusString;
+/** avoid circular includes with DBusList */
+typedef struct DBusList DBusList;
+
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
#define _DBUS_GNUC_PRINTF( format_idx, arg_idx ) \
__attribute__((__format__ (__printf__, format_idx, arg_idx)))
@@ -291,6 +294,8 @@ dbus_bool_t _dbus_string_get_dirname (const DBusString *filename,
DBusString *dirname);
dbus_bool_t _dbus_path_is_absolute (const DBusString *filename);
+dbus_bool_t _dbus_get_standard_session_servicedirs (DBusList **dirs);
+
/** Opaque type for reading a directory listing */
typedef struct DBusDirIter DBusDirIter;