State.Watchdog: Add a ResetTimeRemaining method

It's common for services to want to pet the watchdog by reading the
interval, writing it to the TimeRemaining field, and possibly enabling
the watchdog. This patch adds a convenience method to acomplish this in
a single dbus call. A single call also reduces the completion time of
reset requests and the load incurred by performing multiple dbus calls.

Change-Id: I847e821a4ea10e49c6b6703a48a346bbab6fd44c
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed
tree: 0812f154da2c2f1516994689aab61c5c128ddfe3
  1. xyz/
  2. .gitignore
  3. bootstrap.sh
  4. configure.ac
  5. generate_makefile.sh
  6. generate_yaml_makefile.sh
  7. LICENSE
  8. Makefile.am
  9. Makefile.interfaces.in
  10. Makefile.yaml.in
  11. phosphor-dbus-interfaces.pc.in
  12. README.md
README.md

phosphor-dbus-interfaces

YAML descriptors of standard dbus interfaces