OSDN Git Service

Migrated dumpstate to C++.
authorFelipe Leme <felipeal@google.com>
Mon, 14 Dec 2015 23:09:56 +0000 (15:09 -0800)
committerFelipe Leme <felipeal@google.com>
Mon, 14 Dec 2015 23:24:10 +0000 (15:24 -0800)
commit515eb0db0a03de0a721ef034b3f3898e1d7e42e7
tree00fe08bdaecbc99ede947ed0c6935343eee4f727
parent8b9c0e1af14bf07b216edd1b995048790ddabaca
Migrated dumpstate to C++.

Changes required:

- Explicity casting function pointers.
- Moving variables initialization before 'goto' statements.
- Changing string references from 'char *' to 'const char *'.
- Using 'extern "C"' so device-dependent implementation of
  'dumpstate_board()' can be written in C or C++.

BUG: 25563823

Change-Id: Ibeb70fd23e64e9b530736b554a372cb232fe1a44
cmds/dumpstate/Android.mk
cmds/dumpstate/dumpstate.cpp [moved from cmds/dumpstate/dumpstate.c with 99% similarity]
cmds/dumpstate/dumpstate.h
cmds/dumpstate/libdumpstate_default.cpp [moved from cmds/dumpstate/libdumpstate_default.c with 99% similarity]
cmds/dumpstate/utils.cpp [moved from cmds/dumpstate/utils.c with 98% similarity]