summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-12-30 22:39:49 +0000
committerTiago Cunha <tcunha@gmx.com>2010-12-30 22:39:49 +0000
commit9ebee6aef8aab237314e167f0d0412ddc5ebf513 (patch)
tree61d060770b8af5e2a467badb74a3aab4d71a6372 /server.c
parent095e1b410a31166d1f37e8a6ff99e7bb666737ad (diff)
Global paste buffers instead of per-session which renders copy-buffer useless.
As a consequence buffer-limit is now a server option.
Diffstat (limited to 'server.c')
-rw-r--r--server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.c b/server.c
index 44a43692..20cad7c5 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.249 2010-12-22 15:36:44 tcunha Exp $ */
+/* $Id: server.c,v 1.250 2010-12-30 22:39:49 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -50,6 +50,8 @@ int server_shutdown;
struct event server_ev_accept;
struct event server_ev_second;
+struct paste_stack global_buffers;
+
int server_create_socket(void);
void server_loop(void);
int server_should_shutdown(void);
@@ -149,6 +151,7 @@ server_start(void)
RB_INIT(&sessions);
RB_INIT(&dead_sessions);
TAILQ_INIT(&session_groups);
+ ARRAY_INIT(&global_buffers);
mode_key_init_trees();
key_bindings_init();
utf8_build();