Efreet_Private: Private methods and defines
Data Structures | |
struct | Efreet_Desktop_Command |
struct | Efreet_Desktop_Command_File |
Defines | |
#define | __UNUSED__ __attribute__((unused)) |
#define | FREE(x) { free(x); x = NULL; } |
#define | IF_FREE(x) { if (x) FREE(x) } |
#define | IF_FREE_DLIST(x) { if (x) ecore_dlist_destroy(x); x = NULL; } |
#define | IF_FREE_HASH(x) { if (x) ecore_hash_destroy(x); x = NULL; } |
#define | IF_FREE_LIST(x) { if (x) ecore_list_destroy(x); x = NULL; } |
#define | IF_RELEASE(x) { if (x) ecore_string_release(x); x = NULL; } |
#define | NEW(x, c) calloc(c, sizeof(x)) |
#define | PATH_MAX 4096 |
Typedefs | |
typedef Efreet_Desktop_Command | Efreet_Desktop_Command |
typedef Efreet_Desktop_Command_File | Efreet_Desktop_Command_File |
typedef enum Efreet_Desktop_Command_Flag | Efreet_Desktop_Command_Flag |
Enumerations | |
enum | Efreet_Desktop_Command_Flag { EFREET_DESKTOP_EXEC_FLAG_FULLPATH = 0x0001, EFREET_DESKTOP_EXEC_FLAG_URI = 0x0002, EFREET_DESKTOP_EXEC_FLAG_DIR = 0x0004, EFREET_DESKTOP_EXEC_FLAG_FILE = 0x0008 } |
Functions | |
size_t | efreet_array_cat (char *buffer, size_t size, const char *strs[]) |
int | efreet_base_init (void) |
void | efreet_base_shutdown (void) |
Ecore_List * | efreet_default_dirs_get (const char *user_dir, Ecore_List *system_dirs, const char *suffix) |
Creates the list of directories based on the user dir, system dirs and given suffix. | |
int | efreet_desktop_init (void) |
int | efreet_desktop_shutdown (void) |
const char * | efreet_home_dir_get (void) |
int | efreet_icon_init (void) |
void | efreet_icon_shutdown (void) |
int | efreet_ini_init (void) |
int | efreet_ini_shutdown (void) |
const char * | efreet_lang_country_get (void) |
const char * | efreet_lang_get (void) |
const char * | efreet_lang_modifier_get (void) |
int | efreet_menu_init (void) |
Initializes the Efreet Menu system. | |
void | efreet_menu_shutdown (void) |
Shuts down the Efreet menu system. | |
int | efreet_util_init (void) |
void | efreet_util_shutdown (void) |
Define Documentation
#define __UNUSED__ __attribute__((unused)) |
A flag to mark a function parameter as unused
#define FREE | ( | x | ) | { free(x); x = NULL; } |
Free x and set to NULL
#define IF_FREE | ( | x | ) | { if (x) FREE(x) } |
If x is set, free x and set to NULL
#define IF_FREE_DLIST | ( | x | ) | { if (x) ecore_dlist_destroy(x); x = NULL; } |
If x is a valid pointer destroy x and set to NULL
#define IF_FREE_HASH | ( | x | ) | { if (x) ecore_hash_destroy(x); x = NULL; } |
If x is a valid pointer destroy x and set to NULL
#define IF_FREE_LIST | ( | x | ) | { if (x) ecore_list_destroy(x); x = NULL; } |
If x is a valid pointer destroy x and set to NULL
#define IF_RELEASE | ( | x | ) | { if (x) ecore_string_release(x); x = NULL; } |
If x is set, ecore_string_release x and set to NULL
#define NEW | ( | x, | |||
c | ) | calloc(c, sizeof(x)) |
Allocate and zero out c structures of type x
#define PATH_MAX 4096 |
Convenience define to set the maximim path length
Typedef Documentation
typedef struct Efreet_Desktop_Command Efreet_Desktop_Command |
typedef struct Efreet_Desktop_Command_File Efreet_Desktop_Command_File |
typedef enum Efreet_Desktop_Command_Flag Efreet_Desktop_Command_Flag |
Enumeration Type Documentation
Function Documentation
size_t efreet_array_cat | ( | char * | buffer, | |
size_t | size, | |||
const char * | strs[] | |||
) |
int efreet_base_init | ( | void | ) |
void efreet_base_shutdown | ( | void | ) |
Ecore_List* efreet_default_dirs_get | ( | const char * | user_dir, | |
Ecore_List * | system_dirs, | |||
const char * | suffix | |||
) |
Creates the list of directories based on the user dir, system dirs and given suffix.
- Parameters:
-
user_dir,: The user directory to work with system_dirs,: The system directories to work with suffix,: The path suffix to add
- Returns:
- Returns the list of directories
int efreet_desktop_init | ( | void | ) |
int efreet_desktop_shutdown | ( | void | ) |
const char* efreet_home_dir_get | ( | void | ) |
int efreet_icon_init | ( | void | ) |
void efreet_icon_shutdown | ( | void | ) |
int efreet_ini_init | ( | void | ) |
int efreet_ini_shutdown | ( | void | ) |
const char* efreet_lang_country_get | ( | void | ) |
const char* efreet_lang_get | ( | void | ) |
const char* efreet_lang_modifier_get | ( | void | ) |
int efreet_menu_init | ( | void | ) |
Initializes the Efreet Menu system.
- Returns:
- Returns 1 on success, 0 on failure
void efreet_menu_shutdown | ( | void | ) |
Shuts down the Efreet menu system.
- Returns:
- Returns no value
int efreet_util_init | ( | void | ) |
void efreet_util_shutdown | ( | void | ) |