diff options
Diffstat (limited to 'vchat.h')
-rwxr-xr-x | vchat.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -30,8 +30,8 @@ typedef struct servermessage servermessage; | |||
30 | /* configuration types and variable numbers */ | 30 | /* configuration types and variable numbers */ |
31 | typedef enum { CO_NIL, CO_STR, CO_INT } conftype; | 31 | typedef enum { CO_NIL, CO_STR, CO_INT } conftype; |
32 | typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT, | 32 | typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT, |
33 | CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT, | 33 | CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT, CF_FINGERPRINT, |
34 | CF_USESSL, CF_IGNSSL, CF_USECERT, CF_PRIVHEIGHT, CF_PRIVCOLLAPS, CF_HSCROLL, CF_CHANNEL, CF_USETIME, | 34 | CF_USESSL, CF_VERIFYSSL, CF_USECERT, CF_PRIVHEIGHT, CF_PRIVCOLLAPS, CF_HSCROLL, CF_CHANNEL, CF_USETIME, |
35 | CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT, | 35 | CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT, |
36 | CF_ENCODING, CF_BELLPRIV, CF_CASEFIRST, CF_AUTORECONN, CF_KEEPALIVE } confopt; | 36 | CF_ENCODING, CF_BELLPRIV, CF_CASEFIRST, CF_AUTORECONN, CF_KEEPALIVE } confopt; |
37 | 37 | ||
@@ -80,7 +80,7 @@ extern unsigned int want_tcp_keepalive; | |||
80 | /* vchat-client.c */ | 80 | /* vchat-client.c */ |
81 | #define ERRSTRSIZE 1024 | 81 | #define ERRSTRSIZE 1024 |
82 | extern char errstr[]; | 82 | extern char errstr[]; |
83 | extern char *vchat_cl_version; | 83 | extern const char *vchat_cl_version; |
84 | void loadcfg (char *file,int complain,void (*lineparser) (char *)); | 84 | void loadcfg (char *file,int complain,void (*lineparser) (char *)); |
85 | void loadformats (char *file); | 85 | void loadformats (char *file); |
86 | void cleanup(int signal); | 86 | void cleanup(int signal); |
@@ -93,7 +93,7 @@ int getintoption (confopt option); | |||
93 | void setintoption (confopt option, int value); | 93 | void setintoption (confopt option, int value); |
94 | 94 | ||
95 | /* vchat-ui.c */ | 95 | /* vchat-ui.c */ |
96 | extern char *vchat_ui_version; | 96 | extern const char *vchat_ui_version; |
97 | 97 | ||
98 | /* topic and console strings */ | 98 | /* topic and console strings */ |
99 | #define TOPICSTRSIZE 1024 | 99 | #define TOPICSTRSIZE 1024 |
@@ -112,7 +112,7 @@ void userinput (void); | |||
112 | /* display various messages */ | 112 | /* display various messages */ |
113 | int writechan (char *str); | 113 | int writechan (char *str); |
114 | int writepriv (char *str, int maybeep ); | 114 | int writepriv (char *str, int maybeep ); |
115 | void writeout (char *str); | 115 | void writeout (const char *str); |
116 | void showout (void); | 116 | void showout (void); |
117 | void flushout (void); | 117 | void flushout (void); |
118 | #define msgout(STR) {flushout();writeout(STR);showout();} | 118 | #define msgout(STR) {flushout();writeout(STR);showout();} |
@@ -140,7 +140,7 @@ void clearfilters ( char colour ); | |||
140 | void handlequery ( char *line ); | 140 | void handlequery ( char *line ); |
141 | 141 | ||
142 | /* vchat-protocol.c */ | 142 | /* vchat-protocol.c */ |
143 | extern char *vchat_io_version; | 143 | extern const char *vchat_io_version; |
144 | 144 | ||
145 | /* connect/disconnect */ | 145 | /* connect/disconnect */ |
146 | int vcconnect (char *server, char *port); | 146 | int vcconnect (char *server, char *port); |
@@ -156,7 +156,7 @@ void ownleave (int channel); | |||
156 | void ownnickchange (char *newnick); | 156 | void ownnickchange (char *newnick); |
157 | 157 | ||
158 | /* vchat-commands.c */ | 158 | /* vchat-commands.c */ |
159 | extern char *vchat_cm_version; | 159 | extern const char *vchat_cm_version; |
160 | void command_version ( char *tail); | 160 | void command_version ( char *tail); |
161 | 161 | ||
162 | /* user input */ | 162 | /* user input */ |
@@ -171,3 +171,8 @@ typedef struct { | |||
171 | char *short_help; | 171 | char *short_help; |
172 | char *help; | 172 | char *help; |
173 | } commandentry; | 173 | } commandentry; |
174 | |||
175 | /* vchat-ssl.c */ | ||
176 | extern const char *vchat_ssl_version; | ||
177 | extern const char *vchat_ssl_version_external; | ||
178 | void vchat_ssl_get_version_external(); | ||