#include <babeltrace2/babeltrace.h>
#include <glib.h>
+#include <stdbool.h>
#include <stdio.h> /* For __MINGW_PRINTF_FORMAT. */
-#ifdef __MINGW_PRINTF_FORMAT
-# define BT_PRINTF_FORMAT __MINGW_PRINTF_FORMAT
-#else
-# define BT_PRINTF_FORMAT printf
-#endif
+#include <common/macros.h>
struct bt_param_validation_context;
struct bt_param_validation_value_descr;
const struct bt_param_validation_value_descr value_descr;
};
+BT_HIDDEN
enum bt_param_validation_status bt_param_validation_validate(
const bt_value *params,
const struct bt_param_validation_map_value_entry_descr *entries,
gchar **error);
-__attribute__((format(BT_PRINTF_FORMAT, 2, 3)))
+BT_HIDDEN __BT_ATTR_FORMAT_PRINTF(2, 3)
enum bt_param_validation_status bt_param_validation_error(
struct bt_param_validation_context *ctx,
const char *format, ...);