ekg2  GIT master
metacontacts.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2004 Piotr Kupisiewicz <deli@rzepaknet.us>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License Version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef __EKG_METACONTACTS_H
21 #define __EKG_METACONTACTS_H
22 #include "dynstuff.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 typedef struct metacontact_item {
30 
31  char *name; /* uid or name */
32  unsigned int prio; /* prio */
33  char *s_uid; /* session uid */
35 
36 typedef struct metacontact {
37  struct metacontact *next;
38 
39  char *name; /* name of metacontact */
42 
43 #ifndef EKG2_WIN32_NOFUNCTION
45 
46 metacontact_t *metacontact_add(const char *name);
47 metacontact_t *metacontact_find(const char *name);
49 
50 void metacontact_init();
52 
53 void metacontact_write();
54 int metacontact_read();
55 
56 #endif
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* __EKG_METACONTACTS_H */
63 
64 
65 /*
66  * Local Variables:
67  * mode: c
68  * c-file-style: "k&r"
69  * c-basic-offset: 8
70  * indent-tabs-mode: t
71  * End:
72  */
metacontact_t * metacontact_find(const char *name)
Definition: metacontacts.c:218
struct metacontact_item metacontact_item_t
int metacontact_read()
Definition: metacontacts.c:550
void metacontacts_destroy()
Definition: metacontacts.c:53
unsigned int prio
Definition: metacontacts.h:32
metacontact_item_t * metacontact_items
Definition: metacontacts.h:40
metacontact_t * metacontacts
Definition: metacontacts.c:29
struct metacontact * next
Definition: metacontacts.h:37
char * s_uid
Definition: metacontacts.h:33
char * name
Definition: metacontacts.h:31
void metacontact_init()
Definition: metacontacts.c:515
metacontact_item_t * metacontact_find_prio(metacontact_t *m)
Definition: metacontacts.c:480
void metacontact_write()
Definition: metacontacts.c:526
Definition: metacontacts.h:36
Definition: metacontacts.h:28
struct metacontact metacontact_t
char * name
Definition: metacontacts.h:39
metacontact_t * metacontact_add(const char *name)
Definition: metacontacts.c:236
struct metacontact_item * next
Definition: metacontacts.h:29