Fix live-comm: only apply retry timeout for already seen inactive indexes.
[babeltrace.git] / include / babeltrace / values.h
index e13cc2020d6dbd9ec6656f968a2f1364501a1cb6..a9ebe57f28a26c211da6487409c348b8a32d279b 100644 (file)
@@ -75,6 +75,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <babeltrace/ref.h>
+#include <babeltrace/babeltrace-internal.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -185,7 +186,8 @@ typedef bool (* bt_value_map_foreach_cb)(const char *key,
  *
  * @see bt_value_is_frozen()
  */
-extern enum bt_value_status bt_value_freeze(struct bt_value *object);
+BT_HIDDEN
+enum bt_value_status bt_value_freeze(struct bt_value *object);
 
 /**
  * Checks whether \p object is frozen or not.
@@ -195,7 +197,8 @@ extern enum bt_value_status bt_value_freeze(struct bt_value *object);
  *
  * @see bt_value_freeze()
  */
-extern bool bt_value_is_frozen(const struct bt_value *object);
+BT_HIDDEN
+bool bt_value_is_frozen(const struct bt_value *object);
 
 /**
  * Returns the type of \p object.
@@ -213,7 +216,8 @@ extern bool bt_value_is_frozen(const struct bt_value *object);
  * @see bt_value_is_array()
  * @see bt_value_is_map()
  */
-extern enum bt_value_type bt_value_get_type(const struct bt_value *object);
+BT_HIDDEN
+enum bt_value_type bt_value_get_type(const struct bt_value *object);
 
 /**
  * Checks whether \p object is a null value object. The only valid null
@@ -326,7 +330,8 @@ bool bt_value_is_map(const struct bt_value *object)
  * @see bt_value_bool_create_init() (creates an initialized
  *                                  boolean value object)
  */
-extern struct bt_value *bt_value_bool_create(void);
+BT_HIDDEN
+struct bt_value *bt_value_bool_create(void);
 
 /**
  * Creates a boolean value object with its initial raw value set to
@@ -337,7 +342,8 @@ extern struct bt_value *bt_value_bool_create(void);
  * @param val  Initial raw value
  * @returns    Created value object on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_bool_create_init(bool val);
+BT_HIDDEN
+struct bt_value *bt_value_bool_create_init(bool val);
 
 /**
  * Creates an integer value object. The created integer value object's
@@ -350,7 +356,8 @@ extern struct bt_value *bt_value_bool_create_init(bool val);
  * @see bt_value_integer_create_init() (creates an initialized
  *                                     integer value object)
  */
-extern struct bt_value *bt_value_integer_create(void);
+BT_HIDDEN
+struct bt_value *bt_value_integer_create(void);
 
 /**
  * Creates an integer value object with its initial raw value set to
@@ -361,7 +368,8 @@ extern struct bt_value *bt_value_integer_create(void);
  * @param val  Initial raw value
  * @returns    Created value object on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_integer_create_init(int64_t val);
+BT_HIDDEN
+struct bt_value *bt_value_integer_create_init(int64_t val);
 
 /**
  * Creates a floating point number value object. The created floating
@@ -374,7 +382,8 @@ extern struct bt_value *bt_value_integer_create_init(int64_t val);
  * @see bt_value_float_create_init() (creates an initialized floating
  *                                   point number value object)
  */
-extern struct bt_value *bt_value_float_create(void);
+BT_HIDDEN
+struct bt_value *bt_value_float_create(void);
 
 /**
  * Creates a floating point number value object with its initial raw
@@ -385,7 +394,8 @@ extern struct bt_value *bt_value_float_create(void);
  * @param val  Initial raw value
  * @returns    Created value object on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_float_create_init(double val);
+BT_HIDDEN
+struct bt_value *bt_value_float_create_init(double val);
 
 /**
  * Creates a string value object. The string value object is initially
@@ -398,7 +408,8 @@ extern struct bt_value *bt_value_float_create_init(double val);
  * @see bt_value_string_create_init() (creates an initialized
  *                                    string value object)
  */
-extern struct bt_value *bt_value_string_create(void);
+BT_HIDDEN
+struct bt_value *bt_value_string_create(void);
 
 /**
  * Creates a string value object with its initial raw value set to
@@ -411,7 +422,8 @@ extern struct bt_value *bt_value_string_create(void);
  * @param val  Initial raw value (copied on success)
  * @returns    Created value object on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_string_create_init(const char *val);
+BT_HIDDEN
+struct bt_value *bt_value_string_create_init(const char *val);
 
 /**
  * Creates an empty array value object.
@@ -420,7 +432,8 @@ extern struct bt_value *bt_value_string_create_init(const char *val);
  *
  * @returns    Created value object on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_array_create(void);
+BT_HIDDEN
+struct bt_value *bt_value_array_create(void);
 
 /**
  * Creates an empty map value object.
@@ -429,7 +442,8 @@ extern struct bt_value *bt_value_array_create(void);
  *
  * @returns    Created value object on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_map_create(void);
+BT_HIDDEN
+struct bt_value *bt_value_map_create(void);
 
 /**
  * Gets the boolean raw value of the boolean value object \p bool_obj.
@@ -440,7 +454,8 @@ extern struct bt_value *bt_value_map_create(void);
  *
  * @see bt_value_bool_set()
  */
-extern enum bt_value_status bt_value_bool_get(
+BT_HIDDEN
+enum bt_value_status bt_value_bool_get(
                const struct bt_value *bool_obj, bool *val);
 
 /**
@@ -453,7 +468,8 @@ extern enum bt_value_status bt_value_bool_get(
  *
  * @see bt_value_bool_get()
  */
-extern enum bt_value_status bt_value_bool_set(struct bt_value *bool_obj,
+BT_HIDDEN
+enum bt_value_status bt_value_bool_set(struct bt_value *bool_obj,
                bool val);
 
 /**
@@ -466,7 +482,8 @@ extern enum bt_value_status bt_value_bool_set(struct bt_value *bool_obj,
  *
  * @see bt_value_integer_set()
  */
-extern enum bt_value_status bt_value_integer_get(
+BT_HIDDEN
+enum bt_value_status bt_value_integer_get(
                const struct bt_value *integer_obj, int64_t *val);
 
 /**
@@ -479,7 +496,8 @@ extern enum bt_value_status bt_value_integer_get(
  *
  * @see bt_value_integer_get()
  */
-extern enum bt_value_status bt_value_integer_set(
+BT_HIDDEN
+enum bt_value_status bt_value_integer_set(
                struct bt_value *integer_obj, int64_t val);
 
 /**
@@ -492,7 +510,8 @@ extern enum bt_value_status bt_value_integer_set(
  *
  * @see bt_value_float_set()
  */
-extern enum bt_value_status bt_value_float_get(
+BT_HIDDEN
+enum bt_value_status bt_value_float_get(
                const struct bt_value *float_obj, double *val);
 
 /**
@@ -505,7 +524,8 @@ extern enum bt_value_status bt_value_float_get(
  *
  * @see bt_value_float_get()
  */
-extern enum bt_value_status bt_value_float_set(
+BT_HIDDEN
+enum bt_value_status bt_value_float_set(
                struct bt_value *float_obj, double val);
 
 /**
@@ -520,7 +540,8 @@ extern enum bt_value_status bt_value_float_set(
  *
  * @see bt_value_string_set()
  */
-extern enum bt_value_status bt_value_string_get(
+BT_HIDDEN
+enum bt_value_status bt_value_string_get(
                const struct bt_value *string_obj, const char **val);
 
 /**
@@ -535,7 +556,8 @@ extern enum bt_value_status bt_value_string_get(
  *
  * @see bt_value_string_get()
  */
-extern enum bt_value_status bt_value_string_set(struct bt_value *string_obj,
+BT_HIDDEN
+enum bt_value_status bt_value_string_set(struct bt_value *string_obj,
                const char *val);
 
 /**
@@ -549,7 +571,8 @@ extern enum bt_value_status bt_value_string_set(struct bt_value *string_obj,
  *
  * @see bt_value_array_is_empty()
  */
-extern int bt_value_array_size(const struct bt_value *array_obj);
+BT_HIDDEN
+int bt_value_array_size(const struct bt_value *array_obj);
 
 /**
  * Returns \c true if the array value object \p array_obj is empty.
@@ -559,7 +582,8 @@ extern int bt_value_array_size(const struct bt_value *array_obj);
  *
  * @see bt_value_array_size()
  */
-extern bool bt_value_array_is_empty(const struct bt_value *array_obj);
+BT_HIDDEN
+bool bt_value_array_is_empty(const struct bt_value *array_obj);
 
 /**
  * Gets the value object of the array value object \p array_obj at the
@@ -573,7 +597,8 @@ extern bool bt_value_array_is_empty(const struct bt_value *array_obj);
  * @returns            Value object at index \p index on
  *                     success, or \c NULL on error
  */
-extern struct bt_value *bt_value_array_get(const struct bt_value *array_obj,
+BT_HIDDEN
+struct bt_value *bt_value_array_get(const struct bt_value *array_obj,
                size_t index);
 
 /**
@@ -594,7 +619,8 @@ extern struct bt_value *bt_value_array_get(const struct bt_value *array_obj,
  * @see bt_value_array_append_empty_array()
  * @see bt_value_array_append_empty_map()
  */
-extern enum bt_value_status bt_value_array_append(struct bt_value *array_obj,
+BT_HIDDEN
+enum bt_value_status bt_value_array_append(struct bt_value *array_obj,
                struct bt_value *element_obj);
 
 /**
@@ -610,7 +636,8 @@ extern enum bt_value_status bt_value_array_append(struct bt_value *array_obj,
  *
  * @see bt_value_array_append()
  */
-extern enum bt_value_status bt_value_array_append_bool(
+BT_HIDDEN
+enum bt_value_status bt_value_array_append_bool(
                struct bt_value *array_obj, bool val);
 
 /**
@@ -626,7 +653,8 @@ extern enum bt_value_status bt_value_array_append_bool(
  *
  * @see bt_value_array_append()
  */
-extern enum bt_value_status bt_value_array_append_integer(
+BT_HIDDEN
+enum bt_value_status bt_value_array_append_integer(
                struct bt_value *array_obj, int64_t val);
 
 /**
@@ -643,7 +671,8 @@ extern enum bt_value_status bt_value_array_append_integer(
  *
  * @see bt_value_array_append()
  */
-extern enum bt_value_status bt_value_array_append_float(
+BT_HIDDEN
+enum bt_value_status bt_value_array_append_float(
                struct bt_value *array_obj, double val);
 
 /**
@@ -661,7 +690,8 @@ extern enum bt_value_status bt_value_array_append_float(
  *
  * @see bt_value_array_append()
  */
-extern enum bt_value_status bt_value_array_append_string(
+BT_HIDDEN
+enum bt_value_status bt_value_array_append_string(
                struct bt_value *array_obj, const char *val);
 
 /**
@@ -676,7 +706,8 @@ extern enum bt_value_status bt_value_array_append_string(
  *
  * @see bt_value_array_append()
  */
-extern enum bt_value_status bt_value_array_append_empty_array(
+BT_HIDDEN
+enum bt_value_status bt_value_array_append_empty_array(
                struct bt_value *array_obj);
 
 /**
@@ -691,7 +722,8 @@ extern enum bt_value_status bt_value_array_append_empty_array(
  *
  * @see bt_value_array_append()
  */
-extern enum bt_value_status bt_value_array_append_empty_map(
+BT_HIDDEN
+enum bt_value_status bt_value_array_append_empty_map(
                struct bt_value *array_obj);
 
 /**
@@ -708,7 +740,8 @@ extern enum bt_value_status bt_value_array_append_empty_map(
  *                     \p array_obj
  * @returns            One of #bt_value_status values
  */
-extern enum bt_value_status bt_value_array_set(struct bt_value *array_obj,
+BT_HIDDEN
+enum bt_value_status bt_value_array_set(struct bt_value *array_obj,
                size_t index, struct bt_value *element_obj);
 
 /**
@@ -722,7 +755,8 @@ extern enum bt_value_status bt_value_array_set(struct bt_value *array_obj,
  *
  * @see bt_value_map_is_empty()
  */
-extern int bt_value_map_size(const struct bt_value *map_obj);
+BT_HIDDEN
+int bt_value_map_size(const struct bt_value *map_obj);
 
 /**
  * Returns \c true if the map value object \p map_obj is empty.
@@ -732,7 +766,8 @@ extern int bt_value_map_size(const struct bt_value *map_obj);
  *
  * @see bt_value_map_size()
  */
-extern bool bt_value_map_is_empty(const struct bt_value *map_obj);
+BT_HIDDEN
+bool bt_value_map_is_empty(const struct bt_value *map_obj);
 
 /**
  * Gets the value object associated with the key \p key within the
@@ -746,7 +781,8 @@ extern bool bt_value_map_is_empty(const struct bt_value *map_obj);
  * @returns            Value object associated with the key \p key
  *                     on success, or \c NULL on error
  */
-extern struct bt_value *bt_value_map_get(const struct bt_value *map_obj,
+BT_HIDDEN
+struct bt_value *bt_value_map_get(const struct bt_value *map_obj,
                const char *key);
 
 /**
@@ -771,7 +807,8 @@ extern struct bt_value *bt_value_map_get(const struct bt_value *map_obj,
  *                     returned if the loop was cancelled by the user
  *                     function
  */
-extern enum bt_value_status bt_value_map_foreach(
+BT_HIDDEN
+enum bt_value_status bt_value_map_foreach(
                const struct bt_value *map_obj, bt_value_map_foreach_cb cb,
                void *data);
 
@@ -785,7 +822,8 @@ extern enum bt_value_status bt_value_map_foreach(
  *                     or \c false if it doesn't have \p key or
  *                     on error
  */
-extern bool bt_value_map_has_key(const struct bt_value *map_obj,
+BT_HIDDEN
+bool bt_value_map_has_key(const struct bt_value *map_obj,
                const char *key);
 
 /**
@@ -812,7 +850,8 @@ extern bool bt_value_map_has_key(const struct bt_value *map_obj,
  * @see bt_value_map_insert_empty_array()
  * @see bt_value_map_insert_empty_map()
  */
-extern enum bt_value_status bt_value_map_insert(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert(
                struct bt_value *map_obj, const char *key,
                struct bt_value *element_obj);
 
@@ -835,7 +874,8 @@ extern enum bt_value_status bt_value_map_insert(
  *
  * @see bt_value_map_insert()
  */
-extern enum bt_value_status bt_value_map_insert_bool(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert_bool(
                struct bt_value *map_obj, const char *key, bool val);
 
 /**
@@ -856,7 +896,8 @@ extern enum bt_value_status bt_value_map_insert_bool(
  *
  * @see bt_value_map_insert()
  */
-extern enum bt_value_status bt_value_map_insert_integer(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert_integer(
                struct bt_value *map_obj, const char *key, int64_t val);
 
 /**
@@ -879,7 +920,8 @@ extern enum bt_value_status bt_value_map_insert_integer(
  *
  * @see bt_value_map_insert()
  */
-extern enum bt_value_status bt_value_map_insert_float(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert_float(
                struct bt_value *map_obj, const char *key, double val);
 
 /**
@@ -900,7 +942,8 @@ extern enum bt_value_status bt_value_map_insert_float(
  *
  * @see bt_value_map_insert()
  */
-extern enum bt_value_status bt_value_map_insert_string(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert_string(
                struct bt_value *map_obj, const char *key, const char *val);
 
 /**
@@ -919,7 +962,8 @@ extern enum bt_value_status bt_value_map_insert_string(
  *
  * @see bt_value_map_insert()
  */
-extern enum bt_value_status bt_value_map_insert_empty_array(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert_empty_array(
                struct bt_value *map_obj, const char *key);
 
 /**
@@ -938,7 +982,8 @@ extern enum bt_value_status bt_value_map_insert_empty_array(
  *
  * @see bt_value_map_insert()
  */
-extern enum bt_value_status bt_value_map_insert_empty_map(
+BT_HIDDEN
+enum bt_value_status bt_value_map_insert_empty_map(
                struct bt_value *map_obj, const char *key);
 
 /**
@@ -954,7 +999,8 @@ extern enum bt_value_status bt_value_map_insert_empty_map(
  * @returns            Deep copy of \p object on success, or \c NULL
  *                     on error
  */
-extern struct bt_value *bt_value_copy(const struct bt_value *object);
+BT_HIDDEN
+struct bt_value *bt_value_copy(const struct bt_value *object);
 
 /**
  * Compares the value objects \p object_a and \p object_b and returns
@@ -966,7 +1012,8 @@ extern struct bt_value *bt_value_copy(const struct bt_value *object);
  *                     same content, or \c false if they differ or on
  *                     error
  */
-extern bool bt_value_compare(const struct bt_value *object_a,
+BT_HIDDEN
+bool bt_value_compare(const struct bt_value *object_a,
                const struct bt_value *object_b);
 
 #ifdef __cplusplus
This page took 0.03116 seconds and 4 git commands to generate.