#include <gnome.h> |
These routines provide conversion of information based on a source and target mime type. They return -1 on failure, or an opened file descriptor with the data on success
The rules for converting from a mime-type to another mime-type are loaded from the $gnome-prefix/share/type-convert directory, any files in that directory whose extension is .convert is loaded as well as the per-user ~/.gnome/type.convert file.
|
Converts the file opened by fd to the totype format.
fd : | file desciptor pointing to the file to convert. |
fromtype : | mime type of the file |
totype : | target mime type we want |
Returns : | -1 on failure, or a file descriptor to the converted file. |