ekg2
ekg/metacontacts.h
Idź do dokumentacji tego pliku.
00001 /* $Id$ */
00002 
00003 /*
00004  *  (C) Copyright 2004 Piotr Kupisiewicz <deli@rzepaknet.us>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License Version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 #ifndef __EKG_METACONTACTS_H
00021 #define __EKG_METACONTACTS_H
00022 #include "dynstuff.h" 
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 typedef struct metacontact_item {
00029         struct metacontact_item *next;
00030 
00031         char                    *name;  /* uid or name */
00032         unsigned int            prio;   /* prio */
00033         char                    *s_uid; /* session uid */
00034 } metacontact_item_t;
00035 
00036 typedef struct metacontact {
00037         struct metacontact      *next;
00038 
00039         char                    *name; /* name of metacontact */
00040         metacontact_item_t      *metacontact_items;
00041 } metacontact_t;
00042 
00043 #ifndef EKG2_WIN32_NOFUNCTION 
00044 extern metacontact_t *metacontacts;
00045 
00046 metacontact_t *metacontact_add(const char *name);
00047 metacontact_t *metacontact_find(const char *name);
00048 metacontact_item_t *metacontact_find_prio(metacontact_t *m);
00049 
00050 void metacontact_init();
00051 void metacontacts_destroy();
00052 
00053 int metacontact_write();
00054 int metacontact_read();
00055 
00056 #endif
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00062 #endif /* __EKG_METACONTACTS_H */
00063 
00064 
00065 /*
00066  * Local Variables:
00067  * mode: c
00068  * c-file-style: "k&r"
00069  * c-basic-offset: 8
00070  * indent-tabs-mode: t
00071  * End:
00072  */
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje