Download

Support

Path Group Functions

Functions that make it easier to find a file in a set of search paths. More...

Functions

EAPI Ecore_Path_Group * ecore_path_group_new (void)
 Creates a new path group.
EAPI void ecore_path_group_del (Ecore_Path_Group *group)
 Destroys a previously created path group.
EAPI void ecore_path_group_add (Ecore_Path_Group *group, const char *path)
 Adds a directory to be searched for files.
EAPI void ecore_path_group_remove (Ecore_Path_Group *group, const char *path)
 Removes the given directory from the given group.
EAPI char * ecore_path_group_find (Ecore_Path_Group *group, const char *name)
 Finds a file in a group of paths.
EAPI Eina_List * ecore_path_group_available_get (Ecore_Path_Group *group)
 Retrieves a list of all available files in the given path.

Detailed Description

Functions that make it easier to find a file in a set of search paths.

Todo:
Give this a better description.

Function Documentation

EAPI void ecore_path_group_add ( Ecore_Path_Group *  group,
const char *  path 
)

Adds a directory to be searched for files.

Parameters:
group The group to add the path.
path The new path to be added to the group.
EAPI Eina_List* ecore_path_group_available_get ( Ecore_Path_Group *  group  ) 

Retrieves a list of all available files in the given path.

Parameters:
group_id The identifier for the given path.
Returns:
A pointer to a newly allocated list of all files found in the paths identified by group_id. NULL otherwise.
EAPI void ecore_path_group_del ( Ecore_Path_Group *  group  ) 

Destroys a previously created path group.

Parameters:
group The group to delete.
EAPI char* ecore_path_group_find ( Ecore_Path_Group *  group,
const char *  name 
)

Finds a file in a group of paths.

Parameters:
group The group to search.
name The name of the file to find.
Returns:
A pointer to a newly allocated path location of the found file on success. NULL on failure.

Referenced by ecore_plugin_load().

EAPI Ecore_Path_Group* ecore_path_group_new ( void   ) 

Creates a new path group.

Parameters:
group_name The name of the new group.
Returns:
NULL on error, the handle of the new group on success.
EAPI void ecore_path_group_remove ( Ecore_Path_Group *  group,
const char *  path 
)

Removes the given directory from the given group.

Parameters:
group The group to remove the path from.
path The path of the directory to be removed.

Copyright © Enlightenment.org

Ecore Documentation Generated: Sat Sep 5 11:39:02 2009