From: Jérémie Galarneau Date: Tue, 17 Mar 2015 03:13:05 +0000 (-0400) Subject: Mark object type check functions as static X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e6631f7d05494d8e0f4d856f3e1d8ba09df41ce4;p=deliverable%2Fbabeltrace.git Mark object type check functions as static 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 --- diff --git a/include/babeltrace/objects.h b/include/babeltrace/objects.h index 3b66cecb7..325afe83d 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; }