Example #1
0
void module_init (RygelPluginLoader* loader) {
#line 88 "rygel-gst-plugin.c"
	char* MEDIA_RENDERER_DESC_PATH;
	RygelPlugin* plugin;
	RygelResourceInfo* _tmp0_;
	RygelResourceInfo* _tmp1_;
	RygelResourceInfo* _tmp2_;
#line 30 "rygel-gst-plugin.vala"
	g_return_if_fail (loader != NULL);
#line 31 "rygel-gst-plugin.vala"
	MEDIA_RENDERER_DESC_PATH = g_strdup (DATA_DIR "/xml/MediaRenderer2.xml");
#line 34 "rygel-gst-plugin.vala"
	plugin = rygel_plugin_new (MEDIA_RENDERER_DESC_PATH, "GstRenderer", _ ("GStreamer Renderer"), NULL);
#line 38 "rygel-gst-plugin.vala"
	rygel_plugin_add_resource (plugin, _tmp0_ = rygel_resource_info_new (RYGEL_CONNECTION_MANAGER_UPNP_ID, RYGEL_CONNECTION_MANAGER_UPNP_TYPE, RYGEL_CONNECTION_MANAGER_DESCRIPTION_PATH, RYGEL_TYPE_GST_CONNECTION_MANAGER));
#line 102 "rygel-gst-plugin.c"
	_rygel_resource_info_unref0 (_tmp0_);
#line 42 "rygel-gst-plugin.vala"
	rygel_plugin_add_resource (plugin, _tmp1_ = rygel_resource_info_new (RYGEL_GST_AV_TRANSPORT_UPNP_ID, RYGEL_GST_AV_TRANSPORT_UPNP_TYPE, RYGEL_GST_AV_TRANSPORT_DESCRIPTION_PATH, RYGEL_TYPE_GST_AV_TRANSPORT));
#line 106 "rygel-gst-plugin.c"
	_rygel_resource_info_unref0 (_tmp1_);
#line 46 "rygel-gst-plugin.vala"
	rygel_plugin_add_resource (plugin, _tmp2_ = rygel_resource_info_new (RYGEL_GST_RENDERING_CONTROL_UPNP_ID, RYGEL_GST_RENDERING_CONTROL_UPNP_TYPE, RYGEL_GST_RENDERING_CONTROL_DESCRIPTION_PATH, RYGEL_TYPE_GST_RENDERING_CONTROL));
#line 110 "rygel-gst-plugin.c"
	_rygel_resource_info_unref0 (_tmp2_);
#line 51 "rygel-gst-plugin.vala"
	rygel_plugin_loader_add_plugin (loader, plugin);
#line 114 "rygel-gst-plugin.c"
	_g_free0 (MEDIA_RENDERER_DESC_PATH);
	_g_object_unref0 (plugin);
}
static void dvb_plugin_factory_start_service_cb (DVBPluginFactory* self, guint32 status, GError* err) {
	DVBPlugin* _tmp0_;
	g_return_if_fail (self != NULL);
	if (err != NULL) {
		g_warning ("rygel-dvb-plugin-factory.vala:66: Failed to start DVB service: %s\n", err->message);
		g_warning ("rygel-dvb-plugin-factory.vala:68: DVB plugin disabled.\n");
		return;
	}
	_tmp0_ = NULL;
	rygel_plugin_loader_add_plugin (self->priv->loader, (RygelPlugin*) (_tmp0_ = dvb_plugin_new ()));
	(_tmp0_ == NULL) ? NULL : (_tmp0_ = (g_object_unref (_tmp0_), NULL));
}
Example #3
0
void module_init (RygelPluginLoader* loader) {
#line 54 "rygel-test-plugin.c"
	RygelPlugin* plugin;
#line 30 "rygel-test-plugin.vala"
	g_return_if_fail (loader != NULL);
#line 31 "rygel-test-plugin.vala"
	plugin = rygel_plugin_new_MediaServer ("Test", "Test Streams", RYGEL_TYPE_TEST_CONTENT_DIR, NULL);
#line 34 "rygel-test-plugin.vala"
	rygel_plugin_loader_add_plugin (loader, plugin);
#line 62 "rygel-test-plugin.c"
	_g_object_unref0 (plugin);
}
Example #4
0
void
module_init (RygelPluginLoader* loader) {
  RygelExampleServerPlugin* plugin;

  g_return_if_fail (loader != NULL);

  if (rygel_plugin_loader_plugin_disabled (loader, RYGEL_EXAMPLE_SERVER_PLUGIN_NAME)) {
    g_message ("Plugin '%s' disabled by user. Ignoring.",
      RYGEL_EXAMPLE_SERVER_PLUGIN_NAME);
    return;
  }

  plugin = rygel_example_server_plugin_new ();
  rygel_plugin_loader_add_plugin (loader, RYGEL_PLUGIN (plugin));
  g_object_unref (plugin);
}