aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-05-29 02:19:08 +0200
committerjcid <devnull@localhost>2008-05-29 02:19:08 +0200
commit1e21147176d202f3c8399c280ca3a6b77f830433 (patch)
tree33dfd52c64dc0fc708391fd143db00150cc2fb14 /src/misc.h
parente4acbd9f0423a47efa7188d801bc58c2bdedf8ba (diff)
- Switched from charset to content-type for handling data.
- Fixed data guesser to detect ASCII, LATIN1, UTF8, KOI8-R, CP-1251 as text.
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index 145b155b..c4d901ab 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -13,6 +13,9 @@ char *a_Misc_escape_chars(const char *str, char *esc_set);
char *a_Misc_expand_tabs(const char *str);
int a_Misc_get_content_type_from_data(void *Data, size_t Size,const char **PT);
int a_Misc_content_type_check(const char *EntryType, const char *DetectedType);
+void a_Misc_parse_content_type(const char *str, char **major, char **minor,
+ char **charset);
+int a_Misc_content_type_cmp(const char* ct1, const char *ct2);
int a_Misc_parse_geometry(char *geom, int *x, int *y, int *w, int *h);
char *a_Misc_encode_base64(const char *in);
Dstr *a_Misc_file2dstr(const char *filename);