ReactOS  0.4.14-dev-583-g2a1ba2c
misc_common.cpp
Go to the documentation of this file.
1 // Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
3 // All rights reserved
4 // This file was released under the GPLv2 on June 2015.
6 
7 
8 VOID
10  IN PVCB Vcb
11  )
12 {
13  if(UDFInterlockedIncrement((PLONG)&(Vcb->Modified)) & 0x80000000)
14  Vcb->Modified = 2;
15 } // end UDFSetModified()
16 
17 VOID
19  IN PVCB Vcb
20  )
21 {
22  Vcb->Modified = 1;
23 } // end UDFPreClrModified()
24 
25 VOID
27  IN PVCB Vcb
28  )
29 {
30  UDFPrint(("ClrModified\n"));
31  UDFInterlockedDecrement((PLONG)&(Vcb->Modified));
32 } // end UDFClrModified()
33 
#define IN
Definition: typedefs.h:38
#define UDFPrint(Args)
Definition: udffs.h:225
Definition: cdstruc.h:504
#define UDFInterlockedDecrement(addr)
Definition: env_spec_w32.h:677
#define Vcb
Definition: cdprocs.h:1425
#define UDFInterlockedIncrement(addr)
Definition: env_spec_w32.h:675
VOID UDFSetModified(IN PVCB Vcb)
Definition: misc_common.cpp:9
signed int * PLONG
Definition: retypes.h:5
VOID UDFPreClrModified(IN PVCB Vcb)
Definition: misc_common.cpp:18
VOID UDFClrModified(IN PVCB Vcb)
Definition: misc_common.cpp:26