diff options
author | Albert Astals Cid <aacid@kde.org> | 2020-04-26 19:18:04 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2020-04-26 19:18:04 +0200 |
commit | 8d026495dc62fd4a1f41c95c1eea22589e2b623e (patch) | |
tree | a7d3cdf14f5864fbf1c73bf300fe2596d8258c46 | |
parent | 3639f1fe932d8374dd482de4e01457afe3e43a34 (diff) |
Move spectre_document_load_from_stream to spectre-private.h for now
Not ready for the prime time
-rw-r--r-- | libspectre/spectre-document.h | 9 | ||||
-rw-r--r-- | libspectre/spectre-private.h | 9 | ||||
-rw-r--r-- | 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 <unistd.h> #include "../libspectre/spectre.h" +#include "../libspectre/spectre-private.h" #include "../libspectre/spectre-utils.h" #include "../libspectre/ps.h" |