Blame src/plugins/oops-utils.h

Packit 8ea169
/*
Packit 8ea169
 * Copyright (C) 2014  ABRT team
Packit 8ea169
 * Copyright (C) 2014  RedHat Inc
Packit 8ea169
 *
Packit 8ea169
 * This program is free software; you can redistribute it and/or modify
Packit 8ea169
 * it under the terms of the GNU General Public License as published by
Packit 8ea169
 * the Free Software Foundation; either version 2 of the License, or
Packit 8ea169
 * (at your option) any later version.
Packit 8ea169
 *
Packit 8ea169
 * This program is distributed in the hope that it will be useful,
Packit 8ea169
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8ea169
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 8ea169
 * GNU General Public License for more details.
Packit 8ea169
 */
Packit 8ea169
#ifndef _ABRT_OOPS_UTILS_H_
Packit 8ea169
#define _ABRT_OOPS_UTILS_H_
Packit 8ea169
Packit 8ea169
#include "libabrt.h"
Packit 8ea169
Packit 8ea169
/* How many problem dirs to create at most?
Packit 8ea169
 * Also causes cooldown sleep with -t if exceeded -
Packit 8ea169
 * useful when called from a log watcher.
Packit 8ea169
 */
Packit 8ea169
#define ABRT_OOPS_MAX_DUMPED_COUNT  5
Packit 8ea169
Packit 8ea169
#ifdef __cplusplus
Packit 8ea169
extern "C" {
Packit 8ea169
#endif
Packit 8ea169
Packit 8ea169
enum {
Packit 8ea169
    ABRT_OOPS_THROTTLE_CREATION = 1 << 0,
Packit 8ea169
    ABRT_OOPS_WORLD_READABLE    = 1 << 1,
Packit 8ea169
    ABRT_OOPS_PRINT_STDOUT      = 1 << 2,
Packit 8ea169
};
Packit 8ea169
Packit 8ea169
int g_abrt_oops_sleep_woke_up_on_signal;
Packit 8ea169
Packit 8ea169
int abrt_oops_process_list(GList *oops_list, const char *dump_location, const char *analyzer, int flags);
Packit 8ea169
unsigned abrt_oops_create_dump_dirs(GList *oops_list, const char *dump_location, const char *analyzer, int flags);
Packit 8ea169
void abrt_oops_save_data_in_dump_dir(struct dump_dir *dd, char *oops, const char *proc_modules);
Packit 8ea169
int abrt_oops_signaled_sleep(int seconds);
Packit 8ea169
char *abrt_oops_string_filter_regex(void);
Packit 8ea169
Packit 8ea169
#ifdef __cplusplus
Packit 8ea169
}
Packit 8ea169
#endif
Packit 8ea169
Packit 8ea169
#endif /*_ABRT_OOPS_UTILS_H_*/