diff options
author | Ludovic Ferrandis <ludovic.ferrandis@intel.com> | 2013-08-21 17:16:31 +0200 |
---|---|---|
committer | Regis Merlino <regis.merlino@intel.com> | 2013-08-22 17:13:02 +0200 |
commit | 5dddbc2ea8654018c052e114aafad320fcc5b382 (patch) | |
tree | 6c7f79d8eedba762f070ce8d847b81ac1b9ab835 /doc | |
parent | f5577b8a4542208938acbeb116cc35b46e295d9e (diff) | |
download | dleyna-server-5dddbc2ea8654018c052e114aafad320fcc5b382.tar.gz |
[Network Filtering] Add Network Filtering support
Add 2 new settings:
1 - netf_enabled (boolean): To activate or deactivate the network filtering
2 - netf_entries (str list): List of supported network
Add org.freedesktop.DBus.Properties DBUS Interface to
com.intel.dLeynaServer.Manager root object.
Add 4 new methodes to com.intel.dLeynaServer.Manager interface
1 - WhiteListEnable
2 - WhiteListAddEntries
3 - WhiteListRemoveEntries
4 - WhiteListClear
Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/server/dbus/API.txt | 51 |
1 files changed, 44 insertions, 7 deletions
diff --git a/doc/server/dbus/API.txt b/doc/server/dbus/API.txt index cf69b5f..28ac535 100644 --- a/doc/server/dbus/API.txt +++ b/doc/server/dbus/API.txt @@ -36,9 +36,9 @@ The Manager Object: ------------------- There is only ever a single instance of this object. The manager -object exposes a single d-Bus interface, -com.intel.dLeynaServer.Manager. - +object exposes two d-Bus interfaces: +1 - com.intel.dLeynaServer.Manager. +2 - org.freedesktop.DBus.Properties. com.intel.dLeynaServer.Manager ------------------------------ @@ -46,7 +46,7 @@ com.intel.dLeynaServer.Manager Methods: ---------- -The interface com.intel.dLeynaServer.Manager contains 5 methods. +The interface com.intel.dLeynaServer.Manager contains 10 methods. Descriptions of each of these methods along with their d-Bus signatures are given below. @@ -127,6 +127,43 @@ discover new DMSs which for some reason were not detected when either they, or the device on which dLeyna-server runs, was started or joined the network. New in version 0.0.2. +WhiteListEnable(b enabled) -> void + +Enable or disable the Network Filtering feature. +When enabled, only devices that are on allowed networks will be available. + +WhiteListAddEntries(as EntryList) -> void + +Add new entries to the list of allowed networks. An Entry could be an interface +name (eth0), an ip address (127.0.0.1) or a SSID (MyWiFi) + +WhiteListRemoveEntries(as EntryList) -> void + +Remove entries from the list of allowed networks. + +WhiteListClear() -> void + +Remove all entries from the list, but it doesn't change the 'enabled' flag. + + +Properties: +--------- + +The com.intel.dLeynaServer.Manager interface exposes information via a number +of d-Bus properties. These properties are described below: + +|------------------------------------------------------------------------------| +| Name | Type |m/o*| Description | +|------------------------------------------------------------------------------| +| WhiteListEntries | as | m | The list of entries that compose the | +| | | | white list used to filter the networks. | +|------------------------------------------------------------------------------| +| WhiteListEnabled | b | m | True if the Network Filtering is active.| +|------------------------------------------------------------------------------| + +A org.freedesktop.DBus.Properties.PropertiesChanged signal is emitted when +these properties change. + Signals: --------- @@ -473,7 +510,7 @@ dLeyna-server solves these two different problems in two ways: Adding an additional value to MediaServer2Spec's Type property breaks our compliance with this spec a little, but it is necessary to achieve UPnP -certification. +certification. Additional Properties: ---------------------- @@ -586,7 +623,7 @@ Additional properties unsupported by org.gnome.MediaContainer2 |---------------------------------------------------------------------------| | Name | Type | m/o* | Description | |---------------------------------------------------------------------------| -| CreateClasses |a(sb) | o | The CreateClasses property is an | +| CreateClasses |a(sb) | o | The CreateClasses property is an | | | | | array of tuples (sb) that lists | | | | | the extended types of objects that| | | | | that can be created in a | @@ -726,7 +763,7 @@ suitable location for the file. The CreateContainer method creates a new child container. DisplayName is the name of the new container, -TypeEx is the extended type and ChildTypes is an array of extended +TypeEx is the extended type and ChildTypes is an array of extended types that can be stored in the new folder, e.g., ['video','container']. A special value of ['*'] indicates that no restriction is placed on the types of objects that can be stored in the container. |