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