Do not use __attribute__((constructor))
[lttv.git] / lttv / lttv / sync / sync_chain_unittest.c
index 5d475ea8008f97c15d4ff548185a7d0ec842b109..79b3b58fd764b401303dfe3aefab8b0538bba32f 100644 (file)
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "event_processing_text.h"
+#include "event_matching_tcp.h"
+#include "event_matching_broadcast.h"
+#include "event_matching_distributor.h"
+#include "event_analysis_chull.h"
+#include "event_analysis_linreg.h"
+#include "event_analysis_eval.h"
 #include "sync_chain.h"
 
 
@@ -100,6 +107,23 @@ int main(const int argc, char* const argv[])
        GString* analysisModulesNames;
        unsigned int id;
 
+       /*
+        * Initialize event modules
+        * Call the "constructor" or initialization function of each event module
+        * so it can register itself. This must be done before elements in
+        * processingModules, matchingModules, analysisModules or moduleOptions
+        * are accessed.
+        */
+       registerProcessingText();
+
+       registerMatchingTCP();
+       registerMatchingBroadcast();
+       registerMatchingDistributor();
+
+       registerAnalysisCHull();
+       registerAnalysisLinReg();
+       registerAnalysisEval();
+
        // Initialize data structures
        syncState= malloc(sizeof(SyncState));
 
This page took 0.022463 seconds and 4 git commands to generate.