Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
13cdee6d
...
13cdee6ddd5808eb849137e6244c3bc78607bea0
authored
2001-08-14 03:05:16 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update.
1 parent
ae7e200d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
mailbox2/include/mailutils/mbox.h
mailbox2/include/mailutils/monitor.h
mailbox2/include/mailutils/sys/mbox.h
mailbox2/include/mailutils/mbox.h
View file @
13cdee6
...
...
@@ -19,7 +19,7 @@
#define _MAILUTILS_MBOX_H
#include <mailutils/message.h>
#include <mailutils/observ
er
.h>
#include <mailutils/observ
able
.h>
#ifdef __cplusplus
extern
"C"
{
...
...
mailbox2/include/mailutils/monitor.h
View file @
13cdee6
...
...
@@ -50,7 +50,7 @@
# define monitor_cleanup_push(routine, arg) {
# define monitor_cleanup_pop(execute) }
# define monitor_
rd
lock(m) (m = 1)
# define monitor_lock(m) (m = 1)
# define monitor_unlock(m) (m = 0)
#endif
...
...
mailbox2/include/mailutils/sys/mbox.h
View file @
13cdee6
...
...
@@ -19,6 +19,8 @@
#define _MAILUTILS_SYS_MBOX_H
#include <time.h>
#include <mailutils/monitor.h>
#include <mailutils/locker.h>
#include <mailutils/mbox.h>
#ifdef __cplusplus
...
...
@@ -122,9 +124,24 @@ struct _mbox
char
*
date
;
off_t
off
;
monitor_t
lock
;
locker_t
dotlock
;
mu_debug_t
debug
;
locker_t
locker
;
observable_t
observable
;
};
/* Moro(?)ic kluge. */
#define MBOX_DEBUG0(mbox, type, format) \
if (mbox->debug) mu_debug_print (mbox->debug, type, format)
#define MBOX_DEBUG1(mbox, type, format, arg1) \
if (mbox->debug) mu_debug_print (mbox->debug, type, format, arg1)
#define MBOX_DEBUG2(mbox, type, format, arg1, arg2) \
if (mbox->debug) mu_debug_print (mbox->debug, type, format, arg1, arg2)
#define MBOX_DEBUG3(mbox, type, format, arg1, arg2, arg3) \
if (mbox->debug) mu_debug_print (mbox->debug, type, format, arg1, arg2, arg3)
#define MBOX_DEBUG4(mbox, type, format, arg1, arg2, arg3, arg4) \
if (mbox->debug) mu_debug_print (mbox->debug, type, format, arg1, arg2, arg3, arg4)
#ifdef __cplusplus
}
#endif
...
...
Please
register
or
sign in
to post a comment