diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-01-08 23:09:23 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-01-08 23:09:23 +0000 |
commit | b668680da5aa0930820df70f1b182243a7a8cde4 (patch) | |
tree | a45cb44b96341971ee1e7ace312bcec284f1dd72 /src/cos_stream_filter.c | |
parent | 615323e574ffcecd8525711c39beffcac4156624 (diff) | |
download | libnspdf-b668680da5aa0930820df70f1b182243a7a8cde4.tar.gz libnspdf-b668680da5aa0930820df70f1b182243a7a8cde4.tar.bz2 |
split out stream filtering
Diffstat (limited to 'src/cos_stream_filter.c')
-rw-r--r-- | src/cos_stream_filter.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/cos_stream_filter.c b/src/cos_stream_filter.c new file mode 100644 index 0000000..6f407de --- /dev/null +++ b/src/cos_stream_filter.c @@ -0,0 +1,33 @@ +/* + * Copyright 2018 Vincent Sanders <vince@netsurf-browser.org> + * + * This file is part of libnspdf. + * + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + */ + +#include <stdint.h> +#include <stddef.h> +#include <stdbool.h> +#include <stdlib.h> +#include <stdio.h> +#include <string.h> + +#include <nspdf/errors.h> + +#include "cos_object.h" +#include "pdf_doc.h" + +nspdferror +nspdf__cos_stream_filter(struct nspdf_doc *doc, + const char *filter_name, + struct cos_stream **stream_out) +{ + struct cos_stream *stream_in; + + stream_in = *stream_out; + + printf("applying filter %s\n", filter_name); + return NSPDFERROR_OK; +} |