ekg2
ekg/events.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_EVENTS_H
00021 #define __EKG_EVENTS_H
00022 
00023 #include "dynstuff.h"
00024 #include "plugins.h"
00025 #include "stuff.h"
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 typedef struct event {
00032         struct event *next;
00033 
00034         unsigned int id;/* identyficator */
00035         char *name;     /* name of the event */
00036         char *target;   /* uid(s), alias(es), group(s) */
00037         char *action;   /* action to do */
00038         int prio;       /* priority of this event */
00039 } event_t;
00040 
00041 extern event_t *events;
00042 extern char **events_all; /* it may be help for tab complete */
00043 
00044 int event_add(const char *name, int prio, const char *target, const char *action, int quiet);
00045 
00046 void event_free();
00047 int events_init();
00048 
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 #endif /* __EKG_EVENTS_H */
00054 
00055 
00056 /*
00057  * Local Variables:
00058  * mode: c
00059  * c-file-style: "k&r"
00060  * c-basic-offset: 8
00061  * indent-tabs-mode: t
00062  * End:
00063  */
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje