Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

MIME types


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)

Variables

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

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
 


Variable 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.


Generated on Mon Dec 18 16:43:36 2006 for Libosso by  doxygen 1.4.2