Skip to content

Commit

Permalink
utils: Put public functions in the "gp" namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Oct 15, 2017
1 parent 53c2fb9 commit 72b74d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion utils/src/filelist.c
Expand Up @@ -172,7 +172,7 @@ static void filelist_scan_directory_int(const gchar *searchdir, SCAN_DIR_PARAMS
* @return GSList of matched files
*
**/
GSList *filelist_scan_directory(guint *files, guint *folders, const gchar *searchdir, gchar **file_patterns,
GSList *gp_filelist_scan_directory(guint *files, guint *folders, const gchar *searchdir, gchar **file_patterns,
gchar **ignored_dirs_patterns, gchar **ignored_file_patterns)
{
SCAN_DIR_PARAMS params;
Expand Down
8 changes: 4 additions & 4 deletions utils/src/filelist.h
Expand Up @@ -16,12 +16,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#ifndef __UTILS_FILELIST_H__
#define __UTILS_FILELIST_H__
#ifndef GP_UTILS_FILELIST_H
#define GP_UTILS_FILELIST_H

#include <glib.h>

GSList *filelist_scan_directory(guint *files, guint *folders, const gchar *searchdir, gchar **file_patterns,
GSList *gp_filelist_scan_directory(guint *files, guint *folders, const gchar *searchdir, gchar **file_patterns,
gchar **ignored_dirs_patterns, gchar **ignored_file_patterns);

#endif
#endif /* GP_UTILS_FILELIST_H */
2 changes: 1 addition & 1 deletion workbench/src/wb_project.c
Expand Up @@ -494,7 +494,7 @@ static guint wb_project_dir_rescan_int(WB_PROJECT *prj, WB_PROJECT_DIR *root)
searchdir = get_combined_path(prj->filename, root->base_dir);
root->file_count = 0;
root->folder_count = 0;
lst = filelist_scan_directory(&(root->file_count), &(root->folder_count),
lst = gp_filelist_scan_directory(&(root->file_count), &(root->folder_count),
searchdir, file_patterns, root->ignored_dirs_patterns, root->ignored_file_patterns);
g_free(searchdir);

Expand Down

0 comments on commit 72b74d4

Please sign in to comment.