summaryrefslogtreecommitdiff
path: root/lock.h
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:23 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:23 +0000
commitac8c3cf394fb9d0eb57332ea7b2d12fb3c4a396d (patch)
tree02cb7504dab187ebcae1e7fbb0b002225dda2a73 /lock.h
parentc8ddd5d82a72167de6e0a544b55f9b03ab93053e (diff)
Diffstat (limited to 'lock.h')
-rw-r--r--lock.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/lock.h b/lock.h
index 2153c00..9e3af89 100644
--- a/lock.h
+++ b/lock.h
@@ -23,9 +23,17 @@ Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
******************************************************************************/
+/* $XFree86: xc/programs/xsm/lock.h,v 1.6 2001/12/14 20:02:25 dawes Exp $ */
-extern Status LockSession ();
-extern void UnlockSession ();
-extern char *GetLockId ();
-extern Bool CheckSessionLocked ();
-extern void UnableToLockSession ();
+#ifndef _LOCK_H_
+#define _LOCK_H_
+
+#include <X11/Xdefs.h>
+
+extern Status LockSession(char *session_name, Bool write_id);
+extern void UnlockSession(char* session_name);
+extern char * GetLockId(char *session_name);
+extern Bool CheckSessionLocked(char *session_name, Bool get_id, char **id_ret);
+extern void UnableToLockSession(char *session_name);
+
+#endif