From: Tim Pepper Date: Thu, 4 Oct 2012 23:09:03 +0000 (-0700) Subject: Rename scan_corefolders() to scan_folders() X-Git-Tag: 2.1b_release~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00e8de8e30d0167de7cfd468425b52be6004451c;p=external%2Fcorewatcher.git Rename scan_corefolders() to scan_folders() Simple rename of the function to be more concise, readable. Signed-off-by: Tim Pepper --- diff --git a/src/coredump.c b/src/coredump.c index ee141e7..09b0918 100644 --- a/src/coredump.c +++ b/src/coredump.c @@ -849,7 +849,7 @@ static void scan_processed_folder(void __unused *unused) fprintf(stderr, "+ End scanning %s...\n", processed_folder); } -int scan_corefolders(void __unused *unused) +int scan_folders(void __unused *unused) { scan_core_folder(NULL); scan_processed_folder(NULL); diff --git a/src/corewatcher.c b/src/corewatcher.c index aed3de0..bf44952 100644 --- a/src/corewatcher.c +++ b/src/corewatcher.c @@ -176,7 +176,7 @@ int main(int argc, char**argv) return EXIT_FAILURE; } - scan_corefolders(NULL); + scan_folders(NULL); if (testmode) { fprintf(stderr, "+ Exiting from testmode\n"); @@ -189,7 +189,7 @@ int main(int argc, char**argv) /* * TODO: add a thread / event source tied to a connmand plugin - * o network up: trigger scan_corefolders(), enables event sources + * o network up: trigger scan_folders(), enables event sources * o network down: disable sources (or allow them to run and create * a low quality crash reports?) * o low bandwidth net up: allow transmitting of .txt crash @@ -203,7 +203,7 @@ int main(int argc, char**argv) * long poll for crashes: at inotify time we might not have been * able to fully process things, here we'd push those reports out */ - g_timeout_add_seconds(900, scan_corefolders, NULL); + g_timeout_add_seconds(900, scan_folders, NULL); g_main_loop_run(loop); out: diff --git a/src/corewatcher.h b/src/corewatcher.h index 740cc45..32e2ebe 100644 --- a/src/corewatcher.h +++ b/src/corewatcher.h @@ -70,7 +70,7 @@ extern void *submit_loop(void * unused); /* coredump.c */ extern int move_core(char *fullpath, char *ext); -extern int scan_corefolders(void * unused); +extern int scan_folders(void * unused); extern char *strip_directories(char *fullpath); extern char *get_core_filename(char *filename, char *ext); extern void remove_name_from_hash(char *fullpath, GHashTable *ht); diff --git a/src/inotification.c b/src/inotification.c index 7d788c0..b83172a 100644 --- a/src/inotification.c +++ b/src/inotification.c @@ -119,7 +119,7 @@ void *inotify_loop(void __unused *unused) loop = g_main_loop_ref(loop); source = g_source_new(&InotifySourceFuncs, sizeof(GSource)); g_source_attach(source, context); - g_source_set_callback(source, scan_corefolders, NULL, NULL); + g_source_set_callback(source, scan_folders, NULL, NULL); fprintf(stderr, "+ inotify loop starting\n"); g_main_loop_run(loop);