merge modifications for multiple viewer read at the same time, better expose handling...
[lttv.git] / ltt / branches / poly / lttv / lttv / traceset.c
index aa5364881be925d777514635237c7905b0ac600d..568e67212eb5afb9e54a25a5f2b4169fad66c8f2 100644 (file)
@@ -187,3 +187,19 @@ guint lttv_trace_get_ref_number(LttvTrace * t)
 {
   return t->ref_count;
 }
+
+guint lttv_trace_ref(LttvTrace * t)
+{
+  t->ref_count++;
+  
+  return t->ref_count;
+}
+
+guint lttv_trace_unref(LttvTrace * t)
+{
+  if(t->ref_count > 0)
+    t->ref_count--;
+
+  return t->ref_count;
+}
+
This page took 0.023205 seconds and 4 git commands to generate.