Lines Matching defs:id

70 ipsecmod_init(struct module_env* env, int id)
78 env->modinfo[id] = (void*)ipsecmod_env;
88 ipsecmod_deinit(struct module_env* env, int id)
91 if(!env || !env->modinfo[id])
93 ipsecmod_env = (struct ipsecmod_env*)env->modinfo[id];
97 env->modinfo[id] = NULL;
102 ipsecmod_new(struct module_qstate* qstate, int id)
106 qstate->minfo[id] = iq;
113 (struct ipsecmod_env*)qstate->env->modinfo[id], qstate->qinfo.qname,
121 * @param id: module id.
124 ipsecmod_error(struct module_qstate* qstate, int id)
126 qstate->ext_state[id] = module_error;
134 * @param id: module id.
143 generate_request(struct module_qstate* qstate, int id, uint8_t* name,
171 qstate->ext_state[id] = module_wait_subquery;
383 * @param id: module id.
387 struct ipsecmod_qstate* iq, struct ipsecmod_env* ie, int id)
394 qstate->ext_state[id] = module_wait_module;
410 qstate->ext_state[id] = module_wait_module;
423 ipsecmod_error(qstate, id);
431 ipsecmod_error(qstate, id);
462 qstate->ext_state[id] = module_finished;
471 * @param id: module id.
476 struct ipsecmod_env* ATTR_UNUSED(ie), int id)
480 qstate->ext_state[id] = module_finished;
498 if(!generate_request(qstate, id, qstate->qinfo.qname,
503 ipsecmod_error(qstate, id);
508 qstate->ext_state[id] = module_finished;
512 ipsecmod_operate(struct module_qstate* qstate, enum module_ev event, int id,
515 struct ipsecmod_env* ie = (struct ipsecmod_env*)qstate->env->modinfo[id];
516 struct ipsecmod_qstate* iq = (struct ipsecmod_qstate*)qstate->minfo[id];
518 id, strextstate(qstate->ext_state[id]), strmodulevent(event));
525 if(!ipsecmod_new(qstate, id)) {
527 ipsecmod_error(qstate, id);
530 iq = (struct ipsecmod_qstate*)qstate->minfo[id];
533 ipsecmod_handle_query(qstate, iq, ie, id);
537 ipsecmod_handle_response(qstate, iq, ie, id);
543 cachedb_process_response(qstate, iq, ie, id, outbound, event);
550 ipsecmod_error(qstate, id);
555 qstate->ext_state[id] = module_finished;
561 ipsecmod_error(qstate, id);
566 ipsecmod_inform_super(struct module_qstate* qstate, int id,
573 siq = (struct ipsecmod_qstate*)super->minfo[id];
597 ipsecmod_clear(struct module_qstate* qstate, int id)
601 qstate->minfo[id] = NULL;
605 ipsecmod_get_mem(struct module_env* env, int id)
607 struct ipsecmod_env* ie = (struct ipsecmod_env*)env->modinfo[id];