Expose the backends for helper(1) to main()
This commit is contained in:
parent
588562cedb
commit
a3ad5a5780
|
@ -15,11 +15,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
/* public */
|
||||
/* prototypes */
|
||||
int helper_open_contents(Helper * helper, char const * package,
|
||||
char const * command);
|
||||
#include "contents.h"
|
||||
|
||||
|
||||
/* private */
|
||||
|
|
27
tools/backend/contents.h
Normal file
27
tools/backend/contents.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2016 Pierre Pronchery <khorben@defora.org> */
|
||||
/* This file is part of DeforaOS Desktop Surfer */
|
||||
/* 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, version 3 of the License.
|
||||
*
|
||||
* 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 HELPER_BACKEND_CONTENTS_H
|
||||
# define HELPER_BACKEND_CONTENTS_H
|
||||
|
||||
|
||||
/* public */
|
||||
/* functions */
|
||||
int helper_open_contents(Helper * helper, char const * package,
|
||||
char const * command);
|
||||
|
||||
#endif /* !HELPER_BACKEND_CONTENTS_H */
|
|
@ -15,9 +15,7 @@
|
|||
|
||||
|
||||
|
||||
/* public */
|
||||
int helper_open_gtkdoc(Helper * helper, char const * gtkdocdir,
|
||||
char const * package);
|
||||
#include "gtkdoc.h"
|
||||
|
||||
|
||||
/* private */
|
||||
|
|
27
tools/backend/gtkdoc.h
Normal file
27
tools/backend/gtkdoc.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2016 Pierre Pronchery <khorben@defora.org> */
|
||||
/* This file is part of DeforaOS Desktop Surfer */
|
||||
/* 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, version 3 of the License.
|
||||
*
|
||||
* 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 HELPER_BACKEND_GTKDOC_H
|
||||
# define HELPER_BACKEND_GTKDOC_H
|
||||
|
||||
|
||||
/* public */
|
||||
/* functions */
|
||||
int helper_open_gtkdoc(Helper * helper, char const * gtkdocdir,
|
||||
char const * package);
|
||||
|
||||
#endif /* !HELPER_BACKEND_GTKDOC_H */
|
|
@ -15,10 +15,7 @@
|
|||
|
||||
|
||||
|
||||
/* public */
|
||||
/* prototypes */
|
||||
int helper_open_manual(Helper * helper, char const * section, char const * page,
|
||||
char const * manhtmldir);
|
||||
#include "manual.h"
|
||||
|
||||
|
||||
/* private */
|
||||
|
|
27
tools/backend/manual.h
Normal file
27
tools/backend/manual.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2016 Pierre Pronchery <khorben@defora.org> */
|
||||
/* This file is part of DeforaOS Desktop Surfer */
|
||||
/* 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, version 3 of the License.
|
||||
*
|
||||
* 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 HELPER_BACKEND_MANUAL_H
|
||||
# define HELPER_BACKEND_MANUAL_H
|
||||
|
||||
|
||||
/* public */
|
||||
/* functions */
|
||||
int helper_open_manual(Helper * helper, char const * section, char const * page,
|
||||
char const * manhtmldir);
|
||||
|
||||
#endif /* !HELPER_BACKEND_MANUAL_H */
|
1
tools/backend/project.conf
Normal file
1
tools/backend/project.conf
Normal file
|
@ -0,0 +1 @@
|
|||
dist=Makefile,contents.c,contents.h,gtkdoc.c,gtkdoc.h,manual.c,manual.h,search.c
|
|
@ -21,6 +21,9 @@
|
|||
#include <libintl.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "helper.h"
|
||||
#include "backend/contents.h"
|
||||
#include "backend/gtkdoc.h"
|
||||
#include "backend/manual.h"
|
||||
#include "../config.h"
|
||||
#define _(string) gettext(string)
|
||||
#define N_(string) string
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
subdirs=backend
|
||||
targets=bookmark,helper,htmlapp
|
||||
cppflags_force=-I ../src
|
||||
#cppflags=-D EMBEDDED
|
||||
|
@ -5,7 +6,7 @@ cflags_force=`pkg-config --cflags libDesktop`
|
|||
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
ldflags_force=`pkg-config --libs libDesktop`
|
||||
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
|
||||
dist=Makefile,backend/contents.c,backend/gtkdoc.c,backend/manual.c,backend/search.c,helper.h
|
||||
dist=Makefile,helper.h
|
||||
|
||||
[bookmark]
|
||||
type=binary
|
||||
|
|
Loading…
Reference in New Issue
Block a user