Gnome Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#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 one MIME type to another 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.
The file format used to define a filter is very simple:
This sample file conversion file defines a conversion rule from the image/gif MIME type to the image/x-portable-pixmap MIME type. The program used for the conversion is giftopnm. This program should do the specified MIME type conversion by reading its standard input and writing the results on the standard output.
|
Converts the file opened by fd to the totype format.