3.1.13 Locker
/* Prefix
mu_locker_ is reserved. */
#include <mailutils/locker.h>
— Function: int
mu_locker_set_default_flags (
int flags, enum mu_locker_set_mode mode)
— Function: void
mu_locker_set_default_retry_timeout (
time_t to)
— Function: void
mu_locker_set_default_retry_count (
size_t n)
— Function: void
mu_locker_set_default_expire_timeout (
time_t t)
— Function: void
mu_locker_set_default_external_program (
char *path)
A flags of 0 means that the default will be used.
— Function: int
mu_locker_create (
mu_locker_t *, const char *filename, int flags)
— Function: void
mu_locker_destroy (
mu_locker_t *)
Time is measured in seconds.
— Function: int
mu_locker_set_flags (
mu_locker_t, int)
— Function: int
mu_locker_set_expire_time (
mu_locker_t, int)
— Function: int
mu_locker_set_retries (
mu_locker_t, int)
— Function: int
mu_locker_set_retry_sleep (
mu_locker_t, int)
— Function: int
mu_locker_set_external (
mu_locker_t, const char *program)
— Function: int
mu_locker_get_flags (
mu_locker_t, int *)
— Function: int
mu_locker_get_expire_time (
mu_locker_t, int*)
— Function: int
mu_locker_get_retries (
mu_locker_t, int *)
— Function: int
mu_locker_get_retry_sleep (
mu_locker_t, int *)
— Function: int
mu_locker_get_external (
mu_locker_t, char **)
— Function: int
mu_locker_lock (
mu_locker_t)
— Function: int
mu_locker_touchlock (
mu_locker_t)
— Function: int
mu_locker_unlock (
mu_locker_t)
— Function: int
mu_locker_remove_lock (
mu_locker_t)