home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnffmi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.8 KB  |  131 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:13 GMT
  20.  * netscape/fonts/nffmi public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnffmi_H_
  25. #define _Mnffmi_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nffmi
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nffmi interface. */
  38. struct nffmiInterface;
  39.  
  40. /* The public type of a nffmi instance. */
  41. typedef struct nffmi {
  42.     const struct nffmiInterface*    vtable;
  43. } nffmi;
  44.  
  45. /* The inteface ID of the nffmi interface. */
  46. #ifndef JMC_INIT_nffmi_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nffmi_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nffmi_ID = { 0x22420e05, 0x574c4001, 0x5a4e671e, 0x0b464713 };
  50. #endif /* JMC_INIT_nffmi_ID */
  51. /*******************************************************************************
  52.  * nffmi Operations
  53.  ******************************************************************************/
  54.  
  55. #define nffmi_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nffmi_getInterface_op, a, exception))
  57.  
  58. #define nffmi_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nffmi_addRef_op, exception))
  60.  
  61. #define nffmi_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nffmi_release_op, exception))
  63.  
  64. #define nffmi_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nffmi_hashCode_op, exception))
  66.  
  67. #define nffmi_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nffmi_equals_op, a, exception))
  69.  
  70. #define nffmi_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nffmi_clone_op, exception))
  72.  
  73. #define nffmi_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nffmi_toString_op, exception))
  75.  
  76. #define nffmi_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nffmi_finalize_op, exception))
  78.  
  79. #define nffmi_GetValue(self, a, exception)    \
  80.     (((self)->vtable->GetValue)(self, nffmi_GetValue_op, a, exception))
  81.  
  82. #define nffmi_ListAttributes(self, exception)    \
  83.     (((self)->vtable->ListAttributes)(self, nffmi_ListAttributes_op, exception))
  84.  
  85. /*******************************************************************************
  86.  * nffmi Interface
  87.  ******************************************************************************/
  88.  
  89. struct netscape_jmc_JMCInterfaceID;
  90. struct java_lang_Object;
  91. struct java_lang_String;
  92. struct netscape_jmc_ConstCString;
  93.  
  94. struct nffmiInterface {
  95.     void*    (*getInterface)(struct nffmi* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  96.     void    (*addRef)(struct nffmi* self, jint op, JMCException* *exception);
  97.     void    (*release)(struct nffmi* self, jint op, JMCException* *exception);
  98.     jint    (*hashCode)(struct nffmi* self, jint op, JMCException* *exception);
  99.     jbool    (*equals)(struct nffmi* self, jint op, void* a, JMCException* *exception);
  100.     void*    (*clone)(struct nffmi* self, jint op, JMCException* *exception);
  101.     const char*    (*toString)(struct nffmi* self, jint op, JMCException* *exception);
  102.     void    (*finalize)(struct nffmi* self, jint op, JMCException* *exception);
  103.     void*    (*GetValue)(struct nffmi* self, jint op, const char* a, JMCException* *exception);
  104.     void*    (*ListAttributes)(struct nffmi* self, jint op, JMCException* *exception);
  105. };
  106.  
  107. /*******************************************************************************
  108.  * nffmi Operation IDs
  109.  ******************************************************************************/
  110.  
  111. typedef enum nffmiOperations {
  112.     nffmi_getInterface_op,
  113.     nffmi_addRef_op,
  114.     nffmi_release_op,
  115.     nffmi_hashCode_op,
  116.     nffmi_equals_op,
  117.     nffmi_clone_op,
  118.     nffmi_toString_op,
  119.     nffmi_finalize_op,
  120.     nffmi_GetValue_op,
  121.     nffmi_ListAttributes_op
  122. } nffmiOperations;
  123.  
  124. /******************************************************************************/
  125.  
  126. #ifdef __cplusplus
  127. } /* extern "C" */
  128. #endif /* __cplusplus */
  129.  
  130. #endif /* _Mnffmi_H_ */
  131.