#include <babeltrace2-ctf-writer/object.h>
#include <babeltrace2-ctf-writer/stream-class.h>
#include <babeltrace2-ctf-writer/utils.h>
-#include <babeltrace2/types.h>
#include "common/assert.h"
#include "compat/compiler.h"
#include "values.h"
#include "writer.h"
-BT_HIDDEN
void bt_ctf_event_class_common_finalize(struct bt_ctf_object *obj)
{
struct bt_ctf_event_class_common *event_class;
bt_ctf_object_put_ref(event_class->payload_field_type);
}
-BT_HIDDEN
int bt_ctf_event_class_common_initialize(struct bt_ctf_event_class_common *event_class,
const char *name, bt_ctf_object_release_func release_func,
bt_ctf_field_type_structure_create_func ft_struct_create_func)
return ret;
}
-BT_HIDDEN
void bt_ctf_event_class_common_freeze(struct bt_ctf_event_class_common *event_class)
{
BT_ASSERT_DBG(event_class);
bt_ctf_field_type_common_freeze(event_class->payload_field_type);
}
-BT_HIDDEN
int bt_ctf_event_class_common_validate_single_clock_class(
struct bt_ctf_event_class_common *event_class,
struct bt_ctf_clock_class **expected_clock_class)
g_free(obj);
}
+BT_EXPORT
struct bt_ctf_event_class *bt_ctf_event_class_create(const char *name)
{
struct bt_ctf_event_class *ctf_event_class = NULL;
return ctf_event_class;
}
+BT_EXPORT
const char *bt_ctf_event_class_get_name(struct bt_ctf_event_class *event_class)
{
return bt_ctf_event_class_common_get_name(BT_CTF_TO_COMMON(event_class));
}
+BT_EXPORT
int64_t bt_ctf_event_class_get_id(struct bt_ctf_event_class *event_class)
{
return bt_ctf_event_class_common_get_id(BT_CTF_TO_COMMON(event_class));
}
+BT_EXPORT
int bt_ctf_event_class_set_id(struct bt_ctf_event_class *event_class,
uint64_t id)
{
return bt_ctf_event_class_common_set_id(BT_CTF_TO_COMMON(event_class), id);
}
+BT_EXPORT
enum bt_ctf_event_class_log_level bt_ctf_event_class_get_log_level(
struct bt_ctf_event_class *event_class)
{
return bt_ctf_event_class_common_get_log_level(BT_CTF_TO_COMMON(event_class));
}
+BT_EXPORT
int bt_ctf_event_class_set_log_level(struct bt_ctf_event_class *event_class,
enum bt_ctf_event_class_log_level log_level)
{
log_level);
}
+BT_EXPORT
const char *bt_ctf_event_class_get_emf_uri(
struct bt_ctf_event_class *event_class)
{
return bt_ctf_event_class_common_get_emf_uri(BT_CTF_TO_COMMON(event_class));
}
+BT_EXPORT
int bt_ctf_event_class_set_emf_uri(struct bt_ctf_event_class *event_class,
const char *emf_uri)
{
emf_uri);
}
+BT_EXPORT
struct bt_ctf_stream_class *bt_ctf_event_class_get_stream_class(
struct bt_ctf_event_class *event_class)
{
BT_CTF_TO_COMMON(event_class)));
}
+BT_EXPORT
struct bt_ctf_field_type *bt_ctf_event_class_get_payload_field_type(
struct bt_ctf_event_class *event_class)
{
BT_CTF_TO_COMMON(event_class)));
}
+BT_EXPORT
int bt_ctf_event_class_set_payload_field_type(
struct bt_ctf_event_class *event_class,
struct bt_ctf_field_type *field_type)
BT_CTF_TO_COMMON(event_class), (void *) field_type);
}
+BT_EXPORT
struct bt_ctf_field_type *bt_ctf_event_class_get_context_field_type(
struct bt_ctf_event_class *event_class)
{
BT_CTF_TO_COMMON(event_class)));
}
+BT_EXPORT
int bt_ctf_event_class_set_context_field_type(
struct bt_ctf_event_class *event_class,
struct bt_ctf_field_type *field_type)
BT_CTF_TO_COMMON(event_class), (void *) field_type);
}
+BT_EXPORT
int bt_ctf_event_class_add_field(struct bt_ctf_event_class *event_class,
struct bt_ctf_field_type *type,
const char *name)
return ret;
}
+BT_EXPORT
int64_t bt_ctf_event_class_get_payload_type_field_count(
struct bt_ctf_event_class *event_class)
{
return ret;
}
+BT_EXPORT
int bt_ctf_event_class_get_payload_type_field_by_index(
struct bt_ctf_event_class *event_class,
const char **field_name, struct bt_ctf_field_type **field_type,
return ret;
}
+BT_EXPORT
struct bt_ctf_field_type *
bt_ctf_event_class_get_payload_type_field_type_by_name(
struct bt_ctf_event_class *event_class, const char *name)
return field_type;
}
-BT_HIDDEN
int bt_ctf_event_class_serialize(struct bt_ctf_event_class *event_class,
struct metadata_context *context)
{
return ret;
}
+BT_EXPORT
struct bt_ctf_field_type *bt_ctf_event_class_get_field_by_name(
struct bt_ctf_event_class *event_class, const char *name)
{