regs: Handle HUP signals

Enable capturing and handling a HUP signal to reload configuration data.

Tested:
    Handler function called upon receiving a SIGHUP

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I41d136ede5f2a4c0bf595ee58993a4408f153013
diff --git a/phosphor-regulators/src/manager.hpp b/phosphor-regulators/src/manager.hpp
index 2b38821..b6560f6 100644
--- a/phosphor-regulators/src/manager.hpp
+++ b/phosphor-regulators/src/manager.hpp
@@ -4,6 +4,7 @@
 #include <sdbusplus/bus.hpp>
 #include <sdbusplus/server/object.hpp>
 #include <sdeventplus/event.hpp>
+#include <sdeventplus/source/signal.hpp>
 #include <sdeventplus/utility/timer.hpp>
 
 namespace phosphor::power::regulators
@@ -53,6 +54,16 @@
      */
     void timerExpired();
 
+    /**
+     * @brief Callback function to handle receiving a HUP signal
+     * to reload the configuration data.
+     *
+     * @param[in] sigSrc - sd_event_source signal wrapper
+     * @param[in] sigInfo - signal info on signal fd
+     */
+    void sighupHandler(sdeventplus::source::Signal& sigSrc,
+                       const struct signalfd_siginfo* sigInfo);
+
   private:
     /**
      * The dbus bus