image manager: add inotify watch

Add an inotify watch to the known software image location.

Hook the inotify fd with sd-event, so that on callback, version d-bus
objects can be created based on the newly added software image.

Resolves openbmc/openbmc#1444.

Change-Id: I5c460f820c8d3a851b8ddc969f26d38870c36991
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
5 files changed
tree: bad284e0c2dd7e730cdc291b084be951c064b663
  1. .gitignore
  2. bootstrap.sh
  3. configure.ac
  4. download_manager.cpp
  5. download_manager.hpp
  6. download_manager_main.cpp
  7. image_manager_main.cpp
  8. LICENSE
  9. Makefile.am
  10. README.md
  11. version_software_manager.cpp
  12. version_software_manager.hpp
  13. watch.cpp
  14. watch.hpp
README.md

To Build

To build this package, do the following steps:

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

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