large files support
[lttv.git] / ltt / branches / poly / ltt / trace.h
index ba66c33aa6669f54c6801035db25c543e9d8d959..a2360bb53caeb97a9b4e2cef1848fe088bd445f4 100644 (file)
@@ -32,7 +32,7 @@
    
    */
 
-LttTrace *ltt_trace_open(const char *pathname);
+LttTrace *ltt_trace_open(const gchar *pathname);
 
 /* copy reopens a trace 
  *
@@ -40,7 +40,7 @@ LttTrace *ltt_trace_open(const char *pathname);
  */
 LttTrace *ltt_trace_copy(LttTrace *self);
 
-char * ltt_trace_name(LttTrace *t);
+gchar * ltt_trace_name(LttTrace *t);
 
 void ltt_trace_close(LttTrace *t); 
 
@@ -65,7 +65,7 @@ LttFacility * ltt_trace_facility_by_id(LttTrace * trace, unsigned id);
    position, returning n, the facilities are from position to 
    position + n - 1. */
 
-unsigned ltt_trace_facility_find(LttTrace *t, char *name, unsigned *position);
+unsigned ltt_trace_facility_find(LttTrace *t, gchar *name, unsigned *position);
 
 
 /* Functions to discover all the event types in the trace */
@@ -85,13 +85,15 @@ unsigned ltt_trace_control_tracefile_number(LttTrace *t);
 unsigned ltt_trace_per_cpu_tracefile_number(LttTrace *t);
 
 
-/* It is possible to search for the tracefiles by name or by CPU position.
-   The index within the tracefiles of the same type is returned if found
-   and a negative value otherwise. */
+/* It is possible to search for the tracefiles by name or by CPU tracefile
+ * name.
+ * The index within the tracefiles of the same type is returned if found
+ * and a negative value otherwise.
+ */
 
-int ltt_trace_control_tracefile_find(LttTrace *t, char *name);
+int ltt_trace_control_tracefile_find(LttTrace *t, const gchar *name);
 
-int ltt_trace_per_cpu_tracefile_find(LttTrace *t, unsigned i);
+int ltt_trace_per_cpu_tracefile_find(LttTrace *t, const gchar *name);
 
 
 /* Get a specific tracefile */
@@ -127,20 +129,15 @@ void ltt_tracefile_seek_position(LttTracefile *t,
 
 /* Read the next event */
 
-LttEvent *ltt_tracefile_read(LttTracefile *t);
+LttEvent *ltt_tracefile_read(LttTracefile *t, LttEvent *event);
 
 /* open tracefile */
 
-LttTracefile * ltt_tracefile_open(LttTrace *t, char * tracefile_name);
-
-void ltt_tracefile_open_cpu(LttTrace *t, char * tracefile_name);
-
-gint ltt_tracefile_open_control(LttTrace *t, char * control_name);
+LttTracefile * ltt_tracefile_open(LttTrace *t, gchar * tracefile_name);
 
+void ltt_tracefile_open_cpu(LttTrace *t, gchar * tracefile_name);
 
-/* obtain the time of an event */
-
-LttTime getEventTime(LttTracefile * tf);
+gint ltt_tracefile_open_control(LttTrace *t, gchar * control_name);
 
 
 /* get the data type size and endian type of the local machine */
@@ -149,26 +146,33 @@ void getDataEndianType(LttArchSize * size, LttArchEndian * endian);
 
 /* get an integer number */
 
-int getIntNumber(int size1, void *evD);
+gint64 getIntNumber(gboolean reverse_byte_order, int size1, void *evD);
 
 
 /* get the node name of the system */
 
-char * ltt_trace_system_description_node_name (LttSystemDescription * s);
+gchar * ltt_trace_system_description_node_name (LttSystemDescription * s);
 
 
 /* get the domain name of the system */
 
-char * ltt_trace_system_description_domain_name (LttSystemDescription * s);
+gchar * ltt_trace_system_description_domain_name (LttSystemDescription * s);
 
 
 /* get the description of the system */
 
-char * ltt_trace_system_description_description (LttSystemDescription * s);
+gchar * ltt_trace_system_description_description (LttSystemDescription * s);
 
 
 /* get the start time of the trace */
 
 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);
+
+void get_absolute_pathname(const gchar *pathname, gchar * abs_pathname);
+
 #endif // TRACE_H
This page took 0.033478 seconds and 4 git commands to generate.