summaryrefslogtreecommitdiff
path: root/src/server/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/server.h')
-rw-r--r--src/server/server.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/server.h b/src/server/server.h
index abb501d4..2bfedb49 100644
--- a/src/server/server.h
+++ b/src/server/server.h
@@ -43,7 +43,7 @@ typedef struct connection_s
int fd;
struct sockaddr_in sin;
command_context_t *cmd_ctx;
- struct service_s *service;
+ struct service *service;
int input_pending;
void *priv;
struct connection_s *next;
@@ -53,7 +53,7 @@ typedef int (*new_connection_handler_t)(connection_t *connection);
typedef int (*input_handler_t)(connection_t *connection);
typedef int (*connection_closed_handler_t)(connection_t *connection);
-typedef struct service_s
+struct service
{
char *name;
enum connection_type type;
@@ -66,8 +66,8 @@ typedef struct service_s
input_handler_t input;
connection_closed_handler_t connection_closed;
void *priv;
- struct service_s *next;
-} service_t;
+ struct service *next;
+};
int add_service(char *name, enum connection_type type, unsigned short port,
int max_connections, new_connection_handler_t new_connection_handler,