static void nn_cipc_destroy (void *self) { struct nn_cipc *cipc = self; nn_sipc_term (&cipc->sipc); nn_backoff_term (&cipc->retry); nn_usock_term (&cipc->usock); nn_fsm_term (&cipc->fsm); nn_free (cipc); }
void nn_aipc_term (struct nn_aipc *self) { nn_assert (self->state == NN_AIPC_STATE_IDLE); nn_list_item_term (&self->item); nn_fsm_event_term (&self->done); nn_fsm_event_term (&self->accepted); nn_sipc_term (&self->sipc); nn_usock_term (&self->usock); nn_fsm_term (&self->fsm); }
static void nn_cipc_destroy (struct nn_epbase *self) { struct nn_cipc *cipc; cipc = nn_cont (self, struct nn_cipc, epbase); nn_sipc_term (&cipc->sipc); nn_backoff_term (&cipc->retry); nn_usock_term (&cipc->usock); nn_fsm_term (&cipc->fsm); nn_epbase_term (&cipc->epbase); nn_free (cipc); }