summaryrefslogtreecommitdiffstats
path: root/lib/lock.h
blob: 7cca65fa262288803df6f3c200eb3cc4c127a288 (plain)
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
/** \file
 *  \brief Header: file locking
 *  \author Adam Byrtek
 *  \date 2003
 *  Look at lock.c for more details
 */

#ifndef MC_LOCK_H
#define MC_LOCK_H

#include "lib/vfs/vfs.h"        /* vfs_path_t */

/*** typedefs(not structures) and defined constants **********************************************/

/*** enums ***************************************************************************************/

/*** structures declarations (and typedefs of structures)*****************************************/

/*** global variables defined in .c file *********************************************************/

/*** declarations of public functions ************************************************************/

int lock_file (const vfs_path_t * fname_vpath);
int unlock_file (const vfs_path_t * fname_vpath);

/*** inline functions ****************************************************************************/

#endif /* MC_LOCK_H */