summaryrefslogtreecommitdiff
path: root/vchat.h
diff options
context:
space:
mode:
authorerdgeist <>2012-02-27 00:06:17 +0000
committererdgeist <>2012-02-27 00:06:17 +0000
commit7dbafe3f0fa465949ef66d800a8cbd0b191c9519 (patch)
tree45ad89dfee0154b76d2473a3d71ffbb0222bf7b4 /vchat.h
parentf434f9cd4eabfcad3a90711494febbfd89e4ed5f (diff)
Complete rewrite of user handling. HEADS UP\!
Diffstat (limited to 'vchat.h')
-rwxr-xr-xvchat.h43
1 files changed, 1 insertions, 42 deletions
diff --git a/vchat.h b/vchat.h
index 1b29155..541fd21 100755
--- a/vchat.h
+++ b/vchat.h
@@ -14,12 +14,6 @@
14 * 14 *
15 */ 15 */
16 16
17/* user structure */
18struct user;
19typedef struct user user;
20/* userlist from vchat-user.c */
21extern user *nicks;
22
23/* servermessage types */ 17/* servermessage types */
24typedef enum { SM_IGNORE, SM_INFO, SM_USERINFO, SM_CHANNEL, SM_ERROR } smtype; 18typedef enum { SM_IGNORE, SM_INFO, SM_USERINFO, SM_CHANNEL, SM_ERROR } smtype;
25 19
@@ -39,7 +33,7 @@ typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT,
39CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT, 33CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT,
40CF_USESSL, CF_IGNSSL, CF_USECERT, CF_PRIVHEIGHT, CF_PRIVCOLLAPS, CF_HSCROLL, CF_CHANNEL, CF_USETIME, 34CF_USESSL, CF_IGNSSL, CF_USECERT, CF_PRIVHEIGHT, CF_PRIVCOLLAPS, CF_HSCROLL, CF_CHANNEL, CF_USETIME,
41CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT, 35CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT,
42CF_ENCODING, CF_BELLPRIV, CF_AUTORECONN } confopt; 36CF_ENCODING, CF_BELLPRIV, CF_CASEFIRST, CF_AUTORECONN } confopt;
43 37
44/* format strings */ 38/* format strings */
45typedef enum { FS_PLAIN, FS_CHAN, FS_PRIV, FS_SERV, FS_GLOB, FS_DBG, FS_ERR, 39typedef enum { FS_PLAIN, FS_CHAN, FS_PRIV, FS_SERV, FS_GLOB, FS_DBG, FS_ERR,
@@ -80,9 +74,6 @@ typedef struct formatstring formatstring;
80#define TMPSTRSIZE 1024 74#define TMPSTRSIZE 1024
81static char tmpstr[TMPSTRSIZE]; 75static char tmpstr[TMPSTRSIZE];
82 76
83extern char *nick;
84extern int chan;
85
86extern unsigned int loggedin; 77extern unsigned int loggedin;
87 78
88/* vchat-client.c */ 79/* vchat-client.c */
@@ -100,38 +91,6 @@ void setstroption (confopt option, char *string);
100int getintoption (confopt option); 91int getintoption (confopt option);
101void setintoption (confopt option, int value); 92void setintoption (confopt option, int value);
102 93
103/* vchat-user.c */
104extern char *vchat_us_version;
105
106/* add / delete user */
107void ul_add (char *nick, int ignored);
108void ul_del (char *nick, int ignored);
109
110/* clear userlist */
111void ul_clear ();
112
113/* channel join / leave */
114void ul_join (char *nick, int channel);
115void ul_leave (char *nick, int channel);
116
117/* nickchange */
118void ul_nickchange (char *oldnick, char *newnick);
119
120/* place user in channel */
121void ul_moveuser (char *nick, int channel);
122
123/* message nick completion */
124void ul_msgto (char *nick);
125void ul_msgfrom (char *nick);
126
127/* nick-completion for vchat-ui.c */
128char *ul_nickcomp (const char *text, int state);
129char *ul_cnickcomp (const char *text, int state);
130char *ul_mnickcomp (const char *text, int state);
131
132/* try to find user by substring */
133char *ul_matchuser (char *substr);
134
135/* vchat-ui.c */ 94/* vchat-ui.c */
136extern char *vchat_ui_version; 95extern char *vchat_ui_version;
137 96