File type discovery via libmagic (http://sourceforge.net/projects/libmagic/)!
You give it a binary file. It will return a MIME type and description.
apt-get install libmagic-dev
N.B. For the moment, addons_config.mk is broken. So, to use, add -lmagic
to your PROJECT_LDFLAGS
. This will be fixed soon.
Cool Thumnail: http://coolmagic.com/magician.jpg