From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CryptoPP/GPGw/tools.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 plugins/CryptoPP/GPGw/tools.h (limited to 'plugins/CryptoPP/GPGw/tools.h') diff --git a/plugins/CryptoPP/GPGw/tools.h b/plugins/CryptoPP/GPGw/tools.h new file mode 100644 index 0000000000..74da8552d3 --- /dev/null +++ b/plugins/CryptoPP/GPGw/tools.h @@ -0,0 +1,25 @@ +#ifndef __TOOLS_H__ +#define __TOOLS_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +void replace(char *atext, const char *apattern, const char *areplacement); +char *getNextPart(char *aresult, char *atext, const char *aseparator); +void getLastPart(char *aresult, char *atext); +void appendText(char **abuffer, const char *atext, int atextsize); +void quoteEscapeSequences(char *atext); +void unquoteEscapeSequences(char *atext); + +BOOL existsFile(const char *afilename); +BOOL existsPath(const char *apathname); +BOOL writeToFile(char *afilename, const char *atext); +BOOL readFromFile(char *aresult, const char *afilename); +void getTemporaryFileName(char *aresult); + +#ifdef __cplusplus +} +#endif + +#endif // __TOOLS_H__ -- cgit v1.2.3