locker.texi
2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@c This is part of the GNU Mailutils manual.
@c Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
@c See file mailutils.texi for copying conditions.
@comment *******************************************************************
@smallexample
@code{/* Prefix @emph{locker_} is reserved. */}
@code{#include <mailutils/locker.h>}
@end smallexample
@deftypefun int locker_set_default_flags (int @var{flags}, enum mu_locker_set_mode @var{mode})
@end deftypefun
@deftypefun void locker_set_default_retry_timeout (time_t @var{to})
@end deftypefun
@deftypefun void locker_set_default_retry_count (size_t @var{n})
@end deftypefun
@deftypefun void locker_set_default_expire_timeout (time_t @var{t})
@end deftypefun
@deftypefun void locker_set_default_external_program (char *@var{path})
@end deftypefun
A flags of 0 means that the default will be used.
@deftypefun int locker_create (locker_t *, const char *@var{filename}, int @var{flags})
@end deftypefun
@deftypefun void locker_destroy (locker_t *)
@end deftypefun
Time is measured in seconds.
@deftypefun int locker_set_flags (locker_t, int)
@end deftypefun
@deftypefun int locker_set_expire_time (locker_t, int)
@end deftypefun
@deftypefun int locker_set_retries (locker_t, int)
@end deftypefun
@deftypefun int locker_set_retry_sleep (locker_t, int)
@end deftypefun
@deftypefun int locker_set_external (locker_t, const char *@var{program})
@end deftypefun
@deftypefun int locker_get_flags (locker_t, int *)
@end deftypefun
@deftypefun int locker_get_expire_time (locker_t, int*)
@end deftypefun
@deftypefun int locker_get_retries (locker_t, int *)
@end deftypefun
@deftypefun int locker_get_retry_sleep (locker_t, int *)
@end deftypefun
@deftypefun int locker_get_external (locker_t, char **)
@end deftypefun
@deftypefun int locker_lock (locker_t)
@end deftypefun
@deftypefun int locker_touchlock (locker_t)
@end deftypefun
@deftypefun int locker_unlock (locker_t)
@end deftypefun
@deftypefun int locker_remove_lock (locker_t)
@end deftypefun