diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-05-29 23:55:50 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-29 23:55:50 -0300 |
| commit | 4eb4afa3b6b332fa6cb23633a0cbf1551f1f9f87 (patch) | |
| tree | 60c1b7b96548de34233178240c903a1602f06f66 /lib/debug.h | |
| parent | 0ad79902fc5f4219feef1fec2ee7b5dfd3f34f98 (diff) | |
| parent | ae0994f6eb301491aafb8fef8f1d8c6a9033fae9 (diff) | |
Merge pull request #4393 from donaldsharp/debug_all
Debug all
Diffstat (limited to 'lib/debug.h')
| -rw-r--r-- | lib/debug.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/debug.h b/lib/debug.h index ace060d057..f25cd42691 100644 --- a/lib/debug.h +++ b/lib/debug.h @@ -84,6 +84,7 @@ struct debug { const char *desc; }; +PREDECL_LIST(debug_cb_list) /* * Callback set for debugging code. * @@ -93,6 +94,11 @@ struct debug { */ struct debug_callbacks { /* + * Linked list of Callbacks to call + */ + struct debug_cb_list_item item; + + /* * flags * flags to set on debug flag fields * @@ -233,7 +239,13 @@ struct debug_callbacks { * * MT-Safe */ -void debug_init(const struct debug_callbacks *cb); +void debug_init(struct debug_callbacks *cb); + +/* + * Turn on the cli to turn on/off debugs. + * Should only be called by libfrr + */ +void debug_init_cli(void); #ifdef __cplusplus } |
