Download

Support

/build/buildd/efreet-0.5.0.49898/src/lib/efreet_desktop.c File Reference

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <libgen.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <dirent.h>
#include <Ecore.h>
#include <Ecore_File.h>
#include "Efreet.h"
#include "efreet_private.h"
Include dependency graph for efreet_desktop.c:

Data Structures

struct  _Efreet_Old_Cache
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
typedef struct _Efreet_Old_Cache Efreet_Old_Cache

Functions

EAPI const char * efreet_desktop_cache_dirs (void)
EAPI const char * efreet_desktop_cache_file (void)
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 Eet_Data_Descriptor * efreet_desktop_edd_init (void)
EAPI void efreet_desktop_edd_shutdown (Eet_Data_Descriptor *edd)
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)
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)
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.
EAPI Eina_Bool efreet_desktop_x_field_del (Efreet_Desktop *desktop, const char *key)
EAPI const char * efreet_desktop_x_field_get (Efreet_Desktop *desktop, const char *key)
EAPI Eina_Bool efreet_desktop_x_field_set (Efreet_Desktop *desktop, const char *key, const char *data)

Variables

int _efreet_desktop_log_dom = -1
EAPI int EFREET_DESKTOP_TYPE_APPLICATION = 0
EAPI int EFREET_DESKTOP_TYPE_DIRECTORY = 0
EAPI int EFREET_DESKTOP_TYPE_LINK = 0
EAPI int EFREET_EVENT_DESKTOP_CACHE_UPDATE = 0

Define Documentation

#define DESKTOP_VERSION   "1.0"

Referenced by efreet_desktop_save().

#define EFREET_MODULE_LOG_DOM   _efreet_desktop_log_dom

Typedef Documentation


Variable Documentation


Copyright © Enlightenment.org

Efreet Documentation Generated: Tue Aug 3 2010 10:37:52