1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Cleanup: Removed trivial header files for auth backends

All Auth backends had just one prototype in auth_*.h. Those
got merged into auth.h to avoid to have many small files around.
This commit is contained in:
Philipp Schafft 2015-01-06 11:29:07 +00:00
parent a52e2e1a35
commit f39b7d8880
7 changed files with 8 additions and 89 deletions

View File

@ -12,7 +12,7 @@ noinst_HEADERS = admin.h cfgfile.h logging.h sighandler.h connection.h \
global.h util.h slave.h source.h stats.h refbuf.h client.h \
compat.h fserve.h xslt.h yp.h md5.h \
event.h event_log.h event_exec.h event_url.h \
acl.h auth.h auth_htpasswd.h auth_url.h auth_anonymous.h auth_static.h \
acl.h auth.h \
format.h format_ogg.h format_mp3.h format_ebml.h \
format_vorbis.h format_theora.h format_flac.h format_speex.h format_midi.h \
format_kate.h format_skeleton.h format_opus.h

View File

@ -25,10 +25,6 @@
#include <stdio.h>
#include "auth.h"
#include "auth_htpasswd.h"
#include "auth_url.h"
#include "auth_anonymous.h"
#include "auth_static.h"
#include "source.h"
#include "client.h"
#include "cfgfile.h"

View File

@ -117,6 +117,13 @@ typedef struct auth_tag
typedef struct auth_stack_tag auth_stack_t;
/* prototypes for auths that do not need own header file */
int auth_get_anonymous_auth (auth_t *auth, config_options_t *options);
int auth_get_static_auth (auth_t *auth, config_options_t *options);
int auth_get_url_auth (auth_t *authenticator, config_options_t *options);
int auth_get_htpasswd_auth(auth_t *auth, config_options_t *options);
/* prototypes for auth.c */
void auth_initialise (void);
void auth_shutdown (void);

View File

@ -1,18 +0,0 @@
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2014, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>,
*/
#ifndef __AUTH_ANONYMOUS_H__
#define __AUTH_ANONYMOUS_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int auth_get_anonymous_auth (auth_t *auth, config_options_t *options);
#endif

View File

@ -1,24 +0,0 @@
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
* Michael Smith <msmith@xiph.org>,
* oddsock <oddsock@xiph.org>,
* Karl Heyes <karl@xiph.org>
* and others (see AUTHORS for details).
*/
#ifndef __AUTH_HTPASSWD_H__
#define __AUTH_HTPASSWD_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int auth_get_htpasswd_auth(auth_t *auth, config_options_t *options);
#endif

View File

@ -1,18 +0,0 @@
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2014, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>,
*/
#ifndef __AUTH_STATIC_H__
#define __AUTH_STATIC_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int auth_get_static_auth (auth_t *auth, config_options_t *options);
#endif

View File

@ -1,24 +0,0 @@
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
* Michael Smith <msmith@xiph.org>,
* oddsock <oddsock@xiph.org>,
* Karl Heyes <karl@xiph.org>
* and others (see AUTHORS for details).
*/
#ifndef __AUTH_URL_H__
#define __AUTH_URL_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
int auth_get_url_auth (auth_t *authenticator, config_options_t *options);
#endif