[FIELD_TYPE_ALIAS_UINT64_T] = 64,
};
+BT_HIDDEN
struct bt_ctf_trace *bt_ctf_trace_create(void)
{
struct bt_ctf_trace *trace = NULL;
return trace;
}
+BT_HIDDEN
void bt_ctf_trace_destroy(struct bt_object *obj)
{
struct bt_ctf_trace *trace;
g_free(trace);
}
+BT_HIDDEN
int bt_ctf_trace_set_environment_field(struct bt_ctf_trace *trace,
const char *name, struct bt_value *value)
{
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_set_environment_field_string(struct bt_ctf_trace *trace,
const char *name, const char *value)
{
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_set_environment_field_integer(struct bt_ctf_trace *trace,
const char *name, int64_t value)
{
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_get_environment_field_count(struct bt_ctf_trace *trace)
{
int ret = 0;
return ret;
}
+BT_HIDDEN
const char *
bt_ctf_trace_get_environment_field_name(struct bt_ctf_trace *trace,
int index)
return ret;
}
+BT_HIDDEN
struct bt_value *bt_ctf_trace_get_environment_field_value(
struct bt_ctf_trace *trace, int index)
{
return ret;
}
+BT_HIDDEN
struct bt_value *bt_ctf_trace_get_environment_field_value_by_name(
struct bt_ctf_trace *trace, const char *name)
{
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_add_clock(struct bt_ctf_trace *trace,
struct bt_ctf_clock *clock)
{
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_get_clock_count(struct bt_ctf_trace *trace)
{
int ret = -1;
return ret;
}
+BT_HIDDEN
struct bt_ctf_clock *bt_ctf_trace_get_clock(struct bt_ctf_trace *trace,
int index)
{
return clock;
}
+BT_HIDDEN
int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace,
struct bt_ctf_stream_class *stream_class)
{
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_get_stream_class_count(struct bt_ctf_trace *trace)
{
int ret;
return ret;
}
+BT_HIDDEN
struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class(
struct bt_ctf_trace *trace, int index)
{
return stream_class;
}
+BT_HIDDEN
struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_id(
struct bt_ctf_trace *trace, uint32_t id)
{
return stream_class;
}
+BT_HIDDEN
struct bt_ctf_clock *bt_ctf_trace_get_clock_by_name(
struct bt_ctf_trace *trace, const char *name)
{
g_string_append(context->string, "};\n\n");
}
+BT_HIDDEN
char *bt_ctf_trace_get_metadata_string(struct bt_ctf_trace *trace)
{
char *metadata = NULL;
return metadata;
}
+BT_HIDDEN
enum bt_ctf_byte_order bt_ctf_trace_get_byte_order(struct bt_ctf_trace *trace)
{
enum bt_ctf_byte_order ret = BT_CTF_BYTE_ORDER_UNKNOWN;
return ret;
}
+BT_HIDDEN
int bt_ctf_trace_set_byte_order(struct bt_ctf_trace *trace,
enum bt_ctf_byte_order byte_order)
{
return ret;
}
+BT_HIDDEN
struct bt_ctf_field_type *bt_ctf_trace_get_packet_header_type(
struct bt_ctf_trace *trace)
{
return field_type;
}
+BT_HIDDEN
int bt_ctf_trace_set_packet_header_type(struct bt_ctf_trace *trace,
struct bt_ctf_field_type *packet_header_type)
{
#include <babeltrace/ctf-ir/field-types.h>
#include <babeltrace/values.h>
+#include <babeltrace/babeltrace-internal.h>
#include <stdint.h>
#ifdef __cplusplus
*
* Returns a new trace on success, NULL on error.
*/
-extern struct bt_ctf_trace *bt_ctf_trace_create(void);
+BT_HIDDEN
+struct bt_ctf_trace *bt_ctf_trace_create(void);
/*
* bt_ctf_trace_set_environment_field: sets an environment field to the
*
* Returns 0 on success, a negative value on error.
*/
-extern int bt_ctf_trace_set_environment_field(
+BT_HIDDEN
+int bt_ctf_trace_set_environment_field(
struct bt_ctf_trace *trace, const char *name,
struct bt_value *value);
*
* Returns 0 on success, a negative value on error.
*/
-extern int bt_ctf_trace_set_environment_field_string(
+BT_HIDDEN
+int bt_ctf_trace_set_environment_field_string(
struct bt_ctf_trace *trace, const char *name,
const char *value);
*
* Returns 0 on success, a negative value on error.
*/
-extern int bt_ctf_trace_set_environment_field_integer(
+BT_HIDDEN
+int bt_ctf_trace_set_environment_field_integer(
struct bt_ctf_trace *trace, const char *name,
int64_t value);
*
* Returns the environment field count, a negative value on error.
*/
-extern int bt_ctf_trace_get_environment_field_count(
+BT_HIDDEN
+int bt_ctf_trace_get_environment_field_count(
struct bt_ctf_trace *trace);
/*
*
* Returns the environment field's name, NULL on error.
*/
-extern const char *
+BT_HIDDEN
+const char *
bt_ctf_trace_get_environment_field_name(struct bt_ctf_trace *trace,
int index);
*
* Returns the environment field's object value, NULL on error.
*/
-extern struct bt_value *
+BT_HIDDEN
+struct bt_value *
bt_ctf_trace_get_environment_field_value(struct bt_ctf_trace *trace,
int index);
*
* Returns the environment field's object value, NULL on error.
*/
-extern struct bt_value *
+BT_HIDDEN
+struct bt_value *
bt_ctf_trace_get_environment_field_value_by_name(struct bt_ctf_trace *trace,
const char *name);
*
* Returns 0 on success, a negative value on error.
*/
-extern int bt_ctf_trace_add_clock(struct bt_ctf_trace *trace,
+BT_HIDDEN
+int bt_ctf_trace_add_clock(struct bt_ctf_trace *trace,
struct bt_ctf_clock *clock);
/*
*
* Returns the clock count on success, a negative value on error.
*/
-extern int bt_ctf_trace_get_clock_count(struct bt_ctf_trace *trace);
+BT_HIDDEN
+int bt_ctf_trace_get_clock_count(struct bt_ctf_trace *trace);
/*
* bt_ctf_trace_get_clock: get a trace's clock at index.
*
* Return a clock instance on success, NULL on error.
*/
-extern struct bt_ctf_clock *bt_ctf_trace_get_clock(
+BT_HIDDEN
+struct bt_ctf_clock *bt_ctf_trace_get_clock(
struct bt_ctf_trace *trace, int index);
/*
*
* Returns 0 on success, a negative value on error.
*/
-extern int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace,
+BT_HIDDEN
+int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace,
struct bt_ctf_stream_class *stream_class);
/*
*
* Returns the stream class count on success, a negative value on error.
*/
-extern int bt_ctf_trace_get_stream_class_count(struct bt_ctf_trace *trace);
+BT_HIDDEN
+int bt_ctf_trace_get_stream_class_count(struct bt_ctf_trace *trace);
/*
* bt_ctf_trace_get_stream_class: get a trace's stream class at index.
*
* Return a stream class on success, NULL on error.
*/
-extern struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class(
+BT_HIDDEN
+struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class(
struct bt_ctf_trace *trace, int index);
/*
*
* Return a stream class on success, NULL on error.
*/
-extern struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_id(
+BT_HIDDEN
+struct bt_ctf_stream_class *bt_ctf_trace_get_stream_class_by_id(
struct bt_ctf_trace *trace, uint32_t id);
/*
*
* Return a clock instance on success, NULL on error.
*/
-extern struct bt_ctf_clock *bt_ctf_trace_get_clock_by_name(
+BT_HIDDEN
+struct bt_ctf_clock *bt_ctf_trace_get_clock_by_name(
struct bt_ctf_trace *trace, const char *name);
/*
*
* Returns the metadata string on success, NULL on error.
*/
-extern char *bt_ctf_trace_get_metadata_string(struct bt_ctf_trace *trace);
+BT_HIDDEN
+char *bt_ctf_trace_get_metadata_string(struct bt_ctf_trace *trace);
/*
* bt_ctf_trace_get_byte_order: get a trace's byte order.
*
* Returns the trace's endianness, BT_CTF_BYTE_ORDER_UNKNOWN on error.
*/
-extern enum bt_ctf_byte_order bt_ctf_trace_get_byte_order(
+BT_HIDDEN
+enum bt_ctf_byte_order bt_ctf_trace_get_byte_order(
struct bt_ctf_trace *trace);
/*
* to the CTF specification, is defined as "the byte order described in the
* trace description".
*/
-extern int bt_ctf_trace_set_byte_order(struct bt_ctf_trace *trace,
+BT_HIDDEN
+int bt_ctf_trace_set_byte_order(struct bt_ctf_trace *trace,
enum bt_ctf_byte_order byte_order);
/*
* Returns the trace's packet header type (a structure) on success, NULL on
* error.
*/
-extern struct bt_ctf_field_type *bt_ctf_trace_get_packet_header_type(
+BT_HIDDEN
+struct bt_ctf_field_type *bt_ctf_trace_get_packet_header_type(
struct bt_ctf_trace *trace);
/*
*
* Returns 0 on success, a negative value on error.
*/
-extern int bt_ctf_trace_set_packet_header_type(struct bt_ctf_trace *trace,
+BT_HIDDEN
+int bt_ctf_trace_set_packet_header_type(struct bt_ctf_trace *trace,
struct bt_ctf_field_type *packet_header_type);
#ifdef __cplusplus