libqmi: make some qmi stuff more generic

Make a generic qmi_result function to get the result code from a QMI
response, and factor out some common functionality in qmictl.

BUG=chromium-os:27301
TEST=qmidev_unittest

Change-Id: Ia973741c59e135dcc94a2c1c596f04e11f5e8b04
4 files changed
tree: 57e91ccbefaf11817c03d8abf6c993aff62569c9
  1. .gitignore
  2. LICENSE
  3. Makefile
  4. README
  5. include/
  6. src/