ekg2
GIT master
ekg
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
{
29
struct
metacontact_item
*
next
;
30
31
char
*
name
;
/* uid or name */
32
unsigned
int
prio
;
/* prio */
33
char
*
s_uid
;
/* session uid */
34
}
metacontact_item_t
;
35
36
typedef
struct
metacontact
{
37
struct
metacontact
*
next
;
38
39
char
*
name
;
/* name of metacontact */
40
metacontact_item_t
*
metacontact_items
;
41
}
metacontact_t
;
42
43
#ifndef EKG2_WIN32_NOFUNCTION
44
extern
metacontact_t
*
metacontacts
;
45
46
metacontact_t
*
metacontact_add
(
const
char
*
name
);
47
metacontact_t
*
metacontact_find
(
const
char
*
name
);
48
metacontact_item_t
*
metacontact_find_prio
(
metacontact_t
*m);
49
50
void
metacontact_init
();
51
void
metacontacts_destroy
();
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_find
metacontact_t * metacontact_find(const char *name)
Definition:
metacontacts.c:218
metacontact_item_t
struct metacontact_item metacontact_item_t
metacontact_read
int metacontact_read()
Definition:
metacontacts.c:550
metacontacts_destroy
void metacontacts_destroy()
Definition:
metacontacts.c:53
metacontact_item::prio
unsigned int prio
Definition:
metacontacts.h:32
metacontact::metacontact_items
metacontact_item_t * metacontact_items
Definition:
metacontacts.h:40
metacontacts
metacontact_t * metacontacts
Definition:
metacontacts.c:29
metacontact::next
struct metacontact * next
Definition:
metacontacts.h:37
metacontact_item::s_uid
char * s_uid
Definition:
metacontacts.h:33
metacontact_item::name
char * name
Definition:
metacontacts.h:31
metacontact_init
void metacontact_init()
Definition:
metacontacts.c:515
metacontact_find_prio
metacontact_item_t * metacontact_find_prio(metacontact_t *m)
Definition:
metacontacts.c:480
metacontact_write
void metacontact_write()
Definition:
metacontacts.c:526
metacontact
Definition:
metacontacts.h:36
metacontact_item
Definition:
metacontacts.h:28
dynstuff.h
metacontact_t
struct metacontact metacontact_t
metacontact::name
char * name
Definition:
metacontacts.h:39
metacontact_add
metacontact_t * metacontact_add(const char *name)
Definition:
metacontacts.c:236
metacontact_item::next
struct metacontact_item * next
Definition:
metacontacts.h:29
Wygenerowano przez
1.8.13