blob: 414ca3c862a2688032a5c02a5af8d713453e1df9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- src/support/rapi_context.c 2009-07-27 13:25:07.000000000 +0400
+++ src/support/rapi_context.c 2009-07-27 13:26:52.000000000 +0400
@@ -513,13 +513,19 @@
/*
* odccm, synce-hal, or proxy ?
*/
+#if ENABLE_ODCCM_SUPPORT
if (strcmp(transport, "odccm") == 0) {
synce_socket_take_descriptor(context->socket, get_connection_from_odccm(info));
}
- else if (strcmp(transport, "hal") == 0) {
+ else
+#endif
+#if ENABLE_HAL_SUPPORT
+ if (strcmp(transport, "hal") == 0) {
synce_socket_take_descriptor(context->socket, get_connection_from_hal(info));
}
- else if ( !synce_socket_connect_proxy(context->socket, synce_info_get_device_ip(info)) )
+ else
+#endif
+ if ( !synce_socket_connect_proxy(context->socket, synce_info_get_device_ip(info)) )
{
synce_error("failed to connect to proxy for %s", synce_info_get_device_ip(info));
goto fail;
|