From 29de3421341ff0b4d33279eeb344f779b6ef5d3e Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 9 Aug 2014 18:35:37 +0200 Subject: [PATCH] hwstub: add string version Change-Id: I919c27eb7ea69fdac7b3a65785a5a6eb3723a80e --- utils/hwstub/hwstub_protocol.h | 4 ++++ 1 file changed, 4 insertions(+) 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.