597
|
1 /*
|
|
2 *
|
|
3 * Author: Giacomo Lozito <james@develia.org>, (C) 2005-2007
|
|
4 *
|
|
5 * This program is free software; you can redistribute it and/or modify it
|
|
6 * under the terms of the GNU General Public License as published by the
|
|
7 * Free Software Foundation; either version 2 of the License, or (at your
|
|
8 * option) any later version.
|
|
9 *
|
|
10 * This program is distributed in the hope that it will be useful, but
|
|
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13 * General Public License for more details.
|
|
14 *
|
|
15 * You should have received a copy of the GNU General Public License along
|
|
16 * with this program; if not, write to the Free Software Foundation, Inc.,
|
|
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 *
|
|
19 */
|
|
20
|
|
21 #ifndef _I_AOSD_TRIGGER_PRIVATE_H
|
|
22 #define _I_AOSD_TRIGGER_PRIVATE_H 1
|
|
23
|
|
24 #include "aosd_common.h"
|
|
25 #include <glib.h>
|
|
26
|
|
27
|
|
28 /* trigger object
|
|
29 ----------------------------------------------------------
|
|
30 name name
|
|
31 desc description
|
|
32 onoff_func function used to enable/disable the trigger
|
|
33 callback_func function called by triggering event
|
|
34 */
|
|
35 typedef struct
|
|
36 {
|
|
37 const gchar * name;
|
|
38 const gchar * desc;
|
|
39 void (*onoff_func)( gboolean );
|
|
40 void (*callback_func)( gpointer , gpointer );
|
|
41 }
|
|
42 aosd_trigger_t;
|
|
43
|
|
44
|
|
45 #endif /* !_I_AOSD_TRIGGER_PRIVATE_H */
|