char description[ACC_STRING_SIZE];
char version[ACC_STRING_SIZE];
char uri[ACC_STRING_SIZE];
+ char serial[ACC_STRING_SIZE];
/* for acc_complete_set_string */
int string_index;
case ACCESSORY_STRING_URI:
string_dest = dev->uri;
break;
+ case ACCESSORY_STRING_SERIAL:
+ string_dest = dev->serial;
+ break;
}
if (string_dest) {
unsigned long flags;
case ACCESSORY_GET_STRING_URI:
src = dev->uri;
break;
+ case ACCESSORY_GET_STRING_SERIAL:
+ src = dev->serial;
+ break;
}
if (!src)
return -EINVAL;
memset(dev->description, 0, sizeof(dev->description));
memset(dev->version, 0, sizeof(dev->version));
memset(dev->uri, 0, sizeof(dev->uri));
+ memset(dev->serial, 0, sizeof(dev->serial));
}
}
}
#define ACCESSORY_STRING_DESCRIPTION 2
#define ACCESSORY_STRING_VERSION 3
#define ACCESSORY_STRING_URI 4
+#define ACCESSORY_STRING_SERIAL 5
/* Control request for retrieving device's protocol version (currently 1)
*
#define ACCESSORY_GET_STRING_DESCRIPTION _IOW('M', 3, char[256])
#define ACCESSORY_GET_STRING_VERSION _IOW('M', 4, char[256])
#define ACCESSORY_GET_STRING_URI _IOW('M', 5, char[256])
+#define ACCESSORY_GET_STRING_SERIAL _IOW('M', 6, char[256])
#endif /* __LINUX_USB_F_ACCESSORY_H */