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

  1. /* Copyright (c) 1994 by Oracle Corporation.  All Rights Reserved.
  2.  *
  3.  * mnr.h - OMN Remote Procedure Call Global Definitions
  4.  *
  5.  * DESCRIPTION
  6.  * Related man pages are mnrpc_intro(3), mnrIdCmp(3) and mnrConfig(3).
  7.  *
  8.  * REVISIONS
  9.  * jolkin    05/06/94  Creation
  10.  */
  11.  
  12. #ifndef MNR_ORACLE
  13. #define MNR_ORACLE
  14.  
  15. #ifndef SYSX_ORACLE
  16. #include <sysx.h>
  17. #endif
  18. #ifndef MN_ORACLE
  19. #include <mn.h>
  20. #endif
  21. #ifndef MNX_ORACLE
  22. #include <mnx.h>
  23. #endif
  24.  
  25. EXTC_START
  26.  
  27. /* RPC type declarations */
  28. typedef struct mnrid mnrid;                                /* RPC identifier */
  29.  
  30. /* version number manipulation */
  31. #define MNVERS(version, release)   \
  32.   ((((ub4) (version)) << 16) | ((release) & 0xffff))
  33. #define MNGETVERS(vers)            ((vers) >> 16)
  34. #define MNGETRELS(vers)            ((vers) & 0xffff)
  35.  
  36. /* program identifier */
  37. /* DISABLE check_naming */
  38. struct mnrid
  39. {
  40.   ub1 id[8];                                   /* globally unique identifier */
  41.   ub4 vers;                                               /* program version */
  42. };
  43. /* ENABLE check_naming */
  44.  
  45. /* RPC identifier comparison */
  46. sb4 mnrIdCmp(const mnrid *, const mnrid *, boolean);
  47.  
  48. /* RPC identifier marshalling routine */
  49. boolean mnrxId(mnx *, dvoid *);
  50.  
  51. /* RPC memory management */
  52. void mnrConfig(mnAlloc, mnFree);
  53.  
  54. EXTC_END
  55. #endif /* MNR_ORACLE */
  56.