Add serialization to the Callout class

Adding serialize() and deserialize() APIs to the callout
class to save and restore the class data persistently.

The APIs take the directory to store the files in, and the
filename itself will be the ID, which is the callout number.

For example, a path could be:
/var/lib/ibm-logging/errors/5/callouts/0.

Tested: Passes the testcases in future commit.

Change-Id: I526f6483df71dbceac3a33f7ce8872f6914bcd9d
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
3 files changed
tree: 1be7b51ca4eb7fd52931f73aa84bd44d3d012632
  1. test/
  2. .clang-format
  3. .gitignore
  4. bootstrap.sh
  5. callout.cpp
  6. callout.hpp
  7. condense_policy.py
  8. configure.ac
  9. create_error_reports.py
  10. dbus.cpp
  11. dbus.hpp
  12. interfaces.hpp
  13. LICENSE
  14. main.cpp
  15. MAINTAINERS
  16. Makefile.am
  17. manager.cpp
  18. manager.hpp
  19. policy_find.cpp
  20. policy_find.hpp
  21. policy_table.cpp
  22. policy_table.hpp
  23. README.md
README.md

Provides IBM specific error logging functionality.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.