Mark object type check functions as static
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Mar 2015 03:13:05 +0000 (23:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Mar 2015 03:40:55 +0000 (23:40 -0400)
This fixes a build error in the static build where multiple
definitions of these functions would cause a link error.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/objects.h

index 3b66cecb746a7b2794d30a956236065131a93ad9..325afe83dfe7fca6e4396000b779863d63525214 100644 (file)
@@ -272,7 +272,7 @@ extern enum bt_object_type bt_object_get_type(const struct bt_object *object);
  * @param object       Object to check
  * @returns            \c true if \p object is a null object
  */
-bool bt_object_is_null(const struct bt_object *object)
+static bool bt_object_is_null(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_NULL;
 }
@@ -283,7 +283,7 @@ bool bt_object_is_null(const struct bt_object *object)
  * @param object       Object to check
  * @returns            \c true if \p object is a boolean object
  */
-bool bt_object_is_bool(const struct bt_object *object)
+static bool bt_object_is_bool(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_BOOL;
 }
@@ -294,7 +294,7 @@ bool bt_object_is_bool(const struct bt_object *object)
  * @param object       Object to check
  * @returns            \c true if \p object is an integer object
  */
-bool bt_object_is_integer(const struct bt_object *object)
+static bool bt_object_is_integer(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_INTEGER;
 }
@@ -305,7 +305,7 @@ bool bt_object_is_integer(const struct bt_object *object)
  * @param object       Object to check
  * @returns            \c true if \p object is a floating point number object
  */
-bool bt_object_is_float(const struct bt_object *object)
+static bool bt_object_is_float(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_FLOAT;
 }
@@ -316,7 +316,7 @@ bool bt_object_is_float(const struct bt_object *object)
  * @param object       Object to check
  * @returns            \c true if \p object is a string object
  */
-bool bt_object_is_string(const struct bt_object *object)
+static bool bt_object_is_string(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_STRING;
 }
@@ -327,7 +327,7 @@ bool bt_object_is_string(const struct bt_object *object)
  * @param object       Object to check
  * @returns            \c true if \p object is an array object
  */
-bool bt_object_is_array(const struct bt_object *object)
+static bool bt_object_is_array(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_ARRAY;
 }
@@ -338,7 +338,7 @@ bool bt_object_is_array(const struct bt_object *object)
  * @param object       Object to check
  * @returns            \c true if \p object is a map object
  */
-bool bt_object_is_map(const struct bt_object *object)
+static bool bt_object_is_map(const struct bt_object *object)
 {
        return bt_object_get_type(object) == BT_OBJECT_TYPE_MAP;
 }
This page took 0.026638 seconds and 4 git commands to generate.