*/
LttTrace *ltt_trace_copy(LttTrace *self);
-GQuark ltt_trace_name(LttTrace *t);
+GQuark ltt_trace_name(const LttTrace *t);
void ltt_trace_close(LttTrace *t);
}
-GQuark ltt_trace_name(LttTrace *t)
+GQuark ltt_trace_name(const LttTrace *t)
{
return t->pathname;
}
/* cannot specify number with more than one '.' */
if(is_double) return FALSE;
else is_double = TRUE;
- t.tv_sec = atoi(v);
+ t.tv_sec = atoi(v->str);
g_string_free(v,TRUE);
v = g_string_new("");
} else g_string_append_c(v,value[i]);
}
/* number can be integer or double */
- if(is_double) t.tv_nsec = atoi(v);
- else t.tv_sec = atoi(v);
+ if(is_double) t.tv_nsec = atoi(v->str);
+ else t.tv_sec = atoi(v->str);
g_string_free(v,TRUE);
#include <ltt/facility.h>
#include <ltt/trace.h>
#include <ltt/event.h>
+#include <ltt/type.h>
#define BUF_SIZE 256
thf->f3 = find_field(et, field3);
first_thf = thf;
+ first_et = et;
/* Check for type compatibility too */
for(i=1;i<facilities->len;i++) {
const LttvTracesetContextPosition *pos)
{
int i;
- int ret;
+ int ret = 0;
for(i=0;i<pos->ep->len;i++) {
LttEventPosition *ep = g_array_index(pos->ep, LttEventPosition*, i);