Simple rename of the function to be more concise, readable.
Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
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);
return EXIT_FAILURE;
}
- scan_corefolders(NULL);
+ scan_folders(NULL);
if (testmode) {
fprintf(stderr, "+ Exiting from testmode\n");
/*
* 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
* 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:
/* 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);
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);