Commit d77cee90 authored by Hanspeter Portner's avatar Hanspeter Portner

Squashed 'osc.lv2/' changes from 0ed6f99..cc30bee

cc30bee include netinet/in.h on FreeBSD.
930c606 return errno in stream enum.
3206af0 return connection status in enum.
54dc875 prototype backend for serial line.

git-subtree-dir: osc.lv2
git-subtree-split: cc30beeb8b937449d4795a2031a67e7d4ede546a
parent d1333b32
......@@ -30,5 +30,7 @@ osc_test = executable('osc_test',
dependencies : deps,
install : false)
# FIXME start virautl serial pair before test
# socat -d -d pty,raw,echo=0 pty,raw,echo=0
test('Test', osc_test,
timeout : 240)
This diff is collapsed.
......@@ -627,6 +627,11 @@ _thread_1(void *data)
const time_t t1 = time(NULL);
const LV2_OSC_Enum ev = lv2_osc_stream_run(&stream);
if(ev & LV2_OSC_ERR)
{
fprintf(stderr, "%s: %s\n", __func__, strerror(ev & LV2_OSC_ERR));
}
if(ev & LV2_OSC_RECV)
{
const uint8_t *buf_rx;
......@@ -684,7 +689,12 @@ _thread_1(void *data)
do
{
ev = lv2_osc_stream_run(&stream);
} while( (ev & LV2_OSC_SEND) || stream.connected );
if(ev & LV2_OSC_ERR)
{
fprintf(stderr, "%s: %s\n", __func__, strerror(ev & LV2_OSC_ERR));
}
} while( (ev & LV2_OSC_SEND) || (ev & LV2_OSC_CONN) );
assert(pair->lossy || (count == COUNT) );
......@@ -749,6 +759,11 @@ _thread_2(void *data)
const LV2_OSC_Enum ev = lv2_osc_stream_run(&stream);
if(ev & LV2_OSC_ERR)
{
fprintf(stderr, "%s: %s\n", __func__, strerror(ev & LV2_OSC_ERR));
}
if(ev & LV2_OSC_RECV)
{
const uint8_t *buf_rx;
......@@ -783,6 +798,11 @@ _thread_2(void *data)
const time_t t1 = time(NULL);
const LV2_OSC_Enum ev = lv2_osc_stream_run(&stream);
if(ev & LV2_OSC_ERR)
{
fprintf(stderr, "%s: %s\n", __func__, strerror(ev & LV2_OSC_ERR));
}
if(ev & LV2_OSC_RECV)
{
const uint8_t *buf_rx;
......@@ -895,6 +915,14 @@ static const pair_t pairs [] = {
.lossy = false
},
#if 0
{
.server = "osc.serial:///dev/pts/4", //FIXME baudrate
.client = "osc.serial:///dev/pts/5",
.lossy = false
},
#endif
{
.server = NULL,
.client = NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment