summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-01-22afm-user-session: Create afm-user-sessionJosé Bollo2-0/+41
This new executable is the simplest user session manager: it waits the signal SIGTERM to stop and thus release the session. Change-Id: I557f27386c19ca3e2b28b21dd6a58918e9ca47be Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-01-19afm-binding: Allow use of appid instead of runidJosé Bollo3-6/+47
This facility avoid the double call 'ps', 'kill' and allow a single call to 'kill' with the application id. Bug-AGL: SPEC-1189 Change-Id: I71861c06847e855b05dc8294ab1ea6785f555416 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-01-19afm-binding: Common code getting application idJosé Bollo1-22/+37
Repeated code is made common to the verbs detail, start, once. Change-Id: I9bc15bf22aeb7156d0892e71f56f86f3930866f6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-14wgt-json: Add commentsJosé Bollo1-46/+126
Change-Id: If75c3089c9506219601d35b49c132a9b670c026e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-14Update of src/README.mdJosé Bollo1-29/+47
Change-Id: Id806a36fbc58df8dccb89f02fa86575c2aafd63e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-08Clean unused afm-main-binding... filesJosé Bollo2-420/+0
Change-Id: Ifc8da473e3454f10bfd1aad2500db579a732b43e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-08Remove deprecated file afm.hJosé Bollo3-24/+2
Change-Id: Ie524342b69d386c2d6f667dde7cde0d68a0d29c8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Rework on systemd start of user sessionsJosé Bollo1-1/+1
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-binding: Fix bug in evaluation of runidJosé Bollo1-2/+2
Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24wgtpkg-unit: remove metadata.app-data-dir variableJosé Bollo1-1/+0
Change-Id: I51cbbad8ecdc371f457a008808c8c0f63501ac2b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-udb: add commentsJosé Bollo1-1/+5
Change-Id: I03d560a8fca3a064fa526afb55c951062fa7a78e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-binding: Restore previous return for 'start'José Bollo1-0/+4
Change-Id: I28cd41391d207b59d74d2ff661e5981b9947c716 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Don't rely on features available for user unitsJosé Bollo1-1/+1
Change-Id: I117b8de2eec6cba9f475e18b794f90347bc184f8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24bug fixes and improvementsJosé Bollo2-16/+14
Change-Id: I2fc3de0a84e471e8e87f43170c20f8d6d0d05fdc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Restore compilation of native-sdkJosé Bollo2-5/+11
Change-Id: I3855854407ad47c2b9a2288b8425513de5ae94d3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Remove afm-system-daemonJosé Bollo3-342/+26
Change-Id: I1e6c0488b7183724a65fcc06fd3cf6909e0efd53 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24urun/udb: integration of user UIDJosé Bollo5-116/+118
Managing user applications at the system levels requires to manage the user application in a single process. This process must manage the user identity (UID). Change-Id: I1ce8c9ca66ed0f916ecb2931ae014b08b113fa23 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-user-daemon: rewriten to use direct APIJosé Bollo2-370/+109
The coming version of afm-system-daemon will no more use DBUS but will provide a websocket API. Change-Id: I5ff0488ff5ec5b2b9a193d869efe8a9c5896516f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-binding: provide afm as a unique bindingJosé Bollo6-46/+1815
This is the first stone (not fully tested) to implment the afm-main as a binding. At the end, this component will replace afm-user-daemon and afm-system-daemon. Change-Id: I6eafa7d26800f45ae58dd51aa9ff8008cdb3ff59 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24utils-systemd: Offer way to set systemd's busesJosé Bollo2-14/+27
Change-Id: I8035c10e8f769b7912046b432d43f97297c039b2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-udb: keep looking at valid unitsJosé Bollo1-3/+4
Returning an error when a unit is not valid has drawbacks. With this commit, bogus units are ignored. The benefit is to be able of using valid units instead of using none because in the previous case, all the DB was cancelled. Change-Id: Id1e4d6d5efd4af7e118b9d549238bd5e3d6c52d7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Start user units at the system levelJosé Bollo3-7/+35
When service name end with @ it means that the user UID must be provided. Change-Id: I6707df0151b7cab985cfc53a81fccf6a7150c9a3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-udb: remove comments and join lines of unit filesJosé Bollo1-1/+60
Change-Id: I9d901e074925a666190d5e3007a66aea81ef6253 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19wgtpkg-unit: improve naming (minor)José Bollo3-8/+8
Change-Id: I5dae72c8dd925646b18c30ab4ef60382e43c744b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Remove legacy mode without systemdJosé Bollo11-2693/+8
Change-Id: Id26322a1a46baa8b53b6d3c214477ae50a7c99f6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Extend database values with arraysJosé Bollo1-3/+38
Change-Id: I9ab94413abce0d13102711091ec48a5894ccadd9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Include json description for callbacksJosé Bollo3-4/+14
This tiny modification is mainly for debugging. Change-Id: Ieda90da49d365a7b092a02833227c869bd0397a4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-05Update version of toolseel_4.99.3eel_4.99.2eel_4.99.1eel/4.99.3eel/4.99.2eel/4.99.14.99.34.99.24.99.1José Bollo6-7/+117
Change-Id: I82bb06d2be92beb377d6c3cafffae49c65e9f20b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-05Fix warnings 'implicit-fallthrough' of gcc 7José Bollo4-4/+8
Change-Id: I32b42fd8db481fcbdce4b934fc990c118293850d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-05Upgrade to afb-daemon (binder) version 4.0 at leastJosé Bollo3-58/+44
Change-Id: I6d2a6e7e2781f0b2b3471f698912990961d84865 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08wgtpkg-install: search in subdir "htdocs" alsoJosé Bollo1-0/+11
For widgets that are fully HTML, the search of the content was not checking the subdirectory "htdocs" that is enforced elsewhere. This commits add the search of the content in the subdirectory "htdocs". This is a temporarily fix. A better complete solution has to be delivered later. Bug-AGL: SPEC-808 Change-Id: I8bef7c4a31ff919827ceca05e203c2b277cf7657 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-07Handle file-properties for setting eXecutable flagJosé Bollo1-0/+34
This commits introduce the feature "urn:AGL:widget:file-properties". This feature actually only allows to set execution flag to files of the widget. Example: <feature name="urn:AGL:widget:file-properties"> <param name="flite" value="executable" /> <param name="jtalk" value="executable" /> </feature> Bug-AGL: SPEC-384 Change-Id: If13ca3b1015576317fd52cb9540b77d0e2675f67 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-11Don't list terminated processesJosé Bollo1-7/+8
Listing processes that are terminated might be disturbing. So it is now removed. In some future, it should be good to return on option even terminated processes with an indication of their termination status. Bug-AGL: SPEC-728 Change-Id: I6d5c892bc5e618830cb41de7d664c2443525af96 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-11Allow to install widget with no iconJosé Bollo2-7/+11
This patch allows a widget to not specify any icon but it still enforce when an icon is specified to specify only one icon and to provide the attribute "src". Bug-AGL: SPEC-702 Change-Id: I916b7581ac1f486a4a1d5774d0885c3711029f69 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-03install: improve port detectionJosé Bollo1-10/+52
Check any existing X-AFM-http-port or X-AFM--http-port. Change-Id: I1111095664535c849c76870f2e5104fb07099ab4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-28Fix bad error reportingJosé Bollo1-0/+3
The use of %m was buggy due to the implementation of 'vverbose': it always returned ENOTTY Inappropriate ioctl for device Change-Id: I0b7dd4c2f4ce5a45611042a8b9ba3e6db0e60803 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-27Moves handling of reloadsJosé Bollo3-39/+21
The new version ensures that the daemons are responsibles of reloading the units. This is no more done by default. Change-Id: I9ff33a628dfc05e429dbc7bf127d641691f2a3b9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix socket (de)activation at (de)installJosé Bollo3-0/+47
When installing or deinstalling, it is needed to issue a "systemctl (--user) restart sockets.target" This patch implement it on user side. To be improved. Change-Id: I152eb6a1cf5df50b1fe3143837d6d42ee6619349 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix daemon reload (to be improved)José Bollo2-1/+5
Change-Id: Ica099aa439e6c022de4982a58b0990065d932b0b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-23Fix infinite loop in wgt_info_paramJosé Bollo1-0/+1
Change-Id: I8a623a40e48108c8999083667dae1230da2d206f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-12fix binding version to 1José Bollo1-0/+1
Change-Id: I98e6de97e170b8cbb51b48e0e3cf7e52e6def7f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-06-12Fix lack of error message on mustach issueJosé Bollo1-1/+24
Change-Id: I16139c133d7031e38f4c63ff6369f1d7478fc86f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-31Check content existing and fix executableJosé Bollo1-14/+72
Change-Id: I4060334cb9c677df1ce86c99a1cb37abc007f3c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-30Fix lack of message when setting exec bitJosé Bollo1-3/+7
Nothing was telling that the content couldn't be set as executable. Note that nothing is made to check that a content (executable or not) exist. Also note that installing several executables for one widget isn't possible now. Change-Id: I10373fa27cd8d1d90c292e3529d8a5eec62bb8f0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Rework on parsing units confdab_3.99.1dab/3.99.13.99.1José Bollo1-37/+64
Change-Id: Ia95dae65e74a42f9f49154c9421391421f9ca1c0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Implement deinstallation of unitsJosé Bollo1-1/+19
Change-Id: I7d9812211bb75f34d55b4035d5b4a3b7ea66f461 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-05-02Use structures for generating unitsJosé Bollo4-92/+119
Change-Id: I7258a494d62ef22219c973048d052965cb5fea28 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-04-03Handle systemd's "inactive" state as transientJosé Bollo1-1/+1
Inactive is returned sometimes but it means that the service is not started yet not that it failed to start. AGL-Issue: SPEC-520 Change-Id: I3b39b983b45a0f6ee449958100595c5c486cbfdd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-21Allows or in mustache instanciationJosé Bollo1-2/+33
This allows to simplify the configuration file afm-unit.conf. Restore the type application/vnd.agl.service Change-Id: Iaadde2c2d96155cea6d1b8bee4d3c78e885cf44a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-20Provide unit in config.xml and documentationJosé Bollo4-42/+38
This commit remove urn:AGL:widget:provided-application in favour of urn:AGL:widget:provided-unit. In the same time, the feature urn:AGL:widget:provided-api must be attached to a unit. This will enable to export more than one API for a unit if needed. Change-Id: I17ade3651db2cd61402875333d063ee05cf57a10 Signed-off-by: José Bollo <jose.bollo@iot.bzh>