Skip to content

Commit da18aee

Browse files
committed
[v1.0.0]
- [new] Initial release.
0 parents  commit da18aee

33 files changed

Lines changed: 12636 additions & 0 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc/html

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#------------------------------------------------
2+
# Makefile to build OSC-webgate on Raspberry Pi
3+
#------------------------------------------------
4+
5+
SRC=./src/
6+
OUT=OSC-webgate
7+
SYMBOLS=-DLINUX
8+
9+
CC=${CC_PATH}gcc
10+
AS=${CC_PATH}as
11+
12+
CFLAGS=$(SYMBOLS) -O3 -Wall -fmessage-length=0
13+
14+
LIBS=-lpthread
15+
LIBDIR=
16+
LDFLAGS=
17+
18+
OBJ=$(SRC)main.o \
19+
$(SRC)datapool.o \
20+
$(SRC)datapoolpredef.o \
21+
$(SRC)datapooluser.o \
22+
$(SRC)cgi.o \
23+
$(SRC)cgi_json.o \
24+
$(SRC)mongoose.o \
25+
$(SRC)osc.o \
26+
$(SRC)OSC-client.o \
27+
$(SRC)OSC-timetag.o \
28+
$(SRC)ujsonpars.o \
29+
$(SRC)utils.o
30+
31+
all: $(OUT)
32+
33+
$(OUT): $(OBJ)
34+
$(CC) $(LIBDIR) $(LDFLAGS) $(OBJ) -o $(OUT) $(LIBS)
35+
36+
.o:
37+
$(CC) $(CFLAGS) -c $< -o $@
38+
39+
clean:
40+
rm -f $(OUT) *.o $(SRC)*.o *.map *.gdb

OSC-webgate.conf

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
;
2+
; OSC-webgate configuration
3+
;
4+
[config]
5+
6+
; Root folder of the web-server.
7+
root = "/var/www"
8+
9+
; Port number of the web-server.
10+
port = 80
11+
12+
; Allocate variables in the data-pool on the fly.
13+
; If 0 only the variables defined in the [data-pool] section can be read and written to.
14+
; If 1 also variables not in the [data-pool] section can be read and written to.
15+
; They are added to the data-pool when requested (on the fly).
16+
on_the_fly_allocation = 1
17+
18+
; Prefix of variables routed to the user data-pool.
19+
; Only the variables starting with this prefix are routed to the user data-pool.
20+
; If the prefix is empty, all variables will be routed.
21+
user_prefix = "DPU."
22+
23+
; OSC host name or IP.
24+
osc_host = "localhost"
25+
26+
; Port number of the OSC host.
27+
osc_port = "3001"
28+
29+
; Prefix of variables routed to the OSC host.
30+
; Only the variables starting with this prefix are routed to the OSC host.
31+
; If the prefix is empty, all variables will be routed.
32+
osc_prefix = "/osc/"
33+
34+
;
35+
; Variable initialization
36+
;
37+
[data-pool]
38+
; If on_the_fly_allocation is set to 0, add here all variables needed.
39+
/osc/master/switch = 1
40+
/osc/master/volume = 75
41+
/osc/osc/pitch = 500

0 commit comments

Comments
 (0)