projects
/
contrib
/
cloudeebus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ae06c33
)
dbus service : adding manifest providing security
author
Frederic PAUT
<frederic.paut@linux.intel.com>
Wed, 3 Jul 2013 13:01:17 +0000
(15:01 +0200)
committer
Frederic PAUT
<frederic.paut@linux.intel.com>
Wed, 3 Jul 2013 13:01:17 +0000
(15:01 +0200)
doc/agent/server.html
patch
|
blob
|
history
diff --git
a/doc/agent/server.html
b/doc/agent/server.html
index
f54698d
..
b7ab8de
100644
(file)
--- a/
doc/agent/server.html
+++ b/
doc/agent/server.html
@@
-17,7
+17,17
@@
<body>
<center><h1>cloudeebus</h1></center>
<br>
<body>
<center><h1>cloudeebus</h1></center>
<br>
- <textarea style="width:80%" rows="32" id="script">var sampleXml= '<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"\n"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">\n<node><interface name="org.cloudeebus.Sample1"><method name="Release"></method><method name="Add"><arg type="i" name="arg1"/><arg type="i" name="arg2"/><arg type="i" name="result" direction="out"/></method><method name="Variant"><arg type="a{sv}" name="arg1"/><arg type="a{sv}" name="result" direction="out"/></method><signal name="ResultChanged"><arg type="v" name="result"/></signal></interface><interface name="org.cloudeebus.Sample2"><method name="Div"><arg type="d" name="arg1"/><arg type="d" name="arg2"/><arg type="d" name="result" direction="out"/></method></interface></node>';
+ <textarea style="width:80%" rows="32" id="script">
+var manifest = {
+ name: "cloudeebus",
+ key: "secret",
+ services: [
+ "org.cloudeebus.Sample"
+ ]
+};
+
+
+var sampleXml= '<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"\n"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">\n<node><interface name="org.cloudeebus.Sample1"><method name="Release"></method><method name="Add"><arg type="i" name="arg1"/><arg type="i" name="arg2"/><arg type="i" name="result" direction="out"/></method><method name="Variant"><arg type="a{sv}" name="arg1"/><arg type="a{sv}" name="result" direction="out"/></method><signal name="ResultChanged"><arg type="v" name="result"/></signal></interface><interface name="org.cloudeebus.Sample2"><method name="Div"><arg type="d" name="arg1"/><arg type="d" name="arg2"/><arg type="d" name="result" direction="out"/></method></interface></node>';
cloudeebus.log = function(msg) {
document.getElementById("log").innerHTML += msg + "\n";
cloudeebus.log = function(msg) {
document.getElementById("log").innerHTML += msg + "\n";
@@
-97,7
+107,7
@@
function connectSuccess() {
}
}
}
}
-cloudeebus.connect("ws://localhost:9003",
null
, connectSuccess, errorCB);
+cloudeebus.connect("ws://localhost:9003",
manifest
, connectSuccess, errorCB);
</textarea>
<br>
- <input type="button" value="run script" onclick="evalScript()"/>
</textarea>
<br>
- <input type="button" value="run script" onclick="evalScript()"/>