diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-02-13 13:47:37 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-02-19 21:17:20 +0100 |
commit | fa73432c3282c084d5d8ef8cd6bba92a61211899 (patch) | |
tree | 2b8c978b123b57a3d62515bdd07ffe3c9b2bc51a /examples | |
parent | 36db337dc3ea5b642e7878fe541d06f01520d03c (diff) | |
download | libusbg-fa73432c3282c084d5d8ef8cd6bba92a61211899.tar.gz libusbg-fa73432c3282c084d5d8ef8cd6bba92a61211899.tar.bz2 libusbg-fa73432c3282c084d5d8ef8cd6bba92a61211899.zip |
libusbg: Add functions for get/set function attributes.
Add usbg_get_function_attrs() and usbg_get_function_type()
to aviod direct access to function structure members.
Add usbg_set_function_attrs() to allow set all function\
attributes with one call.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gadget-acm-ecm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.c index a50bf1c..b6f0c94 100644 --- a/examples/gadget-acm-ecm.c +++ b/examples/gadget-acm-ecm.c @@ -51,19 +51,19 @@ int main(void) usbg_set_gadget_manufacturer(g, LANG_US_ENG, "Foo Inc."); usbg_set_gadget_product(g, LANG_US_ENG, "Bar Gadget"); - f_acm0 = usbg_create_function(g, F_ACM, "usb0"); + f_acm0 = usbg_create_function(g, F_ACM, "usb0", NULL); if (!f_acm0) { fprintf(stderr, "Error creating acm0 function\n"); goto out2; } - f_acm1 = usbg_create_function(g, F_ACM, "usb1"); + f_acm1 = usbg_create_function(g, F_ACM, "usb1", NULL); if (!f_acm1) { fprintf(stderr, "Error creating acm1 function\n"); goto out2; } - f_ecm = usbg_create_function(g, F_ECM, "usb0"); + f_ecm = usbg_create_function(g, F_ECM, "usb0", NULL); if (!f_ecm) { fprintf(stderr, "Error creating ecm function\n"); goto out2; |