/*
- * Copyright (C) 2015, 2016 IoT.bzh
+ * Copyright (C) 2015, 2016, 2017 IoT.bzh
* Author "Fulup Ar Foll"
*
* Licensed under the Apache License, Version 2.0 (the "License");
#include <assert.h>
#include <json-c/json.h>
+#define AFB_BINDING_VERSION 1
#include <afb/afb-binding.h>
#include "utils-jbus.h"
static const char _install_[] = "install";
static const char _local_[] = "local";
static const char _mode_[] = "mode";
+static const char _once_[] = "once";
static const char _pause_[] = "pause";
static const char _remote_[] = "remote";
static const char _resume_[] = "resume";
static const char _stop_[] = "stop";
static const char _terminate_[] = "terminate";
static const char _uninstall_[] = "uninstall";
-static const char _uri_[] = "uri";
static const struct afb_binding_interface *binder;
free(query);
}
+static void once(struct afb_req request)
+{
+ call_appid(request, _once_);
+}
+
static void terminate(struct afb_req request)
{
call_runid(request, _terminate_);
{_runnables_, AFB_SESSION_CHECK, runnables, "Get list of runnable applications"},
{_detail_ , AFB_SESSION_CHECK, detail, "Get the details for one application"},
{_start_ , AFB_SESSION_CHECK, start, "Start an application"},
+ {_once_ , AFB_SESSION_CHECK, once, "Start once an application"},
{_terminate_, AFB_SESSION_CHECK, terminate, "Terminate a running application"},
{_pause_ , AFB_SESSION_CHECK, pause, "Pause a running application"},
{_resume_ , AFB_SESSION_CHECK, resume, "Resume a paused application"},