summaryrefslogtreecommitdiff
path: root/vchat-user.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-user.h
parentf434f9cd4eabfcad3a90711494febbfd89e4ed5f (diff)
Complete rewrite of user handling. HEADS UP\!
Diffstat (limited to 'vchat-user.h')
-rw-r--r--vchat-user.h40
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
11extern char *vchat_us_version;
12
13/* own nick and channel */
14void own_channel_set( int channel );
15int own_channel_get( );
16void own_nick_set( char *nick );
17char const *own_nick_get( );
18int own_nick_check( char * nick );
19
20/* Add/remove/rename */
21int ul_add(char *name, int chan_flag); /* -1: keep, 0: notinchan, 1: inchan */
22int ul_del(char *name);
23int ul_rename(char *oldname, char *newname);
24void ul_clear();
25void ul_rebuild_list();
26void ul_clean();
27
28/* Seting state */
29void ul_leave_chan(char *name);
30void ul_enter_chan(char *name);
31void ul_private_action(char *name);
32void ul_public_action(char *name);
33
34/* Finding users ul_finduser */
35char *ul_match_user(char *regex);
36
37/* Nick completion function for readline */
38char **ul_complete_user(char *text, int start, int end );
39
40#endif