diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-27 15:10:28 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-10-29 01:10:07 +0100 |
commit | 490b38f57a24726f3e3493fc3500cda526c5d0aa (patch) | |
tree | a0b31dc95460e9e9a71c271b19b5536f0156f008 /src/gb/common_vty.c | |
parent | ed197fd4f923512fca5b93b90c2132845896fa59 (diff) |
stats: Use function pointers in reporter objects
Currently case statements are used to select the right reporter
functions. This makes it difficult to add new reporter types,
especially if they are not going to reside in the same file.
This commit introduces per reporter function pointer for
open, close, send_count, and send_item. They are checked for
non-NULL before being called or skipped.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gb/common_vty.c')
0 files changed, 0 insertions, 0 deletions