mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Cleanup part 1: split up server.c.
This commit is contained in:
23
tmux.h
23
tmux.h
@ -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 *);
|
||||
|
Reference in New Issue
Block a user