bool is_not_set;
};
- constexpr struct optional nullopt = {0, true};
+ constexpr struct optional const nullopt = {0, true};
auto id = nullopt;
/* send the request */
void AFBClient::deactivateSurface(const char *label)
{
- UNUSED(label);
+ json_object *j = json_object_new_object();
+ json_object_object_add(j, "drawing_name", json_object_new_string(label));
+ call(AFBClient::wmAPI, "deactivate_surface", json_object_to_json_string(j));
+ json_object_put(j);
+ dispatch(-1);
}
void AFBClient::endDraw(const char *label)
{
- UNUSED(label);
+ json_object *j = json_object_new_object();
+ json_object_object_add(j, "drawing_name", json_object_new_string(label));
+ call(AFBClient::wmAPI, "enddraw", json_object_to_json_string(j));
+ json_object_put(j);
+ dispatch(-1);
}
/* called when wsj1 receives a method invocation */