#include <lttv/traceset.h>
#include <lttv/iattribute.h>
#include <stdio.h>
+#include <babeltrace/context.h>
/* A trace is a sequence of events gathered in the same tracing session. The
events may be stored in several tracefiles in the same directory.
struct _LttvTraceset {
char * filename;
GPtrArray *traces;
+ struct bt_context *context;
LttvAttribute *a;
};
s = g_new(LttvTraceset, 1);
s->filename = NULL;
s->traces = g_ptr_array_new();
+ s->context = bt_context_create();
s->a = g_object_new(LTTV_ATTRIBUTE_TYPE, NULL);
return s;
}
g_ptr_array_add(s->traces, trace);
}
+ s->context = s_orig->context;
+ bt_context_get(s->context);
s->a = LTTV_ATTRIBUTE(lttv_iattribute_deep_copy(LTTV_IATTRIBUTE(s_orig->a)));
return s;
}
lttv_trace_destroy(trace);
}
g_ptr_array_free(s->traces, TRUE);
+ bt_context_put(s->context);
g_object_unref(s->a);
g_free(s);
}