ADHD: Daemon for watching A/V device events

Details

  o Adds infrastructure to handle different threads w/ automatic startup.

   Threads are declared with THREAD_DESCRIPTOR, and the system
   infrastructure handles all the startup and management.

  o Adds signal handling infrastructure; restarts threads on SIGHUP.

  o Added command line argument processing.

    Note that, at least, Goobuntu has a defect in getopt_long().

       --option <optional-argument>

   will yield a SEGV because 'optarg' is NULL.

          --option=<optional-argument>

   works, however.

Testing

  Execute 'make' in the 'adhd' directory, and the project builds.
  Execute 'gavd', and note the message output.

BUG=chromium-os:19558
TEST=See above

Change-Id: I1033af5690fac0052c1892a81e296b3d2538ae88
Signed-off-by: Taylor Hutt <thutt@chromium.org>
39 files changed
tree: 450321198946463189b8e5dee3f96ac27d846119
  1. defs/
  2. gavd/
  3. include/
  4. lib/
  5. .gitignore
  6. Makefile