summaryrefslogtreecommitdiffstats
path: root/src/afm-urun.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-16 09:39:08 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-17 13:01:40 +0100
commitb6afa1aa893544b459cb767cc5a2ad8d2148228c (patch)
tree94e9b07824b155b08ad00ca48697dadbdaf6514a /src/afm-urun.h
parent3d3964b1190c03ff7463aaae9f712dfc67291c91 (diff)
utils-systemd: implement start/stop of unitsx-first-with-systemd
This implementation is very basic and must be improved. Change-Id: Id1540e646c83285c61849092bbd8fb645c0954ed Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-urun.h')
-rw-r--r--src/afm-urun.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/afm-urun.h b/src/afm-urun.h
new file mode 100644
index 0000000..7f85e0f
--- /dev/null
+++ b/src/afm-urun.h
@@ -0,0 +1,28 @@
+/*
+ Copyright 2015, 2016, 2017 IoT.bzh
+
+ author: José Bollo <jose.bollo@iot.bzh>
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+struct afm_udb;
+
+extern int afm_urun_start(struct json_object *appli);
+extern int afm_urun_once(struct json_object *appli);
+extern int afm_urun_terminate(int runid);
+extern int afm_urun_pause(int runid);
+extern int afm_urun_resume(int runid);
+extern struct json_object *afm_urun_list(struct afm_udb *db);
+extern struct json_object *afm_urun_state(struct afm_udb *db, int runid);
+