home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnfrc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.6 KB  |  147 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*******************************************************************************
  19.  * Source date: 9 Apr 1997 21:45:12 GMT
  20.  * netscape/fonts/nfrc public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnfrc_H_
  25. #define _Mnfrc_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nfrc
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nfrc interface. */
  38. struct nfrcInterface;
  39.  
  40. /* The public type of a nfrc instance. */
  41. typedef struct nfrc {
  42.     const struct nfrcInterface*    vtable;
  43. } nfrc;
  44.  
  45. /* The inteface ID of the nfrc interface. */
  46. #ifndef JMC_INIT_nfrc_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nfrc_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nfrc_ID = { 0x241a4e5e, 0x465b4148, 0x5d5a481e, 0x695e4c7f };
  50. #endif /* JMC_INIT_nfrc_ID */
  51. /*******************************************************************************
  52.  * nfrc Operations
  53.  ******************************************************************************/
  54.  
  55. #define nfrc_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nfrc_getInterface_op, a, exception))
  57.  
  58. #define nfrc_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nfrc_addRef_op, exception))
  60.  
  61. #define nfrc_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nfrc_release_op, exception))
  63.  
  64. #define nfrc_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nfrc_hashCode_op, exception))
  66.  
  67. #define nfrc_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nfrc_equals_op, a, exception))
  69.  
  70. #define nfrc_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nfrc_clone_op, exception))
  72.  
  73. #define nfrc_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nfrc_toString_op, exception))
  75.  
  76. #define nfrc_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nfrc_finalize_op, exception))
  78.  
  79. #define nfrc_GetMajorType(self, exception)    \
  80.     (((self)->vtable->GetMajorType)(self, nfrc_GetMajorType_op, exception))
  81.  
  82. #define nfrc_GetMinorType(self, exception)    \
  83.     (((self)->vtable->GetMinorType)(self, nfrc_GetMinorType_op, exception))
  84.  
  85. #define nfrc_IsEquivalent(self, a, b, exception)    \
  86.     (((self)->vtable->IsEquivalent)(self, nfrc_IsEquivalent_op, a, b, exception))
  87.  
  88. #define nfrc_GetPlatformData(self, exception)    \
  89.     (((self)->vtable->GetPlatformData)(self, nfrc_GetPlatformData_op, exception))
  90.  
  91. #define nfrc_SetPlatformData(self, a, exception)    \
  92.     (((self)->vtable->SetPlatformData)(self, nfrc_SetPlatformData_op, a, exception))
  93.  
  94. /*******************************************************************************
  95.  * nfrc Interface
  96.  ******************************************************************************/
  97.  
  98. struct netscape_jmc_JMCInterfaceID;
  99. struct java_lang_Object;
  100. struct java_lang_String;
  101. struct netscape_fonts_PlatformRCData;
  102. struct netscape_fonts_PlatformRCDataStar;
  103.  
  104. struct nfrcInterface {
  105.     void*    (*getInterface)(struct nfrc* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  106.     void    (*addRef)(struct nfrc* self, jint op, JMCException* *exception);
  107.     void    (*release)(struct nfrc* self, jint op, JMCException* *exception);
  108.     jint    (*hashCode)(struct nfrc* self, jint op, JMCException* *exception);
  109.     jbool    (*equals)(struct nfrc* self, jint op, void* a, JMCException* *exception);
  110.     void*    (*clone)(struct nfrc* self, jint op, JMCException* *exception);
  111.     const char*    (*toString)(struct nfrc* self, jint op, JMCException* *exception);
  112.     void    (*finalize)(struct nfrc* self, jint op, JMCException* *exception);
  113.     jint    (*GetMajorType)(struct nfrc* self, jint op, JMCException* *exception);
  114.     jint    (*GetMinorType)(struct nfrc* self, jint op, JMCException* *exception);
  115.     jint    (*IsEquivalent)(struct nfrc* self, jint op, jint a, jint b, JMCException* *exception);
  116.     struct rc_data    (*GetPlatformData)(struct nfrc* self, jint op, JMCException* *exception);
  117.     jint    (*SetPlatformData)(struct nfrc* self, jint op, struct rc_data * a, JMCException* *exception);
  118. };
  119.  
  120. /*******************************************************************************
  121.  * nfrc Operation IDs
  122.  ******************************************************************************/
  123.  
  124. typedef enum nfrcOperations {
  125.     nfrc_getInterface_op,
  126.     nfrc_addRef_op,
  127.     nfrc_release_op,
  128.     nfrc_hashCode_op,
  129.     nfrc_equals_op,
  130.     nfrc_clone_op,
  131.     nfrc_toString_op,
  132.     nfrc_finalize_op,
  133.     nfrc_GetMajorType_op,
  134.     nfrc_GetMinorType_op,
  135.     nfrc_IsEquivalent_op,
  136.     nfrc_GetPlatformData_op,
  137.     nfrc_SetPlatformData_op
  138. } nfrcOperations;
  139.  
  140. /******************************************************************************/
  141.  
  142. #ifdef __cplusplus
  143. } /* extern "C" */
  144. #endif /* __cplusplus */
  145.  
  146. #endif /* _Mnfrc_H_ */
  147.