| 1 |
/* @(#)UxCorba.h 17.1 (ESO-IPG) 01/25/02 17:25:58 */ |
| 2 |
/*--------------------------------------------------------------------- |
| 3 |
* $Date: 2003-06-04 14:49:18 $ $Revision: 1.1.1.1 $ |
| 4 |
*--------------------------------------------------------------------- |
| 5 |
* |
| 6 |
* Copyright 1989-1993, Visual Edge Software Ltd. |
| 7 |
* |
| 8 |
* ALL RIGHTS RESERVED. Permission to use, copy, modify, and |
| 9 |
* distribute this software and its documentation for any purpose |
| 10 |
* and without fee is hereby granted, provided that the above |
| 11 |
* copyright notice appear in all copies and that both that |
| 12 |
* copyright notice and this permission notice appear in supporting |
| 13 |
* documentation, and that the name of Visual Edge Software not be |
| 14 |
* used in advertising or publicity pertaining to distribution of |
| 15 |
* the software without specific, written prior permission. The year |
| 16 |
* included in the notice is the year of the creation of the work. |
| 17 |
*--------------------------------------------------------------------- |
| 18 |
* CORBA compliant definitions. |
| 19 |
*-------------------------------------------------------------------*/ |
| 20 |
|
| 21 |
#ifndef _UX_CORBA_INCLUDED |
| 22 |
#define _UX_CORBA_INCLUDED |
| 23 |
|
| 24 |
/*----------------------------------------------------- |
| 25 |
* UXORB_HEADER, if defined, is the include form for |
| 26 |
* the header that defines the CORBA Environment type |
| 27 |
* and exception type codes. |
| 28 |
* |
| 29 |
* You can specify a file with a compile option like |
| 30 |
* cc -DUXORB_HEADER='<SomeOrb.h>' |
| 31 |
*-----------------------------------------------------*/ |
| 32 |
|
| 33 |
#ifdef UXORB_HEADER |
| 34 |
#include UXORB_HEADER |
| 35 |
#else |
| 36 |
/* |
| 37 |
* In the absence of an ORB implementation, |
| 38 |
* these minimal definitions satisfy our method dispatch code. |
| 39 |
*/ |
| 40 |
|
| 41 |
typedef enum { |
| 42 |
NO_EXCEPTION, |
| 43 |
USER_EXCEPTION, |
| 44 |
SYSTEM_EXCEPTION |
| 45 |
} exception_type; |
| 46 |
|
| 47 |
typedef struct Environment { |
| 48 |
exception_type _major; |
| 49 |
} Environment; |
| 50 |
#endif /* UXORB_HEADER */ |
| 51 |
|
| 52 |
/* |
| 53 |
* UxEnv is provided as a convenience for use in interface methods. |
| 54 |
*/ |
| 55 |
extern Environment UxEnv; |
| 56 |
|
| 57 |
#endif /* _UX_CORBA_INCLUDED */ |