Added new dlt_check_library_version() function.
int dlt_free();
/**
+ * Check the library version of DLT library.
+ * @param user_major_version the major version to be compared
+ * @param user_minor_version the minor version to be compared
+ * @return negative value if there was an error
+ */
+int dlt_check_library_version(const char * user_major_version, const char * user_minor_version);
+
+/**
* Register an application in the daemon.
* @param appid four byte long character array with the application id
* @param description long name of the application
* @return negative value if there was an error
*/
-int dlt_register_app(const char *appid, const char * description, const char * user_major_version, const char * user_minor_version);
+int dlt_register_app(const char *appid, const char * description);
/**
* Unregister an application in the daemon.
* @param DESCRIPTION ASCII string containing description
*/
#define DLT_REGISTER_APP(APPID,DESCRIPTION) \
- dlt_register_app( APPID, DESCRIPTION, PACKAGE_MAJOR_VERSION, PACKAGE_MINOR_VERSION );
+ dlt_check_library_version(PACKAGE_MAJOR_VERSION, PACKAGE_MINOR_VERSION ); \
+ dlt_register_app( APPID, DESCRIPTION);
/**
}
}
- dlt_register_app("LOG","Test Application for Logging", PACKAGE_MAJOR_VERSION,PACKAGE_MINOR_VERSION);
+ dlt_register_app("LOG","Test Application for Logging");
dlt_register_context(&mycontext,"TEST","Test Context for Logging");
return 0;
}
+int dlt_check_library_version(const char * user_major_version,const char * user_minor_version)
+{
+ return dlt_user_check_library_version(user_major_version, user_minor_version);
+}
-
-int dlt_register_app(const char *appid, const char * description, const char * user_major_version,const char * user_minor_version)
+int dlt_register_app(const char *appid, const char * description)
{
int ret;
{
return -1;
}
-
- dlt_user_check_library_version(user_major_version, user_minor_version);
}
if ((appid==0) || (appid[0]=='\0'))