Lines Matching defs:res
43 event_send(const struct hast_resource *res, int event)
48 PJDLOG_ASSERT(res != NULL);
64 if (hast_proto_send(res, res->hr_event, nvout, NULL, 0) == -1) {
68 if (hast_proto_recv_hdr(res->hr_event, &nvin) == -1) {
84 event_recv(const struct hast_resource *res)
91 PJDLOG_ASSERT(res != NULL);
95 if (hast_proto_recv_hdr(res->hr_event, &nvin) == -1) {
136 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
137 hook_exec(res->hr_exec, evstr, res->hr_name, NULL);
148 if (hast_proto_send(res, res->hr_event, nvout, NULL, 0) == -1) {