MIME types


Typedefs

typedef void( osso_mime_cb_f )(gpointer data, int argc, gchar **argv)

Functions

osso_return_t osso_mime_set_cb (osso_context_t *osso, osso_mime_cb_f *cb, gpointer data)
osso_return_t osso_mime_unset_cb (osso_context_t *osso)
osso_return_t osso_mime_unset_cb_full (osso_context_t *osso, osso_mime_cb_f *cb, gpointer data)

Typedef Documentation

typedef void( osso_mime_cb_f)(gpointer data, int argc, gchar **argv)

This is the type of the MIME callback function.

Parameters:
data The data pointer that was set with osso_mime_set_cb.
argc The number of files to open.
argv An array of file URIs. The strings pointed to by the argv array are only valid until the callback function returns.


Function Documentation

osso_return_t osso_mime_set_cb ( osso_context_t osso,
osso_mime_cb_f cb,
gpointer  data 
)

This function registers a MIME callback function that Libosso calls when the user wants the application to open file(s) of a MIME type handled by the application.

Parameters:
osso The library context as returned by the osso_initialize function.
cb The callback function to call.
data Arbitrary application specific pointer that will be passed to the callback and ignored by Libosso.
Returns:
OSSO_OK on success, OSSO_INVALID if some parameter was invalid, and OSSO_ERROR if there was an error.

osso_return_t osso_mime_unset_cb ( osso_context_t osso  ) 

This function unregisters a MIME callback function that was previously registered with the osso_mime_set_cb function.

Parameters:
osso The library context as returned by the LibOSSO function osso_initialize.
Returns:
OSSO_OK on success, OSSO_INVALID if the parameter was invalid, and OSSO_ERROR if there was an error.

osso_return_t osso_mime_unset_cb_full ( osso_context_t osso,
osso_mime_cb_f cb,
gpointer  data 
)


Generated on Wed Jan 16 15:51:05 2008 for Libosso by  doxygen 1.5.1