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 /* trigger object
25    ----------------------------------------------------------
26    name           name
27    desc           description
28    onoff_func     function used to enable/disable the trigger
29    callback_func  function called by triggering event
30 */
31 typedef struct
32 {
33   const char * name;
34   const char * desc;
35   void (*onoff_func)( bool );
36   void (*callback_func)( void * , void * );
37 }
38 aosd_trigger_t;
39 
40 #endif /* !_I_AOSD_TRIGGER_PRIVATE_H */
41