Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
obex-data-server
obex-data-server-openobex_EnumerateInterfaces.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obex-data-server-openobex_EnumerateInterfaces.patch of Package obex-data-server
--- src/ods-obex.c +++ src/ods-obex.c @@ -400,7 +400,7 @@ gpointer user_data, GError **error) { gint ret; - obex_interface_t *obex_intf; + obex_interface_t *obex_intf = NULL; int interfaces_num; /* call OBEX_Init, setup USB Transport here */ @@ -412,14 +412,15 @@ 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; } + obex_intf = OBEX_GetInterfaceByIndex(obex_context->obex_handle, intf_num); OBEX_SetUserData (obex_context->obex_handle, user_data); - ret = OBEX_InterfaceConnect(obex_context->obex_handle, &obex_intf[intf_num]); + ret = OBEX_InterfaceConnect(obex_context->obex_handle, obex_intf); if (ret < 0) { g_set_error (error, ODS_ERROR, ODS_ERROR_FAILED, "USB setup failed"); goto err;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor