Document utils.h (API)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 22 Nov 2016 19:48:39 +0000 (14:48 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:07 +0000 (14:09 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ctf-ir/utils.h

index d661ed88f5f8dee4fa060fee506630209d2cc250..83d6db7666a47ea650b3b19638f2f86501d15c89 100644 (file)
 extern "C" {
 #endif
 
-/*
- * bt_ctf_validate_identifier: validate an identifier against the CTF spec.
- *
- * Validate that an identifier meets the CTF specification's restrictions on
- * identifiers. An identifier will be rejected if it is a keyword defined
- * in the CTF specification or if it does not meet any other requirement imposed
- * on identifiers.
- *
- * Note that this will not check whether or not the identifier clashes with
- * identifiers used in a given trace.
- *
- * Returns 0 if the identifier is valid, a negative value on error.
- */
+/**
+@defgroup ctfirutils CTF IR utilities
+@ingroup ctfir
+@brief CTF IR utilities.
+
+@file
+@brief CTF IR utilities functions.
+@sa ctfirutils
+
+@addtogroup ctfirutils
+@{
+*/
+
+/**
+@brief Returns whether or not the string \p identifier is a valid
+       identifier according to CTF.
+
+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.
+
+@prenotnull{identifier}
+*/
 extern int bt_ctf_validate_identifier(const char *identifier);
 
+/** @} */
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.027271 seconds and 4 git commands to generate.