00001 #ifndef ENCODE_H_INCLUDED
00002 #define ENCODE_H_INCLUDED
00003 #define ENCODE_H_VERSION "$Id: encode.h,v 2.0 2002/06/04 14:34:21 jongfoster Exp $"
00004 /* ******************************************************************
00005 * $Source: /cvsroot/ijbswa/current/src/encode.h,v $
00006 * ******************************************************************
00007 *
00008 * Written by and Copyright (C) 2001 the SourceForge
00009 * Privoxy team. http://www.privoxy.org/
00010 *
00011 * Based on the Internet Junkbuster originally written
00012 * by and Copyright (C) 1997 Anonymous Coders and
00013 * Junkbusters Corporation. http://www.junkbusters.com
00014 *
00015 * This program is free software; you can redistribute it
00016 * and/or modify it under the terms of the GNU General
00017 * Public License as published by the Free Software
00018 * Foundation; either version 2 of the License, or (at
00019 * your option) any later version.
00020 *
00021 * This program is distributed in the hope that it will
00022 * be useful, but WITHOUT ANY WARRANTY; without even the
00023 * implied warranty of MERCHANTABILITY or FITNESS FOR A
00024 * PARTICULAR PURPOSE. See the GNU General Public
00025 * License for more details.
00026 *
00027 * The GNU General Public License should be included with
00028 * this file. If not, you can view it at
00029 * http://www.gnu.org/copyleft/gpl.html
00030 * or write to the Free Software Foundation, Inc., 59
00031 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00032 *
00033 * *****************************************************************/
00034 /**
00035 * @file
00036 *
00037 * Functions to encode and decode URLs, and also to
00038 * encode cookies and HTML text.
00039 *
00040 *
00041 * $Log: encode.h,v $
00042 * Revision 2.0 2002/06/04 14:34:21 jongfoster
00043 * Moving source files to src/
00044 *
00045 * Revision 1.5 2002/03/26 22:29:54 swa
00046 * we have a new homepage!
00047 *
00048 * Revision 1.4 2002/03/24 13:25:43 swa
00049 * name change related issues
00050 *
00051 * Revision 1.3 2002/01/22 23:28:07 jongfoster
00052 * Adding convenience function html_encode_and_free_original()
00053 * Making all functions accept NULL paramaters - in this case, they
00054 * simply return NULL. This allows error-checking to be deferred.
00055 *
00056 * Revision 1.2 2001/07/29 18:43:08 jongfoster
00057 * Changing #ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to
00058 * ANSI C rules.
00059 *
00060 * Revision 1.1.1.1 2001/05/15 13:58:51 oes
00061 * Initial import of version 2.9.3 source tree
00062 *
00063 *
00064 */
00065 /* *****************************************************************/
00066
00067
00068 #ifdef __cplusplus
00069 extern "C" {
00070 #endif
00071
00072 extern char * html_encode(const char *s);
00073 extern char * cookie_encode(const char *s);
00074 extern char * url_encode(const char *s);
00075 extern char * url_decode(const char *str);
00076
00077 extern char * html_encode_and_free_original(char *s);
00078
00079 /* Revision control strings from this header and associated .c file */
00080
00081 /** Version information about encode.c. */
00082 extern const char encode_rcs[];
00083
00084 /** Version information about encode.h. */
00085 extern const char encode_h_rcs[];
00086
00087 #ifdef __cplusplus
00088 } /* extern "C" */
00089 #endif
00090
00091 #endif /* ndef ENCODE_H_INCLUDED */
00092
00093 /*
00094 Local Variables:
00095 tab-width: 3
00096 end:
00097 */
1.2.15