summaryrefslogtreecommitdiff
path: root/lock.h
diff options
context:
space:
mode:
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