X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flockfile.h;h=eb089edb5a89f44dd48d173f7fb7dc05b1a30d1e;hb=ded21942fccb9fde8c3264c8f9a3dcdbc6ae1c38;hp=c8b77f2f6bc1bc66403e02442d08753fb297ae35;hpb=2c510ac4c7c3f8cd41cd65ac8490b481db0b143a;p=sympathy.git diff --git a/src/lockfile.h b/src/lockfile.h index c8b77f2..eb089ed 100644 --- a/src/lockfile.h +++ b/src/lockfile.h @@ -12,6 +12,15 @@ /* * $Log$ + * Revision 1.6 2008/02/15 23:52:12 james + * *** empty log message *** + * + * Revision 1.5 2008/02/15 20:52:36 james + * *** empty log message *** + * + * Revision 1.4 2008/02/15 19:51:30 james + * *** empty log message *** + * * Revision 1.3 2008/02/15 18:16:36 james * *** empty log message *** * @@ -26,6 +35,9 @@ #ifndef __LOCKFILE_H__ #define __LOCKFILE_H__ +#define SERIAL_LOCK_PASSIVE 0 +#define SERIAL_LOCK_ACTIVE 1 + #define FILE_LIST_MAX_LEN 1024 typedef struct Filelist_ent { @@ -37,4 +49,16 @@ typedef struct { Filelist_ent *head; } Filelist; + +typedef struct +{ + int mode; + int i; + struct timeval last_stale_purge; + Filelist *locks_to_check; + Filelist *locks_held; +} Serial_lock; + + + #endif /* __LOCKFILE_H__ */