X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftrace.h;h=ba66c33aa6669f54c6801035db25c543e9d8d959;hb=2a74fbf4e7e641f94517b3e996c674291248bb1d;hp=42fff96ff8f7f19bdaab9a8048ad104d66af87a9;hpb=3c0310400666ee8c42a23383b14c8c15ba197309;p=lttv.git diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index 42fff96f..ba66c33a 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); @@ -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 */