X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fvalues-internal.h;h=31f508c8e67b5e1ecdca528ada688f1d5eeb95a4;hb=f6ccaed94e575af57fe6bf38154771bee4871a2a;hp=80981d9c2f214400c281beee8f6586acd6a0b110;hpb=464ebc311d460b29f681703aea0aa00eef9e6475;p=babeltrace.git diff --git a/include/babeltrace/values-internal.h b/include/babeltrace/values-internal.h index 80981d9c..31f508c8 100644 --- a/include/babeltrace/values-internal.h +++ b/include/babeltrace/values-internal.h @@ -28,14 +28,21 @@ #include +BT_HIDDEN +enum bt_value_status _bt_value_freeze(struct bt_value *object); + +#ifdef BT_DEV_MODE +# define bt_value_freeze _bt_value_freeze +#else +# define bt_value_freeze(_value) +#endif /* BT_DEV_MODE */ + static inline const char *bt_value_status_string(enum bt_value_status status) { switch (status) { - case BT_VALUE_STATUS_FROZEN: - return "BT_VALUE_STATUS_FROZEN"; - case BT_VALUE_STATUS_CANCELLED: - return "BT_VALUE_STATUS_CANCELLED"; + case BT_VALUE_STATUS_CANCELED: + return "BT_VALUE_STATUS_CANCELED"; case BT_VALUE_STATUS_INVAL: return "BT_VALUE_STATUS_INVAL"; case BT_VALUE_STATUS_ERROR: