dlr_task_t *dlr_task_goto_track_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { dlr_task_t *task = prv_device_task_new(DLR_TASK_GOTO_TRACK, invocation, path, NULL); g_variant_get(parameters, "(u)", &task->ut.seek.track_number); return task; }
dlr_task_t *dlr_task_seek_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { dlr_task_t *task = prv_device_task_new(DLR_TASK_SEEK, invocation, path, NULL); g_variant_get(parameters, "(x)", &task->ut.seek.position); return task; }
rsu_task_t *rsu_task_seek_new(GDBusMethodInvocation *invocation, const gchar *path, GVariant *parameters) { rsu_task_t *task = prv_device_task_new(RSU_TASK_SEEK, invocation, path, NULL); g_variant_get(parameters, "(x)", &task->seek.position); return task; }
dlr_task_t *dlr_task_set_position_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { gchar *track_id; dlr_task_t *task = prv_device_task_new(DLR_TASK_SET_POSITION, invocation, path, NULL); g_variant_get(parameters, "(&ox)", &track_id, &task->ut.seek.position); return task; }
rsu_task_t *rsu_task_set_position_new(GDBusMethodInvocation *invocation, const gchar *path, GVariant *parameters) { gchar *track_id; rsu_task_t *task = prv_device_task_new(RSU_TASK_SET_POSITION, invocation, path, NULL); g_variant_get(parameters, "(&ox)", &track_id, &task->seek.position); return task; }
rsu_task_t *rsu_task_open_uri_new(GDBusMethodInvocation *invocation, const gchar *path, GVariant *parameters) { rsu_task_t *task; task = prv_device_task_new(RSU_TASK_OPEN_URI, invocation, path, NULL); g_variant_get(parameters, "(s)", &task->open_uri.uri); g_strstrip(task->open_uri.uri); return task; }
rsu_task_t *rsu_task_get_props_new(GDBusMethodInvocation *invocation, const gchar *path, GVariant *parameters) { rsu_task_t *task; task = prv_device_task_new(RSU_TASK_GET_ALL_PROPS, invocation, path, "(@a{sv})"); g_variant_get(parameters, "(s)", &task->get_props.interface_name); g_strstrip(task->get_props.interface_name); return task; }
dlr_task_t *dlr_task_get_props_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { dlr_task_t *task; task = prv_device_task_new(DLR_TASK_GET_ALL_PROPS, invocation, path, "(@a{sv})"); g_variant_get(parameters, "(s)", &task->ut.get_props.interface_name); g_strstrip(task->ut.get_props.interface_name); return task; }
dlr_task_t *dlr_task_get_icon_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { dlr_task_t *task; task = prv_device_task_new(DLR_TASK_GET_ICON, invocation, path, "(@ays)"); task->multiple_retvals = TRUE; g_variant_get(parameters, "(ss)", &task->ut.get_icon.mime_type, &task->ut.get_icon.resolution); return task; }
dlr_task_t *dlr_task_set_prop_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { dlr_task_t *task; task = prv_device_task_new(DLR_TASK_SET_PROP, invocation, path, NULL); g_variant_get(parameters, "(ssv)", &task->ut.set_prop.interface_name, &task->ut.set_prop.prop_name, &task->ut.set_prop.params); g_strstrip(task->ut.set_prop.interface_name); g_strstrip(task->ut.set_prop.prop_name); return task; }
dlr_task_t *dlr_task_open_uri_ex_new(dleyna_connector_msg_id_t invocation, const gchar *path, GVariant *parameters) { dlr_task_t *task; task = prv_device_task_new(DLR_TASK_OPEN_URI, invocation, path, NULL); g_variant_get(parameters, "(ss)", &task->ut.open_uri.uri, &task->ut.open_uri.metadata); g_strstrip(task->ut.open_uri.uri); g_strstrip(task->ut.open_uri.metadata); return task; }
rsu_task_t *rsu_task_remove_uri_new(GDBusMethodInvocation *invocation, const gchar *path, GVariant *parameters) { rsu_task_t *task; task = prv_device_task_new(RSU_TASK_REMOVE_URI, invocation, path, NULL); g_variant_get(parameters, "(s)", &task->host_uri.uri); g_strstrip(task->host_uri.uri); task->host_uri.client = g_strdup( g_dbus_method_invocation_get_sender(invocation)); return task; }
dlr_task_t *dlr_task_remove_uri_new(dleyna_connector_msg_id_t invocation, const gchar *path, const gchar *sender, GVariant *parameters) { dlr_task_t *task; task = prv_device_task_new(DLR_TASK_REMOVE_URI, invocation, path, NULL); g_variant_get(parameters, "(s)", &task->ut.host_uri.uri); g_strstrip(task->ut.host_uri.uri); task->ut.host_uri.client = g_strdup(sender); return task; }
dlr_task_t *dlr_task_play_pause_new(dleyna_connector_msg_id_t invocation, const gchar *path) { return prv_device_task_new(DLR_TASK_PLAY_PAUSE, invocation, path, NULL); }
dlr_task_t *dlr_task_next_new(dleyna_connector_msg_id_t invocation, const gchar *path) { return prv_device_task_new(DLR_TASK_NEXT, invocation, path, NULL); }
dlr_task_t *dlr_task_previous_new(dleyna_connector_msg_id_t invocation, const gchar *path) { return prv_device_task_new(DLR_TASK_PREVIOUS, invocation, path, NULL); }
rsu_task_t *rsu_task_previous_new(GDBusMethodInvocation *invocation, const gchar *path) { return prv_device_task_new(RSU_TASK_PREVIOUS, invocation, path, NULL); }
rsu_task_t *rsu_task_next_new(GDBusMethodInvocation *invocation, const gchar *path) { return prv_device_task_new(RSU_TASK_NEXT, invocation, path, NULL); }
rsu_task_t *rsu_task_play_pause_new(GDBusMethodInvocation *invocation, const gchar *path) { return prv_device_task_new(RSU_TASK_PLAY_PAUSE, invocation, path, NULL); }