1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3 * Author: Michael Zucchi <notzed@ximian.com>
5 * Copyright (C) 1999 Ximian (www.ximian.com/).
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
22 /* defines protocol for lock helper process ipc */
24 #ifndef _CAMEL_LOCK_HELPER_H
25 #define _CAMEL_LOCK_HELPER_H
31 struct _CamelLockHelperMsg {
40 CAMEL_LOCK_HELPER_MAGIC = 0xABADF00D,
41 CAMEL_LOCK_HELPER_RETURN_MAGIC = 0xDEADBEEF
46 CAMEL_LOCK_HELPER_STATUS_OK = 0,
47 CAMEL_LOCK_HELPER_STATUS_PROTOCOL,
48 CAMEL_LOCK_HELPER_STATUS_NOMEM,
49 CAMEL_LOCK_HELPER_STATUS_SYSTEM,
50 CAMEL_LOCK_HELPER_STATUS_INVALID, /* not allowed to lock/doesn't exist etc */
55 CAMEL_LOCK_HELPER_LOCK = 0xf0f,
56 CAMEL_LOCK_HELPER_UNLOCK = 0xf0f0,
59 /* seconds between lock refreshes */
60 #define CAMEL_DOT_LOCK_REFRESH (30)
64 #endif /* !_CAMEL_LOCK_HELPER_H */