Revision: 4265 http://geany.svn.sourceforge.net/geany/?rev=4265&view=rev Author: ntrel Date: 2009-09-29 13:51:54 +0000 (Tue, 29 Sep 2009)
Log Message: ----------- Add utils_get_file_list_full() to API.
Modified Paths: -------------- trunk/ChangeLog trunk/src/plugindata.h trunk/src/plugins.c trunk/src/utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-09-29 12:10:17 UTC (rev 4264) +++ trunk/ChangeLog 2009-09-29 13:51:54 UTC (rev 4265) @@ -7,6 +7,8 @@ * src/templates.c, src/utils.c, src/utils.h, src/symbols.c: Add utils_get_file_list_full() which can optionally sort or include a full path for each list item. + * src/utils.c, src/plugindata.h, src/plugins.c: + Add utils_get_file_list_full() to API.
2009-09-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2009-09-29 12:10:17 UTC (rev 4264) +++ trunk/src/plugindata.h 2009-09-29 13:51:54 UTC (rev 4265) @@ -50,7 +50,7 @@ enum { /** The Application Programming Interface (API) version, incremented * whenever any plugin data types are modified or appended to. */ - GEANY_API_VERSION = 158, + GEANY_API_VERSION = 159,
/** The Application Binary Interface (ABI) version, incremented whenever * existing fields in the plugin data types have to be changed or reordered. */ @@ -387,6 +387,8 @@ const gchar *replace); gchar* (*str_middle_truncate) (const gchar *string, guint truncate_length); gchar* (*str_remove_chars) (gchar *string, const gchar *chars); + GSList* (*get_file_list_full)(const gchar *path, gboolean full_path, gboolean sort, + GError **error); } UtilsFuncs;
Modified: trunk/src/plugins.c =================================================================== --- trunk/src/plugins.c 2009-09-29 12:10:17 UTC (rev 4264) +++ trunk/src/plugins.c 2009-09-29 13:51:54 UTC (rev 4265) @@ -201,7 +201,8 @@ &utils_open_browser, &utils_string_replace_first, &utils_str_middle_truncate, - &utils_str_remove_chars + &utils_str_remove_chars, + &utils_get_file_list_full };
static UIUtilsFuncs uiutils_funcs = {
Modified: trunk/src/utils.c =================================================================== --- trunk/src/utils.c 2009-09-29 12:10:17 UTC (rev 4264) +++ trunk/src/utils.c 2009-09-29 13:51:54 UTC (rev 4265) @@ -1341,7 +1341,7 @@ }
-/* +/** * Gets a list of files from the specified directory. * Locale encoding is expected for @a path and used for the file list. The list and the data * in the list should be freed after use, e.g.:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.