diff options
author | David Robillard <d@drobilla.net> | 2007-11-29 04:13:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-11-29 04:13:53 +0000 |
commit | 61e1e6e1442e97365db33b6071f8710a68987d64 (patch) | |
tree | 84e861c1422e1c09fb2b90c21d41c46bc0c79f29 /src/libs/engine/OSCEngineReceiver.cpp | |
parent | de3d775f9b8958132c40b4e53b83651750002e9b (diff) | |
download | ingen-61e1e6e1442e97365db33b6071f8710a68987d64.tar.gz ingen-61e1e6e1442e97365db33b6071f8710a68987d64.tar.bz2 ingen-61e1e6e1442e97365db33b6071f8710a68987d64.zip |
Add (ifdef'd out) support for liblo avahi patch.
git-svn-id: http://svn.drobilla.net/lad/ingen@924 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/OSCEngineReceiver.cpp')
-rw-r--r-- | src/libs/engine/OSCEngineReceiver.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp index 66e74e70..64bc66ec 100644 --- a/src/libs/engine/OSCEngineReceiver.cpp +++ b/src/libs/engine/OSCEngineReceiver.cpp @@ -18,6 +18,7 @@ #include <iostream> #include <cstdlib> #include <string> +//#define ENABLE_AVAHI 1 #include <lo/lo.h> #include "types.hpp" #include <raul/SharedPtr.hpp> @@ -54,6 +55,9 @@ OSCEngineReceiver::OSCEngineReceiver(Engine& engine, size_t queue_size, uint16_t snprintf(port_str, 6, "%u", port); _server = lo_server_new(port_str, error_cb); +#ifdef ENABLE_AVAHI + lo_server_avahi_init(_server, "ingen"); +#endif if (_server == NULL) { cerr << "[OSC] Could not start OSC server. Aborting." << endl; @@ -130,6 +134,9 @@ OSCEngineReceiver::~OSCEngineReceiver() delete _receive_thread; if (_server != NULL) { +#ifdef ENABLE_AVAHI + lo_server_avahi_free(_server); +#endif lo_server_free(_server); _server = NULL; } |