From e001455a0300cc1df17684a028049c8c33e4f575 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 16 Sep 2006 18:46:48 +0000 Subject: 2006-09-16 Havoc Pennington Attempt auditing public API to remove all cases where a Unix function returns weird emulated goo to Windows. This probably breaks the bus daemon on Windows, to fix it again we may need to stop processing unix-specific config options on Windows, and may need to add Windows-specific public API or config options. * configure.in (LT_CURRENT, LT_AGE): increment current and age, to reflect added interfaces; should not break soname. * dbus/dbus-transport.c (_dbus_transport_get_is_authenticated): do not invoke unix user function on Windows. Kind of a hacky fix, but we don't want a "unix uid" leaking out on Windows. * dbus/dbus-connection.c (dbus_connection_get_socket): add new API to get the socket fd on Windows or UNIX (dbus_connection_get_unix_fd): make this always fail on Windows --- dbus/dbus-connection.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dbus/dbus-connection.h') diff --git a/dbus/dbus-connection.h b/dbus/dbus-connection.h index 0cab8da7..ed90a7f6 100644 --- a/dbus/dbus-connection.h +++ b/dbus/dbus-connection.h @@ -255,6 +255,8 @@ dbus_bool_t dbus_connection_list_registered (DBusConnection dbus_bool_t dbus_connection_get_unix_fd (DBusConnection *connection, int *fd); +dbus_bool_t dbus_connection_get_socket (DBusConnection *connection, + int *fd); DBUS_END_DECLS -- cgit