Mercurial > hg > nnchat
diff util.h @ 466:796508f828f6
Refactor much of the "windowing" UI code into a new module, ui.[ch]
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 06:56:18 +0300 |
parents | 35d67bd0613b |
children | ad7ddce47878 |
line wrap: on
line diff
--- a/util.h Sat May 26 06:18:19 2012 +0300 +++ b/util.h Sat May 26 06:56:18 2012 +0300 @@ -15,7 +15,6 @@ #define NN_TMPBUF_SIZE (4096) #define NN_ALLOC_SIZE (128) #define NN_NUM_BUCKETS (256) -#define NN_BACKBUF_LEN (512) // Backbuffer size (in lines) typedef struct _nn_user_t @@ -72,24 +71,6 @@ typedef struct { - qringbuf_t *data; // "Backbuffer" data for this window - int pos; // Current position in the window, 0 = real time - BOOL dirty; - - char *id; // Chatter ID, NULL = main window - int num; // Window number - - char *buf; - size_t len, bufsize; - size_t chlen; -} nn_window_t; - -nn_window_t *nn_window_new(const char *); -void nn_window_free(nn_window_t *); - - -typedef struct -{ size_t len; char *str; } nn_strtuple_t;