lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git] / include / babeltrace / ctf-writer / writer-internal.h
index 17d4af7d99c9a41b0eadb98d2aef1f6a21282fce..3a885dee8334b2d3536bfe8ae3bca7086bc05171 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_CTF_WRITER_WRITER_INTERNAL_H
 
 /*
- * BabelTrace - CTF Writer: Writer internal
- *
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
 #include <glib.h>
 #include <dirent.h>
 #include <sys/types.h>
-#include <babeltrace/ctf-ir/trace.h>
-#include <babeltrace/object-internal.h>
+#include <babeltrace/ctf-writer/trace.h>
+#include <babeltrace/ctf-writer/object-internal.h>
+
+struct metadata_context {
+       GString *string;
+       GString *field_name;
+       unsigned int current_indentation_level;
+};
 
 struct bt_ctf_writer {
-       struct bt_object base;
+       struct bt_ctf_object base;
        int frozen; /* Protects attributes that can't be changed mid-trace */
        struct bt_ctf_trace *trace;
        GString *path;
        int metadata_fd;
 };
 
+enum field_type_alias {
+       FIELD_TYPE_ALIAS_UINT5_T = 0,
+       FIELD_TYPE_ALIAS_UINT8_T,
+       FIELD_TYPE_ALIAS_UINT16_T,
+       FIELD_TYPE_ALIAS_UINT27_T,
+       FIELD_TYPE_ALIAS_UINT32_T,
+       FIELD_TYPE_ALIAS_UINT64_T,
+       NR_FIELD_TYPE_ALIAS,
+};
+
+BT_HIDDEN
+struct bt_ctf_field_type *get_field_type(enum field_type_alias alias);
+
+BT_HIDDEN
+const char *bt_ctf_get_byte_order_string(enum bt_ctf_byte_order byte_order);
+
 BT_HIDDEN
 void bt_ctf_writer_freeze(struct bt_ctf_writer *writer);
 
This page took 0.023165 seconds and 4 git commands to generate.