Split CTF IR and CTF writer APIs and implementations
[babeltrace.git] / include / babeltrace / ctf-ir / utils.h
index a209c5f5b283d5940ef05bb7bf48d3edb1849b15..483e69463f0df2b7f39100adcf98a04dfc42466e 100644 (file)
@@ -67,12 +67,16 @@ or if it does not meet any other imposed requirement.
 
 @prenotnull{identifier}
 */
-extern bt_bool bt_ctf_identifier_is_valid(const char *identifier);
+extern bt_bool bt_identifier_is_valid(const char *identifier);
 
 /** @} */
 
 /* Pre-2.0 CTF writer compatibility */
-extern int bt_ctf_validate_identifier(const char *identifier);
+static inline
+int bt_ctf_validate_identifier(const char *identifier)
+{
+       return bt_identifier_is_valid(identifier) ? 1 : 0;
+}
 
 #ifdef __cplusplus
 }
This page took 0.024951 seconds and 4 git commands to generate.