Commit 6ffc893b authored by Philipp Schafft's avatar Philipp Schafft 🦁

Update: Move most common types into "icecasttypes.h"

parent 50a9d338
......@@ -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 {
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment