Implementation for LiSA of functions: if_get_type and if_set_mode

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>