Change-Id: I2b5328d2c51f3002820f7de8e40ed801eabb4852
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
pkg_check_modules(pkgs REQUIRED glib-2.0
gio-2.0
dlog vconf
+ capi-system-device
)
FOREACH(flag ${pkgs_CFLAGS})
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(capi-system-device)
Requires(post): /usr/bin/vconftool
%description
#include <glib.h>
#include <sys/wait.h>
+#include <device/usb-gadget.h>
#include "dr-main.h"
#include "dr-usb.h"
static gboolean acm_enabled(int mode)
{
- switch (mode) {
- case SET_USB_DEFAULT:
- case SET_USB_SDB:
- case SET_USB_SDB_DIAG:
- return TRUE;
- default:
- return FALSE;
- }
+ return (mode & USB_GADGET_FUNC_ACM);
}
static void __usb_status_noti_handler(void *data)