commit | 50929ebd4ad1e0d5ee299725a01d1484536ad5f4 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Fri Oct 09 18:14:15 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Oct 09 18:14:15 2015 +0200 |
tree | 6178822eb338ccc30e6fdba0dd7b666a41c9362d | |
parent | 06b0c74ebf42994f77295836d076ded210581922 [diff] [blame] |
printer CHANGE allow passing argument to the caller's provided printer callback
diff --git a/src/printer.h b/src/printer.h index 9ce7dd8..05dace3 100644 --- a/src/printer.h +++ b/src/printer.h
@@ -37,7 +37,10 @@ union { int fd; FILE *f; - ssize_t (*writeclb)(const void *buf, size_t count); + struct { + ssize_t (*f)(void *arg, const void *buf, size_t count); + void *arg; + } clb; } method; };