[devhelp] Create dh-init.h public header
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Create dh-init.h public header
- Date: Wed, 3 May 2017 16:57:59 +0000 (UTC)
commit eb56d242681578e724b15f55e121841ecc3e2218
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed May 3 18:46:10 2017 +0200
Create dh-init.h public header
Also sort alphabetically the #includes in devhelp.h.
src/Makefile.am | 1 +
src/devhelp.h | 12 +++---------
src/dh-init.c | 2 +-
src/dh-init.h | 30 ++++++++++++++++++++++++++++++
4 files changed, 35 insertions(+), 10 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 8f8bc09..217b0d5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,6 +15,7 @@ libdevhelp_public_headers = \
dh-book.h \
dh-book-manager.h \
dh-book-tree.h \
+ dh-init.h \
dh-keyword-model.h \
dh-link.h \
dh-sidebar.h \
diff --git a/src/devhelp.h b/src/devhelp.h
index 97b04c6..1e83f49 100644
--- a/src/devhelp.h
+++ b/src/devhelp.h
@@ -19,21 +19,15 @@
#ifndef DEVHELP_H
#define DEVHELP_H
-#include <glib.h>
+/* Include all the public headers. */
-/* Explicitly include all the exported headers */
#include "dh-assistant-view.h"
-#include "dh-book-manager.h"
#include "dh-book.h"
+#include "dh-book-manager.h"
#include "dh-book-tree.h"
+#include "dh-init.h"
#include "dh-keyword-model.h"
#include "dh-link.h"
#include "dh-sidebar.h"
-G_BEGIN_DECLS
-
-void dh_init (void);
-
-G_END_DECLS
-
#endif /* DEVHELP_H */
diff --git a/src/dh-init.c b/src/dh-init.c
index 78a56e9..d2a5b63 100644
--- a/src/dh-init.c
+++ b/src/dh-init.c
@@ -17,7 +17,7 @@
*/
#include "config.h"
-#include "devhelp.h"
+#include "dh-init.h"
void
dh_init (void)
diff --git a/src/dh-init.h b/src/dh-init.h
new file mode 100644
index 0000000..71ca74f
--- /dev/null
+++ b/src/dh-init.h
@@ -0,0 +1,30 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2017 Sébastien Wilmet <swilmet gnome org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef DH_INIT_H
+#define DH_INIT_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+void dh_init (void);
+
+G_END_DECLS
+
+#endif /* DH_INIT_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]