home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 71 / CDROM71.ISO / internet / navoff / data1.cab / Sources / src / htsdefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-01  |  3.1 KB  |  79 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche, Yann Philippot and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. This project has been developed by Xavier Roche and Yann Philippot,
  29. from the company Serianet at Caen, France (http://www.serianet.com)
  30. and other contributors (see the greetings file)
  31.  
  32. Please visit our Website: http://www.httrack.com
  33. */
  34.  
  35.  
  36. /* ------------------------------------------------------------ */
  37. /* File: Some defines for httrack.c and others                  */
  38. /* Author: Xavier Roche                                         */
  39. /* ------------------------------------------------------------ */
  40.  
  41. // Fichier librairie .h
  42. #ifndef HTS_DEFINES_DEFH
  43. #define HTS_DEFINES_DEFH
  44.  
  45. // demande d'interaction avec le shell
  46. #if HTS_ANALYSTE!=2
  47. #define HT_PRINT(A) printf("%s",A);
  48. #define HT_REQUEST_START /*printf("º\n");*/
  49. #define HT_REQUEST_END   /*printf("º\n");*/
  50. #define HTT_REQUEST_START /*if (httrack.shell) printf("º\n");*/
  51. #define HTT_REQUEST_END   /*if (httrack.shell) printf("º\n");*/
  52. #define HTS_REQUEST_START if (opt->shell) { HT_REQUEST_START }
  53. #define HTS_REQUEST_END   if (opt->shell) { HT_REQUEST_END }
  54. #define HTS_PANIC_PRINTF(S) printf("%s\n",S);
  55. #else
  56. extern char HTbuff[2048];
  57. #define HT_PRINT(A) strcat(HTbuff,A);
  58. #define HT_REQUEST_START HTbuff[0]='\0';
  59. #define HT_REQUEST_END 
  60. #define HTT_REQUEST_START HTbuff[0]='\0';
  61. #define HTT_REQUEST_END 
  62. #define HTS_REQUEST_START HTbuff[0]='\0';
  63. #define HTS_REQUEST_END 
  64. #define HTS_PANIC_PRINTF(S) strcpy(_hts_errmsg,S);
  65. void  hts_htmlcheck_init();
  66. void  hts_htmlcheck_uninit();
  67. int   hts_htmlcheck_start();
  68. int   hts_htmlcheck_end();
  69. int   hts_htmlcheck(char* html,int len,char* url_adresse,char* url_fichier);
  70. char* hts_htmlcheck_query(char* question);
  71. char* hts_htmlcheck_query2(char* question);
  72. char* hts_htmlcheck_query3(char* question);
  73. int   hts_htmlcheck_loop(lien_back* back,int back_max,int back_index,int lien_tot,int lien_ntot,LLint stat_bytes,LLint stat_bytes_recv,int stat_time,int stat_nsocket,LLint stat_written, int stat_updated, int stat_errors, int irate, int nbk );
  74. int   hts_htmlcheck_check(char* adr,char* fil,int status);
  75. #endif
  76.  
  77. #endif
  78.  
  79.