tracecontext.c: start conversion
[lttv.git] / ltt / branches / poly / ltt / facility.h
index 8fda81e9b6f0470daf94c287dfec592f577fad8b..65bca4fa98a467ce5263747c8c68f68e1ed0dbec 100644 (file)
@@ -1,5 +1,6 @@
 /* This file is part of the Linux Trace Toolkit trace reading library
  * Copyright (C) 2003-2004 Michel Dagenais
+ *               2006 Mathieu Desnoyers
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
    with a facility are released when the trace is closed. Each facility
    is characterized by its name and checksum. */
 
-char *ltt_facility_name(LttFacility *f);
+GQuark ltt_facility_name(LttFacility *f);
 
-LttChecksum ltt_facility_checksum(LttFacility *f);
+guint32 ltt_facility_checksum(LttFacility *f);
 
 /* open facility */
-void ltt_facility_open(LttTrace * t, char * facility_name);
+int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname);
 
 /* Discover the event types within the facility. The event type integer id
    relative to the trace is from 0 to nb_event_types - 1. The event
@@ -39,11 +40,13 @@ void ltt_facility_open(LttTrace * t, char * facility_name);
 
 unsigned ltt_facility_base_id(LttFacility *f);
 
-unsigned ltt_facility_eventtype_number(LttFacility *f);
+guint8 ltt_facility_eventtype_number(LttFacility *f);
 
-LttEventType *ltt_facility_eventtype_get(LttFacility *f, unsigned i);
+LttEventType *ltt_facility_eventtype_get(LttFacility *f, guint8 i);
 
-LttEventType *ltt_facility_eventtype_get_by_name(LttFacility *f, char *name);
+LttEventType *ltt_facility_eventtype_get_by_name(LttFacility *f, GQuark name);
+
+void ltt_facility_close(LttFacility *f);
 
 #endif // FACILITY_H
 
This page took 0.025365 seconds and 4 git commands to generate.