-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.h
33 lines (25 loc) · 924 Bytes
/
users.h
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
/******************************************************************************
* eiwic - Extensible Ircbot Written In C
* Copyright (C) Hannes Gräuler <[email protected]>
*
* users.h: This file contains function declarations for users.c
*****************************************************************************/
#ifndef _USERS_H_INCLUDED
#define _USERS_H_INCLUDED
#define MAX_NICKNAME_LEN 255
struct eiwic_user {
u_char nick[MAX_NICKNAME_LEN];
OUTPUT *output, *output_notice;
};
typedef struct eiwic_user USER;
typedef USER *(pfn_user_add)(STRING);
typedef void (pfn_user_nickset)(USER *, STRING);
typedef void (pfn_user_remove)(USER *);
typedef void (pfn_user_destroy)(void *);
typedef USER *(pfn_user_find)(STRING);
pfn_user_add user_add;
pfn_user_nickset user_nickset;
pfn_user_remove user_remove;
pfn_user_destroy user_destroy;
pfn_user_find user_find;
#endif /* _USERS_H_INCLUDED */