(MU_ATTRIBUTE_IS_UNSEEN,MU_ATTRIBUTE_IS_UNREAD) New macros.
Showing
1 changed file
with
12 additions
and
1 deletions
... | @@ -31,7 +31,18 @@ extern "C" { | ... | @@ -31,7 +31,18 @@ extern "C" { |
31 | #define MU_ATTRIBUTE_SEEN 0x10 | 31 | #define MU_ATTRIBUTE_SEEN 0x10 |
32 | #define MU_ATTRIBUTE_READ 0x20 | 32 | #define MU_ATTRIBUTE_READ 0x20 |
33 | #define MU_ATTRIBUTE_MODIFIED 0x40 | 33 | #define MU_ATTRIBUTE_MODIFIED 0x40 |
34 | #define MU_ATTRIBUTE_RECENT 0x00 | 34 | |
35 | /* A message is recent if the current session is the first session | ||
36 | to have been notified about it. Practically, a message is considered | ||
37 | "recent" if it does not have MU_ATTRIBUTE_SEEN set. For consistency | ||
38 | a pseudo-attribute is provided: */ | ||
39 | #define MU_ATTRIBUTE_RECENT 0 | ||
40 | |||
41 | #define MU_ATTRIBUTE_IS_UNSEEN(f) \ | ||
42 | ((f) == 0 || ! ((f) & MU_ATTRIBUTE_SEEN)) | ||
43 | |||
44 | #define MU_ATTRIBUTE_IS_UNREAD(f) \ | ||
45 | ((f) == 0 || ! ((f) & MU_ATTRIBUTE_READ)) | ||
35 | 46 | ||
36 | extern int attribute_create __P ((attribute_t *, void *)); | 47 | extern int attribute_create __P ((attribute_t *, void *)); |
37 | extern void attribute_destroy __P ((attribute_t *, void *)); | 48 | extern void attribute_destroy __P ((attribute_t *, void *)); | ... | ... |
-
Please register or sign in to post a comment