summaryrefslogtreecommitdiffstats
path: root/src/host.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-12 04:00:41 +0000
committerDavid Robillard <d@drobilla.net>2012-04-12 04:00:41 +0000
commitd49d8291fa5f43f8ffff5dfbf94fca5f0b9d5d79 (patch)
treef1beaba8766048c20cfc89ceae344762defb7cb7 /src/host.c
parent97770e5875595fc3d804c2adeaca2396608ca624 (diff)
downloadsuil-d49d8291fa5f43f8ffff5dfbf94fca5f0b9d5d79.tar.gz
suil-d49d8291fa5f43f8ffff5dfbf94fca5f0b9d5d79.tar.bz2
suil-d49d8291fa5f43f8ffff5dfbf94fca5f0b9d5d79.zip
Implement UI features again, this time with genuine workiness!
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4173 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/host.c b/src/host.c
index 7b8cf33..6a2bda8 100644
--- a/src/host.c
+++ b/src/host.c
@@ -24,15 +24,12 @@ suil_host_new(SuilPortWriteFunc write_func,
SuilPortUnsubscribeFunc unsubscribe_func)
{
SuilHost* host = malloc(sizeof(struct SuilHostImpl));
- host->write_func = write_func;
- host->port_map.handle = host;
- host->port_map.port_index = index_func;
- host->port_subscribe.handle = host;
- host->port_subscribe.subscribe = subscribe_func;
- host->port_subscribe.unsubscribe = unsubscribe_func;
- host->touch.handle = host;
- host->touch.touch = NULL;
- host->gtk_lib = NULL;
+ host->write_func = write_func;
+ host->index_func = index_func;
+ host->subscribe_func = subscribe_func;
+ host->unsubscribe_func = unsubscribe_func;
+ host->touch_func = NULL;
+ host->gtk_lib = NULL;
return host;
}
@@ -41,7 +38,7 @@ void
suil_host_set_touch_func(SuilHost* host,
SuilTouchFunc touch_func)
{
- host->touch.touch = touch_func;
+ host->touch_func = touch_func;
}
SUIL_API