root/branches/dev/wminput/py_plugin.h

Revision 124, 1.5 kB (checked in by dsmith, 2 years ago)

wminput plugin refactoring

Line 
1 /* Copyright (C) 2007 L. Donnie Smith <cwiid@abstrakraft.org>
2  *
3  *  This program is free software; you can redistribute it and/or modify
4  *  it under the terms of the GNU General Public License as published by
5  *  the Free Software Foundation; either version 2 of the License, or
6  *  (at your option) any later version.
7  *
8  *  This program is distributed in the hope that it will be useful,
9  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  *  GNU General Public License for more details.
12  *
13  *  You should have received a copy of the GNU General Public License
14  *  along with this program; if not, write to the Free Software
15  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
16  *
17  *  ChangeLog:
18  *  2007-06-05 L. Donnie Smith <cwiid@abstrakraft.org>
19  *  * refactored to isolate plugin logic
20  *
21  *  2007-06-01 L. Donnie Smith <cwiid@abstrakraft.org>
22  *  * Initial ChangeLog
23  */
24
25 #ifndef PY_PLUGIN_H
26 #define PY_PLUGIN_H
27
28 int py_init(void);
29 int py_wiimote(cwiid_wiimote_t *wiimote);
30 void py_deinit(void);
31 int py_plugin_open(struct plugin *plugin, char *dir);
32 void py_plugin_close(struct plugin *plugin);
33 int py_plugin_init(struct plugin *plugin, int id);
34 int py_plugin_exec(struct plugin *plugin, int mesg_count,
35                    union cwiid_mesg mesg[]);
36 int py_plugin_param_int(struct plugin *plugin, int i, int value);
37 int py_plugin_param_float(struct plugin *plugin, int i, float value);
38
39 #endif
Note: See TracBrowser for help on using the browser.