Port: __STRINGIFY exists on Cygwin
[babeltrace.git] / include / babeltrace / ctf-ir / field-types.h
index 61dc291ae560b1555a27d06d80987b1247103c27..29928986b809fb052d1e1f8e9584d803d5a83806 100644 (file)
@@ -493,10 +493,10 @@ enum bt_ctf_byte_order {
        BT_CTF_BYTE_ORDER_NATIVE = 0,
 
        /**
-       No byte order; the initial native byte order of a
+       Unspecified byte order; the initial native byte order of a
        \link ctfirtraceclass CTF IR trace class\endlink.
        */
-       BT_CTF_BYTE_ORDER_NONE,
+       BT_CTF_BYTE_ORDER_UNSPECIFIED,
 
        /// Little-endian.
        BT_CTF_BYTE_ORDER_LITTLE_ENDIAN,
@@ -759,6 +759,9 @@ enum bt_ctf_integer_base {
        /// Unknown, used for errors.
        BT_CTF_INTEGER_BASE_UNKNOWN = -1,
 
+       /// Unspecified by the tracer.
+       BT_CTF_INTEGER_BASE_UNSPECIFIED = 0,
+
        /// Binary.
        BT_CTF_INTEGER_BASE_BINARY = 2,
 
@@ -831,7 +834,7 @@ extern int bt_ctf_field_type_integer_get_size(
        the integer fields described by a given integer field type.
 */
 extern int bt_ctf_field_type_integer_set_size(
-               struct bt_ctf_field_type *int_field_type, size_t size);
+               struct bt_ctf_field_type *int_field_type, unsigned int size);
 
 /**
 @brief  Returns whether or not the @intfields described by the @intft
@@ -896,8 +899,9 @@ extern int bt_ctf_field_type_integer_set_is_signed(
                                preferred display base.
 @returns                       Preferred display base of the integer
                                fields described by \p int_field_type,
-                               or #BT_CTF_INTEGER_BASE_UNKNOWN on
-                               error.
+                               #BT_CTF_INTEGER_BASE_UNSPECIFIED if
+                               not specified, or
+                               #BT_CTF_INTEGER_BASE_UNKNOWN on error.
 
 @prenotnull{int_field_type}
 @preisintft{int_field_type}
@@ -924,9 +928,9 @@ extern enum bt_ctf_integer_base bt_ctf_field_type_integer_get_base(
 @prenotnull{int_field_type}
 @preisintft{int_field_type}
 @prehot{int_field_type}
-@pre \p base is #BT_CTF_INTEGER_BASE_BINARY, #BT_CTF_INTEGER_BASE_OCTAL,
-       #BT_CTF_INTEGER_BASE_DECIMAL, or
-       #BT_CTF_INTEGER_BASE_HEXADECIMAL.
+@pre \p base is #BT_CTF_INTEGER_BASE_UNSPECIFIED,
+       #BT_CTF_INTEGER_BASE_BINARY, #BT_CTF_INTEGER_BASE_OCTAL,
+       #BT_CTF_INTEGER_BASE_DECIMAL, or #BT_CTF_INTEGER_BASE_HEXADECIMAL.
 @postrefcountsame{int_field_type}
 
 @sa bt_ctf_field_type_integer_get_base(): Returns the preferred display
This page took 0.024132 seconds and 4 git commands to generate.