Remove deprecated file afm.h
[src/app-framework-main.git] / src / afm-binding.c
index 3923462..508f6de 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "verbose.h"
 #include "utils-systemd.h"
-#include "afm.h"
 #include "afm-udb.h"
 #include "afm-urun.h"
 #include "wgt-info.h"
@@ -103,8 +102,8 @@ static int onrunid(struct afb_req req, const char *method, int *runid)
        struct json_object *json;
 
        json = afb_req_json(req);
-       if (wrap_json_unpack(json, "s", runid)
-               && wrap_json_unpack(json, "{ss}", "runid", runid)) {
+       if (wrap_json_unpack(json, "i", runid)
+               && wrap_json_unpack(json, "{si}", _runid_, runid)) {
                INFO("bad request method %s: %s", method,
                                        json_object_to_json_string(json));
                bad_request(req);
@@ -206,7 +205,11 @@ static void start(struct afb_req req)
 
        /* returns */
        resp = NULL;
+#if 0
        wrap_json_pack(&resp, "{si}", _runid_, runid);
+#else
+       wrap_json_pack(&resp, "i", runid);
+#endif
        afb_req_success(req, resp, NULL);
 }