26#include "dbus-internals.h"
27#include "dbus-server-win.h"
28#include "dbus-server-socket.h"
60 if (strcmp (method,
"autolaunch") == 0)
62 const char *host =
"localhost";
63 const char *bind =
"localhost";
64 const char *port =
"0";
65 const char *family =
"ipv4";
68 if (_dbus_daemon_is_session_bus_address_published (scope))
69 return DBUS_SERVER_LISTEN_ADDRESS_ALREADY_USED;
72 family, error,
FALSE);
75 _DBUS_ASSERT_ERROR_IS_CLEAR(error);
76 (*server_p)->published_address =
77 _dbus_daemon_publish_session_bus_address ((*server_p)->address, scope);
78 return DBUS_SERVER_LISTEN_OK;
83 _dbus_daemon_unpublish_session_bus_address ();
84 _DBUS_ASSERT_ERROR_IS_SET(error);
85 return DBUS_SERVER_LISTEN_DID_NOT_CONNECT;
90 _DBUS_ASSERT_ERROR_IS_CLEAR(error);
91 return DBUS_SERVER_LISTEN_NOT_HANDLED;
const char * dbus_address_entry_get_method(DBusAddressEntry *entry)
Returns the method string of an address entry.
const char * dbus_address_entry_get_value(DBusAddressEntry *entry, const char *key)
Returns a value from a key of an entry.
#define NULL
A null pointer, defined appropriately for C or C++.
#define FALSE
Expands to "0".
DBusServer * _dbus_server_new_for_tcp_socket(const char *host, const char *bind, const char *port, const char *family, DBusError *error, dbus_bool_t use_nonce)
Creates a new server listening on TCP.
DBusServerListenResult _dbus_server_listen_platform_specific(DBusAddressEntry *entry, DBusServer **server_p, DBusError *error)
Tries to interpret the address entry in a platform-specific way, creating a platform-specific server ...
Internals of DBusAddressEntry.
Object representing an exception.
Internals of DBusServer object.