diff options
Diffstat (limited to 'vchat-user.h')
-rw-r--r-- | vchat-user.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vchat-user.h b/vchat-user.h new file mode 100644 index 0000000..a731ad6 --- /dev/null +++ b/vchat-user.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * vchat-user.h | ||
3 | * User list handling | ||
4 | * | ||
5 | * Author: Dirk Engling <erdgeist@erdgeist.org> | ||
6 | * License: Beerware | ||
7 | */ | ||
8 | #ifndef __VCHAT_USER_H__ | ||
9 | #define __VCHAT_USER_H__ | ||
10 | |||
11 | extern char *vchat_us_version; | ||
12 | |||
13 | /* own nick and channel */ | ||
14 | void own_channel_set( int channel ); | ||
15 | int own_channel_get( ); | ||
16 | void own_nick_set( char *nick ); | ||
17 | char const *own_nick_get( ); | ||
18 | int own_nick_check( char * nick ); | ||
19 | |||
20 | /* Add/remove/rename */ | ||
21 | int ul_add(char *name, int chan_flag); /* -1: keep, 0: notinchan, 1: inchan */ | ||
22 | int ul_del(char *name); | ||
23 | int ul_rename(char *oldname, char *newname); | ||
24 | void ul_clear(); | ||
25 | void ul_rebuild_list(); | ||
26 | void ul_clean(); | ||
27 | |||
28 | /* Seting state */ | ||
29 | void ul_leave_chan(char *name); | ||
30 | void ul_enter_chan(char *name); | ||
31 | void ul_private_action(char *name); | ||
32 | void ul_public_action(char *name); | ||
33 | |||
34 | /* Finding users ul_finduser */ | ||
35 | char *ul_match_user(char *regex); | ||
36 | |||
37 | /* Nick completion function for readline */ | ||
38 | char **ul_complete_user(char *text, int start, int end ); | ||
39 | |||
40 | #endif | ||