home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
som30tk.zip
/
som30os2.zip
/
include
/
somosutl.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-12-24
|
4KB
|
103 lines
/*
* @(#) 1.10 src/somos/core/somosutl/somosutl.h, somos, som3.0 10/28/96 16:00:11 [12/24/96 08:16:53]
*
* ComponentName: core/somosutl.h
*
* 25H7912 (C) Copyright International Business Machines Corp. 1994, 1995,1996
* 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.
*
* Description: SOMOS Server utilities
*/
#ifndef SOMOS_UTILS_H
#define SOMOS_UTILS_H
/*
* Description
* -----------
* somosutl.c - This file defines the public interfaces to the somos
* utilites library.
*/
/*
* Change History:
* ---------------
* 06/24/96 23119 sz Defined SOMOS_UTIL_IMPORT and exported somos_somossvr_dll.
* 10/28/96 20023 gpj Added prototype for somos_uninit_persist_dbs.
*/
/*****************************************************************************/
/* Includes */
/*****************************************************************************/
#ifdef __cplusplus
#include <som.xh>
#include <somos.xh>
#else
#include <som.h>
#include <somos.h>
#endif /* __cplusplus */
/*****************************************************************************/
/* Constants */
/*****************************************************************************/
/* The following constants are the available exit codes */
#define SOMOS_USAGE_ERROR 100
#define SOMOS_FIND_IMPLDEF_FAILED 101
#define SOMOS_IMPL_IS_READY_FAILED 102
#define SOMOS_CONFIG_FILE_ERROR 103
#define SOMOS_LOG_OPEN_FAILED 104
#define SOMOS_PERSIST_INIT_FAILED 105
#define SOMOS_SECURITY_INIT_FAILED 106
#define SOMOS_SOMD_INIT_FAILED 107
#define SOMOS_REQUEST_LOOP_ERROR 108
#define SOMOS_SERVER_FAILED 109
#define SOMOS_SOMOA_NEW_FAILED 110
/*****************************************************************************/
/* Typedefs */
/*****************************************************************************/
typedef void SOMLINK somosExitCallbackProc(void *client_data);
/*****************************************************************************/
/* Externs */
/*****************************************************************************/
/*****************************************************************************/
/* Prototypes */
/*****************************************************************************/
SOMEXTERN int SOMLINK somos_init_persist_dbs(char *impl_alias, Environment *ev);
SOMEXTERN void SOMLINK somos_uninit_persist_dbs(char *impl_alias, Environment *ev);
SOMEXTERN int SOMLINK somos_getopt(int argc, char **argv, char *opts);
SOMEXTERN void SOMLINK somos_exit(int exit_code);
SOMEXTERN void SOMLINK somos_setup(void);
SOMEXTERN void SOMLINK somos_init_services(boolean initialize_mode);
SOMEXTERN void SOMLINK somos_init_services_afterimpl(boolean initialize_mode);
SOMEXTERN void SOMLINK somos_register_exit_callback(somOS_service_id_e somos_service_id,
somosExitCallbackProc *proc,
void *client_data);
SOMEXTERN void SOMLINK somos_init_logging(void);
#ifdef _WIN32
SOMEXTERN void SOMLINK SOM_TERMINATION_HANDLER(void);
#endif /* WIN_32 */
/* Ensure the proper linkage convention is used for OS2 */
#if defined(__OS2__) && defined(__IBMC__)
#pragma linkage(somos_init_persist_dbs, system)
#pragma linkage(somos_uninit_persist_dbs, system)
#pragma linkage(somos_getopt, system)
#pragma linkage(somos_exit, system)
#pragma linkage(somos_setup, system)
#pragma linkage(somos_init_services, system)
#pragma linkage(somos_init_services_afterimpl, system)
#pragma linkage(somos_register_exit_callback, system)
#pragma linkage(somos_init_logging, system)
#endif
#endif /* SOMOS_UTILS_H */