SVN revision: 56326
This commit is contained in:
Sebastian Dransfeld 2011-01-27 17:49:45 +00:00
parent 3997a22f3a
commit 978741a789
12 changed files with 352 additions and 342 deletions

View File

@ -223,7 +223,7 @@ efreet_parse_locale(void)
/** /**
* @internal * @internal
* @param env: The environment variable to grab * @param env The environment variable to grab
* @return Returns 1 if we parsed something of @a env, 0 otherwise * @return Returns 1 if we parsed something of @a env, 0 otherwise
* @brief Tries to parse the lang settings out of the given environment * @brief Tries to parse the lang settings out of the given environment
* variable * variable
@ -275,9 +275,9 @@ efreet_parse_locale_setting(const char *env)
/** /**
* @internal * @internal
* @param buffer: The destination buffer * @param buffer The destination buffer
* @param size: The destination buffer size * @param size The destination buffer size
* @param strs: The strings to concatenate together * @param strs The strings to concatenate together
* @return Returns the size of the string in @a buffer * @return Returns the size of the string in @a buffer
* @brief Concatenates the strings in @a strs into the given @a buffer not * @brief Concatenates the strings in @a strs into the given @a buffer not
* exceeding the given @a size. * exceeding the given @a size.

View File

@ -222,8 +222,8 @@ efreet_hostname_get(void)
/** /**
* @internal * @internal
* @param key: The environemnt key to lookup * @param key The environemnt key to lookup
* @param fallback: The fallback value to use * @param fallback The fallback value to use
* @return Returns the directory related to the given key or the fallback * @return Returns the directory related to the given key or the fallback
* @brief This trys to determine the correct directory name given the * @brief This trys to determine the correct directory name given the
* environment key @a key and fallbacks @a fallback. * environment key @a key and fallbacks @a fallback.
@ -256,8 +256,8 @@ efreet_dir_get(const char *key, const char *fallback)
/** /**
* @internal * @internal
* @param key: The environment key to lookup * @param key The environment key to lookup
* @param fallback: The fallback value to use * @param fallback The fallback value to use
* @return Returns a list of directories specified by the given key @a key * @return Returns a list of directories specified by the given key @a key
* or from the list of fallbacks in @a fallback. * or from the list of fallbacks in @a fallback.
* @brief Creates a list of directories as given in the environment key @a * @brief Creates a list of directories as given in the environment key @a

View File

@ -183,7 +183,7 @@ efreet_desktop_shutdown(void)
} }
/** /**
* @param file: The file to get the Efreet_Desktop from * @param file The file to get the Efreet_Desktop from
* @return Returns a reference to a cached Efreet_Desktop on success, NULL * @return Returns a reference to a cached Efreet_Desktop on success, NULL
* on failure. This reference should not be freed. * on failure. This reference should not be freed.
* @brief Gets a reference to an Efreet_Desktop structure representing the * @brief Gets a reference to an Efreet_Desktop structure representing the
@ -247,7 +247,7 @@ efreet_desktop_get(const char *file)
} }
/** /**
* @param desktop: The Efreet_Desktop to ref * @param desktop The Efreet_Desktop to ref
* @return Returns the new reference count * @return Returns the new reference count
* @brief Increases reference count on desktop * @brief Increases reference count on desktop
*/ */
@ -260,7 +260,7 @@ efreet_desktop_ref(Efreet_Desktop *desktop)
} }
/** /**
* @param file: The file to create the Efreet_Desktop from * @param file The file to create the Efreet_Desktop from
* @return Returns a new empty_Efreet_Desktop on success, NULL on failure * @return Returns a new empty_Efreet_Desktop on success, NULL on failure
* @brief Creates a new empty Efreet_Desktop structure or NULL on failure * @brief Creates a new empty Efreet_Desktop structure or NULL on failure
*/ */
@ -281,7 +281,7 @@ efreet_desktop_empty_new(const char *file)
} }
/** /**
* @param file: The file to create the Efreet_Desktop from * @param file The file to create the Efreet_Desktop from
* @return Returns a new Efreet_Desktop on success, NULL on failure * @return Returns a new Efreet_Desktop on success, NULL on failure
* @brief Creates a new Efreet_Desktop structure initialized from the * @brief Creates a new Efreet_Desktop structure initialized from the
* contents of @a file or NULL on failure * contents of @a file or NULL on failure
@ -314,7 +314,7 @@ efreet_desktop_new(const char *file)
} }
/** /**
* @param file: The file to create the Efreet_Desktop from * @param file The file to create the Efreet_Desktop from
* @return Returns a new Efreet_Desktop on success, NULL on failure * @return Returns a new Efreet_Desktop on success, NULL on failure
* @brief Creates a new Efreet_Desktop structure initialized from the * @brief Creates a new Efreet_Desktop structure initialized from the
* contents of @a file or NULL on failure * contents of @a file or NULL on failure
@ -346,7 +346,7 @@ efreet_desktop_uncached_new(const char *file)
} }
/** /**
* @param desktop: The desktop file to save * @param desktop The desktop file to save
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Saves any changes made to @a desktop back to the file on the * @brief Saves any changes made to @a desktop back to the file on the
* filesystem * filesystem
@ -406,8 +406,8 @@ efreet_desktop_save(Efreet_Desktop *desktop)
} }
/** /**
* @param desktop: The desktop file to save * @param desktop The desktop file to save
* @param file: The filename to save as * @param file The filename to save as
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Saves @a desktop to @a file * @brief Saves @a desktop to @a file
*/ */
@ -426,7 +426,7 @@ efreet_desktop_save_as(Efreet_Desktop *desktop, const char *file)
} }
/** /**
* @param desktop: The Efreet_Desktop to work with * @param desktop The Efreet_Desktop to work with
* @return Returns no value * @return Returns no value
* @brief Frees the Efreet_Desktop structure and all of it's data * @brief Frees the Efreet_Desktop structure and all of it's data
*/ */
@ -492,7 +492,7 @@ efreet_desktop_free(Efreet_Desktop *desktop)
} }
/** /**
* @param environment: the environment name * @param environment the environment name
* @brief sets the global desktop environment name * @brief sets the global desktop environment name
*/ */
EAPI void EAPI void
@ -504,7 +504,7 @@ efreet_desktop_environment_set(const char *environment)
} }
/** /**
* @return environment: the environment name * @return environment the environment name
* @brief sets the global desktop environment name * @brief sets the global desktop environment name
*/ */
EAPI const char * EAPI const char *
@ -514,7 +514,7 @@ efreet_desktop_environment_get(void)
} }
/** /**
* @param desktop: The desktop to work with * @param desktop The desktop to work with
* @return Returns the number of categories assigned to this desktop * @return Returns the number of categories assigned to this desktop
* @brief Retrieves the number of categories the given @a desktop belongs * @brief Retrieves the number of categories the given @a desktop belongs
* too * too
@ -527,8 +527,8 @@ efreet_desktop_category_count_get(Efreet_Desktop *desktop)
} }
/** /**
* @param desktop: the desktop * @param desktop the desktop
* @param category: the category name * @param category the category name
* @brief add a category to a desktop * @brief add a category to a desktop
*/ */
EAPI void EAPI void
@ -544,8 +544,8 @@ efreet_desktop_category_add(Efreet_Desktop *desktop, const char *category)
} }
/** /**
* @param desktop: the desktop * @param desktop the desktop
* @param category: the category name * @param category the category name
* @brief removes a category from a desktop * @brief removes a category from a desktop
* @return 1 if the desktop had his category listed, 0 otherwise * @return 1 if the desktop had his category listed, 0 otherwise
*/ */
@ -569,10 +569,10 @@ efreet_desktop_category_del(Efreet_Desktop *desktop, const char *category)
} }
/** /**
* @param type: The type to add to the list of matching types * @param type The type to add to the list of matching types
* @param parse_func: a function to parse out custom fields * @param parse_func a function to parse out custom fields
* @param save_func: a function to save data returned from @a parse_func * @param save_func a function to save data returned from @a parse_func
* @param free_func: a function to free data returned from @a parse_func * @param free_func a function to free data returned from @a parse_func
* @return Returns the id of the new type * @return Returns the id of the new type
* @brief Adds the given type to the list of types in the system * @brief Adds the given type to the list of types in the system
*/ */
@ -696,7 +696,7 @@ efreet_desktop_type_data_get(Efreet_Desktop *desktop)
} }
/** /**
* @param string: the raw string list * @param string the raw string list
* @return an Eina_List of ecore string's * @return an Eina_List of ecore string's
* @brief Parse ';' separate list of strings according to the desktop spec * @brief Parse ';' separate list of strings according to the desktop spec
*/ */
@ -736,7 +736,7 @@ efreet_desktop_string_list_parse(const char *string)
} }
/** /**
* @param list: Eina_List with strings * @param list Eina_List with strings
* @return a raw string list * @return a raw string list
* @brief Create a ';' separate list of strings according to the desktop spec * @brief Create a ';' separate list of strings according to the desktop spec
*/ */
@ -856,7 +856,7 @@ error:
/** /**
* @internal * @internal
* @param desktop: The desktop to check * @param desktop The desktop to check
* @return Returns 1 if the cache is still valid, 0 otherwise * @return Returns 1 if the cache is still valid, 0 otherwise
* @brief This will check if the desktop cache is still valid. * @brief This will check if the desktop cache is still valid.
*/ */
@ -874,7 +874,7 @@ efreet_desktop_cache_check(Efreet_Desktop *desktop)
/** /**
* @internal * @internal
* @param desktop: The desktop to fill * @param desktop The desktop to fill
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief initialize an Efreet_Desktop from the contents of @a file * @brief initialize an Efreet_Desktop from the contents of @a file
*/ */
@ -937,7 +937,7 @@ efreet_desktop_read(Efreet_Desktop *desktop)
/** /**
* @internal * @internal
* @param type_str: the type as a string * @param type_str the type as a string
* @return the parsed type * @return the parsed type
* @brief parse the type string into an Efreet_Desktop_Type * @brief parse the type string into an Efreet_Desktop_Type
*/ */
@ -972,8 +972,8 @@ efreet_desktop_type_info_free(Efreet_Desktop_Type_Info *info)
/** /**
* @internal * @internal
* @param desktop: the Efreet_Desktop to store parsed fields in * @param desktop the Efreet_Desktop to store parsed fields in
* @param ini: the Efreet_Ini to parse fields from * @param ini the Efreet_Ini to parse fields from
* @return No value * @return No value
* @brief Parse application specific desktop fields * @brief Parse application specific desktop fields
*/ */
@ -1007,8 +1007,8 @@ efreet_desktop_application_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini
/** /**
* @internal * @internal
* @param desktop: the Efreet_Desktop to save fields from * @param desktop the Efreet_Desktop to save fields from
* @param ini: the Efreet_Ini to save fields to * @param ini the Efreet_Ini to save fields to
* @return Returns no value * @return Returns no value
* @brief Save application specific desktop fields * @brief Save application specific desktop fields
*/ */
@ -1055,8 +1055,8 @@ efreet_desktop_application_fields_save(Efreet_Desktop *desktop, Efreet_Ini *ini)
/** /**
* @internal * @internal
* @param desktop: the Efreet_Desktop to store parsed fields in * @param desktop the Efreet_Desktop to store parsed fields in
* @param ini: the Efreet_Ini to parse fields from * @param ini the Efreet_Ini to parse fields from
* @return Returns no value * @return Returns no value
* @brief Parse link specific desktop fields * @brief Parse link specific desktop fields
*/ */
@ -1072,8 +1072,8 @@ efreet_desktop_link_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini)
/** /**
* @internal * @internal
* @param desktop: the Efreet_Desktop to save fields from * @param desktop the Efreet_Desktop to save fields from
* @param ini: the Efreet_Ini to save fields in * @param ini the Efreet_Ini to save fields in
* @return Returns no value * @return Returns no value
* @brief Save link specific desktop fields * @brief Save link specific desktop fields
*/ */
@ -1085,8 +1085,8 @@ efreet_desktop_link_fields_save(Efreet_Desktop *desktop, Efreet_Ini *ini)
/** /**
* @internal * @internal
* @param desktop: the Efreet_Desktop to store parsed fields in * @param desktop the Efreet_Desktop to store parsed fields in
* @param ini: the Efreet_Ini to parse fields from * @param ini the Efreet_Ini to parse fields from
* @return 1 if parsed successfully, 0 otherwise * @return 1 if parsed successfully, 0 otherwise
* @brief Parse desktop fields that all types can include * @brief Parse desktop fields that all types can include
*/ */
@ -1128,8 +1128,8 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini)
/** /**
* @internal * @internal
* @param desktop: the Efreet_Desktop to save fields from * @param desktop the Efreet_Desktop to save fields from
* @param ini: the Efreet_Ini to save fields to * @param ini the Efreet_Ini to save fields to
* @return Returns nothing * @return Returns nothing
* @brief Save desktop fields that all types can include * @brief Save desktop fields that all types can include
*/ */
@ -1176,8 +1176,8 @@ efreet_desktop_generic_fields_save(Efreet_Desktop *desktop, Efreet_Ini *ini)
/** /**
* @internal * @internal
* @param node: The node to work with * @param node The node to work with
* @param desktop: The desktop file to work with * @param desktop The desktop file to work with
* @return Returns always true, to be used in eina_hash_foreach() * @return Returns always true, to be used in eina_hash_foreach()
* @brief Parses out an X- key from @a node and stores in @a desktop * @brief Parses out an X- key from @a node and stores in @a desktop
*/ */
@ -1199,8 +1199,8 @@ efreet_desktop_x_fields_parse(const Eina_Hash *hash __UNUSED__, const void *key,
/** /**
* @internal * @internal
* @param node: The node to work with * @param node The node to work with
* @param ini: The ini file to work with * @param ini The ini file to work with
* @return Returns no value * @return Returns no value
* @brief Stores an X- key from @a node and stores in @a ini * @brief Stores an X- key from @a node and stores in @a ini
*/ */
@ -1216,7 +1216,7 @@ efreet_desktop_x_fields_save(const Eina_Hash *hash __UNUSED__, const void *key,
/** /**
* @internal * @internal
* @param ini: The Efreet_Ini to parse values from * @param ini The Efreet_Ini to parse values from
* @return 1 if desktop should be included in current environement, 0 otherwise * @return 1 if desktop should be included in current environement, 0 otherwise
* @brief Determines if a desktop should be included in the current environment, * @brief Determines if a desktop should be included in the current environment,
* based on the values of the OnlyShowIn and NotShowIn fields * based on the values of the OnlyShowIn and NotShowIn fields

View File

@ -141,9 +141,9 @@ static char *efreet_string_append_char(char *dest, int *size,
/** /**
* @param desktop: The desktop file to work with * @param desktop The desktop file to work with
* @param files: The files to be substituted into the exec line * @param files The files to be substituted into the exec line
* @param data: The data pointer to pass * @param data The data pointer to pass
* @return Returns the Ecore_Exce for @a desktop * @return Returns the Ecore_Exce for @a desktop
* @brief Parses the @a desktop exec line and returns an Ecore_Exe. * @brief Parses the @a desktop exec line and returns an Ecore_Exe.
*/ */
@ -154,11 +154,11 @@ efreet_desktop_exec(Efreet_Desktop *desktop, Eina_List *files, void *data)
} }
/** /**
* @param desktop: the desktop entry * @param desktop the desktop entry
* @param files: an eina list of file names to execute, as either absolute paths, * @param files an eina list of file names to execute, as either absolute paths,
* relative paths, or uris * relative paths, or uris
* @param func: a callback to call for each prepared command line * @param func a callback to call for each prepared command line
* @param data: user data passed to the callback * @param data user data passed to the callback
* @return Returns the return value of @p func on success or NULL on failure * @return Returns the return value of @p func on success or NULL on failure
* @brief Get a command to use to execute a desktop entry. * @brief Get a command to use to execute a desktop entry.
*/ */
@ -170,8 +170,8 @@ efreet_desktop_command_get(Efreet_Desktop *desktop, Eina_List *files,
} }
/** /**
* @param desktop: the desktop entry * @param desktop the desktop entry
* @param files an eina list of local files, as absolute paths, local paths, or file:// uris (or NULL to get exec string with no files appended) * @param files an eina list of local files, as absolute paths, local paths, or file// uris (or NULL to get exec string with no files appended)
* @return Returns an eina list of exec strings * @return Returns an eina list of exec strings
* @brief Get the command to use to execute a desktop entry * @brief Get the command to use to execute a desktop entry
* *
@ -217,12 +217,12 @@ efreet_desktop_command_local_get(Efreet_Desktop *desktop, Eina_List *files)
} }
/** /**
* @param desktop: the desktop entry * @param desktop the desktop entry
* @param files: an eina list of file names to execute, as either absolute paths, * @param files an eina list of file names to execute, as either absolute paths,
* relative paths, or uris * relative paths, or uris
* @param cb_command: a callback to call for each prepared command line * @param cb_command a callback to call for each prepared command line
* @param cb_progress: a callback to get progress for the downloads * @param cb_progress a callback to get progress for the downloads
* @param data: user data passed to the callback * @param data user data passed to the callback
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Get a command to use to execute a desktop entry, and receive progress * @brief Get a command to use to execute a desktop entry, and receive progress
* updates for downloading of remote URI's passed in. * updates for downloading of remote URI's passed in.
@ -368,7 +368,7 @@ efreet_desktop_command_execs_process(Efreet_Desktop_Command *command, Eina_List
* processed filename information. The callback passed in to * processed filename information. The callback passed in to
* efreet_desktop_command_get is called for each exec string created. * efreet_desktop_command_get is called for each exec string created.
* *
* @param command: the command to build * @param command the command to build
* @return a list of executable strings * @return a list of executable strings
*/ */
static Eina_List * static Eina_List *
@ -653,8 +653,8 @@ efreet_desktop_command_append_icon(char *dest, int *size, int *len,
} }
/** /**
* @param command: the Efreet_Desktop_Comand that this file is for * @param command the Efreet_Desktop_Comand that this file is for
* @param file: the filname as either an absolute path, relative path, or URI * @param file the filname as either an absolute path, relative path, or URI
*/ */
static Efreet_Desktop_Command_File * static Efreet_Desktop_Command_File *
efreet_desktop_command_file_process(Efreet_Desktop_Command *command, const char *file) efreet_desktop_command_file_process(Efreet_Desktop_Command *command, const char *file)
@ -740,7 +740,7 @@ error:
/** /**
* @brief Find the local path portion of a file uri. * @brief Find the local path portion of a file uri.
* @param uri: a uri beginning with "file:" * @param uri a uri beginning with "file"
* @return the location of the path portion of the uri, * @return the location of the path portion of the uri,
* or NULL if the file is not on this machine * or NULL if the file is not on this machine
*/ */
@ -853,7 +853,7 @@ efreet_desktop_cb_download_progress(void *data,
/** /**
* @brief Build an absolute path from an absolute or relative one. * @brief Build an absolute path from an absolute or relative one.
* @param path: an absolute or relative path * @param path an absolute or relative path
* @return an allocated absolute path (must be freed) * @return an allocated absolute path (must be freed)
*/ */
static char * static char *

View File

@ -199,8 +199,8 @@ efreet_icon_shutdown(void)
} }
/** /**
* @return Returns the user icon directory * @return Returns the deprecated user icon directory
* @brief Returns the user icon directory * @brief Returns the deprecated user icon directory
*/ */
EAPI const char * EAPI const char *
efreet_icon_deprecated_user_dir_get(void) efreet_icon_deprecated_user_dir_get(void)
@ -221,6 +221,10 @@ efreet_icon_deprecated_user_dir_get(void)
return efreet_icon_deprecated_user_dir; return efreet_icon_deprecated_user_dir;
} }
/**
* @return Returns the user icon directory
* @brief Returns the user icon directory
*/
EAPI const char * EAPI const char *
efreet_icon_user_dir_get(void) efreet_icon_user_dir_get(void)
{ {
@ -241,7 +245,7 @@ efreet_icon_user_dir_get(void)
} }
/** /**
* @param ext: The extension to add to the list of checked extensions * @param ext The extension to add to the list of checked extensions
* @return Returns no value. * @return Returns no value.
* @brief Adds the given extension to the list of possible icon extensions * @brief Adds the given extension to the list of possible icon extensions
*/ */
@ -326,7 +330,7 @@ efreet_icon_theme_list_get(void)
} }
/** /**
* @param theme_name: The theme to look for * @param theme_name The theme to look for
* @return Returns the icon theme related to the given theme name or NULL if * @return Returns the icon theme related to the given theme name or NULL if
* none exists. * none exists.
* @brief Tries to get the icon theme structure for the given theme name * @brief Tries to get the icon theme structure for the given theme name
@ -355,7 +359,7 @@ efreet_icon_theme_find(const char *theme_name)
/** /**
* @internal * @internal
* @param icon: The icon name to strip extension * @param icon The icon name to strip extension
* @return Extension removed if in list of extensions, else untouched. * @return Extension removed if in list of extensions, else untouched.
* @brief Removes extension from icon name if in list of extensions. * @brief Removes extension from icon name if in list of extensions.
*/ */
@ -392,7 +396,7 @@ efreet_icon_remove_extension(const char *icon)
#ifndef ICON_CACHE #ifndef ICON_CACHE
/** /**
* @internal * @internal
* @param theme_name: The icon theme to look for * @param theme_name The icon theme to look for
* @return Returns the Efreet_Icon_Theme structure representing this theme * @return Returns the Efreet_Icon_Theme structure representing this theme
* or a new blank theme if not found * or a new blank theme if not found
* @brief Retrieves a theme, or creates a blank one if not found. * @brief Retrieves a theme, or creates a blank one if not found.
@ -416,8 +420,8 @@ efreet_icon_find_theme_check(const char *theme_name)
#endif #endif
/** /**
* @param theme_name: The icon theme to look for * @param theme_name The icon theme to look for
* @param icon: The icon to look for * @param icon The icon to look for
* @param size; The icon size to look for * @param size; The icon size to look for
* @return Returns the path to the given icon or NULL if none found * @return Returns the path to the given icon or NULL if none found
* @brief Retrives the path to the given icon. * @brief Retrives the path to the given icon.
@ -482,8 +486,8 @@ efreet_icon_path_find(const char *theme_name, const char *icon, unsigned int siz
} }
/** /**
* @param theme_name: The icon theme to look for * @param theme_name The icon theme to look for
* @param icons: List of icons to look for * @param icons List of icons to look for
* @param size; The icon size to look for * @param size; The icon size to look for
* @return Returns the path representing first found icon or * @return Returns the path representing first found icon or
* NULL if none of the icons are found * NULL if none of the icons are found
@ -587,9 +591,9 @@ efreet_icon_list_find(const char *theme_name, Eina_List *icons,
} }
/** /**
* @param theme_name: The icon theme to look for * @param theme_name The icon theme to look for
* @param icon: The icon to look for * @param icon The icon to look for
* @param size: The icon size to look for * @param size The icon size to look for
* @return Returns the Efreet_Icon structure representing this icon or NULL * @return Returns the Efreet_Icon structure representing this icon or NULL
* if the icon is not found * if the icon is not found
* @brief Retrieves all of the information about the given icon. * @brief Retrieves all of the information about the given icon.
@ -614,9 +618,9 @@ efreet_icon_find(const char *theme_name, const char *icon, unsigned int size)
#ifndef ICON_CACHE #ifndef ICON_CACHE
/** /**
* @internal * @internal
* @param theme: The theme to search in * @param theme The theme to search in
* @param icon: The icon to search for * @param icon The icon to search for
* @param size: The size to search for * @param size The size to search for
* @return Returns the icon matching the given information or NULL if no * @return Returns the icon matching the given information or NULL if no
* icon found * icon found
* @brief Scans inheriting themes for the given icon * @brief Scans inheriting themes for the given icon
@ -660,9 +664,9 @@ efreet_icon_find_fallback(Efreet_Icon_Theme *theme,
/** /**
* @internal * @internal
* @param theme: The theme to search in * @param theme The theme to search in
* @param icon: The icon to search for * @param icon The icon to search for
* @param size: The size to search for * @param size The size to search for
* @return Returns the icon matching the given information or NULL if no * @return Returns the icon matching the given information or NULL if no
* icon found * icon found
* @brief Scans the theme and any inheriting themes for the given icon * @brief Scans the theme and any inheriting themes for the given icon
@ -697,9 +701,9 @@ efreet_icon_find_helper(Efreet_Icon_Theme *theme,
/** /**
* @internal * @internal
* @param theme: The theme to search in * @param theme The theme to search in
* @param icons: The icons to search for * @param icons The icons to search for
* @param size: The size to search for * @param size The size to search for
* @return Returns the icon matching the given information or NULL if no * @return Returns the icon matching the given information or NULL if no
* icon found * icon found
* @brief Scans inheriting themes for the given icons * @brief Scans inheriting themes for the given icons
@ -745,9 +749,9 @@ efreet_icon_list_find_fallback(Efreet_Icon_Theme *theme,
/** /**
* @internal * @internal
* @param theme: The theme to search in * @param theme The theme to search in
* @param icons: The icons to search for * @param icons The icons to search for
* @param size: The size to search for * @param size The size to search for
* @return Returns the icon matching the given information or NULL if no * @return Returns the icon matching the given information or NULL if no
* icon found * icon found
* @brief Scans the theme and any inheriting themes for the given icons * @brief Scans the theme and any inheriting themes for the given icons
@ -787,9 +791,9 @@ efreet_icon_list_find_helper(Efreet_Icon_Theme *theme,
/** /**
* @internal * @internal
* @param theme: The icon theme to look in * @param theme The icon theme to look in
* @param icon_name: The icon name to look for * @param icon_name The icon name to look for
* @param size: The icon size to look for * @param size The icon size to look for
* @return Returns the path for the theme/icon/size combo or NULL if * @return Returns the path for the theme/icon/size combo or NULL if
* none found * none found
* @brief Looks for the @a icon in the @a theme for the @a size given. * @brief Looks for the @a icon in the @a theme for the @a size given.
@ -850,9 +854,9 @@ efreet_icon_lookup_icon(Efreet_Icon_Theme *theme, const char *icon_name,
/** /**
* @internal * @internal
* @param theme: The theme to use * @param theme The theme to use
* @param dir: The theme directory to look in * @param dir The theme directory to look in
* @param icon_name: The icon name to look for * @param icon_name The icon name to look for
* @return Returns the icon cloest matching the given information or NULL if * @return Returns the icon cloest matching the given information or NULL if
* none found * none found
* @brief Tries to find the file closest matching the given icon * @brief Tries to find the file closest matching the given icon
@ -881,8 +885,8 @@ efreet_icon_lookup_directory(Efreet_Icon_Theme *theme,
/** /**
* @internal * @internal
* @param dir: The theme directory to work with * @param dir The theme directory to work with
* @param size: The size to check * @param size The size to check
* @return Returns true if the size matches for the given directory, 0 * @return Returns true if the size matches for the given directory, 0
* otherwise * otherwise
* @brief Checks if the size matches for the given directory or not * @brief Checks if the size matches for the given directory or not
@ -903,8 +907,8 @@ efreet_icon_directory_size_match(Efreet_Icon_Theme_Directory *dir,
/** /**
* @internal * @internal
* @param dir: The directory to work with * @param dir The directory to work with
* @param size: The size to check for * @param size The size to check for
* @return Returns the distance this size is away from the desired size * @return Returns the distance this size is away from the desired size
* @brief Returns the distance the given size is away from the desired size * @brief Returns the distance the given size is away from the desired size
*/ */
@ -937,7 +941,7 @@ efreet_icon_directory_size_distance(Efreet_Icon_Theme_Directory *dir,
/** /**
* @internal * @internal
* @param icon_name: The icon name to look for * @param icon_name The icon name to look for
* @return Returns the Efreet_Icon for the given name or NULL if none found * @return Returns the Efreet_Icon for the given name or NULL if none found
* @brief Looks for the un-themed icon in the base directories * @brief Looks for the un-themed icon in the base directories
*/ */
@ -1004,8 +1008,8 @@ efreet_icon_fallback_icon(const char *icon_name)
/** /**
* @internal * @internal
* @param dir: The directory to scan * @param dir The directory to scan
* @param icon_name: The icon to look for * @param icon_name The icon to look for
* @return Returns the icon for the given name or NULL on failure * @return Returns the icon for the given name or NULL on failure
* @brief Scans the given @a dir for the given @a icon_name returning the * @brief Scans the given @a dir for the given @a icon_name returning the
* Efreet_icon if found, NULL otherwise. * Efreet_icon if found, NULL otherwise.
@ -1053,9 +1057,9 @@ efreet_icon_fallback_dir_scan(const char *dir, const char *icon_name)
/** /**
* @internal * @internal
* @param theme: The theme to work with * @param theme The theme to work with
* @param dir: The theme directory to work with * @param dir The theme directory to work with
* @param path: The partial path to use * @param path The partial path to use
* @return Returns no value * @return Returns no value
* @brief Caches the icons in the given theme directory path at the given * @brief Caches the icons in the given theme directory path at the given
* size * size
@ -1139,7 +1143,7 @@ efreet_icon_new(const char *path)
} }
/** /**
* @param icon: The Efreet_Icon to cleanup * @param icon The Efreet_Icon to cleanup
* @return Returns no value. * @return Returns no value.
* @brief Free's the given icon and all its internal data. * @brief Free's the given icon and all its internal data.
*/ */
@ -1160,8 +1164,8 @@ efreet_icon_free(Efreet_Icon *icon)
/** /**
* @internal * @internal
* @param icon: The icon to populate * @param icon The icon to populate
* @param file: The file to populate from * @param file The file to populate from
* @return Returns no value * @return Returns no value
* @brief Tries to populate the icon information from the given file * @brief Tries to populate the icon information from the given file
*/ */
@ -1282,7 +1286,7 @@ efreet_icon_theme_new(void)
/** /**
* @internal * @internal
* @param theme: The theme to free * @param theme The theme to free
* @return Returns no value * @return Returns no value
* @brief Frees up the @a theme structure. * @brief Frees up the @a theme structure.
*/ */
@ -1306,8 +1310,8 @@ efreet_icon_theme_free(Efreet_Icon_Theme *theme)
/** /**
* @internal * @internal
* @param theme: The theme to work with * @param theme The theme to work with
* @param path: The path to add * @param path The path to add
* @return Returns no value * @return Returns no value
* @brief This will correctly add the given path to the list of theme paths. * @brief This will correctly add the given path to the list of theme paths.
* @Note Assumes you've already verified that @a path is a valid directory. * @Note Assumes you've already verified that @a path is a valid directory.
@ -1360,8 +1364,8 @@ efreet_icon_theme_cache_check(Efreet_Icon_Theme *theme)
/** /**
* @internal * @internal
* @param theme: The icon theme to check * @param theme The icon theme to check
* @param dir: The directory to check * @param dir The directory to check
* @return Returns 1 if the cache is still valid, 0 otherwise * @return Returns 1 if the cache is still valid, 0 otherwise
* @brief This will check if the theme cache is still valid. If it isn't the * @brief This will check if the theme cache is still valid. If it isn't the
* cache will be invalided and 0 returned. * cache will be invalided and 0 returned.
@ -1399,7 +1403,7 @@ efreet_icon_theme_cache_check_dir(Efreet_Icon_Theme *theme, const char *dir)
/** /**
* @internal * @internal
* @param theme_name: The theme to scan for * @param theme_name The theme to scan for
* @return Returns no value * @return Returns no value
* @brief Scans the theme directories. If @a theme_name is NULL it will load * @brief Scans the theme directories. If @a theme_name is NULL it will load
* up all theme data. If @a theme_name is not NULL it will look for that * up all theme data. If @a theme_name is not NULL it will look for that
@ -1434,8 +1438,8 @@ efreet_icon_theme_dir_scan_all(const char *theme_name)
/** /**
* @internal * @internal
* @param search_dir: The directory to scan * @param search_dir The directory to scan
* @param theme_name: Scan for this specific theme, set to NULL to find all * @param theme_name Scan for this specific theme, set to NULL to find all
* themes. * themes.
* @return Returns no value * @return Returns no value
* @brief Scans the given directory and adds non-hidden icon themes to the * @brief Scans the given directory and adds non-hidden icon themes to the
@ -1498,8 +1502,8 @@ error:
/** /**
* @internal * @internal
* @param theme: The theme to set the values into * @param theme The theme to set the values into
* @param path: The path to the index.theme file for this theme * @param path The path to the index.theme file for this theme
* @return Returns no value * @return Returns no value
* @brief This will load up the theme with the data in the index.theme file * @brief This will load up the theme with the data in the index.theme file
*/ */
@ -1593,8 +1597,8 @@ error:
/** /**
* @internal * @internal
* @param ini: The ini file with information on this directory * @param ini The ini file with information on this directory
* @param name: The name of the directory * @param name The name of the directory
* @return Returns a new Efreet_Icon_Theme_Directory based on the * @return Returns a new Efreet_Icon_Theme_Directory based on the
* information in @a ini. * information in @a ini.
* @brief Creates and initialises an icon theme directory from the given ini * @brief Creates and initialises an icon theme directory from the given ini
@ -1671,7 +1675,7 @@ efreet_icon_theme_directory_new(Efreet_Ini *ini, const char *name)
/** /**
* @internal * @internal
* @param dir: The Efreet_Icon_Theme_Directory to free * @param dir The Efreet_Icon_Theme_Directory to free
* @return Returns no value * @return Returns no value
* @brief Frees the given directory @a dir * @brief Frees the given directory @a dir
*/ */

View File

@ -130,12 +130,12 @@ struct Efreet_Icon
}; };
/** /**
* Efreet_Point * Efreet_Icon_Point
*/ */
typedef struct Efreet_Icon_Point Efreet_Icon_Point; typedef struct Efreet_Icon_Point Efreet_Icon_Point;
/** /**
* Efreet_Point * Efreet_Icon_Point
* @brief Stores an x, y point. * @brief Stores an x, y point.
*/ */
struct Efreet_Icon_Point struct Efreet_Icon_Point

View File

@ -76,7 +76,7 @@ efreet_ini_shutdown(void)
} }
/** /**
* @param file: The file to parse * @param file The file to parse
* @return Returns a new Efreet_Ini structure initialized with the contents * @return Returns a new Efreet_Ini structure initialized with the contents
* of @a file, or NULL on memory allocation failure * of @a file, or NULL on memory allocation failure
* @brief Creates and initializes a new Ini structure with the contents of * @brief Creates and initializes a new Ini structure with the contents of
@ -289,7 +289,7 @@ next_line:
} }
/** /**
* @param ini: The Efreet_Ini to work with * @param ini The Efreet_Ini to work with
* @return Returns no value * @return Returns no value
* @brief Frees the given Efree_Ini structure. * @brief Frees the given Efree_Ini structure.
*/ */
@ -303,8 +303,8 @@ efreet_ini_free(Efreet_Ini *ini)
} }
/** /**
* @param ini: The Efreet_Ini to work with * @param ini The Efreet_Ini to work with
* @param file: The file to load * @param file The file to load
* @return Returns no value * @return Returns no value
* @brief Saves the given Efree_Ini structure. * @brief Saves the given Efree_Ini structure.
*/ */
@ -331,8 +331,8 @@ efreet_ini_save(Efreet_Ini *ini, const char *file)
} }
/** /**
* @param ini: The Efreet_Ini to work with * @param ini The Efreet_Ini to work with
* @param section: The section of the ini file we want to get values from * @param section The section of the ini file we want to get values from
* @return Returns 1 if the section exists, otherwise 0 * @return Returns 1 if the section exists, otherwise 0
* @brief Sets the current working section of the ini file to @a section * @brief Sets the current working section of the ini file to @a section
*/ */
@ -346,8 +346,8 @@ efreet_ini_section_set(Efreet_Ini *ini, const char *section)
} }
/** /**
* @param ini: The Efreet_Ini to work with * @param ini The Efreet_Ini to work with
* @param section: The section of the ini file we want to add * @param section The section of the ini file we want to add
* @return Returns no value * @return Returns no value
* @brief Adds a new working section of the ini file to @a section * @brief Adds a new working section of the ini file to @a section
*/ */
@ -367,8 +367,8 @@ efreet_ini_section_add(Efreet_Ini *ini, const char *section)
} }
/** /**
* @param ini: The Efree_Ini to work with * @param ini The Efree_Ini to work with
* @param key: The key to lookup * @param key The key to lookup
* @return Returns the string associated with the given key or NULL if not * @return Returns the string associated with the given key or NULL if not
* found. * found.
* @brief Retrieves the value for the given key or NULL if none found. * @brief Retrieves the value for the given key or NULL if none found.
@ -382,9 +382,9 @@ efreet_ini_string_get(Efreet_Ini *ini, const char *key)
} }
/** /**
* @param ini: The Efree_Ini to work with * @param ini The Efree_Ini to work with
* @param key: The key to use * @param key The key to use
* @param value: The value to set * @param value The value to set
* @return Returns no value * @return Returns no value
* @brief Sets the value for the given key * @brief Sets the value for the given key
*/ */
@ -398,8 +398,8 @@ efreet_ini_string_set(Efreet_Ini *ini, const char *key, const char *value)
} }
/** /**
* @param ini: The Efree_Ini to work with * @param ini The Efree_Ini to work with
* @param key: The key to lookup * @param key The key to lookup
* @return Returns the integer associated with the given key or -1 if not * @return Returns the integer associated with the given key or -1 if not
* found. * found.
* @brief Retrieves the value for the given key or -1 if none found. * @brief Retrieves the value for the given key or -1 if none found.
@ -418,9 +418,9 @@ efreet_ini_int_get(Efreet_Ini *ini, const char *key)
} }
/** /**
* @param ini: The Efree_Ini to work with * @param ini The Efree_Ini to work with
* @param key: The key to use * @param key The key to use
* @param value: The value to set * @param value The value to set
* @return Returns no value * @return Returns no value
* @brief Sets the value for the given key * @brief Sets the value for the given key
*/ */
@ -436,8 +436,8 @@ efreet_ini_int_set(Efreet_Ini *ini, const char *key, int value)
} }
/** /**
* @param ini: The Efree_Ini to work with * @param ini The Efree_Ini to work with
* @param key: The key to lookup * @param key The key to lookup
* @return Returns the double associated with the given key or -1 if not * @return Returns the double associated with the given key or -1 if not
* found. * found.
* @brief Retrieves the value for the given key or -1 if none found. * @brief Retrieves the value for the given key or -1 if none found.
@ -456,9 +456,9 @@ efreet_ini_double_get(Efreet_Ini *ini, const char *key)
} }
/** /**
* @param ini: The Efree_Ini to work with * @param ini The Efree_Ini to work with
* @param key: The key to use * @param key The key to use
* @param value: The value to set * @param value The value to set
* @return Returns no value * @return Returns no value
* @brief Sets the value for the given key * @brief Sets the value for the given key
*/ */
@ -478,8 +478,8 @@ efreet_ini_double_set(Efreet_Ini *ini, const char *key, double value)
} }
/** /**
* @param ini: The ini struct to work with * @param ini The ini struct to work with
* @param key: The key to search for * @param key The key to search for
* @return Returns 1 if the boolean is true, 0 otherwise * @return Returns 1 if the boolean is true, 0 otherwise
* @brief Retrieves the boolean value at key @a key from the ini @a ini * @brief Retrieves the boolean value at key @a key from the ini @a ini
*/ */
@ -497,9 +497,9 @@ efreet_ini_boolean_get(Efreet_Ini *ini, const char *key)
} }
/** /**
* @param ini: The ini struct to work with * @param ini The ini struct to work with
* @param key: The key to use * @param key The key to use
* @param value: The value to set * @param value The value to set
* @return Returns no value * @return Returns no value
* @brief Sets the value for the given key * @brief Sets the value for the given key
*/ */
@ -513,8 +513,8 @@ efreet_ini_boolean_set(Efreet_Ini *ini, const char *key, unsigned int value)
} }
/** /**
* @param ini: The ini struct to work with * @param ini The ini struct to work with
* @param key: The key to search for * @param key The key to search for
* @return Returns the utf8 encoded string associated with @a key, or NULL * @return Returns the utf8 encoded string associated with @a key, or NULL
* if none found * if none found
* @brief Retrieves the utf8 encoded string associated with @a key in the current locale or NULL if none found * @brief Retrieves the utf8 encoded string associated with @a key in the current locale or NULL if none found
@ -576,9 +576,9 @@ efreet_ini_localestring_get(Efreet_Ini *ini, const char *key)
} }
/** /**
* @param ini: The ini struct to work with * @param ini The ini struct to work with
* @param key: The key to use * @param key The key to use
* @param value: The value to set * @param value The value to set
* @return Returns no value * @return Returns no value
* @brief Sets the value for the given key * @brief Sets the value for the given key
*/ */
@ -617,8 +617,8 @@ efreet_ini_localestring_set(Efreet_Ini *ini, const char *key, const char *value)
} }
/** /**
* @param ini: The ini struct to work with * @param ini The ini struct to work with
* @param key: The key to remove * @param key The key to remove
* @return Returns no value * @return Returns no value
* @brief Remove the given key from the ini struct * @brief Remove the given key from the ini struct
*/ */

View File

@ -639,6 +639,13 @@ efreet_menu_new(const char *name)
return menu; return menu;
} }
/**
* @brief Override which file is used for menu creation
* @param file The file to use for menu creation
*
* This file is only used if it exists, else the standard files will be used
* for the menu.
*/
EAPI void EAPI void
efreet_menu_file_set(const char *file) efreet_menu_file_set(const char *file)
{ {
@ -688,7 +695,7 @@ efreet_menu_get(void)
} }
/** /**
* @param path: The path of the menu to load * @param path The path of the menu to load
* @return Returns the Efreet_Menu_Internal representation on success or NULL on * @return Returns the Efreet_Menu_Internal representation on success or NULL on
* failure * failure
* @brief Parses the given .menu file and creates the menu representation * @brief Parses the given .menu file and creates the menu representation
@ -766,8 +773,8 @@ efreet_menu_parse(const char *path)
} }
/** /**
* @param menu: The menu to work with * @param menu The menu to work with
* @param path: The path where the menu should be saved * @param path The path where the menu should be saved
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Saves the menu to file * @brief Saves the menu to file
*/ */
@ -886,9 +893,9 @@ efreet_menu_save_indent(FILE *f, int indent)
} }
/** /**
* @param menu: The menu to work with * @param menu The menu to work with
* @param desktop: The desktop to insert * @param desktop The desktop to insert
* @param pos: The position to place the new desktop * @param pos The position to place the new desktop
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Insert a desktop element in a menu structure. Only accepts desktop files * @brief Insert a desktop element in a menu structure. Only accepts desktop files
* in default directories. * in default directories.
@ -922,8 +929,8 @@ efreet_menu_desktop_insert(Efreet_Menu *menu, Efreet_Desktop *desktop, int pos)
} }
/** /**
* @param menu: The menu to work with * @param menu The menu to work with
* @param desktop: The desktop to remove * @param desktop The desktop to remove
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Remove a desktop element in a menu structure. Only accepts desktop files * @brief Remove a desktop element in a menu structure. Only accepts desktop files
* in default directories. * in default directories.
@ -948,9 +955,9 @@ efreet_menu_desktop_remove(Efreet_Menu *menu, Efreet_Desktop *desktop)
} }
/** /**
* @param menu: The menu to work with * @param menu The menu to work with
* @param menu: The menu to work with * @param menu The menu to work with
* @param indent: The indent level to print the menu at * @param indent The indent level to print the menu at
* @return Returns no value * @return Returns no value
* @brief Dumps the contents of the menu to the command line * @brief Dumps the contents of the menu to the command line
*/ */
@ -989,9 +996,9 @@ efreet_menu_dump(Efreet_Menu *menu, const char *indent)
} }
/** /**
* @param user_dir: The user directory to work with * @param user_dir The user directory to work with
* @param system_dirs: The system directories to work with * @param system_dirs The system directories to work with
* @param suffix: The path suffix to add * @param suffix The path suffix to add
* @return Returns the list of directories * @return Returns the list of directories
* @brief Creates the list of directories based on the user * @brief Creates the list of directories based on the user
* dir, system dirs and given suffix. * dir, system dirs and given suffix.
@ -1041,7 +1048,7 @@ efreet_menu_internal_new(void)
} }
/** /**
* @param menu: The menu to free * @param menu The menu to free
* @return Returns no value * @return Returns no value
* @brief Frees up the given menu structure * @brief Frees up the given menu structure
*/ */
@ -1093,8 +1100,8 @@ efreet_menu_prefix_get(void)
/** /**
* @internal * @internal
* @param menu: The menu to populate * @param menu The menu to populate
* @param xml: The xml dom tree to populate from * @param xml The xml dom tree to populate from
* @return Returns 1 if this XML tree is valid, 0 otherwise * @return Returns 1 if this XML tree is valid, 0 otherwise
* @brief Populates the given menu from the given xml structure * @brief Populates the given menu from the given xml structure
* *
@ -1129,8 +1136,8 @@ efreet_menu_handle_menu(Efreet_Menu_Internal *internal, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent Menu * @param parent The parent Menu
* @param xml: The xml that defines the menu * @param xml The xml that defines the menu
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the sub-menu nodes of the XML file * @brief Handles the sub-menu nodes of the XML file
*/ */
@ -1168,8 +1175,8 @@ efreet_menu_handle_sub_menu(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the AppDir tag * @brief Handles the AppDir tag
*/ */
@ -1204,8 +1211,8 @@ efreet_menu_handle_app_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: UNUSED * @param xml UNUSED
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the DefaultAppDirs * @brief Handles the DefaultAppDirs
*/ */
@ -1244,8 +1251,8 @@ efreet_menu_handle_default_app_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xm
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the DirectoryDir tag * @brief Handles the DirectoryDir tag
*/ */
@ -1274,8 +1281,8 @@ efreet_menu_handle_directory_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: UNUSED * @param xml UNUSED
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the DefaultDirectoryDirs tag * @brief Handles the DefaultDirectoryDirs tag
*/ */
@ -1302,8 +1309,8 @@ efreet_menu_handle_default_directory_dirs(Efreet_Menu_Internal *parent, Efreet_X
/** /**
* @internal * @internal
* @param parent: The parent Menu * @param parent The parent Menu
* @param xml: The xml to work with * @param xml The xml to work with
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Sets the menu name from the given XML fragment. * @brief Sets the menu name from the given XML fragment.
*/ */
@ -1327,8 +1334,8 @@ efreet_menu_handle_name(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Directory tag * @brief Handles the Directory tag
* *
@ -1348,8 +1355,8 @@ efreet_menu_handle_directory(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the OnlyUnallocated tag * @brief Handles the OnlyUnallocated tag
*/ */
@ -1369,8 +1376,8 @@ efreet_menu_handle_only_unallocated(Efreet_Menu_Internal *parent, Efreet_Xml *xm
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the NotOnlyUnallocated tag * @brief Handles the NotOnlyUnallocated tag
*/ */
@ -1390,8 +1397,8 @@ efreet_menu_handle_not_only_unallocated(Efreet_Menu_Internal *parent, Efreet_Xml
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Deleted tag * @brief Handles the Deleted tag
*/ */
@ -1411,8 +1418,8 @@ efreet_menu_handle_deleted(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the NotDeleted tag * @brief Handles the NotDeleted tag
*/ */
@ -1432,8 +1439,8 @@ efreet_menu_handle_not_deleted(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The XML tree to work with * @param xml The XML tree to work with
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles parsing the Include tag and all subtags * @brief Handles parsing the Include tag and all subtags
*/ */
@ -1446,8 +1453,8 @@ efreet_menu_handle_include(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Exclude tag and all subtags * @brief Handles the Exclude tag and all subtags
*/ */
@ -1460,8 +1467,8 @@ efreet_menu_handle_exclude(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param op: The filter operation * @param op The filter operation
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Filename tag * @brief Handles the Filename tag
*/ */
@ -1477,8 +1484,8 @@ efreet_menu_handle_filename(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param op: The filter operation * @param op The filter operation
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Category tag * @brief Handles the Category tag
*/ */
@ -1495,8 +1502,8 @@ efreet_menu_handle_category(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param op: The filter operation * @param op The filter operation
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the All tag and all subtags * @brief Handles the All tag and all subtags
*/ */
@ -1512,8 +1519,8 @@ efreet_menu_handle_all(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param op: The filter operation * @param op The filter operation
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the And tag and all subtags * @brief Handles the And tag and all subtags
*/ */
@ -1528,8 +1535,8 @@ efreet_menu_handle_and(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param op: The filter operation * @param op The filter operation
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Or tag and all subtags * @brief Handles the Or tag and all subtags
*/ */
@ -1544,8 +1551,8 @@ efreet_menu_handle_or(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param op: The filter operation * @param op The filter operation
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Not tag and all subtags * @brief Handles the Not tag and all subtags
*/ */
@ -1560,8 +1567,8 @@ efreet_menu_handle_not(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the MergeFile tag * @brief Handles the MergeFile tag
*/ */
@ -1658,9 +1665,9 @@ efreet_menu_handle_merge_file(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu to merge into * @param parent The parent menu to merge into
* @param xml: The XML to be merged * @param xml The XML to be merged
* @param path: The path to the .menu file to merge * @param path The path to the .menu file to merge
*/ */
static int static int
efreet_menu_merge(Efreet_Menu_Internal *parent, Efreet_Xml *xml, const char *path) efreet_menu_merge(Efreet_Menu_Internal *parent, Efreet_Xml *xml, const char *path)
@ -1711,8 +1718,8 @@ efreet_menu_merge(Efreet_Menu_Internal *parent, Efreet_Xml *xml, const char *pat
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the MergeDir tag * @brief Handles the MergeDir tag
*/ */
@ -1740,9 +1747,9 @@ efreet_menu_handle_merge_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: the parent menu of the merge * @param parent the parent menu of the merge
* @param xml: The xml tree * @param xml The xml tree
* @param path: The path to the merge directory * @param path The path to the merge directory
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Find all of the .menu files in the given directory and merge them * @brief Find all of the .menu files in the given directory and merge them
* into the @a parent menu. * into the @a parent menu.
@ -1786,8 +1793,8 @@ efreet_menu_merge_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml, const char
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the DefaultMergeDirs tag * @brief Handles the DefaultMergeDirs tag
*/ */
@ -1848,8 +1855,8 @@ efreet_menu_handle_default_merge_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the LegacyDir tag * @brief Handles the LegacyDir tag
*/ */
@ -1874,9 +1881,9 @@ efreet_menu_handle_legacy_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param legacy_dir: The legacy directory path * @param legacy_dir The legacy directory path
* @param prefix: The legacy directory prefix if one set * @param prefix The legacy directory prefix if one set
* @return Returns the Efreet_Menu_Internal representing the legacy hierarchy * @return Returns the Efreet_Menu_Internal representing the legacy hierarchy
* @brief Handles the process of merging @a legacy_dir into @a parent menu * @brief Handles the process of merging @a legacy_dir into @a parent menu
*/ */
@ -2036,8 +2043,8 @@ efreet_menu_handle_legacy_dir_helper(Efreet_Menu_Internal *root,
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: UNUSED * @param xml UNUSED
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the KDELegacyDirs tag * @brief Handles the KDELegacyDirs tag
*/ */
@ -2071,8 +2078,8 @@ efreet_menu_handle_kde_legacy_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Move tag and all subtags * @brief Handles the Move tag and all subtags
*/ */
@ -2111,8 +2118,8 @@ efreet_menu_handle_move(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Old tag * @brief Handles the Old tag
*/ */
@ -2154,8 +2161,8 @@ efreet_menu_handle_old(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the New tag * @brief Handles the New tag
*/ */
@ -2178,8 +2185,8 @@ efreet_menu_handle_new(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the Layout tag and all subtags * @brief Handles the Layout tag and all subtags
*/ */
@ -2219,8 +2226,8 @@ efreet_menu_handle_layout(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The xml tree * @param xml The xml tree
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Handles the DefaultLayout tag * @brief Handles the DefaultLayout tag
*/ */
@ -2389,9 +2396,9 @@ efreet_menu_handle_layout_merge(Efreet_Menu_Internal *parent, Efreet_Xml *xml, i
/** /**
* @internal * @internal
* @param parent: The parent menu * @param parent The parent menu
* @param xml: The XML tree to parse * @param xml The XML tree to parse
* @param type: The type of filter * @param type The type of filter
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Parses the given XML tree and adds the filter to the parent menu * @brief Parses the given XML tree and adds the filter to the parent menu
*/ */
@ -2422,8 +2429,8 @@ efreet_menu_handle_filter(Efreet_Menu_Internal *parent, Efreet_Xml *xml,
/** /**
* @internal * @internal
* @param op: The operation to work with * @param op The operation to work with
* @param xml: The XML tree representing this operation * @param xml The XML tree representing this operation
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Parses the given XML tree and populates the operation * @brief Parses the given XML tree and populates the operation
*/ */
@ -2476,7 +2483,7 @@ efreet_menu_filter_new(void)
/** /**
* @internal * @internal
* @param filter: The filter to work with * @param filter The filter to work with
* @return Returns no data * @return Returns no data
* @brief Frees the given filter and all data * @brief Frees the given filter and all data
*/ */
@ -2513,7 +2520,7 @@ efreet_menu_layout_new(void)
/** /**
* @internal * @internal
* @param filter: The filter to work with * @param filter The filter to work with
* @return Returns no data * @return Returns no data
* @brief Frees the given filter and all data * @brief Frees the given filter and all data
*/ */
@ -2543,7 +2550,7 @@ efreet_menu_filter_op_new(void)
/** /**
* @internal * @internal
* @param op: The operation to work with * @param op The operation to work with
* @return Returns no value. * @return Returns no value.
* @brief Frees the given operation and all sub data * @brief Frees the given operation and all sub data
*/ */
@ -2576,7 +2583,7 @@ efreet_menu_desktop_new(void)
/** /**
* @internal * @internal
* @param md: The Efreet_Menu_Desktop to free * @param md The Efreet_Menu_Desktop to free
* @return Returns no value * @return Returns no value
* @brief Frees the given structure * @brief Frees the given structure
*/ */
@ -2604,8 +2611,7 @@ efreet_menu_entry_new(void)
} }
/** /**
* @internal * @param entry The Efreet_Menu to free
* @param entry: The Efreet_Menu to free
* @return Returns no value * @return Returns no value
* @brief Frees the given structure * @brief Frees the given structure
*/ */
@ -2625,9 +2631,9 @@ efreet_menu_free(Efreet_Menu *entry)
/** /**
* @internal * @internal
* @param op: The op to add a child too * @param op The op to add a child too
* @param xml: The XML tree of the child * @param xml The XML tree of the child
* @param type: The type of child to add * @param type The type of child to add
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Parses the given XML tree and populates a new child operation. * @brief Parses the given XML tree and populates a new child operation.
*/ */
@ -2653,8 +2659,8 @@ efreet_menu_handle_filter_child_op(Efreet_Menu_Filter_Op *op, Efreet_Xml *xml,
/** /**
* @internal * @internal
* @param menu: The menu to work with * @param menu The menu to work with
* @param only_unallocated: Do we only look for unallocated items? * @param only_unallocated Do we only look for unallocated items?
* @return Returns 1 if we've successfully processed the menu, 0 otherwise * @return Returns 1 if we've successfully processed the menu, 0 otherwise
* @brief Handles the processing of the menu data to retrieve the .desktop * @brief Handles the processing of the menu data to retrieve the .desktop
* files for the menu * files for the menu
@ -2718,8 +2724,8 @@ efreet_menu_process_dirs(Efreet_Menu_Internal *internal)
/** /**
* @internal * @internal
* @param menu: the menu to process * @param menu the menu to process
* @param only_unallocated: Only handle menus that deal with unallocated items * @param only_unallocated Only handle menus that deal with unallocated items
* @return Returns no value * @return Returns no value
* @brief Handles the processing of the filters attached to the given menu. * @brief Handles the processing of the filters attached to the given menu.
* *
@ -2802,11 +2808,11 @@ efreet_menu_process_filters(Efreet_Menu_Internal *internal, unsigned int only_un
/** /**
* @internal * @internal
* @param pool: The app pool to iterate * @param pool The app pool to iterate
* @param applications: The list of applications to append too * @param applications The list of applications to append too
* @param matches: The hash of previously matched ids * @param matches The hash of previously matched ids
* @param filter: The menu filter to run on the pool items * @param filter The menu filter to run on the pool items
* @param only_unallocated: Do we check only unallocated pool items? * @param only_unallocated Do we check only unallocated pool items?
* @return Returns no value. * @return Returns no value.
* @brief This will iterate the items in @a pool and append them to @a * @brief This will iterate the items in @a pool and append them to @a
* applications if they match the @a filter given and aren't previoulsy entered * applications if they match the @a filter given and aren't previoulsy entered
@ -2837,8 +2843,8 @@ efreet_menu_process_app_pool(Eina_List *pool, Eina_List *applications,
/** /**
* @internal * @internal
* @param op: The filter operation to execute * @param op The filter operation to execute
* @param md: The desktop to run the filter on * @param md The desktop to run the filter on
* @return Returns 1 if this desktop matches the given filter, 0 otherwise * @return Returns 1 if this desktop matches the given filter, 0 otherwise
* @brief This will execute the given @a filter on the given desktop * @brief This will execute the given @a filter on the given desktop
*/ */
@ -2859,8 +2865,8 @@ efreet_menu_filter_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *md)
/** /**
* @internal * @internal
* @param op: The filter operation to execute * @param op The filter operation to execute
* @param md: The desktop to execute on * @param md The desktop to execute on
* @return Returns 1 if the desktop matches, 0 otherwise * @return Returns 1 if the desktop matches, 0 otherwise
* @brief Executes the OR operation, @a op, on the desktop, @a md. * @brief Executes the OR operation, @a op, on the desktop, @a md.
*/ */
@ -2903,8 +2909,8 @@ efreet_menu_filter_or_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *md
/** /**
* @internal * @internal
* @param op: The filter operation to execute * @param op The filter operation to execute
* @param md: The desktop to execute on * @param md The desktop to execute on
* @return Returns 1 if the desktop matches, 0 otherwise * @return Returns 1 if the desktop matches, 0 otherwise
* @brief Executes the AND operation, @a op, on the desktop, @a md. * @brief Executes the AND operation, @a op, on the desktop, @a md.
*/ */
@ -2950,8 +2956,8 @@ efreet_menu_filter_and_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *m
/** /**
* @internal * @internal
* @param op: The filter operation to execute * @param op The filter operation to execute
* @param md: The desktop to execute on * @param md The desktop to execute on
* @return Returns 1 if the desktop matches, 0 otherwise * @return Returns 1 if the desktop matches, 0 otherwise
* @brief Executes the NOT operation, @a op, on the desktop, @a md. * @brief Executes the NOT operation, @a op, on the desktop, @a md.
*/ */
@ -3000,8 +3006,8 @@ efreet_menu_filter_not_matches(Efreet_Menu_Filter_Op *op, Efreet_Menu_Desktop *m
/** /**
* @internal * @internal
* @param dest: The destination menu * @param dest The destination menu
* @param src: The source menu * @param src The source menu
* @return Returns no value * @return Returns no value
* @brief Takes the child elements of the menu @a src and puts then on the * @brief Takes the child elements of the menu @a src and puts then on the
* _start_ of the menu @a dest. * _start_ of the menu @a dest.
@ -3091,7 +3097,7 @@ efreet_menu_concatenate(Efreet_Menu_Internal *dest, Efreet_Menu_Internal *src)
/** /**
* @internal * @internal
* @param menu: The menu to work with * @param menu The menu to work with
* @return Returns no value * @return Returns no value
* @brief Handles any \<Move\> commands in the menus * @brief Handles any \<Move\> commands in the menus
*/ */
@ -3174,9 +3180,9 @@ error:
/** /**
* @internal * @internal
* @param menu: The menu to start searching from * @param menu The menu to start searching from
* @param name: The menu name to find * @param name The menu name to find
* @param parent: The parent of the found menu * @param parent The parent of the found menu
* @return Returns the menu with the given @a name or NULL if none found * @return Returns the menu with the given @a name or NULL if none found
* @brief Searches the menu tree starting at @a menu looking for a menu with * @brief Searches the menu tree starting at @a menu looking for a menu with
* @a name. * @a name.
@ -3260,7 +3266,7 @@ efreet_menu_move_new(void)
/** /**
* @internal * @internal
* @param move: The Efreet_Menu_Move to free * @param move The Efreet_Menu_Move to free
* @return Returns no value. * @return Returns no value.
* @brief Frees the given move structure * @brief Frees the given move structure
*/ */
@ -3292,7 +3298,7 @@ efreet_menu_app_dir_new(void)
/** /**
* @internal * @internal
* @param dir: The Efreet_Menu_App_Dir to free * @param dir The Efreet_Menu_App_Dir to free
* @return Returns no value. * @return Returns no value.
* @brief Frees the given dir structure * @brief Frees the given dir structure
*/ */
@ -3308,8 +3314,8 @@ efreet_menu_app_dir_free(Efreet_Menu_App_Dir *dir)
/** /**
* @internal * @internal
* @param a: The app dir to compare too * @param a The app dir to compare too
* @param b: The path to compare too * @param b The path to compare too
* @return Returns 0 if the strings are equals, != 0 otherwise * @return Returns 0 if the strings are equals, != 0 otherwise
* @brief Compares the too strings * @brief Compares the too strings
*/ */
@ -3494,7 +3500,7 @@ efreet_menu_app_dir_scan(Efreet_Menu_Internal *internal, const char *path, const
/** /**
* @internal * @internal
* @param menu: The menu to work with * @param menu The menu to work with
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Process the directory dirs in @a menu * @brief Process the directory dirs in @a menu
*/ */
@ -3531,9 +3537,9 @@ efreet_menu_directory_dirs_process(Efreet_Menu_Internal *internal)
/** /**
* @internal * @internal
* @param path: The path to scan * @param path The path to scan
* @param relative_path: The relative portion of the path * @param relative_path The relative portion of the path
* @param cache: The cache to populate * @param cache The cache to populate
* @return Returns 1 on success or 0 on failure * @return Returns 1 on success or 0 on failure
* @brief Scans the given directory dir for .directory files and adds the * @brief Scans the given directory dir for .directory files and adds the
* applications to the cache * applications to the cache
@ -3586,8 +3592,8 @@ efreet_menu_directory_dir_scan(const char *path, const char *relative_path,
/** /**
* @internal * @internal
* @param menu: The menu to work with * @param menu The menu to work with
* @param path: The path to work with * @param path The path to work with
* @return Returns the desktop file for this path or NULL if none exists * @return Returns the desktop file for this path or NULL if none exists
* @brief Finds the desktop file for the given path. * @brief Finds the desktop file for the given path.
*/ */
@ -3610,8 +3616,8 @@ efreet_menu_directory_get(Efreet_Menu_Internal *internal, const char *path)
/** /**
* @internal * @internal
* @param a: The first desktop * @param a The first desktop
* @param b: The second desktop * @param b The second desktop
* @return Returns the comparison of the desktop files * @return Returns the comparison of the desktop files
* @brief Compares the desktop files. * @brief Compares the desktop files.
*/ */

View File

@ -293,7 +293,7 @@ efreet_mime_shutdown(void)
} }
/** /**
* @param file: The file to find the mime type * @param file The file to find the mime type
* @return Returns mime type as a string * @return Returns mime type as a string
* @brief Retreive the mime type of a file * @brief Retreive the mime type of a file
*/ */
@ -324,9 +324,9 @@ efreet_mime_type_get(const char *file)
} }
/** /**
* @param mime: The name of the mime type * @param mime The name of the mime type
* @param theme: The name of the theme to search icons in * @param theme The name of the theme to search icons in
* @param size: The wanted size of the icon * @param size The wanted size of the icon
* @return Returns mime type icon path as a string * @return Returns mime type icon path as a string
* @brief Retreive the mime type icon for a file * @brief Retreive the mime type icon for a file
*/ */
@ -428,7 +428,7 @@ efreet_mime_type_cache_flush(void)
/** /**
* @param file: The file to check the mime type * @param file The file to check the mime type
* @return Returns mime type as a string * @return Returns mime type as a string
* @brief Retreive the mime type of a file using magic * @brief Retreive the mime type of a file using magic
*/ */
@ -439,7 +439,7 @@ efreet_mime_magic_type_get(const char *file)
} }
/** /**
* @param file: The file to check the mime type * @param file The file to check the mime type
* @return Returns mime type as a string * @return Returns mime type as a string
* @brief Retreive the mime type of a file using globs * @brief Retreive the mime type of a file using globs
*/ */
@ -489,7 +489,7 @@ efreet_mime_globs_type_get(const char *file)
} }
/** /**
* @param file: The file to check the mime type * @param file The file to check the mime type
* @return Returns mime type as a string * @return Returns mime type as a string
* @brief Retreive the special mime type of a file * @brief Retreive the special mime type of a file
*/ */
@ -500,7 +500,7 @@ efreet_mime_special_type_get(const char *file)
} }
/** /**
* @param file: The file to check the mime type * @param file The file to check the mime type
* @return Returns mime type as a string * @return Returns mime type as a string
* @brief Retreive the fallback mime type of a file * @brief Retreive the fallback mime type of a file
*/ */
@ -524,7 +524,7 @@ efreet_mime_endian_check(void)
/** /**
* @internal * @internal
* @param file: File to monitor * @param file File to monitor
* @return Returns no value. * @return Returns no value.
* @brief Creates a new file monitor if we aren't already monitoring the * @brief Creates a new file monitor if we aren't already monitoring the
* given file * given file
@ -548,8 +548,8 @@ efreet_mime_monitor_add(const char *file)
/** /**
* @internal * @internal
* @param datadirs: List of XDG data dirs * @param datadirs List of XDG data dirs
* @param datahome: Path to XDG data home directory * @param datahome Path to XDG data home directory
* @return Returns no value * @return Returns no value
* @brief Read all glob files in XDG data/home dirs. * @brief Read all glob files in XDG data/home dirs.
* Also reads the /etc/mime.types file. * Also reads the /etc/mime.types file.
@ -590,8 +590,8 @@ efreet_mime_load_globs(Eina_List *datadirs, const char *datahome)
/** /**
* @internal * @internal
* @param datadirs: List of XDG data dirs * @param datadirs List of XDG data dirs
* @param datahome: Path to XDG data home directory * @param datahome Path to XDG data home directory
* @return Returns no value * @return Returns no value
* @brief Read all magic files in XDG data/home dirs. * @brief Read all magic files in XDG data/home dirs.
*/ */
@ -621,10 +621,10 @@ efreet_mime_load_magics(Eina_List *datadirs, const char *datahome)
/** /**
* @internal * @internal
* @param data: Data pointer passed to monitor_add * @param data Data pointer passed to monitor_add
* @param monitor: Ecore_File_Monitor associated with this event * @param monitor Ecore_File_Monitor associated with this event
* @param event: The type of event * @param event The type of event
* @param path: Path to the file that was updated * @param path Path to the file that was updated
* @return Returns no value * @return Returns no value
* @brief Callback for all file monitors. Just reloads the appropriate * @brief Callback for all file monitors. Just reloads the appropriate
* list depending on which file changed. If it was a magic file * list depending on which file changed. If it was a magic file
@ -654,8 +654,8 @@ efreet_mime_cb_update_file(void *data __UNUSED__,
/** /**
* @internal * @internal
* @param datadirs: List of XDG data dirs * @param datadirs List of XDG data dirs
* @param datahome: Path to XDG data home directory * @param datahome Path to XDG data home directory
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Initializes globs, magics, and monitors lists. * @brief Initializes globs, magics, and monitors lists.
*/ */
@ -708,7 +708,7 @@ efreet_mime_init_files(void)
/** /**
* @internal * @internal
* @param file: File to examine * @param file File to examine
* @return Returns mime type if special file, else NULL * @return Returns mime type if special file, else NULL
* @brief Returns a mime type based on the stat of a file. * @brief Returns a mime type based on the stat of a file.
* This is used first to catch directories and other special * This is used first to catch directories and other special
@ -802,7 +802,7 @@ efreet_mime_special_check(const char *file)
/** /**
* @internal * @internal
* @param file: File to examine * @param file File to examine
* @return Returns mime type or NULL if the file doesn't exist * @return Returns mime type or NULL if the file doesn't exist
* @brief Returns text/plain if the file appears to contain text and * @brief Returns text/plain if the file appears to contain text and
* returns application/octet-stream if it appears to be binary. * returns application/octet-stream if it appears to be binary.
@ -843,7 +843,7 @@ efreet_mime_fallback_check(const char *file)
/** /**
* @internal * @internal
* @param glob: Glob to search for * @param glob Glob to search for
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Removes a glob from the list * @brief Removes a glob from the list
*/ */
@ -866,7 +866,7 @@ efreet_mime_glob_remove(const char *glob)
/** /**
* @internal * @internal
* @param file: mime.types file to load * @param file mime.types file to load
* @return Returns no value * @return Returns no value
* @brief Loads values from a mime.types style file * @brief Loads values from a mime.types style file
* into the globs list. * into the globs list.
@ -920,7 +920,7 @@ efreet_mime_mime_types_load(const char *file)
/** /**
* @internal * @internal
* @param file: globs file to load * @param file globs file to load
* @return Returns no value * @return Returns no value
* @brief Loads values from a mime.types style file * @brief Loads values from a mime.types style file
* into the globs list. * into the globs list.
@ -999,7 +999,7 @@ efreet_mime_shared_mimeinfo_globs_load(const char *file)
/** /**
* @internal * @internal
* @param in: Number to count the digits * @param in Number to count the digits
* @return Returns number of digits * @return Returns number of digits
* @brief Calculates and returns the number of digits * @brief Calculates and returns the number of digits
* in a number. * in a number.
@ -1017,7 +1017,7 @@ efreet_mime_count_digits(int in)
/** /**
* @internal * @internal
* @param file: File to parse * @param file File to parse
* @return Returns no value * @return Returns no value
* @brief Loads a magic file and adds information to magics list * @brief Loads a magic file and adds information to magics list
*/ */
@ -1049,7 +1049,7 @@ efreet_mime_shared_mimeinfo_magic_load(const char *file)
} }
/** /**
* @param data: The data from the file * @param data The data from the file
* @return Returns no value * @return Returns no value
* @brief Parses a magic file * @brief Parses a magic file
* @note Format: * @note Format:
@ -1259,9 +1259,9 @@ efreet_mime_shared_mimeinfo_magic_parse(char *data, int size)
/** /**
* @internal * @internal
* @param file: File to check * @param file File to check
* @param start: Start priority, if 0 start at beginning * @param start Start priority, if 0 start at beginning
* @param end: End priority, should be less then start * @param end End priority, should be less then start
* unless start * unless start
* @return Returns mime type for file if found, NULL if not * @return Returns mime type for file if found, NULL if not
* @brief Applies magic rules to a file given a start and end priority * @brief Applies magic rules to a file given a start and end priority
@ -1362,7 +1362,7 @@ efreet_mime_magic_check_priority(const char *file,
/** /**
* @internal * @internal
* @param data: Data pointer that is being destroyed * @param data Data pointer that is being destroyed
* @return Returns no value * @return Returns no value
* @brief Callback for globs destroy * @brief Callback for globs destroy
*/ */
@ -1378,7 +1378,7 @@ efreet_mime_glob_free(void *data)
/** /**
* @internal * @internal
* @param data: Data pointer that is being destroyed * @param data Data pointer that is being destroyed
* @return Returns no value * @return Returns no value
* @brief Callback for magics destroy * @brief Callback for magics destroy
*/ */
@ -1394,7 +1394,7 @@ efreet_mime_magic_free(void *data)
/** /**
* @internal * @internal
* @param data: Data pointer that is being destroyed * @param data Data pointer that is being destroyed
* @return Returns no value * @return Returns no value
* @brief Callback for magic entry destroy * @brief Callback for magic entry destroy
*/ */
@ -1411,8 +1411,8 @@ efreet_mime_magic_entry_free(void *data)
/** /**
* @internal * @internal
* @param str: String (filename) to match * @param str String (filename) to match
* @param glob: Glob to match str to * @param glob Glob to match str to
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Compares str to glob, case sensitive * @brief Compares str to glob, case sensitive
*/ */
@ -1431,8 +1431,8 @@ efreet_mime_glob_match(const char *str, const char *glob)
/** /**
* @internal * @internal
* @param str: String (filename) to match * @param str String (filename) to match
* @param glob: Glob to match str to * @param glob Glob to match str to
* @return Returns 1 on success, 0 on failure * @return Returns 1 on success, 0 on failure
* @brief Compares str to glob, case insensitive (expects str already in lower case) * @brief Compares str to glob, case insensitive (expects str already in lower case)
*/ */

View File

@ -172,8 +172,8 @@ efreet_trash_dir_get(const char *file)
} }
/** /**
* @param uri: The local uri to move in the trash * @param uri The local uri to move in the trash
* @param force_delete: If you set this to 1 than files on different filesystems * @param force_delete If you set this to 1 than files on different filesystems
* will be deleted permanently * will be deleted permanently
* @return Return 1 on success, 0 on failure or -1 in case the uri is not on the * @return Return 1 on success, 0 on failure or -1 in case the uri is not on the
* same filesystem and force_delete is not set. * same filesystem and force_delete is not set.

View File

@ -20,7 +20,7 @@
/** /**
* @param full_uri: a valid uri string to parse * @param full_uri a valid uri string to parse
* @return Return The corresponding Efreet_Uri structure. Or NULL on errors. * @return Return The corresponding Efreet_Uri structure. Or NULL on errors.
* @brief Read a single uri and return an Efreet_Uri struct. If there's no * @brief Read a single uri and return an Efreet_Uri struct. If there's no
* hostname in the uri then the hostname parameter will be NULL. All the uri * hostname in the uri then the hostname parameter will be NULL. All the uri
@ -84,7 +84,7 @@ efreet_uri_decode(const char *full_uri)
} }
/** /**
* @param uri: Create an URI string from an Efreet_Uri struct * @param uri Create an URI string from an Efreet_Uri struct
* @return The string rapresentation of uri (ex: 'file:///home/my%20name') * @return The string rapresentation of uri (ex: 'file:///home/my%20name')
* @brief Get the string rapresentation of the given uri struct escaping * @brief Get the string rapresentation of the given uri struct escaping
* illegal caracters. Remember to free the string with eina_stringshare_del() * illegal caracters. Remember to free the string with eina_stringshare_del()
@ -119,7 +119,7 @@ efreet_uri_encode(Efreet_Uri *uri)
} }
/** /**
* @param uri: The uri to free * @param uri The uri to free
* @brief Free the given uri structure. * @brief Free the given uri structure.
*/ */
EAPI void EAPI void

View File

@ -81,7 +81,7 @@ efreet_xml_shutdown(void)
/** /**
* @internal * @internal
* @param file: The file to parse * @param file The file to parse
* @return Returns an Efreet_Xml structure for the given file @a file or * @return Returns an Efreet_Xml structure for the given file @a file or
* NULL on failure * NULL on failure
* @brief Parses the given file into an Efreet_Xml structure. * @brief Parses the given file into an Efreet_Xml structure.
@ -123,7 +123,7 @@ efreet_error:
/** /**
* @internal * @internal
* @param xml: The Efree_Xml to free * @param xml The Efree_Xml to free
* @return Returns no value * @return Returns no value
* @brief Frees up the given Efreet_Xml structure * @brief Frees up the given Efreet_Xml structure
*/ */
@ -153,8 +153,8 @@ efreet_xml_del(Efreet_Xml *xml)
} }
/** /**
* @param xml: The xml struct to work with * @param xml The xml struct to work with
* @param key: The attribute key to look for * @param key The attribute key to look for
* @return Returns the value for the given key, or NULL if none found * @return Returns the value for the given key, or NULL if none found
* @brief Retrieves the value for the given attribute key * @brief Retrieves the value for the given attribute key
*/ */