Simple streaming functionality
[matches/MCTX3420.git] / server / main.c
index 5e2c6c8..bfd5300 100644 (file)
@@ -2,18 +2,15 @@
  * @file main.c
  * @purpose main and its helper functions, signal handling and cleanup functions
  */
-#include "common.h"
-
-
-// --- Standard headers --- //
-#include <signal.h> // for signal handling
 
 // --- Custom headers --- //
-#include "query.h"
-#include "log.h"
+#include "common.h"
 #include "options.h"
 #include "sensor.h"
 
+// --- Standard headers --- //
+#include <signal.h> // for signal handling
+
 // --- Variable definitions --- //
 Options g_options; // options passed to program through command line arguments
 Sensor g_sensors[NUMSENSORS]; // sensors array
@@ -74,7 +71,7 @@ int main(int argc, char ** argv)
        }
 
        // run request thread in the main thread
-       Query_Main(NULL); //TODO: Replace with FastCGI code
+       FCGI_RequestLoop(NULL);
        return 0;
 }
 

UCC git Repository :: git.ucc.asn.au