Desklet update: deskicon 0.0.1 => 0.0.2
[adesklets.git] / src / event.h
blobb94c2751f3993252948d3241ced4e6bc2de59899
1 /*--- event.h ----------------------------------------------------------------
2 Copyright (C) 2004, 2005 Sylvain Fourmanoit <syfou@users.sourceforge.net>
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to
6 deal in the Software without restriction, including without limitation the
7 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 sell copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
11 The above copyright notice and this permission notice shall be included in
12 all copies of the Software and its documentation and acknowledgment shall be
13 given in the documentation and software packages that this Software was
14 used.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 ------------------------------------------------------------------------------*/
23 /* Event report functions
26 /*----------------------------------------------------------------------------*/
27 #ifndef HAVE_EVENT_H
28 #define HAVE_EVENT_H
30 #ifndef HAVE_CONFIG_H
31 #error Autogenerated config.h should be used.
32 #endif
34 /*----------------------------------------------------------------------------*/
35 #include "config.h" /* Autoconf header */
37 #ifdef HAVE_STDIO_H
38 #include <stdio.h> /* Standard IO routines */
39 #endif
41 #ifdef HAVE_STRING_H /* strcpy() */
42 #include <string.h>
43 #endif
45 #ifdef HAVE_STDARG_H /* Variadic functions */
46 #include <stdarg.h>
47 #endif
49 #ifdef HAVE_SYS_TYPES_H /* pid_t typedef */
50 #include <sys/types.h>
51 #endif
53 #ifdef HAVE_SIGNAL_H /* kill() */
54 #include <signal.h>
55 #endif
57 #include "types.h" /* Various typedef */
58 #include "error.h" /* Error wrapper */
59 #include "vector.h" /* Small vector API */
61 /*----------------------------------------------------------------------------*/
62 extern pid_t events_ppid;
63 extern int events_echo;
64 extern int events_delay;
65 extern vector * events;
67 /*----------------------------------------------------------------------------*/
68 /* Event output formatting function */
69 void event(char *, ...);
71 /* Event cache purge */
72 void events_purge(void);
74 /*----------------------------------------------------------------------------*/
75 #endif