X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftrace.h;h=03f47694183a7f3f23b6054b21cddc677ca7058f;hb=39088a5f4184024f95643adbfebd8d0d5361cec3;hp=2b3f8533ba6488494f7ae3fd88ec2aa0ed67975c;hpb=f95bc8309fe113855266f4445874248b6a285062;p=lttv.git diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index 2b3f8533..03f47694 100644 --- a/ltt/branches/poly/ltt/trace.h +++ b/ltt/branches/poly/ltt/trace.h @@ -26,11 +26,18 @@ descriptions...). When a trace is closed, all the associated facilities, types and fields - are released as well. */ + are released as well. + + return value is NULL if there is an error when opening the trace. + + */ LttTrace *ltt_trace_open(const char *pathname); -/* copy reopens a trace */ +/* copy reopens a trace + * + * return value NULL if error while opening the trace + */ LttTrace *ltt_trace_copy(LttTrace *self); char * ltt_trace_name(LttTrace *t); @@ -116,11 +123,11 @@ void ltt_tracefile_seek_time(LttTracefile *t, LttTime time); /* Seek to the first event with position equal or larger to ep */ void ltt_tracefile_seek_position(LttTracefile *t, - LttEventPosition *ep); + const LttEventPosition *ep); /* Read the next event */ -LttEvent *ltt_tracefile_read(LttTracefile *t); +LttEvent *ltt_tracefile_read(LttTracefile *t, LttEvent *event); /* open tracefile */ @@ -128,7 +135,7 @@ LttTracefile * ltt_tracefile_open(LttTrace *t, char * tracefile_name); void ltt_tracefile_open_cpu(LttTrace *t, char * tracefile_name); -void ltt_tracefile_open_control(LttTrace *t, char * control_name); +gint ltt_tracefile_open_control(LttTrace *t, char * control_name); /* obtain the time of an event */ @@ -164,4 +171,10 @@ char * ltt_trace_system_description_description (LttSystemDescription * s); LttTime ltt_trace_system_description_trace_start_time(LttSystemDescription *s); +/* copy tracefile info over another. Used for sync. */ +LttTracefile *ltt_tracefile_new(); +void ltt_tracefile_destroy(LttTracefile *tf); +void ltt_tracefile_copy(LttTracefile *dest, const LttTracefile *src); + + #endif // TRACE_H