Hi
I need to loop all supported geany filetypes in my geanydoc plugin (http://repo.or.cz/w/geanydoc.git).
filetypes_get_from_uid() is just what I need. Please add it to plugin api. Patch attached.
Also I notice filetypes_get_from_uid() is written somehow strange. Since "id" field also act as pos in filetypes array I think it is not necessary to loop filetypes every time. Second patch use simple if to do job.