*_string() enumerator to string functions: remove common prefix
[babeltrace.git] / src / plugins / ctf / common / bfcr / bfcr.h
index 9cc5aadc4727d7f087dca6ffff690243bd34f7ee..ec07f0e3ff838bd34b69764a1a7772c1a6807232 100644 (file)
@@ -30,7 +30,7 @@
 #include <stddef.h>
 #include <stdio.h>
 #include <babeltrace2/babeltrace.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
 
 #include "../metadata/ctf-meta.h"
 
@@ -277,7 +277,8 @@ struct bt_bfcr_cbs {
  * @returns            New binary class reader on success, or \c NULL on error
  */
 BT_HIDDEN
-struct bt_bfcr *bt_bfcr_create(struct bt_bfcr_cbs cbs, void *data);
+struct bt_bfcr *bt_bfcr_create(struct bt_bfcr_cbs cbs, void *data,
+               bt_logging_level log_level, bt_self_component *self_comp);
 
 /**
  * Destroys a CTF binary class reader, freeing all internal resources.
@@ -361,15 +362,15 @@ const char *bt_bfcr_status_string(enum bt_bfcr_status status)
 {
        switch (status) {
        case BT_BFCR_STATUS_ENOMEM:
-               return "BT_BFCR_STATUS_ENOMEM";
+               return "ENOMEM";
        case BT_BFCR_STATUS_EOF:
-               return "BT_BFCR_STATUS_EOF";
+               return "EOF";
        case BT_BFCR_STATUS_INVAL:
-               return "BT_BFCR_STATUS_INVAL";
+               return "INVAL";
        case BT_BFCR_STATUS_ERROR:
-               return "BT_BFCR_STATUS_ERROR";
+               return "ERROR";
        case BT_BFCR_STATUS_OK:
-               return "BT_BFCR_STATUS_OK";
+               return "OK";
        default:
                return "(unknown)";
        }
This page took 0.023486 seconds and 4 git commands to generate.