libosmocore/include/osmocom
Neels Hofmeyr 505a22fc51 linuxlist.h: add llist_count()
After subchan_demux.c in libosmo-abis, osmo-bts/common/vty.c and openbsc's
gtphub_test.c, more places would like to count the llist items (mostly unit
tests). Instead of proliferating numerous local implementations, add here.

NOTE: other than the previous llist_len() implementations, this one returns an
*unsigned* length, which might need some adjusting of current callers.

Call this llist_count() rather than llist_len() to highlight the fact that this
is actively iterating. This also avoids a potential naming conflict when
library versions mismatch.

Change-Id: Ic49adc7a346f5722bf624d7d3b4a735e4220ae15
2017-01-21 01:12:32 +01:00
..
codec Mark inline header function as static 2016-09-30 12:31:50 +00:00
core linuxlist.h: add llist_count() 2017-01-21 01:12:32 +01:00
crypt Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
ctrl CTRL: add write-only helpers 2017-01-16 08:54:17 +00:00
gprs gprs: Increase NS_ALLOC_SIZE to 3k 2016-09-23 02:42:46 +00:00
gsm Add abis_nm_fail_evt_vrep() function 2017-01-11 18:12:32 +01:00
sim sim: make osim_reader_ops public 2016-03-19 21:18:40 +01:00
vty fsm: Add VTY introspection of osmo_fsm and their instances 2017-01-07 12:21:11 +00:00