summaryrefslogtreecommitdiff
path: root/lib/boblight-functions.h
blob: 0e0731e0786674208dacd94f3a5a4c9c0b04a263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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));