diff options
-rw-r--r-- | src/soundmanager.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/soundmanager.c b/src/soundmanager.c index 1b7ad6d..2ad3c08 100644 --- a/src/soundmanager.c +++ b/src/soundmanager.c @@ -585,7 +585,7 @@ void registerSource(struct afb_req request) nconf_command.parameter = 0; /* acquire data */ - guint16 acquire_source_id; + int acquire_source_id; GVariant* sourceData = create_source_data (source_id, domain_id, name, source_class_id, @@ -593,7 +593,7 @@ void registerSource(struct afb_req request) sound_property_list, connection_format_list, main_property_list, nconf_routing, nconf_command); - ErrorCode ec = am_proxy_register_source(sourceData, acquire_source_id); + ErrorCode ec = am_proxy_register_source(sourceData, &acquire_source_id); if(!SEND_RESULT(err, request)) return; @@ -893,7 +893,7 @@ static void on_async_connect(void *closure, int handle, int connectionID, afb_event_push(ev_async_connect, ev_obj); } -static gboolean on_async_disconnect(void *closure, int handle, int connectionID) +static void on_async_disconnect(void *closure, int handle, int connectionID) { AFB_DEBUG( "%s called", __FUNCTION__); struct json_object* ev_obj = json_object_new_object(); @@ -903,13 +903,13 @@ static gboolean on_async_disconnect(void *closure, int handle, int connectionID) afb_event_push(ev_async_disconnect, ev_obj); } -static gboolean on_async_set_sink_volume(void *closure, int handle, int sinkID, +static void on_async_set_sink_volume(void *closure, int handle, int sinkID, int volume, int ramp, int time) { AFB_DEBUG( "%s called", __FUNCTION__); } -static gboolean on_async_set_source_state(void *closure, int handle, int sourceID, int sourceState) +static void on_async_set_source_state(void *closure, int handle, int sourceID, int sourceState) { AFB_DEBUG( "%s called", __FUNCTION__); struct json_object* ev_obj = json_object_new_object(); |