added idt_set_gate() and register strcut to header file