OSDN Git Service

Make list_foreach() even more useful
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 1 Feb 2016 19:51:44 +0000 (11:51 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 2 Feb 2016 01:18:00 +0000 (17:18 -0800)
commit67f57c639e6dc2f302115017eb92c40dd306c15d
tree6275968ec67786a5d9eb24b9edb8148315442f07
parent700b163a3e5673a47df8de9509e971bb10f0580e
Make list_foreach() even more useful

- Changed |callback| return type to list_node_t to be able to interrupt
  iteration (to find specific elements for example).

Change-Id: I00eb83725d03e6f1aec239ae11eb19cf59af35a9
osi/include/list.h
osi/src/list.c
osi/test/list_test.cpp