assert-pre-internal.h: add BT_ASSERT_PRE_VALID_INDEX()
[babeltrace.git] / include / babeltrace / ctf-ir / utils.h
index 21db2e72a1b65c36b9061ff8ee3dfedda1ad1425..c93b0d8442c8b2fdef4a799a5facc516e389f3d5 100644 (file)
@@ -30,6 +30,9 @@
  * http://www.efficios.com/ctf
  */
 
+/* For bt_bool */
+#include <babeltrace/types.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -59,12 +62,12 @@ This function returns a negative value if \p identifier is a CTF keyword
 or if it does not meet any other imposed requirement.
 
 @param[in] identifier  String to test.
-@returns               0 if \p identifier is a valid identifier, or
-                       a negative value otherwise or on error.
+@returns               #BT_TRUE if \p identifier is a valid CTF
+                       identifier, or #BT_FALSE otherwise.
 
 @prenotnull{identifier}
 */
-extern int bt_ctf_validate_identifier(const char *identifier);
+extern bt_bool bt_identifier_is_valid(const char *identifier);
 
 /** @} */
 
This page took 0.025204 seconds and 4 git commands to generate.