libflom: FLoM (Free Lock Manager) client library
Main Page
Data Structures
Files
File List
Globals
flom_types.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013-2020, Christian Ferrari <tiian@users.sourceforge.net>
3
* All rights reserved.
4
*
5
* This file is part of FLoM, Free Lock Manager
6
*
7
* FLoM is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2.0 as
9
* published by the Free Software Foundation.
10
*
11
* FLoM 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 General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with FLoM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef FLOM_TYPES_H
20
# define FLOM_TYPES_H
21
22
23
24
/***********************************************************************
25
* *
26
* Boolean macros *
27
* *
28
***********************************************************************/
29
#ifndef TRUE
30
33
# define TRUE 1
34
#endif
/* TRUE */
35
36
#ifndef FALSE
37
40
# define FALSE 0
41
#endif
/* FALSE */
42
43
44
48
typedef
enum
flom_lock_mode_e
{
52
FLOM_LOCK_MODE_NL
,
56
FLOM_LOCK_MODE_CR
,
60
FLOM_LOCK_MODE_CW
,
64
FLOM_LOCK_MODE_PR
,
68
FLOM_LOCK_MODE_PW
,
72
FLOM_LOCK_MODE_EX
,
76
FLOM_LOCK_MODE_N
,
80
FLOM_LOCK_MODE_INVALID
81
}
flom_lock_mode_t
;
82
83
84
85
#endif
/* FLOM_HANDLE_H */
FLOM_LOCK_MODE_CR
Definition:
flom_types.h:56
FLOM_LOCK_MODE_NL
Definition:
flom_types.h:52
FLOM_LOCK_MODE_N
Definition:
flom_types.h:76
FLOM_LOCK_MODE_PR
Definition:
flom_types.h:64
FLOM_LOCK_MODE_CW
Definition:
flom_types.h:60
flom_lock_mode_e
flom_lock_mode_e
Definition:
flom_types.h:48
FLOM_LOCK_MODE_EX
Definition:
flom_types.h:72
FLOM_LOCK_MODE_PW
Definition:
flom_types.h:68
FLOM_LOCK_MODE_INVALID
Definition:
flom_types.h:80
flom_lock_mode_t
enum flom_lock_mode_e flom_lock_mode_t
Copyright © 2013-2020, Christian Ferrari
tiian@users.sourceforge.net