/* * 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 . */ //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));