lib/efreet_desktop.c File Reference
#include <stddef.h>
#include <libgen.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <Ecore_File.h>
#include "Efreet.h"
#include "efreet_private.h"
Include dependency graph for efreet_desktop.c:

Data Structures

struct  Efreet_Desktop_Type_Info

Defines

#define DESKTOP_VERSION   "1.0"
#define EFREET_MODULE_LOG_DOM   _efreet_desktop_log_dom

Typedefs

typedef struct
Efreet_Desktop_Type_Info 
Efreet_Desktop_Type_Info

Functions

void * alloca (size_t)
EAPI void efreet_desktop_category_add (Efreet_Desktop *desktop, const char *category)
 add a category to a desktop
EAPI unsigned int efreet_desktop_category_count_get (Efreet_Desktop *desktop)
 Retrieves the number of categories the given desktop belongs too.
EAPI int efreet_desktop_category_del (Efreet_Desktop *desktop, const char *category)
 removes a category from a desktop
EAPI Efreet_Desktopefreet_desktop_empty_new (const char *file)
 Creates a new empty Efreet_Desktop structure or NULL on failure.
EAPI const char * efreet_desktop_environment_get (void)
 sets the global desktop environment name
EAPI void efreet_desktop_environment_set (const char *environment)
 sets the global desktop environment name
EAPI void efreet_desktop_free (Efreet_Desktop *desktop)
 Frees the Efreet_Desktop structure and all of it's data.
EAPI Efreet_Desktopefreet_desktop_get (const char *file)
 Gets a reference to an Efreet_Desktop structure representing the contents of file or NULL if file is not a valid .desktop file.
int efreet_desktop_init (void)
EAPI Efreet_Desktopefreet_desktop_new (const char *file)
 Creates a new Efreet_Desktop structure initialized from the contents of file or NULL on failure.
EAPI int efreet_desktop_ref (Efreet_Desktop *desktop)
 Increases reference count on desktop.
EAPI int efreet_desktop_save (Efreet_Desktop *desktop)
 Saves any changes made to desktop back to the file on the filesystem.
EAPI int efreet_desktop_save_as (Efreet_Desktop *desktop, const char *file)
 Saves desktop to file.
void efreet_desktop_shutdown (void)
EAPI char * efreet_desktop_string_list_join (Eina_List *list)
 Create a ';' separate list of strings according to the desktop spec.
EAPI Eina_List * efreet_desktop_string_list_parse (const char *string)
 Parse ';' separate list of strings according to the desktop spec.
EAPI int efreet_desktop_type_add (const char *type, Efreet_Desktop_Type_Parse_Cb parse_func, Efreet_Desktop_Type_Save_Cb save_func, Efreet_Desktop_Type_Free_Cb free_func)
 Adds the given type to the list of types in the system.
EAPI int efreet_desktop_type_alias (int from_type, const char *alias)
 Add an alias for an existing desktop type.
EAPI void * efreet_desktop_type_data_get (Efreet_Desktop *desktop)
 get type specific data for custom desktop types
EAPI Efreet_Desktopefreet_desktop_uncached_new (const char *file)
 Creates a new Efreet_Desktop structure initialized from the contents of file or NULL on failure.
int efreet_desktop_write_cache_dirs_file (void)
EAPI Eina_Bool efreet_desktop_x_field_del (Efreet_Desktop *desktop, const char *key)
 Delete the key and value for a X- field (Non spec) in the structure.
EAPI const char * efreet_desktop_x_field_get (Efreet_Desktop *desktop, const char *key)
 Get the value for a X- field (Non spec) in the structure.
EAPI Eina_Bool efreet_desktop_x_field_set (Efreet_Desktop *desktop, const char *key, const char *data)
 Set the value for a X- field (Non spec) in the structure.

Variables

int _efreet_desktop_log_dom = -1
Eina_Hash * efreet_desktop_cache = NULL
EAPI int EFREET_DESKTOP_TYPE_APPLICATION = 0
EAPI int EFREET_DESKTOP_TYPE_DIRECTORY = 0
EAPI int EFREET_DESKTOP_TYPE_LINK = 0

Define Documentation

#define DESKTOP_VERSION   "1.0"

Referenced by efreet_desktop_save().


Typedef Documentation


Function Documentation

void* alloca ( size_t  )

Variable Documentation