You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.8 KiB

#ifdef E_TYPEDEFS
#else
#ifndef E_FM_MIME_H
#define E_FM_MIME_H
typedef struct _E_Fm2_Mime_Handler E_Fm2_Mime_Handler;
struct _E_Fm2_Mime_Handler
{
const char *label, *icon_group;
void (*action_func) (void *data, Evas_Object *obj, const char *path);
int (*test_func) (void *data, Evas_Object *obj, const char *path);
void *action_data;
void *test_data;
};
E_API const char *e_fm_mime_filename_get(const char *fname);
E_API const char *e_fm_mime_icon_get(const char *mime);
E_API void e_fm_mime_icon_cache_flush(void);
E_API E_Fm2_Mime_Handler *e_fm2_mime_handler_new(const char *label, const char *icon_group, void (*action_func) (void *data, Evas_Object *obj, const char *path), void *action_data, int (test_func) (void *data, Evas_Object *obj, const char *path), void *test_data);
E_API void e_fm2_mime_handler_free(E_Fm2_Mime_Handler *handler);
E_API Eina_Bool e_fm2_mime_handler_mime_add(E_Fm2_Mime_Handler *handler, const char *mime);
E_API Eina_Bool e_fm2_mime_handler_glob_add(E_Fm2_Mime_Handler *handler, const char *glob);
E_API Eina_Bool e_fm2_mime_handler_call(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path);
E_API Eina_Bool e_fm2_mime_handler_test(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path);
E_API void e_fm2_mime_handler_mime_handlers_call_all(Evas_Object *obj, const char *path, const char *mime);
E_API void e_fm2_mime_handler_glob_handlers_call_all(Evas_Object *obj, const char *path, const char *glob);
E_API void e_fm2_mime_handler_mime_del(E_Fm2_Mime_Handler *handler, const char *mime);
E_API void e_fm2_mime_handler_glob_del(E_Fm2_Mime_Handler *handler, const char *glob);
E_API const Eina_List *e_fm2_mime_handler_mime_handlers_get(const char *mime);
E_API Eina_List *e_fm2_mime_handler_glob_handlers_get(const char *glob);
#endif
#endif