- destroy_job_string(js);
- }
- return rc;
-}
-
-/*
- * Broadcasts the 'evtid' with its 'object'
- */
-static int broadcast_evtid(struct afb_evtid *evtid, struct json_object *object)
-{
- struct job_evtid *je;
- int rc;
-
- je = make_job_evtid(evtid, object);
- if (je == NULL) {
- ERROR("Cant't create broadcast evtid job item for %s(%s)",
- evtid->fullname, json_object_to_json_string(object));
- json_object_put(object);
- return -1;
- }
-
- rc = jobs_queue(BROADCAST_JOB_GROUP, 0, broadcast_job_evtid, je);
- if (rc) {
- ERROR("cant't queue broadcast evtid job item for %s(%s)",
- evtid->fullname, json_object_to_json_string(object));
- destroy_job_evtid(je);