static void clock_component_state_class_init (ClockComponentStateClass * klass) { clock_component_state_parent_class = g_type_class_peek_parent (klass); COMPONENT_STATE_CLASS (klass)->finalize = clock_component_state_finalize; g_type_class_add_private (klass, sizeof (ClockComponentStatePrivate)); COMPONENT_STATE_CLASS (klass)->update = clock_component_state_real_update; COMPONENT_STATE_CLASS (klass)->get_alwaysUpdate = clock_component_state_real_get_alwaysUpdate; }
static void toggle_component_state_class_init (ToggleComponentStateClass * klass) { toggle_component_state_parent_class = g_type_class_peek_parent (klass); COMPONENT_STATE_CLASS (klass)->finalize = toggle_component_state_finalize; g_type_class_add_private (klass, sizeof (ToggleComponentStatePrivate)); COMPONENT_STATE_CLASS (klass)->click = toggle_component_state_real_click; COMPONENT_STATE_CLASS (klass)->render = toggle_component_state_real_render; COMPONENT_STATE_CLASS (klass)->update = toggle_component_state_real_update; }
static void or_component_state_finalize (ComponentState* obj) { OrComponentState * self; self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_OR_COMPONENT_STATE, OrComponentState); self->priv->inputWires = (_vala_array_free (self->priv->inputWires, self->priv->inputWires_length1, (GDestroyNotify) connection_unref), NULL); _connection_unref0 (self->priv->outputWire); COMPONENT_STATE_CLASS (or_component_state_parent_class)->finalize (obj); }
static void multiplexer_component_state_finalize (ComponentState* obj) { MultiplexerComponentState * self; self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLEXER_COMPONENT_STATE, MultiplexerComponentState); self->priv->selectWires = (_vala_array_free (self->priv->selectWires, self->priv->selectWires_length1, (GDestroyNotify) connection_unref), NULL); self->priv->dataWires = (_vala_array_free (self->priv->dataWires, self->priv->dataWires_length1, (GDestroyNotify) connection_unref), NULL); _connection_unref0 (self->priv->outputWire); COMPONENT_STATE_CLASS (multiplexer_component_state_parent_class)->finalize (obj); }
static void tristate_component_state_finalize (ComponentState* obj) { TristateComponentState * self; self = TRISTATE_COMPONENT_STATE (obj); _connection_unref0 (self->priv->inputWire); _connection_unref0 (self->priv->controlWire); _connection_unref0 (self->priv->outputWire); COMPONENT_STATE_CLASS (tristate_component_state_parent_class)->finalize (obj); }
static void toggle_component_state_finalize (ComponentState* obj) { ToggleComponentState * self; self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOGGLE_COMPONENT_STATE, ToggleComponentState); _connection_unref0 (self->priv->outputWire); COMPONENT_STATE_CLASS (toggle_component_state_parent_class)->finalize (obj); }
static void multiplexer_component_state_class_init (MultiplexerComponentStateClass * klass) { multiplexer_component_state_parent_class = g_type_class_peek_parent (klass); COMPONENT_STATE_CLASS (klass)->finalize = multiplexer_component_state_finalize; g_type_class_add_private (klass, sizeof (MultiplexerComponentStatePrivate)); COMPONENT_STATE_CLASS (klass)->update = multiplexer_component_state_real_update; }
static void constant_component_state_finalize (ComponentState* obj) { ConstantComponentState * self; self = CONSTANT_COMPONENT_STATE (obj); _connection_unref0 (self->priv->outputWire); COMPONENT_STATE_CLASS (constant_component_state_parent_class)->finalize (obj); }
static void clock_component_state_finalize (ComponentState* obj) { ClockComponentState * self; self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CLOCK_COMPONENT_STATE, ClockComponentState); _connection_unref0 (self->priv->outputWire); COMPONENT_STATE_CLASS (clock_component_state_parent_class)->finalize (obj); }