summaryrefslogtreecommitdiff
path: root/gfx/pdftoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/pdftoc.h')
-rw-r--r--gfx/pdftoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/pdftoc.h b/gfx/pdftoc.h
index aabc8ef..3dd8a71 100644
--- a/gfx/pdftoc.h
+++ b/gfx/pdftoc.h
@@ -22,7 +22,8 @@ struct pdftoc;
struct pdftoc *pdftoc_begin(void);
bool pdftoc_set_file(struct pdftoc *ctx, const char *file);
bool pdftoc_write(struct pdftoc *ctx, const void *data, unsigned length);
-void pdftoc_title(struct pdftoc *ctx, const char *title);
+void pdftoc_title(struct pdftoc *ctx, const char *fmt, ...)
+ __attribute__((format(printf, 2, 3)));
void pdftoc_end(struct pdftoc *ctx);
#endif /* !GFX_PDFTOC_H */