Rename scan_corefolders() to scan_folders()
authorTim Pepper <timothy.c.pepper@linux.intel.com>
Thu, 4 Oct 2012 23:09:03 +0000 (16:09 -0700)
committerTim Pepper <timothy.c.pepper@linux.intel.com>
Thu, 4 Oct 2012 23:09:03 +0000 (16:09 -0700)
Simple rename of the function to be more concise, readable.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
src/coredump.c
src/corewatcher.c
src/corewatcher.h
src/inotification.c

index ee141e7..09b0918 100644 (file)
@@ -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);
index aed3de0..bf44952 100644 (file)
@@ -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:
index 740cc45..32e2ebe 100644 (file)
@@ -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);
index 7d788c0..b83172a 100644 (file)
@@ -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);