Permalink
Browse files

Add a function to get access to a device's underlying lo_server.

  • Loading branch information...
1 parent 7420e1a commit db70a09b2353296b9810b86b190c2fc93a8da6a4 @radarsat1 radarsat1 committed Nov 16, 2012
Showing with 10 additions and 1 deletion.
  1. +3 −0 include/mapper/mapper.h
  2. +5 −0 src/device.c
  3. +2 −1 src/libmapper.def
View
@@ -494,6 +494,9 @@ void mdev_start_queue(mapper_device md, mapper_timetag_t tt);
/*! Dispatch a time-tagged mapper queue. */
void mdev_send_queue(mapper_device md, mapper_timetag_t tt);
+/*! Get access to the device's underlying lo_server. */
+lo_server mdev_get_lo_server(mapper_device md);
+
/* @} */
/*** Admins ***/
View
@@ -1166,3 +1166,8 @@ void mdev_remove_property(mapper_device dev, const char *property)
{
table_remove_key(dev->extra, property, 1);
}
+
+lo_server mdev_get_lo_server(mapper_device md)
+{
+ return md->server;
+}
View
@@ -95,4 +95,5 @@ EXPORTS
msig_update @94
msig_update_float @95
msig_update_int @96
- msig_value @97
+ msig_value @97
+ mdev_get_lo_server @98

0 comments on commit db70a09

Please sign in to comment.