summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@openismus.com>2012-10-23 10:02:43 +0200
committerMurray Cumming <murrayc@murrayc.com>2012-10-25 09:22:57 +0200
commitcae3405dd711dd5b6c644e0ad356ee96f94a336f (patch)
treee134ca0fb57aece2917c7fb0bb961224dcd57779 /src
parent8bf5efe310e0da821b748abbd6d538a900eb1d8a (diff)
downloadrygel-cae3405dd711dd5b6c644e0ad356ee96f94a336f.tar.gz
core, server: Plugin: Avoid public setting of some members.
This is not necessary so it seems unwise to make it public API already that cannot be removed later. This actually changes the access from bare struct access to GObject properties, allowing us later to respond properly to changes to the title. Bug #686682
Diffstat (limited to 'src')
-rw-r--r--src/librygel-core/rygel-plugin.vala14
-rw-r--r--src/librygel-server/rygel-media-server-plugin.vala2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/librygel-core/rygel-plugin.vala b/src/librygel-core/rygel-plugin.vala
index 1f72d5c2..9e89dc1a 100644
--- a/src/librygel-core/rygel-plugin.vala
+++ b/src/librygel-core/rygel-plugin.vala
@@ -64,19 +64,19 @@ public class Rygel.Plugin : GUPnP.ResourceFactory {
private static const int ICON_SMALL_WIDTH = 48;
private static const int ICON_SMALL_HEIGHT = 48;
- public string name;
- public string title;
- public string description;
+ public string name { get; private set; }
+ public string title { get; set; }
+ public string description { get; private set; }
// Path to description document
- public string desc_path;
+ public string desc_path { get; private set; }
public bool active { get; set; }
- public ArrayList<ResourceInfo> resource_infos;
- public ArrayList<IconInfo> icon_infos;
+ public ArrayList<ResourceInfo> resource_infos { get; private set; }
+ public ArrayList<IconInfo> icon_infos { get; private set; }
- public ArrayList<IconInfo> default_icons;
+ public ArrayList<IconInfo> default_icons { get; private set; }
/*
* TODO: Document the format of the template file, such as which tags/attributes
diff --git a/src/librygel-server/rygel-media-server-plugin.vala b/src/librygel-server/rygel-media-server-plugin.vala
index 58424540..23a9bd73 100644
--- a/src/librygel-server/rygel-media-server-plugin.vala
+++ b/src/librygel-server/rygel-media-server-plugin.vala
@@ -31,7 +31,7 @@ public abstract class Rygel.MediaServerPlugin : Rygel.Plugin {
private static const string MEDIA_SERVER_DESC_PATH =
BuildConfig.DATA_DIR + "/xml/MediaServer2.xml";
- public MediaContainer root_container;
+ public MediaContainer root_container { get; private set; }
/**
* Create an instance of the plugin.