diff Core/Toolbox.h @ 2017:08ce34cfacad

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 13 Jun 2016 15:49:10 +0200
parents e2dd40abce72
children 35ccba7adae9
line wrap: on
line diff
--- a/Core/Toolbox.h	Mon Jun 13 15:26:20 2016 +0200
+++ b/Core/Toolbox.h	Mon Jun 13 15:49:10 2016 +0200
@@ -47,12 +47,6 @@
   {
   };
 
-  enum ServerBarrierEvent
-  {
-    ServerBarrierEvent_Stop,
-    ServerBarrierEvent_Reload  // SIGHUP signal: reload configuration file
-  };
-
   namespace Toolbox
   {
     ServerBarrierEvent ServerBarrier(const bool& stopFlag);
@@ -202,5 +196,8 @@
     int GetProcessId();
 
     bool IsRegularFile(const std::string& path);
+
+    FILE* OpenFile(const std::string& path,
+                   FileMode mode);
   }
 }