(struct _mu_header): Remove
`fhdr_count' and `fhdr', add `cache'. Remove `_get_fvalue'
Showing
1 changed file
with
4 additions
and
4 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2005 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2005, 2007 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -24,6 +24,7 @@ | ... | @@ -24,6 +24,7 @@ |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #include <mailutils/header.h> | 26 | #include <mailutils/header.h> |
27 | #include <mailutils/assoc.h> | ||
27 | #include <sys/types.h> | 28 | #include <sys/types.h> |
28 | 29 | ||
29 | #ifdef __cplusplus | 30 | #ifdef __cplusplus |
... | @@ -54,14 +55,13 @@ struct _mu_header | ... | @@ -54,14 +55,13 @@ struct _mu_header |
54 | size_t blurb_len; | 55 | size_t blurb_len; |
55 | size_t hdr_count; | 56 | size_t hdr_count; |
56 | struct _hdr *hdr; | 57 | struct _hdr *hdr; |
57 | size_t fhdr_count; | ||
58 | struct _hdr *fhdr; | ||
59 | int flags; | 58 | int flags; |
60 | 59 | ||
60 | mu_assoc_t cache; | ||
61 | |||
61 | /* Stream. */ | 62 | /* Stream. */ |
62 | mu_stream_t stream; | 63 | mu_stream_t stream; |
63 | int (*_get_value) (mu_header_t, const char *, char *, size_t , size_t *); | 64 | int (*_get_value) (mu_header_t, const char *, char *, size_t , size_t *); |
64 | int (*_get_fvalue) (mu_header_t, const char *, char *, size_t , size_t *); | ||
65 | int (*_set_value) (mu_header_t, const char *, const char *, int); | 65 | int (*_set_value) (mu_header_t, const char *, const char *, int); |
66 | int (*_lines) (mu_header_t, size_t *); | 66 | int (*_lines) (mu_header_t, size_t *); |
67 | int (*_size) (mu_header_t, size_t *); | 67 | int (*_size) (mu_header_t, size_t *); | ... | ... |
-
Please register or sign in to post a comment