Cleanup part 1: split up server.c.

This commit is contained in:
Nicholas Marriott
2007-09-26 10:35:24 +00:00
parent 3fef2d998f
commit 671694ac30
5 changed files with 603 additions and 779 deletions

23
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.10 2007-09-22 11:50:33 nicm Exp $ */
/* $Id: tmux.h,v 1.11 2007-09-26 10:35:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -420,14 +420,6 @@ struct client {
u_int sy;
struct session *session;
/* User input. */
const char *prompt;
char *buf;
size_t len;
size_t idx;
void (*callback)(struct client *, const char *);
};
ARRAY_DECL(clients, struct client *);
@ -437,8 +429,21 @@ extern int debug_level;
extern char socket_path[MAXPATHLEN];
/* server.c */
extern struct clients clients;
int server_start(void);
/* server-msg.c */
void server_msg_dispatch(struct client *);
/* server-fn.c */
void write_message(struct client *, const char *, ...);
void write_client(struct client *, u_int, void *, size_t);
void write_client2(
struct client *, u_int, void *, size_t, void *, size_t);
void write_clients(struct window *, u_int, void *, size_t);
void changed_window(struct client *);
void draw_client(struct client *, u_int, u_int);
/* ansi.c */
void input_key(struct buffer *, int);
size_t input_parse(u_char *, size_t, struct buffer *, struct screen *);