2
0
Fork 0
lighttpd2/include/lighttpd/encoding.h

17 lines
417 B
C
Raw Normal View History

2009-03-04 23:19:55 +00:00
#ifndef _LIGHTTPD_ENCODING_H_
#define _LIGHTTPD_ENCODING_H_
#ifndef _LIGHTTPD_BASE_H_
#error Please include <lighttpd/base.h> instead of this file
#endif
typedef enum {
ENCODING_HEX, /* a => 61 */
ENCODING_HTML /* HTML special chars. & => &amp; e.g. */
} encoding_t;
/* encodes special characters in a string and returns the new string */
GString *string_encode(const gchar *str, encoding_t encoding);
#endif