]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/Public.h
(C)
[freerainbowtables] / Client Applications / rcracki_mt / Public.h
index 13fb0d380eb44d2f7bf2af3b5815e113c6912ad0..08943d4b836228c417201e3c802c7b07f52e932f 100644 (file)
@@ -4,9 +4,9 @@
  *\r
  * Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>\r
  * Copyright 2009, 2010 DaniĆ«l Niggebrugge <niggebrugge@fox-it.com>\r
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
+ * Copyright 2009, 2010, 2011 James Nobis <frt@quelrod.net>\r
  *\r
- * This file is part of racrcki_mt.\r
+ * This file is part of rcracki_mt.\r
  *\r
  * rcracki_mt is free software: you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
@@ -36,7 +36,6 @@
 \r
 using namespace std;\r
 \r
-\r
 struct RainbowChainO\r
 {\r
        uint64 nIndexS;\r
@@ -110,22 +109,25 @@ void tty_init();
 void tty_flush(void);\r
 // end nmap code\r
 \r
-#include <sys/time.h>\r
+#endif\r
 \r
-#else\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
        int gettimeofday( struct timeval *tv, struct timezone *tz );\r
+#else\r
+       #include <sys/time.h>\r
 #endif\r
 \r
 timeval sub_timeofday( timeval tv2, timeval tv );\r
 \r
-unsigned int GetFileLen(FILE* file);\r
+long GetFileLen(FILE* file);\r
 string TrimString(string s);\r
+bool boinc_ReadLinesFromFile(string sPathName, vector<string>& vLine);\r
 bool ReadLinesFromFile(string sPathName, vector<string>& vLine);\r
 bool SeperateString(string s, string sSeperator, vector<string>& vPart);\r
 string uint64tostr(uint64 n);\r
 string uint64tohexstr(uint64 n);\r
 string HexToStr(const unsigned char* pData, int nLen);\r
-uint64 GetAvailPhysMemorySize();\r
+unsigned long GetAvailPhysMemorySize();\r
 string GetApplicationPath();\r
 void ParseHash(string sHash, unsigned char* pHash, int& nHashLen);\r
 bool GetHybridCharsets(string sCharset, vector<tCharset>& vCharset);\r