Define the mailcap structure in types.h
and include <types.h> in mailcap.h
Showing
2 changed files
with
5 additions
and
7 deletions
... | @@ -18,17 +18,11 @@ | ... | @@ -18,17 +18,11 @@ |
18 | #ifndef _MAILUTILS_MAILCAP_H | 18 | #ifndef _MAILUTILS_MAILCAP_H |
19 | #define _MAILUTILS_MAILCAP_H | 19 | #define _MAILUTILS_MAILCAP_H |
20 | 20 | ||
21 | #include <mailutils/stream.h> | 21 | #include <mailutils/types.h> |
22 | #include <mailutils/errno.h> | 22 | #include <mailutils/errno.h> |
23 | 23 | ||
24 | /* See RFC1524 (A User Agent Configuration Mechanism). */ | 24 | /* See RFC1524 (A User Agent Configuration Mechanism). */ |
25 | 25 | ||
26 | struct _mu_mailcap; | ||
27 | struct _mu_mailcap_entry; | ||
28 | |||
29 | typedef struct _mu_mailcap* mu_mailcap_t; | ||
30 | typedef struct _mu_mailcap_entry* mu_mailcap_entry_t; | ||
31 | |||
32 | /* Create a mailcap from stream. */ | 26 | /* Create a mailcap from stream. */ |
33 | int mu_mailcap_create (mu_mailcap_t * mailcap, stream_t stream); | 27 | int mu_mailcap_create (mu_mailcap_t * mailcap, stream_t stream); |
34 | 28 | ... | ... |
... | @@ -57,6 +57,8 @@ struct _mailbox; | ... | @@ -57,6 +57,8 @@ struct _mailbox; |
57 | struct _mailer; | 57 | struct _mailer; |
58 | struct _message; | 58 | struct _message; |
59 | struct _mime; | 59 | struct _mime; |
60 | struct _mu_mailcap; | ||
61 | struct _mu_mailcap_entry; | ||
60 | struct _observable; | 62 | struct _observable; |
61 | struct _observer; | 63 | struct _observer; |
62 | struct _property; | 64 | struct _property; |
... | @@ -83,6 +85,8 @@ typedef struct _mailbox *mailbox_t; | ... | @@ -83,6 +85,8 @@ typedef struct _mailbox *mailbox_t; |
83 | typedef struct _mailer *mailer_t; | 85 | typedef struct _mailer *mailer_t; |
84 | typedef struct _message *message_t; | 86 | typedef struct _message *message_t; |
85 | typedef struct _mime *mime_t; | 87 | typedef struct _mime *mime_t; |
88 | typedef struct _mu_mailcap *mu_mailcap_t; | ||
89 | typedef struct _mu_mailcap_entry *mu_mailcap_entry_t; | ||
86 | typedef struct _observable *observable_t; | 90 | typedef struct _observable *observable_t; |
87 | typedef struct _observer *observer_t; | 91 | typedef struct _observer *observer_t; |
88 | typedef struct _property *property_t; | 92 | typedef struct _property *property_t; | ... | ... |
-
Please register or sign in to post a comment