summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-14 13:23:12 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-14 13:23:12 +0100
commit67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6 (patch)
tree26713eab5f96afd635638e40caed2233bd819ec4 /examples
parent4fe38766f7c48c2e05e6e62013f822001fcee494 (diff)
downloadlibusbg-67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6.tar.gz
libusbg-67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6.tar.bz2
libusbg-67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6.zip
libusbgx: Use string name similar to USB spec
str_ser, str_prd and str_mnf are a little bit weird names so let's replace them with names defined by USB spec. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/gadget-acm-ecm.c6
-rw-r--r--examples/gadget-ffs.c6
-rw-r--r--examples/gadget-midi.c6
-rw-r--r--examples/gadget-ms.c6
-rw-r--r--examples/show-gadgets.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.c
index a531ca9..1c5e2ca 100644
--- a/examples/gadget-acm-ecm.c
+++ b/examples/gadget-acm-ecm.c
@@ -53,9 +53,9 @@ int main(void)
};
struct usbg_gadget_strs g_strs = {
- .str_ser = "0123456789", /* Serial number */
- .str_mnf = "Foo Inc.", /* Manufacturer */
- .str_prd = "Bar Gadget" /* Product string */
+ .serial = "0123456789", /* Serial number */
+ .manufacturer = "Foo Inc.", /* Manufacturer */
+ .product = "Bar Gadget" /* Product string */
};
struct usbg_config_strs c_strs = {
diff --git a/examples/gadget-ffs.c b/examples/gadget-ffs.c
index 289be3b..13ab2e3 100644
--- a/examples/gadget-ffs.c
+++ b/examples/gadget-ffs.c
@@ -54,9 +54,9 @@ int main(void)
};
struct usbg_gadget_strs g_strs = {
- .str_ser = "0123456789", /* Serial number */
- .str_mnf = "Foo Inc.", /* Manufacturer */
- .str_prd = "Bar Gadget" /* Product string */
+ .serial = "0123456789", /* Serial number */
+ .manufacturer = "Foo Inc.", /* Manufacturer */
+ .product = "Bar Gadget" /* Product string */
};
struct usbg_config_strs c_strs = {
diff --git a/examples/gadget-midi.c b/examples/gadget-midi.c
index 2e5e5a0..74639b7 100644
--- a/examples/gadget-midi.c
+++ b/examples/gadget-midi.c
@@ -43,9 +43,9 @@ int main() {
};
struct usbg_gadget_strs g_strs = {
- .str_ser = "0123456789", /* Serial number */
- .str_mnf = "Foo Inc.", /* Manufacturer */
- .str_prd = "Bar Gadget" /* Product string */
+ .serial = "0123456789", /* Serial number */
+ .manufacturer = "Foo Inc.", /* Manufacturer */
+ .product = "Bar Gadget" /* Product string */
};
struct usbg_config_strs c_strs = {
diff --git a/examples/gadget-ms.c b/examples/gadget-ms.c
index 699d56f..478c370 100644
--- a/examples/gadget-ms.c
+++ b/examples/gadget-ms.c
@@ -51,9 +51,9 @@ int main(int argc, char **argv)
};
struct usbg_gadget_strs g_strs = {
- .str_ser = "0123456789", /* Serial number */
- .str_mnf = "Foo Inc.", /* Manufacturer */
- .str_prd = "Bar Gadget" /* Product string */
+ .serial = "0123456789", /* Serial number */
+ .manufacturer = "Foo Inc.", /* Manufacturer */
+ .product = "Bar Gadget" /* Product string */
};
struct usbg_f_ms_lun_attrs f_ms_luns_array[] = {
diff --git a/examples/show-gadgets.c b/examples/show-gadgets.c
index 4fd7d40..b77ca8f 100644
--- a/examples/show-gadgets.c
+++ b/examples/show-gadgets.c
@@ -91,9 +91,9 @@ void show_gadget(usbg_gadget *g)
usbg_strerror(usbg_ret));
return;
}
- fprintf(stdout, " Manufacturer\t\t%s\n", g_strs.str_mnf);
- fprintf(stdout, " Product\t\t%s\n", g_strs.str_prd);
- fprintf(stdout, " Serial Number\t\t%s\n", g_strs.str_ser);
+ fprintf(stdout, " Manufacturer\t\t%s\n", g_strs.manufacturer);
+ fprintf(stdout, " Product\t\t%s\n", g_strs.product);
+ fprintf(stdout, " Serial Number\t\t%s\n", g_strs.serial);
}
void show_function(usbg_function *f)