From 261ee12c04a922fe53addaa6aed0aa87390a7eb8 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sun, 4 Oct 2020 06:55:30 +0000 Subject: [PATCH] Feature: Added stub src/json.[ch] --- src/Makefile.am | 2 ++ src/json.c | 23 +++++++++++++++++++++++ src/json.h | 15 +++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 src/json.c create mode 100644 src/json.h diff --git a/src/Makefile.am b/src/Makefile.am index d1c29bee..50ac53b2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -35,6 +35,7 @@ noinst_HEADERS = \ module.h \ reportxml.h \ reportxml_helper.h \ + json.h \ listensocket.h \ fastevent.h \ event.h \ @@ -82,6 +83,7 @@ icecast_SOURCES = \ module.c \ reportxml.c \ reportxml_helper.c \ + json.c \ listensocket.c \ fastevent.c \ format.c \ diff --git a/src/json.c b/src/json.c new file mode 100644 index 00000000..11f72e1f --- /dev/null +++ b/src/json.c @@ -0,0 +1,23 @@ +/* Icecast + * + * This program is distributed under the GNU General Public License, version 2. + * A copy of this license is included with this source. + * + * Copyright 2018-2020, Philipp "ph3-der-loewe" Schafft , + */ + +/** + * This file contains functions for rendering JSON. + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + +#include "json.h" + +#include "logging.h" +#define CATMODULE "json" + diff --git a/src/json.h b/src/json.h new file mode 100644 index 00000000..8c2fa8f0 --- /dev/null +++ b/src/json.h @@ -0,0 +1,15 @@ +/* Icecast + * + * This program is distributed under the GNU General Public License, version 2. + * A copy of this license is included with this source. + * + * Copyright 2020, Philipp "ph3-der-loewe" Schafft , + */ + +/* This file contains functions for rendering JSON. */ + +#ifndef __JSON_H__ +#define __JSON_H__ + + +#endif