diff options
author | Christian Völlinger <zerov83@gmail.com> | 2013-12-02 19:57:54 +0100 |
---|---|---|
committer | Christian Völlinger <zerov83@gmail.com> | 2013-12-02 19:57:54 +0100 |
commit | 47e367a8524a09dbdce8016296a611674e536225 (patch) | |
tree | c435f431a4964e1f8e8d4d54032c31c3f8ca2120 /lib/boblight-functions.h | |
parent | 620ea3a800f2235abf45a57ca898bf96473c576b (diff) | |
download | vdr-plugin-boblight-47e367a8524a09dbdce8016296a611674e536225.tar.gz vdr-plugin-boblight-47e367a8524a09dbdce8016296a611674e536225.tar.bz2 |
Initial commit0.0.1
Diffstat (limited to 'lib/boblight-functions.h')
-rw-r--r-- | lib/boblight-functions.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/boblight-functions.h b/lib/boblight-functions.h new file mode 100644 index 0000000..0e0731e --- /dev/null +++ b/lib/boblight-functions.h @@ -0,0 +1,41 @@ +/* + * boblight + * Copyright (C) Bob 2009 + * + * boblight is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * boblight is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +//these definitions can be expanded to make normal prototypes, or functionpointers and dlsym lines + +BOBLIGHT_FUNCTION(void*, boblight_init, ()); +BOBLIGHT_FUNCTION(void, boblight_destroy, (void* vpboblight)); + +BOBLIGHT_FUNCTION(int, boblight_connect, (void* vpboblight, const char* address, int port, int usectimeout)); +BOBLIGHT_FUNCTION(int, boblight_setpriority, (void* vpboblight, int priority)); +BOBLIGHT_FUNCTION(const char*, boblight_geterror, (void* vpboblight)); +BOBLIGHT_FUNCTION(int, boblight_getnrlights, (void* vpboblight)); +BOBLIGHT_FUNCTION(const char*, boblight_getlightname, (void* vpboblight, int lightnr)); + +BOBLIGHT_FUNCTION(int, boblight_getnroptions, (void* vpboblight)); +BOBLIGHT_FUNCTION(const char*, boblight_getoptiondescript,(void* vpboblight, int option)); +BOBLIGHT_FUNCTION(int, boblight_setoption, (void* vpboblight, int lightnr, const char* option)); +BOBLIGHT_FUNCTION(int, boblight_getoption, (void* vpboblight, int lightnr, const char* option, const char** output)); + +BOBLIGHT_FUNCTION(void, boblight_setscanrange, (void* vpboblight, int width, int height)); + +BOBLIGHT_FUNCTION(int, boblight_addpixel, (void* vpboblight, int lightnr, int* rgb)); +BOBLIGHT_FUNCTION(void, boblight_addpixelxy, (void* vpboblight, int x, int y, int* rgb)); + +BOBLIGHT_FUNCTION(int, boblight_sendrgb, (void* vpboblight, int sync, int* outputused)); +BOBLIGHT_FUNCTION(int, boblight_ping, (void* vpboblight, int* outputused)); |