libqmi: Add a list of callbacks, and call them

Add a list of callbacks to a qmidev, add a function to add one, and add a
function to call them.  Call them in qmidev_process.

This does not yet cause qmidev_process to be called when a callback is
added.  That will require some hackery with a pipe.

BUG=chromium-os:27559
TEST=qmidev_unittest :)  (only tests callbacks for now)

Change-Id: I627b19644d6236f1af0cc809a0286bb052181570
4 files changed
tree: a770ad7b3a09d3f0b41982753f82cc3434d2ac0f
  1. LICENSE
  2. Makefile
  3. README
  4. include/
  5. src/