inc: list: minor API improvements

(1) Remove extern "C" guards since nothing here has external linkage

(2) Add helpers to initialize list heads, remove nodes, and check if a
list is empty

(3) Treat list->next == NULL as a valid empty list, so list heads can be
statically initialized to 0 at compile time and still work

Change-Id: I54f62395cdac869af91a34259e25883a35e3a44d
Signed-off-by: Greg Hackmann <[email protected]>
1 file changed
tree: 8235f4ccf293e5310958c468f4e29d2aa73f66c2
  1. firmware/
  2. util/
  3. .gitignore
  4. Android.mk