Commit 7edecd15 7edecd15f671ac9bae85bb4374c35217105958db by Sam Roberts

Got tired of recompiling EVERYTHING when I touched locker.h, so started

splitting common types into <mailutils/types.h>.
1 parent 5fe6e140
...@@ -19,15 +19,14 @@ ...@@ -19,15 +19,14 @@
19 #define _MAILUTILS_ADDRESS_H 19 #define _MAILUTILS_ADDRESS_H
20 20
21 #include <sys/types.h> 21 #include <sys/types.h>
22
22 #include <mailutils/mu_features.h> 23 #include <mailutils/mu_features.h>
24 #include <mailutils/types.h>
23 25
24 #ifdef __cplusplus 26 #ifdef __cplusplus
25 extern "C" { 27 extern "C" {
26 #endif 28 #endif
27 29
28 struct _address;
29 typedef struct _address *address_t;
30
31 extern int address_create __P ((address_t *, const char *)); 30 extern int address_create __P ((address_t *, const char *));
32 extern int address_createv __P ((address_t *, const char *v[], size_t)); 31 extern int address_createv __P ((address_t *, const char *v[], size_t));
33 extern void address_destroy __P ((address_t *)); 32 extern void address_destroy __P ((address_t *));
......
...@@ -19,15 +19,14 @@ ...@@ -19,15 +19,14 @@
19 #define _MAILUTILS_LOCKER_H 19 #define _MAILUTILS_LOCKER_H
20 20
21 #include <mailutils/mu_features.h> 21 #include <mailutils/mu_features.h>
22 #include <mailutils/types.h>
23
22 #include <sys/types.h> 24 #include <sys/types.h>
23 25
24 #ifdef __cplusplus 26 #ifdef __cplusplus
25 extern "C" { 27 extern "C" {
26 #endif 28 #endif
27 29
28 struct _locker;
29 typedef struct _locker *locker_t;
30
31 /* lock expiry time */ 30 /* lock expiry time */
32 #define MU_LOCKER_EXPIRE_TIME (10 * 60) 31 #define MU_LOCKER_EXPIRE_TIME (10 * 60)
33 #define MU_LOCKER_RETRIES (10) 32 #define MU_LOCKER_RETRIES (10)
...@@ -76,4 +75,5 @@ extern int locker_remove_lock __P ((locker_t)); ...@@ -76,4 +75,5 @@ extern int locker_remove_lock __P ((locker_t));
76 } 75 }
77 #endif 76 #endif
78 77
79 #endif /* _MAILUTILS_MAILBOX_H */ 78 #endif
79
......
...@@ -19,20 +19,17 @@ ...@@ -19,20 +19,17 @@
19 #define _MAILUTILS_MAILBOX_H 19 #define _MAILUTILS_MAILBOX_H
20 20
21 #include <sys/types.h> 21 #include <sys/types.h>
22 #include <mailutils/mu_features.h>
23
24 /* Forward declaration. */
25 struct _mailbox;
26 typedef struct _mailbox *mailbox_t;
27 22
28 #include <mailutils/url.h>
29 #include <mailutils/observer.h>
30 #include <mailutils/debug.h> 23 #include <mailutils/debug.h>
31 #include <mailutils/property.h> 24 #include <mailutils/folder.h>
32 #include <mailutils/message.h>
33 #include <mailutils/locker.h> 25 #include <mailutils/locker.h>
26 #include <mailutils/message.h>
27 #include <mailutils/mu_features.h>
28 #include <mailutils/observer.h>
29 #include <mailutils/property.h>
34 #include <mailutils/stream.h> 30 #include <mailutils/stream.h>
35 #include <mailutils/folder.h> 31 #include <mailutils/types.h>
32 #include <mailutils/url.h>
36 33
37 #ifdef __cplusplus 34 #ifdef __cplusplus
38 extern "C" { 35 extern "C" {
......
...@@ -19,11 +19,6 @@ ...@@ -19,11 +19,6 @@
19 #define _MAILUTILS_MESSAGE_H 19 #define _MAILUTILS_MESSAGE_H
20 20
21 #include <sys/types.h> 21 #include <sys/types.h>
22 #include <mailutils/mu_features.h>
23
24 /* forward declaration */
25 struct _message;
26 typedef struct _message *message_t;
27 22
28 #include <mailutils/attribute.h> 23 #include <mailutils/attribute.h>
29 #include <mailutils/auth.h> 24 #include <mailutils/auth.h>
...@@ -31,6 +26,7 @@ typedef struct _message *message_t; ...@@ -31,6 +26,7 @@ typedef struct _message *message_t;
31 #include <mailutils/envelope.h> 26 #include <mailutils/envelope.h>
32 #include <mailutils/header.h> 27 #include <mailutils/header.h>
33 #include <mailutils/mailbox.h> 28 #include <mailutils/mailbox.h>
29 #include <mailutils/mu_features.h>
34 #include <mailutils/observer.h> 30 #include <mailutils/observer.h>
35 #include <mailutils/stream.h> 31 #include <mailutils/stream.h>
36 32
......
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18 #ifndef _MAILUTILS_TYPES_H
19 #define _MAILUTILS_TYPES_H
20
21 #include <mailutils/mu_features.h>
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 struct _locker;
28 struct _mailbox;
29 struct _message;
30 struct _address;
31
32 typedef struct _locker *locker_t;
33 typedef struct _mailbox *mailbox_t;
34 typedef struct _message *message_t;
35 typedef struct _address *address_t;
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif
42