forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Submitted By:            Armin K. <krejzi at email dot com>
Date:                    2012-07-06
Initial Package Version: 0.4.6
Upstream Status:         Unknown
Origin:                  Self
Description:             Some build fixes.
 
Index: obex-data-server-0.4.6/src/ods-obex.c
===================================================================
--- obex-data-server-0.4.6.orig/src/ods-obex.c
+++ obex-data-server-0.4.6/src/ods-obex.c
@@ -412,7 +412,7 @@ ods_obex_setup_usbtransport (OdsObexCont
         goto err;
     }
 
-    interfaces_num = OBEX_FindInterfaces(obex_context->obex_handle, &obex_intf);
+    interfaces_num = OBEX_EnumerateInterfaces(obex_context->obex_handle);
     if (intf_num >= interfaces_num) {
         g_set_error (error, ODS_ERROR, ODS_ERROR_FAILED, "Invalid interface number");
         goto err;