def register_mimetype_function(self, fnc):
self._mimetype_functions.insert(<NUM_LIT:0>, fnc)<EOL>
Register mimetype function.

Given function must accept a filesystem path as string and return
a mimetype string or None.

:param fnc: callable accepting a path string
:type fnc: callable