Back to index

courier  0.68.2
comtrack.h
Go to the documentation of this file.
00001 #ifndef       comtrack_h
00002 #define       comtrack_h
00003 
00004 /*
00005 ** Copyright 2005 Double Precision, Inc.
00006 ** See COPYING for distribution information.
00007 */
00008 
00009 #if    HAVE_CONFIG_H
00010 #include      "config.h"
00011 #endif
00012 #include      <time.h>
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 
00019 #define TRACK_NHOURS 2
00020 
00021 void trackpurge();
00022 
00023 int track_find(const char *address, time_t *timestamp);
00024 #define TRACK_ADDRACCEPTED 'A'
00025 #define TRACK_ADDRDEFERRED 'D'
00026 #define TRACK_ADDRFAILED   'F'
00027 #define TRACK_NOTFOUND 0
00028 
00029 void track_save(const char *address, int status);
00030 
00031 int track_read(int (*cb_func)(time_t timestamp, int status,
00032                            const char *address, void *voidarg),
00033               void *voidarg);
00034 
00035 #ifdef __cplusplus
00036 }
00037 #endif
00038 #endif