CorrellationState * correllation_state_new(void) { CorrellationState *self = g_new0(CorrellationState, 1); correllation_state_init_instance(self); return self; }
static void _init_state(PatternDB *self) { self->rate_limits = g_hash_table_new_full(correllation_key_hash, correllation_key_equal, NULL, (GDestroyNotify) pdb_rate_limit_free); correllation_state_init_instance(&self->correllation); self->timer_wheel = timer_wheel_new(); timer_wheel_set_associated_data(self->timer_wheel, self, NULL); }