summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-08-09 18:35:37 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-07 17:46:13 +0200
commit29de3421341ff0b4d33279eeb344f779b6ef5d3e (patch)
tree33536ce368b8999ec5f01926059adb47ba29eab4
parent0c7c54e18550f1765bece9d3ec0e7f67edde50cb (diff)
downloadrockbox-29de3421341ff0b4d33279eeb344f779b6ef5d3e.tar.gz
rockbox-29de3421341ff0b4d33279eeb344f779b6ef5d3e.zip
hwstub: add string version
Change-Id: I919c27eb7ea69fdac7b3a65785a5a6eb3723a80e
-rw-r--r--utils/hwstub/hwstub_protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/hwstub/hwstub_protocol.h b/utils/hwstub/hwstub_protocol.h
index 23bc19ceee..dcf8c0950d 100644
--- a/utils/hwstub/hwstub_protocol.h
+++ b/utils/hwstub/hwstub_protocol.h
@@ -28,6 +28,10 @@
#define HWSTUB_VERSION_MAJOR 4
#define HWSTUB_VERSION_MINOR 0
+#define HWSTUB_VERSION__(maj, min) #maj"."#min
+#define HWSTUB_VERSION_(maj, min) HWSTUB_VERSION__(maj, min)
+#define HWSTUB_VERSION HWSTUB_VERSION_(HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR)
+
/**
* A device can use any VID:PID but in case hwstub is in full control of the
* device, the preferred VID:PID is the following.