summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSDistributedLock.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cocoaint/src/foundation/NSDistributedLock.inc')
-rw-r--r--packages/cocoaint/src/foundation/NSDistributedLock.inc67
1 files changed, 67 insertions, 0 deletions
diff --git a/packages/cocoaint/src/foundation/NSDistributedLock.inc b/packages/cocoaint/src/foundation/NSDistributedLock.inc
new file mode 100644
index 0000000000..e3811b7f5e
--- /dev/null
+++ b/packages/cocoaint/src/foundation/NSDistributedLock.inc
@@ -0,0 +1,67 @@
+{ Parsed from Foundation.framework NSDistributedLock.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:30:59 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDISTRIBUTEDLOCK_PAS_H}
+{$define NSDISTRIBUTEDLOCK_PAS_H}
+type
+ NSDistributedLockPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDISTRIBUTEDLOCK_PAS_T}
+{$define NSDISTRIBUTEDLOCK_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDISTRIBUTEDLOCK_PAS_R}
+{$define NSDISTRIBUTEDLOCK_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDISTRIBUTEDLOCK_PAS_F}
+{$define NSDISTRIBUTEDLOCK_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDISTRIBUTEDLOCK_PAS_T}
+{$define NSDISTRIBUTEDLOCK_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+ NSDistributedLock = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDISTRIBUTEDLOCK_PAS_C}
+{$define NSDISTRIBUTEDLOCK_PAS_C}
+
+{ NSDistributedLock }
+ NSDistributedLock = objcclass(NSObject)
+ private
+ __priv: Pointer;
+
+ public
+ class function alloc: NSDistributedLock; message 'alloc';
+
+ class function lockWithPath(path: NSString): NSDistributedLock; message 'lockWithPath:';
+ function initWithPath(path: NSString): id; message 'initWithPath:';
+ function tryLock: Boolean; message 'tryLock';
+ procedure unlock; message 'unlock';
+ procedure breakLock; message 'breakLock';
+ function lockDate: NSDate; message 'lockDate';
+ end; external;
+
+{$endif}
+{$endif}