]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/blobdiff - ti/runtime/netapi/netapi.h
added version string/id
[keystone-rtos/netapi.git] / ti / runtime / netapi / netapi.h
index 3af8082b5bc9cd38732cf8d079318d1a5053abc8..8a95dfdf648c8a0e702c35164dd50d49fc7800b7 100755 (executable)
 #include <stddef.h>\r
 #include <string.h>\r
 \r
+/**\r
+ * @brief   This is the NWAL LLD Version. Versions numbers are encoded in the following \r
+ * format:\r
+ *  0xAABBCCDD -> Arch (AA); API Changes (BB); Major (CC); Minor (DD)\r
+ */\r
+#define NETAPI_VERSION_ID                   (0x01000002)\r
+\r
+/**\r
+ * @brief   This is the version string which describes the NWAL LLD along with the\r
+ * date and build information.\r
+ */\r
+#define NETAPI_VERSION_STR      "NETAPI Revision: 01.00.00.02"\r
+\r
+\r
 /**\r
  *   @defgroup netapi_structures  NETAPI data structures\r
  */\r
@@ -394,4 +408,7 @@ int netapi_closeHeap(NETAPI_T p, Pktlib_HeapHandle h);
  */\r
 void netapi_poll_heapGarbage(NETAPI_T p);\r
 \r
+static inline int netapi_get_version(void) {return NETAPI_VERSION_ID;}\r
+static inline char * netapi_get_version_string(void) { return NETAPI_VERSION_STR;}\r
+\r
 #endif\r