GLIB_REQUIRED=2.31.13
VALA_REQUIRED=0.16.1
VALADOC_REQUIRED=0.2
-GSSDP_REQUIRED=0.11.0
-GUPNP_REQUIRED=0.17.1
-GUPNP_AV_REQUIRED=0.9.0
+GSSDP_REQUIRED=0.13.0
+GUPNP_REQUIRED=0.19.0
+GUPNP_AV_REQUIRED=0.11.0
GUPNP_DLNA_REQUIRED=0.5.0
-GUPNP_VALA_REQUIRED=0.10.2
GSTREAMER_REQUIRED=0.10.36
GSTPBU_REQUIRED=0.10.35
GIO_REQUIRED=2.26
AS_IF([test x$VALAC = "x"],
[AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])],
[
- PKG_CHECK_MODULES(GUPNP_VALA, gupnp-vala-1.0 >= $GUPNP_VALA_REQUIRED)
-
VALA_CHECK_PACKAGES([$2])
])
],
}
private void get_protocol_info_cb (Service cm,
- owned ServiceAction action) {
+ ServiceAction action) {
if (action.get_argument_count () != 0) {
action.return_error (402, _("Invalid argument"));
}
private void get_current_connection_ids_cb (Service cm,
- owned ServiceAction action) {
+ ServiceAction action) {
if (action.get_argument_count () != 0) {
action.return_error (402, _("Invalid argument"));
}
private void get_current_connection_info_cb (Service cm,
- owned ServiceAction action) {
+ ServiceAction action) {
string connection_id;
action.get ("ConnectionID", typeof (string), out connection_id);
return true;
}
- private void set_av_transport_uri_cb (Service service,
- owned ServiceAction action) {
+ private void set_av_transport_uri_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
}
}
- private void get_media_info_cb (Service service,
- owned ServiceAction action) {
+ private void get_media_info_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void get_media_info_ex_cb (Service service,
- owned ServiceAction action) {
+ private void get_media_info_ex_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
}
- private void get_transport_info_cb (Service service,
- owned ServiceAction action) {
+ private void get_transport_info_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void get_position_info_cb (Service service,
- owned ServiceAction action) {
+ private void get_position_info_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void get_device_capabilities_cb (Service service,
- owned ServiceAction action) {
+ private void get_device_capabilities_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void get_transport_settings_cb (Service service,
- owned ServiceAction action) {
+ private void get_transport_settings_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void stop_cb (Service service, owned ServiceAction action) {
+ private void stop_cb (Service service, ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void play_cb (Service service, owned ServiceAction action) {
+ private void play_cb (Service service, ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void pause_cb (Service service, owned ServiceAction action) {
+ private void pause_cb (Service service, ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void seek_cb (Service service, owned ServiceAction action) {
+ private void seek_cb (Service service, ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
}
}
- private void next_cb (Service service, owned ServiceAction action) {
+ private void next_cb (Service service, ServiceAction action) {
action.return_error (701, _("Transition not available"));
}
- private void previous_cb (Service service, owned ServiceAction action) {
+ private void previous_cb (Service service, ServiceAction action) {
action.return_error (701, _("Transition not available"));
}
return true;
}
- private void list_presets_cb (Service service,
- owned ServiceAction action) {
+ private void list_presets_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void select_preset_cb (Service service,
- owned ServiceAction action) {
+ private void select_preset_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
return true;
}
- private void get_mute_cb (Service service,
- owned ServiceAction action) {
+ private void get_mute_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void set_mute_cb (Service service,
- owned ServiceAction action) {
+ private void set_mute_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void get_volume_cb (Service service,
- owned ServiceAction action) {
+ private void get_volume_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
action.return ();
}
- private void set_volume_cb (Service service,
- owned ServiceAction action) {
+ private void set_volume_cb (Service service,
+ ServiceAction action) {
if (!this.check_instance_id (action)) {
return;
}
}
/* Browse action implementation */
- private void browse_cb (Service content_dir,
- owned ServiceAction action) {
+ private void browse_cb (Service content_dir,
+ ServiceAction action) {
Browse browse = new Browse (this, action);
browse.run.begin ();
}
/* Search action implementation */
- private void search_cb (Service content_dir,
- owned ServiceAction action) {
+ private void search_cb (Service content_dir,
+ ServiceAction action) {
var search = new Search (this, action);
search.run.begin ();
}
/* CreateObject action implementation */
- private void create_object_cb (Service content_dir,
- owned ServiceAction action) {
+ private void create_object_cb (Service content_dir,
+ ServiceAction action) {
var creator = new ItemCreator (this, action);
creator.run.begin ();
}
/* DestroyObject action implementation */
- private void destroy_object_cb (Service content_dir,
- owned ServiceAction action) {
+ private void destroy_object_cb (Service content_dir,
+ ServiceAction action) {
var destroyer = new ItemDestroyer (this, action);
destroyer.run.begin ();
}
/* ImportResource action implementation */
- private void import_resource_cb (Service content_dir,
- owned ServiceAction action) {
+ private void import_resource_cb (Service content_dir,
+ ServiceAction action) {
var import = new ImportResource (this, action);
import.completed.connect (this.on_import_completed);
}
/* GetTransferProgress action implementation */
- private void get_transfer_progress_cb (Service content_dir,
- owned ServiceAction action) {
+ private void get_transfer_progress_cb (Service content_dir,
+ ServiceAction action) {
if (action.get_argument_count () != 1) {
action.return_error (402, _("Invalid argument"));
}
/* StopTransferResource action implementation */
- private void stop_transfer_resource_cb (Service content_dir,
- owned ServiceAction action) {
+ private void stop_transfer_resource_cb (Service content_dir,
+ ServiceAction action) {
if (action.get_argument_count () != 1) {
action.return_error (402, _("Invalid argument"));
}
/* GetSystemUpdateID action implementation */
- private void get_system_update_id_cb (Service content_dir,
- owned ServiceAction action) {
+ private void get_system_update_id_cb (Service content_dir,
+ ServiceAction action) {
if (action.get_argument_count () != 0) {
action.return_error (402, _("Invalid argument"));
}
/* action GetSearchCapabilities implementation */
- private void get_search_capabilities_cb (Service content_dir,
- owned ServiceAction action) {
+ private void get_search_capabilities_cb (Service content_dir,
+ ServiceAction action) {
if (action.get_argument_count () != 0) {
action.return_error (402, _("Invalid argument"));
}
/* action GetSortCapabilities implementation */
- private void get_sort_capabilities_cb (Service content_dir,
- owned ServiceAction action) {
+ private void get_sort_capabilities_cb (Service content_dir,
+ ServiceAction action) {
if (action.get_argument_count () != 0) {
action.return_error (402, _("Invalid argument"));
}
/* action GetFeatureList implementation */
- private void get_feature_list_cb (Service content_dir,
- owned ServiceAction action) {
+ private void get_feature_list_cb (Service content_dir,
+ ServiceAction action) {
if (action.get_argument_count () != 0) {
action.return_error (402, _("Invalid argument"));
}
/* IsAuthorized and IsValided action implementations (fake) */
- private void is_authorized_cb (Service registrar,
- owned ServiceAction action) {
+ private void is_authorized_cb (Service registrar,
+ ServiceAction action) {
if (action.get_argument_count () != 1) {
action.return_error (402, _("Invalid argument"));
this.iface_entry = (ComboBoxText) builder.get_object (IFACE_ENTRY);
assert (this.iface_entry != null);
- this.context_manager = new ContextManager (null, 0);
+ this.context_manager = ContextManager.create (0);
try {
this.iface_entry.append_text (config.get_interface ());