home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / medianet / server / include / ysid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-15  |  1.3 KB  |  53 lines

  1. /* Copyright (c) 1995 by Oracle Corporation.  All Rights Reserved.
  2.  *
  3.  * ysid.h - Media Net System Identifiers
  4.  *
  5.  * DESCRIPTION
  6.  * System identifiers are used to uniquely identify a number of constant
  7.  * entities used throughout Media Net, including exceptions and interface
  8.  * types.  These are equivalent to repository IDs in CORBA and as such,
  9.  * are defined publicly as strings.
  10.  */
  11.  
  12. #ifndef YSID_ORACLE
  13. #define YSID_ORACLE
  14.  
  15. #ifndef SYSX_ORACLE
  16. #include <sysx.h>
  17. #endif
  18.  
  19. EXTC_START
  20.  
  21. /*
  22.  * ysid - declarations
  23.  */
  24. #define ysid char
  25. #define ysidDecl(nm)      CONST_DATA char nm[]
  26.  
  27. externref ysidDecl(YS_PRODUCT);
  28.  
  29. /*
  30.  * ysidEq, ysidToStr - identifier manipulation
  31.  *
  32.  * DESCRIPTION
  33.  * ysidEq() is used to compare two identifiers for equality.  ysidToStr()
  34.  * is used to convert a system identifier to a printable text string.
  35.  */
  36. #define ysidEq(id1, id2)  (!strcmp((id1), (id2)))
  37. #define ysidToStr(id)     (id)
  38.  
  39. /*
  40.  * Global Exceptions
  41.  */
  42. externref ysidDecl(YS_EX_FAILURE);
  43. externref ysidDecl(YS_EX_NOTINIT);
  44. externref ysidDecl(YS_EX_NOTIMPL);
  45. externref ysidDecl(YS_EX_BADPARAM);
  46. externref ysidDecl(YS_EX_BADMAGIC);
  47. externref ysidDecl(YS_EX_ALREADY);
  48. externref ysidDecl(YS_EX_INUSE);
  49. externref ysidDecl(YS_EX_SHUTDOWN);
  50.  
  51. EXTC_END
  52. #endif /* YSID_ORACLE */
  53.