mirror of https://github.com/omar-polo/gmid.git
move logger() prototype to gmid.h and delete logger.h
This commit is contained in:
parent
797c4609a9
commit
cbb7f9fc28
6
Makefile
6
Makefile
|
@ -33,7 +33,7 @@ GG_SRCS = gg.c iri.c utf8.c
|
||||||
|
|
||||||
GG_OBJS = ${GG_SRCS:.c=.o} ${COBJS}
|
GG_OBJS = ${GG_SRCS:.c=.o} ${COBJS}
|
||||||
|
|
||||||
SRCS = gmid.h log.h logger.h parse.y proc.h \
|
SRCS = gmid.h log.h parse.y proc.h \
|
||||||
${GMID_SRCS} ${GE_SRCS} ${GG_SRCS}
|
${GMID_SRCS} ${GE_SRCS} ${GG_SRCS}
|
||||||
|
|
||||||
DISTNAME = gmid-${VERSION}
|
DISTNAME = gmid-${VERSION}
|
||||||
|
@ -111,8 +111,8 @@ uninstall:
|
||||||
DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \
|
DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \
|
||||||
Makefile README.md config.c configure configure.local.example \
|
Makefile README.md config.c configure configure.local.example \
|
||||||
dirs.c fcgi.c ge.1 ge.c gg.1 gg.c gmid.8 gmid.c gmid.conf.5 \
|
dirs.c fcgi.c ge.1 ge.c gg.1 gg.c gmid.8 gmid.c gmid.conf.5 \
|
||||||
gmid.h iri.c log.c log.h logger.c logger.h mime.c parse.y \
|
gmid.h iri.c log.c log.h logger.c mime.c parse.y proxy.c \
|
||||||
proxy.c puny.c sandbox.c server.c utf8.c utils.c y.tab.c
|
puny.c sandbox.c server.c utf8.c utils.c y.tab.c
|
||||||
|
|
||||||
dist: ${DISTNAME}.sha256
|
dist: ${DISTNAME}.sha256
|
||||||
|
|
||||||
|
|
3
gmid.h
3
gmid.h
|
@ -404,6 +404,9 @@ int serialize_iri(struct iri*, char*, size_t);
|
||||||
int encode_path(char *, size_t, const char *);
|
int encode_path(char *, size_t, const char *);
|
||||||
char *pct_decode_str(char *);
|
char *pct_decode_str(char *);
|
||||||
|
|
||||||
|
/* logger.h */
|
||||||
|
void logger(struct privsep *, struct privsep_proc *);
|
||||||
|
|
||||||
/* proxy.c */
|
/* proxy.c */
|
||||||
int proxy_init(struct client *);
|
int proxy_init(struct client *);
|
||||||
|
|
||||||
|
|
17
logger.h
17
logger.h
|
@ -1,17 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2023 Omar Polo <op@omarpolo.com>
|
|
||||||
*
|
|
||||||
* Permission to use, copy, modify, and distribute this software for any
|
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
|
||||||
* copyright notice and this permission notice appear in all copies.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
||||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
||||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
||||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
||||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
void logger(struct privsep *, struct privsep_proc *);
|
|
Loading…
Reference in New Issue