summaryrefslogtreecommitdiff
path: root/vchat-user.h
blob: 7ce004eb1a982bc3156d9d114d9446411416d0d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * vchat-user.h
 * User list handling
 *
 * Author:  Dirk Engling <erdgeist@erdgeist.org>
 * License: Beerware
*/
#ifndef __VCHAT_USER_H__
#define __VCHAT_USER_H__

extern char *vchat_us_version;
extern unsigned int ul_case_first;

/* own nick and channel */
void        own_channel_set( int channel );
int         own_channel_get( );
void        own_nick_set( char *nick );
char const *own_nick_get( );
int         own_nick_check( char * nick );

/* Add/remove/rename */
int ul_add(char *name, int chan_flag); /* -1: keep, 0: notinchan, 1: inchan */
int ul_del(char *name);
int ul_rename(char *oldname, char *newname);
void ul_clear();
void ul_rebuild_list();
void ul_clean();

/* Seting state */
void ul_leave_chan(char *name);
void ul_enter_chan(char *name);
void ul_private_action(char *name);
void ul_public_action(char *name);

/* Finding users ul_finduser */
char *ul_match_user(char *regex);

/* Nick completion function for readline */
char **ul_complete_user(char *text, int start, int end );

/* Setting up a user dict for custum completion */
void ul_add_to_dict(char *dict_items);

#endif