usb-gadget: access external symbol using dlsym(), not extern keyword
[platform/hal/backend/device-common.git] / src / usb_gadget / usb_gadget.h
index 1f66457..466753f 100644 (file)
 #ifndef __HW_USB_GADGET_H__
 #define __HW_USB_GADGET_H__
 
-/**************************************
- * Those symbols must be initialized first in deviced
- *
- * The usb-gadget source code have been scattered throughout the deviced and device-common.
- * Because of this, it might have been implemented that totally same data structure on the
- * both side. To avoid this inefficiency, define/initialize the data structure on the
- * deviced first, and device-common refer it through extern keyword. The deviced must have
- * cflag -rdynamic or ldflag --export-dynamic so that the dlopen-ed device-common can refer
- * those variables with extern keyword.
- *
- * Accessing symbol in this way would be removed when the usb-gadget of the device-common
- * is integrated into the deviced.
- */
-#include <glib.h>
-#include <hal/device/hal-usb_gadget-interface.h>
-
-struct _usb_mode_mapping_table {
-       int          mode_v; /* Integer defined by vconf */
-       unsigned int mode;   /* Bitmap of usb function combination */
-       struct usb_gadget_attrs attrs;
-};
-extern GList *usb_mode_mapping_table_custom;
-
-struct service_config {
-       char name[128];
-       int remain_after_disable;
-};
-extern GList *service_config_list;
-/**************************************/
 
 struct usb_function *find_usb_function_by_id(int id);
 struct usb_function *find_usb_function_by_name(const char *name);