/* @(#)95    1.14  src/examples/type_mgr/type_mgr.h, examples.src, os2dce21.dss, 960602a.1  7/8/94  11:10:09 */
/*
 * COMPONENT_NAME:  examples.src
 *
 * FUNCTIONS:
 *
 * ORIGINS: 27
 *
 * (C) COPYRIGHT International Business Machines Corp. 1992, 1994
 * All Rights Reserved
 * Licensed Materials - Property of IBM
 *
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 *
 */

/*********************************************************************
 *  File      :  type_mgr.h                                          *
 *********************************************************************
 *                                                                   *
 *  Functions :                                                      *
 *                                                                   *
 *  Comments  :  Common macros and declarations for use in           *
 *               developing the type manager applications.           *
 *                                                                   *
 *********************************************************************/

/*
 *  Constant declaration 
 *
 *  NOTE:  All directories and paths must be terminated with the
 *         appropriate delimiter!
 */


#define NAME_SERVICE_PATH        "/.:/subsys/examples/type_mgr/"
#define NAME_SERVICE_TM_SERVER_PATH    "servers/"
#define NAME_SERVICE_TM_SERVER_GROUP    "server-group"

#ifdef IBMOS2
#define SERVER_OBJECT_DB_PATH      ".\\"
#define SERVER_OBJECT_DB_PREFIX    ""
#define SERVER_LOG_PATH            ".\\"
#define SERVER_LOG_PREFIX          ""
#else
#define SERVER_OBJECT_DB_PATH      "/tmp/"
#define SERVER_OBJECT_DB_PREFIX    "TM_ODB_"
#define SERVER_LOG_PATH            "/tmp/"
#define SERVER_LOG_PREFIX          "TM_LOG_"
#endif

/*
 * This example program has 2 type managers.
 */

#define NUM_TYPE_MGRS            (2)
#define TYPE1_NAME            "TYPE1"
#define TYPE2_NAME            "TYPE2"

/*
 *  Status codes.
 */

#define  SUCCESS            (0)
#define  FAILURE            (1)
#define  NO_MATCH            (2)
#define  NO_MORE_ENTRIES        (3)
#define  OBJECT_ALREADY_EXISTS        (4)
#define  CODING_ERROR            (5)
#define  OBJECT_DB_CREATED           (6)
#define  OBJECT_DB_RESTARTED        (7)
#define  OBJECT_DB_INIT_UNDERWAY    (8)
#define  OBJECT_DB_UNINITIALIZED    (9)

/*
 *  Status Messages.
 */

extern char *tm_msg[] ;

/*
 *  Field sizes
 */

#define  ENTRY_LEN  132
#define  NAME_SIZE  132

/* EOF type_mgr.h */



