X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Fgraph_list.c;h=60cb82a925f0abc1751840ee32347fa8d1231dad;hp=b40547692441a39a39ea9e86b35fcdc9694cbd98;hb=97f299a09ad5bb7a27f5d27afb9f90a5ffd1e218;hpb=15fc8e0d4c830e05437ff068bb75a67fe5ea46b9 diff --git a/src/graph_list.c b/src/graph_list.c index b405476..60cb82a 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -780,8 +780,8 @@ int gl_config_submit (void) /* {{{ */ return (0); } /* }}} int graph_config_submit */ -int gl_graph_get_all (graph_callback_t callback, /* {{{ */ - void *user_data) +int gl_graph_get_all (_Bool include_dynamic, /* {{{ */ + graph_callback_t callback, void *user_data) { size_t i; @@ -799,6 +799,9 @@ int gl_graph_get_all (graph_callback_t callback, /* {{{ */ return (status); } + if (!include_dynamic) + return (0); + for (i = 0; i < gl_dynamic_num; i++) { int status;