예제 #1
0
void del_DSP_table(DSP_table* table)
{
    if (table == NULL)
        return;

    del_Etable(table->dsps);
    del_Bit_array(table->existents);
    memory_free(table);

    return;
}
예제 #2
0
파일: Pat_table.c 프로젝트: kagu/kunquat
void del_Pat_table(Pat_table* table)
{
    if (table == NULL)
        return;

    del_Etable(table->pats);
    del_Bit_array(table->existents);
    memory_free(table);

    return;
}
예제 #3
0
void del_Device_thread_state(Device_thread_state* ts)
{
    if (ts == NULL)
        return;

    del_Bit_array(ts->in_connected);

    for (Device_buffer_type buf_type = DEVICE_BUFFER_MIXED;
            buf_type < DEVICE_BUFFER_TYPES; ++buf_type)
    {
        for (Device_port_type port_type = DEVICE_PORT_TYPE_RECV;
                port_type < DEVICE_PORT_TYPES; ++port_type)
            del_Etable(ts->buffers[buf_type][port_type]);
    }

    memory_free(ts);

    return;
}