Lines Matching refs:nvin
97 static int hastctl(struct nv *nvin, struct nv **nvout);
201 hastctl(struct nv *nvin, struct nv **nvout) in hastctl() argument
226 if (hast_proto_send(NULL, conn, nvin, NULL, 0) == -1) { in hastctl()
254 struct nv *nvin, *nvout; in set_role() local
257 nvin = nv_alloc(); in set_role()
258 nv_add_string(nvin, resource, "resource%d", 0); in set_role()
259 nv_add_uint8(nvin, HASTCTL_CMD_SETROLE, "cmd"); in set_role()
260 nv_add_uint8(nvin, role, "role"); in set_role()
261 error = hastctl(nvin, &nvout); in set_role()
262 nv_free(nvin); in set_role()
273 struct nv *nvin, *nvout; in update_resources() local
287 nvin = nv_alloc(); in update_resources()
288 nv_add_uint8(nvin, HASTCTL_CMD_STATUS, "cmd"); in update_resources()
289 nv_add_string(nvin, "all", "resource%d", 0); in update_resources()
290 error = hastctl(nvin, &nvout); in update_resources()
291 nv_free(nvin); in update_resources()