commit 757d9f12229f11fc7a6b068fd9bfd5254d21488a
parent 02de696536dc94170e76491133e6fec619f99fcb
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Sat, 19 Dec 2015 16:50:14 +0100
Renaming 'definitions' files to 'config'
Diffstat:
6 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -21,7 +21,7 @@ find_library(LIB_GEOIP NAMES GeoIP REQUIRED)
find_library(LIB_JANSSON NAMES jansson REQUIRED)
set (DEPS deps/hll/hll.c deps/MurmurHash3/MurmurHash3.c)
-set (SRC src/logswan.c src/definitions.c src/output.c src/parse.c)
+set (SRC src/logswan.c src/config.c src/output.c src/parse.c)
if(NOT HAVE_STRTONUM)
set (SRC ${SRC} compat/strtonum.c)
diff --git a/src/definitions.c b/src/config.c
diff --git a/src/config.h b/src/config.h
@@ -0,0 +1,22 @@
+/*****************************************************************************/
+/* */
+/* Logswan 1.02 (c) by Frederic Cambus 2015 */
+/* https://github.com/fcambus/logswan */
+/* */
+/* Created: 2015/05/31 */
+/* Last Updated: 2015/12/19 */
+/* */
+/* Logswan is released under the BSD 3-Clause license. */
+/* See LICENSE file for details. */
+/* */
+/*****************************************************************************/
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+extern char *continentsId[];
+extern char *continentsNames[];
+extern char *methods[];
+extern char *protocols[];
+
+#endif /* CONFIG_H */
diff --git a/src/definitions.h b/src/definitions.h
@@ -1,22 +0,0 @@
-/*****************************************************************************/
-/* */
-/* Logswan 1.02 (c) by Frederic Cambus 2015 */
-/* https://github.com/fcambus/logswan */
-/* */
-/* Created: 2015/05/31 */
-/* Last Updated: 2015/12/19 */
-/* */
-/* Logswan is released under the BSD 3-Clause license. */
-/* See LICENSE file for details. */
-/* */
-/*****************************************************************************/
-
-#ifndef DEFINITIONS_H
-#define DEFINITIONS_H
-
-extern char *continentsId[];
-extern char *continentsNames[];
-extern char *methods[];
-extern char *protocols[];
-
-#endif /* DEFINITIONS_H */
diff --git a/src/logswan.c b/src/logswan.c
@@ -30,7 +30,7 @@
#include <GeoIP.h>
#include "logswan.h"
-#include "definitions.h"
+#include "config.h"
#include "output.h"
#include "parse.h"
#include "results.h"
diff --git a/src/output.c b/src/output.c
@@ -15,7 +15,7 @@
#include <jansson.h>
#include "logswan.h"
-#include "definitions.h"
+#include "config.h"
#include "results.h"
char *output(Results results) {