summaryrefslogtreecommitdiffstats
path: root/src/include/dump_dir.h
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-12-09 12:29:54 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2010-12-09 12:29:54 +0100
commit28c588d6a86daa3d2f2bb7cdb4604d79e7dcf08b (patch)
tree7bc2d9c122c4cbf284c338a22a5ddf778cf91176 /src/include/dump_dir.h
parentdc3c5b79ba1ee6fd7a98842fde43d072e004f93b (diff)
downloadabrt-28c588d6a86daa3d2f2bb7cdb4604d79e7dcf08b.tar.gz
abrt-28c588d6a86daa3d2f2bb7cdb4604d79e7dcf08b.tar.xz
abrt-28c588d6a86daa3d2f2bb7cdb4604d79e7dcf08b.zip
create report-libs-devel package; separate out report headers
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include/dump_dir.h')
-rw-r--r--src/include/dump_dir.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/include/dump_dir.h b/src/include/dump_dir.h
deleted file mode 100644
index 8cec9459..00000000
--- a/src/include/dump_dir.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- On-disk storage of crash dumps
-
- Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
- Copyright (C) 2009 RedHat inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-#ifndef DUMP_DIR_H_
-#define DUMP_DIR_H_
-
-/* For DIR */
-#include <sys/types.h>
-#include <dirent.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum {
- DD_FAIL_QUIETLY = (1 << 0),
-};
-
-struct dump_dir {
- char *dd_dir;
- DIR *next_dir;
- int locked;
- uid_t dd_uid;
- gid_t dd_gid;
-};
-
-void dd_close(struct dump_dir *dd);
-
-struct dump_dir *dd_opendir(const char *dir, int flags);
-struct dump_dir *dd_create(const char *dir, uid_t uid);
-int dd_exist(struct dump_dir *dd, const char *path);
-DIR *dd_init_next_file(struct dump_dir *dd);
-int dd_get_next_file(struct dump_dir *dd, char **short_name, char **full_name);
-
-enum {
- /* DD_FAIL_QUIETLY bit is valid for dd_load_text_ext too, */
- DD_LOAD_TEXT_RETURN_NULL_ON_FAILURE = (1 << 1),
-};
-char* dd_load_text_ext(const struct dump_dir *dd, const char *name, unsigned flags);
-char* dd_load_text(const struct dump_dir *dd, const char *name);
-void dd_save_text(struct dump_dir *dd, const char *name, const char *data);
-void dd_save_binary(struct dump_dir *dd, const char *name, const char *data, unsigned size);
-void dd_delete(struct dump_dir *dd);
-
-void delete_crash_dump_dir(const char *dd_dir);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif