Left one FIXME about unused function.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct bt_config *cfg = NULL;
poptContext pc = NULL;
char *arg = NULL;
- struct ctf_legacy_opts ctf_legacy_opts = { 0 };
- struct text_legacy_opts text_legacy_opts = { 0 };
+ struct ctf_legacy_opts ctf_legacy_opts;
+ struct text_legacy_opts text_legacy_opts;
enum legacy_input_format legacy_input_format = LEGACY_INPUT_FORMAT_NONE;
enum legacy_output_format legacy_output_format =
LEGACY_OUTPUT_FORMAT_NONE;
bool cur_cfg_comp_params_set = false;
unsigned int i;
+ memset(&ctf_legacy_opts, 0, sizeof(ctf_legacy_opts));
+ memset(&text_legacy_opts, 0, sizeof(text_legacy_opts));
*exit_code = 0;
if (argc <= 1) {
enum bt_notification_iterator_seek_origin seek_origin,
int64_t time)
{
- enum bt_notification_iterator_status ret = BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED;
-end:
+ enum bt_notification_iterator_status ret =
+ BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED;
return ret;
}
#include <babeltrace/ctf-ir/event-class.h>
#include <babeltrace/plugin/notification/packet.h>
#include <babeltrace/plugin/notification/event.h>
+#include <babeltrace/plugin/notification/stream.h>
#include <babeltrace/ref.h>
#include <glib.h>
BT_PUT(event);
}
+//FIXME: not used ?
static
void notify_eos(struct bt_ctf_notif_iter *notit,
struct bt_notification **notification)
{
- struct bt_ctf_event *event;
+ struct bt_ctf_stream *stream = NULL;
struct bt_notification *ret = NULL;
- /* Create event */
- event = create_event(notit);
- if (!event) {
+ /* Ask the user for the stream */
+ stream = notit->medium.medops.get_stream(notit->meta.stream_class,
+ notit->medium.data);
+ if (!stream) {
goto end;
}
- ret = bt_notification_stream_end_create(event);
+ ret = bt_notification_stream_end_create(stream);
if (!ret) {
goto end;
}
*notification = ret;
end:
- BT_PUT(event);
+ BT_PUT(stream);
}
static
struct bt_ctf_trace *trace = NULL;
struct bt_ctf_clock *clock = NULL;
FILE *out = text->out;
- FILE *err = text->err;
- uint64_t real_timestamp;
stream = bt_ctf_event_get_stream(event);
if (!stream) {