Skip to content

Commit

Permalink
Fix #443: Move zimwriterfs/tools function declarations into correct h…
Browse files Browse the repository at this point in the history
…eader.
  • Loading branch information
ThisIsFineTM committed Jan 30, 2025
1 parent b4a1fa0 commit 57d9118
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ class CopyItem : public zim::writer::Item //Article class that will be p
}
};

std::string getMimeTypeForFile(const std::string& basedir, const std::string& filename);
std::string getFileContent(const std::string& path);
std::string decodeUrl(const std::string& encodedUrl);

// Assuming that basePath and targetPath are relative to the same location
Expand Down
2 changes: 0 additions & 2 deletions src/zimwriterfs/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
*/

#include "tools.h"
#include "../tools.h"

#include <memory>
#include <string.h>
#include <sstream>
#include <fstream>
Expand Down
4 changes: 4 additions & 0 deletions src/zimwriterfs/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@
#include <gumbo.h>
#include <string>

std::string getFileContent(const std::string& path);

std::string extractRedirectUrlFromHtml(const GumboVector* head_children);

std::string generateDate();

std::string getMimeTypeForFile(const std::string& basedir, const std::string& filename);

#endif // OPENZIM_ZIMWRITERFS_TOOLS_H

0 comments on commit 57d9118

Please sign in to comment.