<h1>The afm-user-daemon</h1>
<pre><code>version: 1
-Date: 14 March 2016
+Date: 15 March 2016
Author: José Bollo
</code></pre>
Includes the given application directory to
the database base of applications.
+ Can be repeated.
+
-r
--root directory
applications is always added. It is defined
to be /usr/share/afm/applications (may change).
+ Can be repeated.
+
-m
--mode (local|remote)
<p><strong>output</strong>: An object with the field “added” being the string for
the id of the added application.</p>
-<pre><code>{"added":"appli@x.y" }
+<pre><code>{"added":"appli@x.y"}
</code></pre>
<hr />
<p><strong>output</strong>: An array of states, one per running instance, as returned by
the methodd <strong><em>org.AGL.afm.user.state</em></strong>.</p>
-
-<a name="The.afb.plugin"></a>
-<h2>The afb plugin</h2>
-
-<p>The base of the path is FWKAPI = /api/fwk</p>
-
-<p>request FWKAPI/runnables
- – get the list of applications
- => [ APPDESC… ]</p>
-
-<p>request FWKAPI/detail?id=APPID
- subject to languages tuning
- => { “id”: “APPID”, “name”: “name”, “description”: “description”, “license”: “license”, “author”: “author” }</p>
-
-<p>/<em>
-request FWKAPI/icon?id=APPID
- subject to languages tuning
- => the icon image
-</em>/</p>
-
-<p>request FWKAPI/run?id=APPID
- => { “status”: “done/error”, “data”: { “runid”: “RUNID” } }</p>
-
-<p>request FWKAPI/running
- => [ { “id”: “RUNID”, “appid”: “APPID”, “state”: … }… ]</p>
-
-<p>request FWKAPI/state?id=RUNID
- => { “id”: “RUNID”, “appid”: “APPID”, “state”: … }</p>
-
-<p>request FWKAPI/stop?id=RUNID
- => { “error”: “message” ou “done”: “RUNID” }</p>
-
-<p>request FWKAPI/suspend?id=RUNID
- => { “error”: “message” ou “done”: “RUNID” }</p>
-
-<p>request FWKAPI/resume?id=RUNID
- => { “error”: “message” ou “done”: “RUNID” }</p>
-
-<p>/*
-request FWKAPI/features
- => returns the features of the current application</p>
-
-<p>request FWKAPI/preferences
- => returns the features of the current application
-*/</p>
</body>
</html>