X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=url.h;h=fda4e64420280668edabd210f9e71cc8190677cc;hp=5e0f3aecd295445a4663dabf059d9c53f6d40162;hb=22601f25ede6703ba7cd06ee84eddd2045308570;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/url.h b/url.h index 5e0f3ae..fda4e64 100644 --- a/url.h +++ b/url.h @@ -1,8 +1,18 @@ +/* + * Copyright notice from original mutt: + * [none] + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. + */ + #ifndef _URL_H # define _URL_H -typedef enum url_scheme -{ +#include + +typedef enum url_scheme { U_FILE, U_POP, U_POPS, @@ -12,26 +22,23 @@ typedef enum url_scheme U_NNTPS, U_MAILTO, U_UNKNOWN -} -url_scheme_t; +} url_scheme_t; #define U_DECODE_PASSWD (1) -typedef struct ciss_url -{ +typedef struct ciss_url { url_scheme_t scheme; char *user; char *pass; char *host; unsigned short port; char *path; -} -ciss_url_t; +} ciss_url_t; url_scheme_t url_check_scheme (const char *s); int url_parse_file (char *d, const char *src, size_t dl); -int url_parse_ciss (ciss_url_t *ciss, char *src); -int url_ciss_tostring (ciss_url_t* ciss, char* dest, size_t len, int flags); -int url_parse_mailto (ENVELOPE *e, char **body, const char *src); +int url_parse_ciss (ciss_url_t * ciss, char *src); +int url_ciss_tostring (ciss_url_t * ciss, char *dest, size_t len, int flags); +int url_parse_mailto (ENVELOPE * e, char **body, const char *src); #endif