Created
February 17, 2011 11:11
-
-
Save chihchun/831520 to your computer and use it in GitHub Desktop.
DBus APIs for nextvod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbus-send --system --print-reply --dest=com.fulldynamic.hal /com/fulldynamic/hal org.freedesktop.DBus.Introspectable.Introspect | |
method return sender=:1.1 -> dest=:1.12 reply_serial=2 | |
string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" | |
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> | |
<node> | |
<interface name="com.fulldynamic.hal"> | |
<signal name="playerStatusEOF"> | |
</signal> | |
<signal name="playerStatusBuffering"> | |
</signal> | |
<signal name="playerStatusPlayTimeout"> | |
</signal> | |
<signal name="WifiDongleInsertStatusChanged"> | |
<arg name="inserted" type="b" direction="out"/> | |
</signal> | |
<method name="GetMac"> | |
<arg type="i" direction="out"/> | |
<arg name="device" type="s" direction="in"/> | |
<arg name="mac" type="s" direction="out"/> | |
</method> | |
<method name="SetIP"> | |
<arg type="i" direction="out"/> | |
<arg name="IP" type="s" direction="in"/> | |
<arg name="NetMask" type="s" direction="in"/> | |
<arg name="GateWay" type="s" direction="in"/> | |
<arg name="DNS1" type="s" direction="in"/> | |
<arg name="DNS2" type="s" direction="in"/> | |
<arg name="isDhcp" type="b" direction="in"/> | |
</method> | |
<method name="GetIP"> | |
<arg type="i" direction="out"/> | |
<arg name="device" type="s" direction="in"/> | |
<arg name="ip" type="s" direction="out"/> | |
<arg name="netmask" type="s" direction="out"/> | |
<arg name="gateway" type="s" direction="out"/> | |
<arg name="dns1" type="s" direction="out"/> | |
<arg name="dns2" type="s" direction="out"/> | |
</method> | |
<method name="GetDHCPStatus"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="CheckUpdate"> | |
<arg type="i" direction="out"/> | |
<arg name="group" type="s" direction="in"/> | |
<arg name="fullurl" type="s" direction="in"/> | |
<arg name="partialurl" type="s" direction="in"/> | |
<arg name="version" type="s" direction="in"/> | |
</method> | |
<method name="DownloadFirmware"> | |
<arg type="i" direction="out"/> | |
<arg name="speed" type="u" direction="in"/> | |
</method> | |
<method name="DownloadFirmware"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="ConfirmUpdate"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="GetDownloadPercentage"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="UpdateGetStatus"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="SetDownloadFirmwareSpeedLimit"> | |
<arg type="i" direction="out"/> | |
<arg name="limit" type="u" direction="in"/> | |
</method> | |
<method name="WifiScanAP"> | |
<arg type="i" direction="out"/> | |
<arg name="ap" type="aas" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out1" value="QList<QStringList>"/> | |
<arg name="secure" type="ab" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out2" value="QList<bool>"/> | |
</method> | |
<method name="WifiConnectAP"> | |
<arg type="i" direction="out"/> | |
<arg name="ssid" type="s" direction="in"/> | |
<arg name="bssid" type="s" direction="in"/> | |
<arg name="passwd" type="s" direction="in"/> | |
<arg name="timeout" type="i" direction="in"/> | |
</method> | |
<method name="WifiConnectAP"> | |
<arg type="i" direction="out"/> | |
<arg name="ssid" type="s" direction="in"/> | |
<arg name="bssid" type="s" direction="in"/> | |
<arg name="passwd" type="s" direction="in"/> | |
<arg name="autoconnect" type="b" direction="in"/> | |
<arg name="channel" type="s" direction="in"/> | |
<arg name="authmode" type="i" direction="in"/> | |
<arg name="encrypt" type="i" direction="in"/> | |
<arg name="mode" type="i" direction="in"/> | |
<arg name="timeout" type="i" direction="in"/> | |
</method> | |
<method name="WifiGetStatus"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="WifiGetDongleInserted"> | |
<arg type="b" direction="out"/> | |
</method> | |
<method name="SaveSettings"> | |
</method> | |
<method name="RestoreDefaultSettings"> | |
</method> | |
<method name="ControlLED"> | |
<arg type="i" direction="out"/> | |
<arg name="led" type="i" direction="in"/> | |
<arg name="on" type="b" direction="in"/> | |
</method> | |
<method name="SetResolution"> | |
<arg type="i" direction="out"/> | |
<arg name="resolution" type="i" direction="in"/> | |
</method> | |
<method name="SetAspectRatio"> | |
<arg type="i" direction="out"/> | |
<arg name="ar" type="i" direction="in"/> | |
</method> | |
<method name="SetScreenFormat"> | |
<arg type="i" direction="out"/> | |
<arg name="format" type="i" direction="in"/> | |
</method> | |
<method name="SetTVMode"> | |
<arg type="i" direction="out"/> | |
<arg name="mode" type="i" direction="in"/> | |
</method> | |
<method name="ControlVolume"> | |
<arg type="i" direction="out"/> | |
<arg name="up" type="b" direction="in"/> | |
</method> | |
<method name="MuteAudio"> | |
<arg type="i" direction="out"/> | |
<arg name="mute" type="b" direction="in"/> | |
</method> | |
<method name="Sleep"> | |
<arg type="i" direction="out"/> | |
<arg name="sleep" type="b" direction="in"/> | |
</method> | |
<method name="SetWindow"> | |
<arg type="i" direction="out"/> | |
<arg name="fullscreen" type="b" direction="in"/> | |
<arg name="x" type="i" direction="in"/> | |
<arg name="y" type="i" direction="in"/> | |
<arg name="w" type="i" direction="in"/> | |
<arg name="h" type="i" direction="in"/> | |
</method> | |
<method name="GetHWInfomation"> | |
<arg type="i" direction="out"/> | |
<arg name="dev_id" type="s" direction="out"/> | |
<arg name="max_id" type="s" direction="out"/> | |
<arg name="sw_ver" type="s" direction="out"/> | |
<arg name="hw_ver" type="s" direction="out"/> | |
</method> | |
<method name="SetTime"> | |
<arg type="i" direction="out"/> | |
<arg name="seconds" type="x" direction="in"/> | |
</method> | |
<method name="Reboot"> | |
<arg type="b" direction="out"/> | |
</method> | |
<method name="SetAspectRatioAndScreenFormat"> | |
</method> | |
<method name="PPPoESet"> | |
<arg type="i" direction="out"/> | |
<arg name="user" type="s" direction="in"/> | |
<arg name="passwd" type="s" direction="in"/> | |
</method> | |
<method name="PPPoEStart"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="PPPoEStop"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="GetPPPoEState"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="initSmitPlayer"> | |
<arg type="i" direction="out"/> | |
<arg name="ServiceServer" type="s" direction="in"/> | |
<arg name="ReportServer" type="s" direction="in"/> | |
<arg name="ver" type="s" direction="in"/> | |
<arg name="serial" type="s" direction="in"/> | |
<arg name="type" type="s" direction="in"/> | |
<arg name="model" type="s" direction="in"/> | |
<arg name="brand" type="s" direction="in"/> | |
<arg name="info" type="s" direction="in"/> | |
<arg name="size" type="i" direction="in"/> | |
<arg name="start_time" type="i" direction="in"/> | |
</method> | |
<method name="uninitSmitPlayer"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="SmitPlayerPlay"> | |
<arg type="i" direction="out"/> | |
<arg name="param" type="(suiissqsqsqqu)" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="FDVideoParameters"/> | |
</method> | |
<method name="SmitPlayerStop"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="SmitPlayerPauseResume"> | |
<arg type="i" direction="out"/> | |
</method> | |
<method name="SmitPlayerSeek"> | |
<arg type="i" direction="out"/> | |
<arg name="time" type="i" direction="in"/> | |
</method> | |
<method name="SmitPlayerGetPlayerTime"> | |
<arg name="begin" type="t" direction="out"/> | |
<arg name="end" type="t" direction="out"/> | |
<arg name="current" type="t" direction="out"/> | |
</method> | |
<method name="SmitPlayerGetPlayerStatus"> | |
<arg name="status" type="(sxxxi)" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out1" value="SDM_OMIPlayer_Status_t"/> | |
</method> | |
<method name="SmitPlayerSetProactiveDownloadingTask"> | |
<arg type="i" direction="out"/> | |
<arg name="guid" type="s" direction="in"/> | |
<arg name="begin" type="t" direction="in"/> | |
<arg name="end" type="t" direction="in"/> | |
</method> | |
<method name="SmitPlayerSetPreloadTask"> | |
<arg type="i" direction="out"/> | |
<arg name="guid" type="s" direction="in"/> | |
<arg name="begin" type="t" direction="in"/> | |
<arg name="end" type="t" direction="in"/> | |
</method> | |
<method name="StopAllDownloadTasks"> | |
</method> | |
<method name="DownloadListofAdvertisement"> | |
<arg type="i" direction="out"/> | |
<arg name="guid" type="as" direction="in"/> | |
<arg name="vid" type="aq" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="QList<quint16>"/> | |
<arg name="endtime" type="at" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In2" value="QList<quint64>"/> | |
<arg name="percentage" type="au" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In3" value="QList<quint32>"/> | |
<arg name="status" type="ai" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In4" value="QList<int>"/> | |
<arg name="limit" type="i" direction="in"/> | |
</method> | |
<method name="GetDownloadListStatus"> | |
<arg name="guid" type="as" direction="out"/> | |
<arg name="vid" type="aq" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out2" value="QList<quint16>"/> | |
<arg name="endtime" type="at" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out3" value="QList<quint64>"/> | |
<arg name="percentage" type="au" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out4" value="QList<quint32>"/> | |
<arg name="status" type="ai" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out5" value="QList<int>"/> | |
</method> | |
<method name="RemoveAllDownloadingTask"> | |
<arg type="i" direction="out"/> | |
<arg name="guid" type="as" direction="in"/> | |
<arg name="vid" type="aq" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="QList<quint16>"/> | |
<arg name="endtime" type="at" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In2" value="QList<quint64>"/> | |
<arg name="percentage" type="au" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In3" value="QList<quint32>"/> | |
<arg name="status" type="ai" direction="in"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.In4" value="QList<int>"/> | |
<arg name="limit" type="i" direction="in"/> | |
</method> | |
<method name="SmitPlayerSetUploadLimit"> | |
<arg type="i" direction="out"/> | |
<arg name="speed" type="i" direction="in"/> | |
</method> | |
<method name="EnableHDMIOutput"> | |
<arg type="i" direction="out"/> | |
<arg name="enable" type="b" direction="in"/> | |
</method> | |
<method name="Dhcp"> | |
<arg type="i" direction="out"/> | |
</method> | |
</interface> | |
<interface name="org.freedesktop.DBus.Properties"> | |
<method name="Get"> | |
<arg name="interface_name" type="s" direction="in"/> | |
<arg name="property_name" type="s" direction="in"/> | |
<arg name="value" type="v" direction="out"/> | |
</method> | |
<method name="Set"> | |
<arg name="interface_name" type="s" direction="in"/> | |
<arg name="property_name" type="s" direction="in"/> | |
<arg name="value" type="v" direction="in"/> | |
</method> | |
<method name="GetAll"> | |
<arg name="interface_name" type="s" direction="in"/> | |
<arg name="values" type="a{sv}" direction="out"/> | |
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/> </method> | |
</interface> | |
<interface name="org.freedesktop.DBus.Introspectable"> | |
<method name="Introspect"> | |
<arg name="xml_data" type="s" direction="out"/> | |
</method> | |
</interface> | |
</node> | |
" | |
Usage: | |
# dbus-send --system --print-reply --dest=com.fulldynamic.hal /com/fulldynamic/hal com.fulldynamic.hal.GetDHCPStatus | |
method return sender=:1.1 -> dest=:1.6 reply_serial=2 | |
int32 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment