abrt.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. abrt.h
  3. Copyright (C) 2012 Red Hat, Inc.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. #ifndef SATYR_ABRT_H
  17. #define SATYR_ABRT_H
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. #include "report_type.h"
  22. #include <stdbool.h>
  23. bool
  24. sr_abrt_print_report_from_dir(const char *directory,
  25. char **error_message);
  26. /* NOTE: the hash_fingerprints argument has no effect because fingerprint
  27. * generation is disabled. */
  28. bool
  29. sr_abrt_create_core_stacktrace(const char *directory,
  30. bool hash_fingerprints,
  31. char **error_message);
  32. bool
  33. sr_abrt_create_core_stacktrace_from_gdb(const char *directory,
  34. const char *gdb_output,
  35. bool hash_fingerprints,
  36. char **error_message);
  37. struct sr_rpm_package *
  38. sr_abrt_parse_dso_list(const char *text);
  39. struct sr_rpm_package *
  40. sr_abrt_rpm_packages_from_dir(const char *directory,
  41. char **error_message);
  42. struct sr_operating_system *
  43. sr_abrt_operating_system_from_dir(const char *directory,
  44. char **error_message);
  45. struct sr_report *
  46. sr_abrt_report_from_dir(const char *directory,
  47. char **error_message);
  48. enum sr_report_type
  49. sr_abrt_type_from_analyzer(const char *analyzer);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif