Store graph callbacks in a structure
[lttv.git] / lttv / lttv / sync / event_matching.h
index 55c42243f5711d484a7750da28becd2d80deab89..28839f2074099202a369cfed27c0adefa90f68df 100644 (file)
 #include <glib.h>
 
 #include "data_structures.h"
-
+#include "graph_functions.h"
 
 struct _SyncState;
 
 typedef struct
 {
        char* name;
+       bool canMatch[TYPE_COUNT];
 
        void (*initMatching)(struct _SyncState* const syncState);
        void (*destroyMatching)(struct _SyncState* const syncState);
@@ -36,11 +37,9 @@ typedef struct
        void (*matchEvent)(struct _SyncState* const syncState, Event* const
                event);
        GArray* (*finalizeMatching)(struct _SyncState* const syncState);
+
        void (*printMatchingStats)(struct _SyncState* const syncState);
-       void (*writeMatchingGraphsPlots)(FILE* stream, struct _SyncState* const
-               syncState, const unsigned int i, const unsigned int j);
-       void (*writeMatchingGraphsOptions)(FILE* stream, struct _SyncState* const
-               syncState, const unsigned int i, const unsigned int j);
+       GraphFunctions graphFunctions;
 } MatchingModule;
 
 #endif
This page took 0.022877 seconds and 4 git commands to generate.