+// Dummy register_surface implementation
+void register_surface(afb_req req) {
+ AFB_DEBUG("register_surface");
+
+ auto jo = afb_req_json(req);
+ json_object *jappid;
+ if (! json_object_object_get_ex(jo, "appid", &jappid)) {
+ afb_req_fail(req, "failed", "register_surface needs 'appid' integer argument");
+ return;
+ }
+
+ json_object *jsurfid;
+ if (! json_object_object_get_ex(jo, "surfaceid", &jsurfid)) {
+ afb_req_fail(req, "failed", "register_surface needs 'surfaceid' integer argument");
+ return;
+ }
+
+ int32_t appid = json_object_get_int(jappid);
+ int32_t surfid = json_object_get_int(jsurfid);