diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-19 00:22:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-19 00:22:34 +0100 |
commit | a66d02c3290008d50b2b52f84cfbf46a546ba831 (patch) | |
tree | ba2c64f260e8a256c93f5b722dc926d2343b15ca /manager.c | |
parent | 4609154d5513108478f603ff1589e486c001daa9 (diff) |
add functions for dumping server state
Diffstat (limited to 'manager.c')
-rw-r--r-- | manager.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -333,3 +333,25 @@ finish: *_ret = ret; return 0; } + +void manager_dump_jobs(Manager *s, FILE *f) { + void *state; + Job *j; + + assert(s); + assert(f); + + HASHMAP_FOREACH(j, s->jobs, state) + job_dump(j, f); +} + +void manager_dump_names(Manager *s, FILE *f) { + void *state; + Name *n; + + assert(s); + assert(f); + + HASHMAP_FOREACH(n, s->names, state) + name_dump(n, f); +} |