#ifndef _SGE_CKPTL_H_
#define _SGE_CKPTL_H_

/*___INFO__MARK_BEGIN__*/
/*************************************************************************
 * 
 *  The Contents of this file are made available subject to the terms of
 *  the Sun Industry Standards Source License Version 1.2
 * 
 *  Sun Microsystems Inc., March, 2001
 * 
 * 
 *  Sun Industry Standards Source License Version 1.2
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.2 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 * 
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 * 
 *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 * 
 *   Copyright: 2001 by Sun Microsystems, Inc.
 * 
 *   All Rights Reserved.
 * 
 ************************************************************************/
/*___INFO__MARK_END__*/

#include "sge_boundaries.h"
#include "cull.h"

#ifdef  __cplusplus
extern "C" {
#endif

/* *INDENT-OFF* */ 

/* 
 * This is the list type to hold the checkpointing
 * object for the interfaces to the various
 * supported checkpointing mechanisms.
 */

enum {
   CK_name = CK_LOWERBOUND,
   CK_interface,
   CK_ckpt_command,
   CK_migr_command,
   CK_rest_command,
   CK_ckpt_dir,
   CK_when,
   CK_signal,
   CK_job_pid,
   CK_clean_command
};

ILISTDEF(CK_Type, Checkpoint, SGE_CKPT_LIST)
   SGE_STRING(CK_name, CULL_PRIMARY_KEY | CULL_HASH | CULL_UNIQUE | CULL_SPOOL)
   SGE_STRING(CK_interface, CULL_DEFAULT | CULL_SPOOL)
   SGE_STRING(CK_ckpt_command, CULL_DEFAULT | CULL_SPOOL)
   SGE_STRING(CK_migr_command, CULL_DEFAULT | CULL_SPOOL)
   SGE_STRING(CK_rest_command, CULL_DEFAULT | CULL_SPOOL)
   SGE_STRING(CK_ckpt_dir, CULL_DEFAULT | CULL_SPOOL)
   SGE_STRING(CK_when, CULL_DEFAULT | CULL_SPOOL)
   SGE_STRING(CK_signal, CULL_DEFAULT | CULL_SPOOL)
   SGE_ULONG(CK_job_pid, CULL_DEFAULT)
   SGE_STRING(CK_clean_command, CULL_DEFAULT | CULL_SPOOL)
LISTEND 

NAMEDEF(CKN)
   NAME("CK_name")
   NAME("CK_interface")
   NAME("CK_ckpt_command")
   NAME("CK_migr_command")
   NAME("CK_rest_command")
   NAME("CK_ckpt_dir")
   NAME("CK_when")
   NAME("CK_signal")
   NAME("CK_job_pid")
   NAME("CK_clean_command")
NAMEEND

/* *INDENT-ON* */  

#define CKS sizeof(CKN)/sizeof(char*)
#ifdef  __cplusplus
}
#endif
#endif                          /* _SGE_CKPTL_H_ */
