/build/buildd/efreet-0.5.0.063/src/lib/efreet_utils.c File Reference
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <fnmatch.h>
#include <Ecore.h>
#include <Ecore_File.h>
#include "Efreet.h"
#include "efreet_private.h"

Define Documentation
#define EFREET_MODULE_LOG_DOM _efreet_utils_log_dom |
Typedef Documentation
typedef struct Efreet_Cache_Fill Efreet_Cache_Fill |
typedef struct Efreet_Cache_Fill_Dir Efreet_Cache_Fill_Dir |
typedef struct Efreet_Cache_Search Efreet_Cache_Search |
typedef struct Efreet_Cache_Search_List Efreet_Cache_Search_List |
typedef struct Efreet_Monitor Efreet_Monitor |
typedef struct Efreet_Util_Desktop Efreet_Util_Desktop |
Function Documentation
EAPI Eina_List* efreet_util_desktop_categories_list | ( | void | ) |
Find all desktop categories This list must be freed using EINA_LIST_FREE
- Returns:
- an Eina_List of category names (const char *)
EAPI Eina_List* efreet_util_desktop_category_list | ( | const char * | category | ) |
Find all desktops in a given category
Note: this returns a pointer to an internal list. Do not add to, remove from, or delete this list.
- Parameters:
-
category the category name
- Returns:
- a list of desktops
EAPI Eina_List* efreet_util_desktop_comment_glob_list | ( | const char * | glob | ) |
References Efreet_Cache_Search_List::list, and Efreet_Cache_Search_List::what.
EAPI Efreet_Desktop* efreet_util_desktop_exec_find | ( | const char * | exec | ) |
EAPI Eina_List* efreet_util_desktop_exec_glob_list | ( | const char * | glob | ) |
References Efreet_Cache_Search_List::list, and Efreet_Cache_Search_List::what.
EAPI Efreet_Desktop* efreet_util_desktop_file_id_find | ( | const char * | file_id | ) |
References _Efreet_Event_Desktop_Change::change, _Efreet_Event_Desktop_Change::current, Efreet_Util_Desktop::desktop, efreet_data_dirs_get(), efreet_data_home_get(), efreet_default_dirs_get(), EFREET_DESKTOP_CHANGE_ADD, efreet_desktop_get(), efreet_desktop_ref(), EFREET_EVENT_DESKTOP_CHANGE, NEW, PATH_MAX, and Efreet_Util_Desktop::priority.
EAPI Efreet_Desktop* efreet_util_desktop_generic_name_find | ( | const char * | generic_name | ) |
EAPI Eina_List* efreet_util_desktop_generic_name_glob_list | ( | const char * | glob | ) |
References Efreet_Cache_Search_List::list, and Efreet_Cache_Search_List::what.
EAPI Eina_List* efreet_util_desktop_mime_list | ( | const char * | mime | ) |
References Efreet_Cache_Search_List::list, and Efreet_Cache_Search_List::what.
EAPI Efreet_Desktop* efreet_util_desktop_name_find | ( | const char * | name | ) |
EAPI Eina_List* efreet_util_desktop_name_glob_list | ( | const char * | glob | ) |
References Efreet_Cache_Search_List::list, and Efreet_Cache_Search_List::what.
EAPI Efreet_Desktop* efreet_util_desktop_wm_class_find | ( | const char * | wmname, | |
const char * | wmclass | |||
) |
EAPI int efreet_util_init | ( | void | ) |
EAPI Eina_List* efreet_util_menus_find | ( | void | ) |
Returns a list of .menu files found in the various config dirs.
- Returns:
- An eina list of menu file paths (const char *). This must be freed with EINA_LIST_FREE.
References efreet_config_dirs_get(), and efreet_config_home_get().
EAPI const char* efreet_util_path_to_file_id | ( | const char * | path | ) |
Referenced by efreet_menu_desktop_insert().
EAPI int efreet_util_shutdown | ( | void | ) |
References Efreet_Cache_Fill::current, Efreet_Cache_Fill::dirs, Efreet_Cache_Fill::files, and IF_FREE_HASH.
Variable Documentation
EAPI int EFREET_EVENT_DESKTOP_CHANGE = 0 |
Referenced by efreet_util_desktop_file_id_find(), and efreet_util_init().
EAPI int EFREET_EVENT_DESKTOP_LIST_CHANGE = 0 |
Referenced by efreet_util_init().