Permalink
Browse files

nolo: Added support for initfs version string

  • Loading branch information...
1 parent 2e78262 commit 69b527871043035676b42ec0c89a14c9e4b38b71 @pali pali committed Nov 24, 2012
Showing with 18 additions and 0 deletions.
  1. +15 −0 src/nolo.c
  2. +3 −0 src/nolo.h
View
15 src/nolo.c
@@ -731,6 +731,21 @@ int nolo_set_kernel_ver(struct usb_device_info * dev, const char * ver) {
}
+int nolo_get_initfs_ver(struct usb_device_info * dev, char * ver, size_t size) {
+
+ return nolo_get_version_string(dev, "initfs", ver, size);
+
+}
+
+int nolo_set_initfs_ver(struct usb_device_info * dev, const char * ver) {
+
+ printf("nolo_set_initfs_ver is not implemented yet\n");
+ (void)dev;
+ (void)ver;
+ return -1;
+
+}
+
int nolo_get_nolo_ver(struct usb_device_info * dev, char * ver, size_t size) {
uint32_t version;
View
3 src/nolo.h
@@ -50,6 +50,9 @@ int nolo_set_hwrev(struct usb_device_info * dev, int16_t hwrev);
int nolo_get_kernel_ver(struct usb_device_info * dev, char * ver, size_t size);
int nolo_set_kernel_ver(struct usb_device_info * dev, const char * ver);
+int nolo_get_initfs_ver(struct usb_device_info * dev, char * ver, size_t size);
+int nolo_set_initfs_ver(struct usb_device_info * dev, const char * ver);
+
int nolo_get_nolo_ver(struct usb_device_info * dev, char * ver, size_t size);
int nolo_set_nolo_ver(struct usb_device_info * dev, const char * ver);

0 comments on commit 69b5278

Please sign in to comment.