(* X11/SM/SM.def  May 11  12:12:15  1996 *)
(* Copyright (c) 1996,1997 XDS Ltd, Russia. All rights reserved. *)

(* Generated by H2D v1.00 from X11/SM/SM.h. *)

(* $RCSfile: SM.def,v $ $Revision: 4 $ $Date: 28.07.98 23:13 $ *)

<*+ M2ADDTYPES *>
<*+ M2EXTENSIONS *>
<*+ NOHEADER *>
<* IF NOT DEFINED(GENCTYPES) THEN *> <* NEW GENTYPEDEF+ *> <* END *>
<*+ CSTDLIB *>

DEFINITION MODULE ["C"] SM;

IMPORT SYSTEM;
(* H2D: to import this module write following text:
IMPORT SM;
*)

(*  $XConsortium: SM.h,v 1.9 94/04/17 20:16:49 mor Exp $  *)

(*
 * Author: Ralph Mor, X Consortium 
 *)

(*
 * Protocol Version 
 *)

CONST 
  SmProtoMajor = 1;
  SmProtoMinor = 0;

(*
 * Interact Style 
 *)
  SmInteractStyleNone = 0;
  SmInteractStyleErrors = 1;
  SmInteractStyleAny = 2;

(*
 * Dialog Type 
 *)
  SmDialogError = 0;
  SmDialogNormal = 1;

(*
 * Save Type 
 *)
  SmSaveGlobal = 0;
  SmSaveLocal = 1;
  SmSaveBoth = 2;

(*
 * Restart Style Hints 
 *)
  SmRestartIfRunning = 0;
  SmRestartAnyway = 1;
  SmRestartImmediately = 2;
  SmRestartNever = 3;

(*
 * Property names 
 *)
  SmCloneCommand = 'CloneCommand';
  SmCurrentDirectory = 'CurrentDirectory';
  SmDiscardCommand = 'DiscardCommand';
  SmEnvironment = 'Environment';
  SmProcessID = 'ProcessID';
  SmProgram = 'Program';
  SmRestartCommand = 'RestartCommand';
  SmResignCommand = 'ResignCommand';
  SmRestartStyleHint = 'RestartStyleHint';
  SmShutdownCommand = 'ShutdownCommand';
  SmUserID = 'UserID';

(*
 * Property types 
 *)
  SmCARD8 = 'CARD8';
  SmARRAY8 = 'ARRAY8';
  SmLISTofARRAY8 = 'LISTofARRAY8';

(*
 * SM minor opcodes 
 *)
  SM_Error = 0;
  SM_RegisterClient = 1;
  SM_RegisterClientReply = 2;
  SM_SaveYourself = 3;
  SM_SaveYourselfRequest = 4;
  SM_InteractRequest = 5;
  SM_Interact = 6;
  SM_InteractDone = 7;
  SM_SaveYourselfDone = 8;
  SM_Die = 9;
  SM_ShutdownCancelled = 10;
  SM_CloseConnection = 11;
  SM_SetProperties = 12;
  SM_DeleteProperties = 13;
  SM_GetProperties = 14;
  SM_PropertiesReply = 15;
  SM_SaveYourselfPhase2Request = 16;
  SM_SaveYourselfPhase2 = 17;
  SM_SaveComplete = 18;

END SM.
