/* @(#)17       1.1  src/examples/timop/timop_server.h, examples.src, os2dce21.dss, 960602a.1 8/8/95 18:45:28 */
/*
 *   COMPONENT_NAME: examples.src
 *
 *   FUNCTIONS: none
 *
 *   ORIGINS: 72
 *
 */
/*
 * @OSF_COPYRIGHT@
 * COPYRIGHT NOTICE
 * Copyright (c) 1990, 1991, 1992, 1993, 1994 Open Software Foundation, Inc.
 * ALL RIGHTS RESERVED (DCE).  See the file named COPYRIGHT.DCE for
 * the full copyright text.
 */
/*
 * The Example code is provided to you as "Pass-through Code".
 * Pass-through Code and its related Documentation are not warrented,
 * supported, or indemnified by OSF, and are provided "AS IS".
 * You can use, sublicense, or distribute the same at your own risk.
 */
/*
 * Copyright (c) 1990, 1991
 * Open Software Foundation, Inc.
 *
 * Permission is hereby granted to use, copy, modify and freely distribute
 * the software in this file and its documentation for any purpose without
 * fee, provided that the above copyright notice appears in all copies and
 * that both the copyright notice and this permission notice appear in
 * supporting documentation.  Further, provided that the name of Open
 * Software Foundation, Inc. ("OSF") not be used in advertising or
 * publicity pertaining to distribution of the software without prior
 * written permission from OSF.  OSF makes no representations about the
 * suitability of this software for any purpose.  It is provided "as is"
 * without express or implied warranty.
 */
/*
 *  OSF DCE Version 1.0
 */
/*
**	timop_server.h
**
**	Server header file for timop interface.
*/

#define NUM_OBJS		1	/* num of objs supported */
#define MAX_CONC_CALLS_PROTSEQ	5	/* max conc calls per protseq */
#define MAX_CONC_CALLS_TOTAL	10	/* max conc calls total */
#define MAX_NAME		1024	/* max size of name */
/* Success/failure for remote procedures. */
#define GETSPAN_OK		0	/* pass */
#define GETSPAN_ERR		1	/* fail */

/* Defines for access control. */
#define GETSPAN_OP		1	/* requested operation */
#define GRANT_ACCESS		0	/* reference monitor success */
#define DENY_ACCESS		1	/* reference monitor failure */
#define IS_AUTHORIZED		0	/* authorization success */
#define NOT_AUTHORIZED		1	/* authorization failure */

/* Server key table for this example.  Change name of keyfile to suit your   */
/* environment, and populate it with "rgy_edit ktadd tserver /tmp/tkeyfile". */
/*     "rgy_edit ktadd -p tserver -pw -dce- -f /tmp/tkeyfile".               */
#define KEYFILE 		"/tmp/tkeyfile"
#define KEYTAB			"FILE:" ## KEYFILE

/* Prototypes for server. */
int main(int _1, char *_2[]);
void getspan_ep(rpc_binding_handle_t _1, idl_long_int _2, timestamp_t _3,
	idl_long_int *_4, error_status_t *_5);
int do_getspan(idl_long_int _1, timestamp_t _2);
int ref_mon(rpc_binding_handle_t _1, int _2);
int is_authorized(unsigned_char_t *_1, int _2);

void print_error(char *_1, error_status_t _2);

