From 8d026495dc62fd4a1f41c95c1eea22589e2b623e Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 26 Apr 2020 19:18:04 +0200 Subject: Move spectre_document_load_from_stream to spectre-private.h for now Not ready for the prime time --- libspectre/spectre-document.h | 9 --------- libspectre/spectre-private.h | 9 +++++++++ test/spectre_read_fuzzer.c | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/libspectre/spectre-document.h b/libspectre/spectre-document.h index dc10ac8..42f0028 100644 --- a/libspectre/spectre-document.h +++ b/libspectre/spectre-document.h @@ -45,15 +45,6 @@ SPECTRE_PUBLIC void spectre_document_load (SpectreDocument *document, const char *filename); -/*! Loads the given open file into the document. This function can fail - @param document the document where the file will be loaded - @param file the file to load - @see spectre_document_status -*/ -SPECTRE_PUBLIC -void spectre_document_load_from_stream (SpectreDocument *document, - FILE *file); - /*! Returns the document status @param document the document whose status will be returned */ diff --git a/libspectre/spectre-private.h b/libspectre/spectre-private.h index c868067..652c7b5 100644 --- a/libspectre/spectre-private.h +++ b/libspectre/spectre-private.h @@ -69,6 +69,15 @@ struct document *_spectre_document_get_doc (SpectreDocument *document); SpectreExporter *_spectre_exporter_ps_new (struct document *doc); SpectreExporter *_spectre_exporter_pdf_new (struct document *doc); +/*! Loads the given open file into the document. This function can fail + @param document the document where the file will be loaded + @param file the file to load + @see spectre_document_status +*/ +SPECTRE_PUBLIC +void spectre_document_load_from_stream (SpectreDocument *document, + FILE *file); + SPECTRE_END_DECLS #endif /* SPECTRE_PRIVATE_H */ diff --git a/test/spectre_read_fuzzer.c b/test/spectre_read_fuzzer.c index 4a0601a..2360d0f 100644 --- a/test/spectre_read_fuzzer.c +++ b/test/spectre_read_fuzzer.c @@ -11,6 +11,7 @@ extern "C" { #include #include "../libspectre/spectre.h" +#include "../libspectre/spectre-private.h" #include "../libspectre/spectre-utils.h" #include "../libspectre/ps.h" -- cgit v1.2.3