1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Cleanup: Make use of "icecasttypes.h" in connection.[ch]

This commit is contained in:
Philipp Schafft 2018-06-17 10:22:17 +00:00
parent 7893fc7560
commit 65f5eb9771
2 changed files with 5 additions and 7 deletions

View File

@ -144,7 +144,7 @@ void connection_shutdown(void)
_initialized = 0;
}
void connection_reread_config(struct ice_config_tag *config)
void connection_reread_config(ice_config_t *config)
{
get_tls_certificate(config);
}

View File

@ -19,14 +19,12 @@
#include "tls.h"
#include "icecasttypes.h"
#include "compat.h"
#include "common/httpp/httpp.h"
#include "common/thread/thread.h"
#include "common/net/sock.h"
struct source_tag;
struct ice_config_tag;
typedef enum _tlsmode_tag {
/* no TLS is used at all */
ICECAST_TLSMODE_DISABLED = 0,
@ -62,12 +60,12 @@ typedef struct connection_tag
void connection_initialize(void);
void connection_shutdown(void);
void connection_reread_config(struct ice_config_tag *config);
void connection_reread_config(ice_config_t *config);
void connection_accept_loop(void);
int connection_setup_sockets(struct ice_config_tag *config);
int connection_setup_sockets(ice_config_t *config);
void connection_close(connection_t *con);
connection_t *connection_create(sock_t sock, sock_t serversock, char *ip);
int connection_complete_source(struct source_tag *source, int response);
int connection_complete_source(source_t *source, int response);
void connection_queue(connection_t *con);
void connection_uses_tls(connection_t *con);