diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2007-06-01 22:05:42 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2007-06-01 22:05:42 +0000 |
commit | 378053ba594cca44e1bc9e069eab91b0a0954308 (patch) | |
tree | 3c4398ba82d8d1675837f19f0642d84a5abb97f4 /dbus/dbus-sysdeps-win.h | |
parent | 8d3dbfb1039778584e6476ec0ffadef882360160 (diff) |
* bus/main.c (main): uses _dbus_get_config_file_name() to detect session.conf location on win32.
* dbus-sysdeps-win.h (_dbus_get_config_file_name,_dbus_file_exists): new prototyp, undefined interface after including windows.h because t makes trouble when a paramater is named interface.
* dbus-sysdeps-win.c (_dbus_get_install_root,_dbus_get_config_file_name,_dbus_file_exists): new functions.
Diffstat (limited to 'dbus/dbus-sysdeps-win.h')
-rw-r--r-- | dbus/dbus-sysdeps-win.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-win.h b/dbus/dbus-sysdeps-win.h index 300c3285..29d5b0df 100644 --- a/dbus/dbus-sysdeps-win.h +++ b/dbus/dbus-sysdeps-win.h @@ -33,6 +33,7 @@ #include <ctype.h> #include <malloc.h> #include <windows.h> +#undef interface #include <aclapi.h> #include <lm.h> @@ -140,6 +141,9 @@ int _dbus_file_write (DBusFile *file, int start, int len); +dbus_bool_t _dbus_file_exists (const char *filename); + + #define FDATA private_data struct DBusFile { @@ -167,6 +171,9 @@ int _dbus_listen_unix_socket (const char *path, dbus_bool_t abstract, DBusError *error); +dbus_bool_t _dbus_get_config_file_name(DBusString *config_file, + char *s); + #endif /** @} end of sysdeps-win.h */ |