aboutsummaryrefslogblamecommitdiffstats
path: root/src/bin/e_fm_mime.h
blob: 7c4d6f938a9f298742a8218539543e420dca74cc (plain) (tree)
1
2
3
4
5
6
7
8
9





                   
                                                      
 
                          

                                  

                                                                        

                     

  


                                                            
 











                                                                                                                                                                                                                                                                        
 

      
#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