]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - include/proxmark3.h
Implement version information storage and retrieval for the bootrom and the osimage.
[proxmark3-svn] / include / proxmark3.h
index 2f3b483818830942b513854a8e7e89b730580948..7095fc853a22410400f2522e5297a6325f01c2f7 100644 (file)
@@ -60,4 +60,14 @@ void UsbStart(void);
 // if data are available.\r
 void UsbPacketReceived(BYTE *packet, int len);\r
 \r
+#define VERSION_INFORMATION_MAGIC 0x56334d50\r
+struct version_information {\r
+       int magic; /* Magic sequence to identify this as a correct version information structure. Must be VERSION_INFORMATION_MAGIC */ \r
+       char versionversion; /* Must be 1 */\r
+       char present; /* 1 if the version information could be created at compile time, otherwise 0 and the remaining fields (except for magic) are empty */\r
+       char clean; /* 1: Tree was clean, no local changes. 0: Tree was unclean. 2: Couldn't be determined */\r
+       char svnversion[9]; /* String with the SVN revision */\r
+       char buildtime[30]; /* string with the build time */\r
+} __attribute__((packed));\r
+\r
 #endif\r
Impressum, Datenschutz