WB_VL_ERR_CHECK_GOTO(varlink_object_set_object(
out, "record", record), err_free_out);
+ if (CHECK_DEBUGLVL(DBGLVL_DEBUG)) {
+ char *json = NULL;
+ varlink_object_to_json(out, &json);
+ if (json != NULL) {
+ DBG_DEBUG("Sending group record reply (continues='%s'): '%s'",
+ continues ? "y":"n", json);
+ free(json);
+ }
+ }
+
varlink_call_reply(call, out, continues ? VARLINK_REPLY_CONTINUES : 0);
varlink_object_unref(out);
return;
out, "userName", username), err_free_out);
WB_VL_ERR_CHECK_GOTO(varlink_object_set_string(
out, "groupName", groupname), err_free_out);
+
+ if (CHECK_DEBUGLVL(DBGLVL_DEBUG)) {
+ char *json = NULL;
+ varlink_object_to_json(out, &json);
+ if (json != NULL) {
+ DBG_DEBUG("Sending membership reply (continues='%s'): '%s'",
+ continues ? "y":"n", json);
+ free(json);
+ }
+ }
+
varlink_call_reply(call, out, continues ? VARLINK_REPLY_CONTINUES : 0);
err_free_out:
WB_VL_ERR_CHECK_GOTO(varlink_object_set_bool(out, "incomplete", false), err_free_out);
WB_VL_ERR_CHECK_GOTO(varlink_object_set_object(out, "record", record), err_free_out);
+ if (CHECK_DEBUGLVL(DBGLVL_DEBUG)) {
+ char *json = NULL;
+ varlink_object_to_json(out, &json);
+ if (json != NULL) {
+ DBG_DEBUG("Sending user record reply: '%s'", json);
+ free(json);
+ }
+ }
+
varlink_call_reply(call, out, continues ? VARLINK_REPLY_CONTINUES : 0);
varlink_object_unref(out);
return;