X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=blobdiff_plain;f=atk-adaptor%2Fbridge.c;h=398ebdaa16edf9308a966b04df54798c92624971;hp=6747a4d86554c12c645a065da433b28dfc336923;hb=344deddcec79cb4611010a7c8655755f5d05350e;hpb=0e86eaf1b77ba2e557c6b17201fbeefda5e92ad2 diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c index 6747a4d..398ebda 100644 --- a/atk-adaptor/bridge.c +++ b/atk-adaptor/bridge.c @@ -320,8 +320,10 @@ register_application (SpiBridge * app) /* make sure the directory exists */ mkdir("/tmp/at-spi2/", S_IRWXU); app->app_bus_addr = g_malloc(max_addr_length * sizeof(char)); +#ifndef DISABLE_P2P sprintf(app->app_bus_addr, "unix:path=/tmp/at-spi2/socket-%d-%d", getpid(), rand()); +#endif return TRUE; } @@ -517,6 +519,7 @@ new_connection_cb (DBusServer *server, DBusConnection *con, void *data) static int setup_bus (void) { +#ifndef DISABLE_P2P DBusServer *server; DBusError err; @@ -531,6 +534,7 @@ setup_bus (void) dbus_server_set_new_connection_function(server, new_connection_cb, NULL, NULL); spi_global_app_data->server = server; +#endif return 0; }