Separate IPMI and legacy snoop code to different files

snoopd contains two implementations that have very little in common.
Separate the IPMI code (functions and global objects) into its own file
to reduce #ifdefs and make it easier to understand. Better separate the
cmdline options and help text to only be used in the applicable build
configuration.

Tested: Built with -Dsnoop=enabled and verified only -h option is
accepted. Built without -Dsnoop and verified -d/-r/-b options are
accepted.

Change-Id: I7f14469fafd9f050f6b9f356882ce9e26fb7f206
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
4 files changed
tree: d722da5daf8e847f4c716a642b06ef1233e044fe
  1. ipmisnoop/
  2. lpcsnoop/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .gitignore
  7. 7seg.cpp
  8. 80-7seg.rules
  9. example.cpp
  10. LICENSE
  11. lpcsnoop.service.in
  12. main.cpp
  13. meson.build
  14. meson.options
  15. OWNERS
  16. postcode-7seg@.service
  17. README.md
README.md

LPC Snoop Broadcast Daemon

This is a simple daemon which reads a file interface from an lpc-snoop driver and broadcasts the values read on DBus.