diff options
author | erdgeist <> | 2012-02-27 00:06:17 +0000 |
---|---|---|
committer | erdgeist <> | 2012-02-27 00:06:17 +0000 |
commit | 7dbafe3f0fa465949ef66d800a8cbd0b191c9519 (patch) | |
tree | 45ad89dfee0154b76d2473a3d71ffbb0222bf7b4 /vchat-user.h | |
parent | f434f9cd4eabfcad3a90711494febbfd89e4ed5f (diff) |
Complete rewrite of user handling. HEADS UP\!
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 | ||