X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Flttng-live%2Flttng-live.h;h=b3154581244707cdc3b899a097eeb01513d45fe1;hb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10;hp=c4641df7c62bc934896ea3ac0d81d49ca8bc5d92;hpb=5805251d80794af957cab5a72e4cc39b5e79c4f7;p=babeltrace.git diff --git a/formats/lttng-live/lttng-live.h b/formats/lttng-live/lttng-live.h index c4641df7..b3154581 100644 --- a/formats/lttng-live/lttng-live.h +++ b/formats/lttng-live/lttng-live.h @@ -25,6 +25,7 @@ */ #include +#include #include "lttng-viewer-abi.h" #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344 @@ -32,10 +33,17 @@ #define LTTNG_LIVE_MAJOR 2 #define LTTNG_LIVE_MINOR 4 +/* + * The lttng-live output file pointer is currently hardcoded to stdout, + * and is expected to be hardcoded to this by fflush() performed between + * each packet. + */ +#define LTTNG_LIVE_OUTPUT_FP stdout + struct lttng_live_ctx { - char traced_hostname[NAME_MAX]; - char session_name[NAME_MAX]; - char relay_hostname[NAME_MAX]; + char traced_hostname[MAXNAMLEN]; + char session_name[MAXNAMLEN]; + char relay_hostname[MAXNAMLEN]; int control_sock; int port; /* Protocol version to use for this connection. */ @@ -65,6 +73,7 @@ struct lttng_live_session { uint64_t stream_count; struct lttng_live_ctx *ctx; struct lttng_live_viewer_stream *streams; + /* HashTable mapping trace_ids to ptrs to struct lttng_live_ctf_trace */ GHashTable *ctf_traces; };