Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
6ffc893b
Commit
6ffc893b
authored
Jun 17, 2018
by
Philipp Schafft
🦁
Browse files
Update: Move most common types into "icecasttypes.h"
parent
50a9d338
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/acl.h
View file @
6ffc893b
...
...
@@ -18,9 +18,7 @@
#include
<libxml/tree.h>
#include
"common/httpp/httpp.h"
struct
acl_tag
;
typedef
struct
acl_tag
acl_t
;
#include
"icecasttypes.h"
#include
"admin.h"
typedef
enum
acl_policy_tag
{
...
...
src/admin.h
View file @
6ffc893b
...
...
@@ -18,17 +18,7 @@
#include
<libxml/tree.h>
#include
<stdint.h>
/* Command IDs */
typedef
int32_t
admin_command_id_t
;
/* formats */
typedef
enum
{
ADMIN_FORMAT_AUTO
,
ADMIN_FORMAT_RAW
,
ADMIN_FORMAT_TRANSFORMED
,
ADMIN_FORMAT_PLAINTEXT
}
admin_format_t
;
#include
"icecasttypes.h"
#include
"compat.h"
#include
"refbuf.h"
#include
"client.h"
...
...
src/auth.h
View file @
6ffc893b
...
...
@@ -18,12 +18,10 @@
#include
<config.h>
#endif
struct
source_tag
;
typedef
struct
auth_tag
auth_t
;
#include
<libxml/xmlmemory.h>
#include
<libxml/parser.h>
#include
<libxml/tree.h>
#include
"icecasttypes.h"
#include
"cfgfile.h"
#include
"client.h"
#include
"common/thread/thread.h"
...
...
src/client.h
View file @
6ffc893b
...
...
@@ -19,8 +19,7 @@
#ifndef __CLIENT_H__
#define __CLIENT_H__
typedef
struct
_client_tag
client_t
;
#include
"icecasttypes.h"
#include
"errors.h"
#include
"connection.h"
#include
"refbuf.h"
...
...
src/icecasttypes.h
View file @
6ffc893b
...
...
@@ -9,4 +9,36 @@
#ifndef __ICECASTTYPES_H__
#define __ICECASTTYPES_H__
#include
"compat.h"
/* ---[ client.[ch] ]--- */
typedef
struct
_client_tag
client_t
;
/* ---[ source.[ch] ]--- */
typedef
struct
source_tag
source_t
;
/* ---[ admin.[ch] ]--- */
/* Command IDs */
typedef
int32_t
admin_command_id_t
;
/* formats */
typedef
enum
{
ADMIN_FORMAT_AUTO
,
ADMIN_FORMAT_RAW
,
ADMIN_FORMAT_TRANSFORMED
,
ADMIN_FORMAT_PLAINTEXT
}
admin_format_t
;
/* ---[ acl.[ch] ]--- */
typedef
struct
acl_tag
acl_t
;
/* ---[ auth.[ch] ]--- */
typedef
struct
auth_tag
auth_t
;
#endif
src/source.h
View file @
6ffc893b
...
...
@@ -14,8 +14,7 @@
#ifndef __SOURCE_H__
#define __SOURCE_H__
typedef
struct
source_tag
source_t
;
#include
"icecasttypes.h"
#include
"cfgfile.h"
#include
"yp.h"
#include
"util.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment