aboutsummaryrefslogtreecommitdiff
path: root/src/server/server.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:07:00 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:08 -0800
commit8775a0f6638d966b6ef135b488da6efb954e2573 (patch)
treeff97fe278727e0c6bbeab89159ed12aed4f7147b /src/server/server.h
parente01a0be57655683c58e9dd5e66ee30fe3049e8d9 (diff)
downloadriscv-openocd-8775a0f6638d966b6ef135b488da6efb954e2573.zip
riscv-openocd-8775a0f6638d966b6ef135b488da6efb954e2573.tar.gz
riscv-openocd-8775a0f6638d966b6ef135b488da6efb954e2573.tar.bz2
service_t -> struct service
Remove misleading typedef and redundant suffix from struct service.
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 abb501d..2bfedb4 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,