From e6631f7d05494d8e0f4d856f3e1d8ba09df41ce4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 16 Mar 2015 23:13:05 -0400 Subject: [PATCH] Mark object type check functions as static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- include/babeltrace/objects.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/babeltrace/objects.h b/include/babeltrace/objects.h index 3b66cecb..325afe83 100644 --- a/include/babeltrace/objects.h +++ b/include/babeltrace/objects.h @@ -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; } -- 2.34.1