home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnfdlm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.1 KB  |  135 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/nfdlm public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnfdlm_H_
  25. #define _Mnfdlm_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nfdlm
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nfdlm interface. */
  38. struct nfdlmInterface;
  39.  
  40. /* The public type of a nfdlm instance. */
  41. typedef struct nfdlm {
  42.     const struct nfdlmInterface*    vtable;
  43. } nfdlm;
  44.  
  45. /* The inteface ID of the nfdlm interface. */
  46. #ifndef JMC_INIT_nfdlm_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nfdlm_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nfdlm_ID = { 0x3c05681c, 0x011f0f65, 0x7b254505, 0x5573601b };
  50. #endif /* JMC_INIT_nfdlm_ID */
  51. /*******************************************************************************
  52.  * nfdlm Operations
  53.  ******************************************************************************/
  54.  
  55. #define nfdlm_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nfdlm_getInterface_op, a, exception))
  57.  
  58. #define nfdlm_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nfdlm_addRef_op, exception))
  60.  
  61. #define nfdlm_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nfdlm_release_op, exception))
  63.  
  64. #define nfdlm_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nfdlm_hashCode_op, exception))
  66.  
  67. #define nfdlm_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nfdlm_equals_op, a, exception))
  69.  
  70. #define nfdlm_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nfdlm_clone_op, exception))
  72.  
  73. #define nfdlm_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nfdlm_toString_op, exception))
  75.  
  76. #define nfdlm_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nfdlm_finalize_op, exception))
  78.  
  79. #define nfdlm_SupportsInterface(self, a, exception)    \
  80.     (((self)->vtable->SupportsInterface)(self, nfdlm_SupportsInterface_op, a, exception))
  81.  
  82. #define nfdlm_CreateObject(self, a, b, b_length, exception)    \
  83.     (((self)->vtable->CreateObject)(self, nfdlm_CreateObject_op, a, b, b_length, exception))
  84.  
  85. #define nfdlm_OnUnload(self, exception)    \
  86.     (((self)->vtable->OnUnload)(self, nfdlm_OnUnload_op, exception))
  87.  
  88. /*******************************************************************************
  89.  * nfdlm Interface
  90.  ******************************************************************************/
  91.  
  92. struct netscape_jmc_JMCInterfaceID;
  93. struct java_lang_Object;
  94. struct java_lang_String;
  95.  
  96. struct nfdlmInterface {
  97.     void*    (*getInterface)(struct nfdlm* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  98.     void    (*addRef)(struct nfdlm* self, jint op, JMCException* *exception);
  99.     void    (*release)(struct nfdlm* self, jint op, JMCException* *exception);
  100.     jint    (*hashCode)(struct nfdlm* self, jint op, JMCException* *exception);
  101.     jbool    (*equals)(struct nfdlm* self, jint op, void* a, JMCException* *exception);
  102.     void*    (*clone)(struct nfdlm* self, jint op, JMCException* *exception);
  103.     const char*    (*toString)(struct nfdlm* self, jint op, JMCException* *exception);
  104.     void    (*finalize)(struct nfdlm* self, jint op, JMCException* *exception);
  105.     jint    (*SupportsInterface)(struct nfdlm* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  106.     void*    (*CreateObject)(struct nfdlm* self, jint op, const JMCInterfaceID* a, void** b, jsize b_length, JMCException* *exception);
  107.     jint    (*OnUnload)(struct nfdlm* self, jint op, JMCException* *exception);
  108. };
  109.  
  110. /*******************************************************************************
  111.  * nfdlm Operation IDs
  112.  ******************************************************************************/
  113.  
  114. typedef enum nfdlmOperations {
  115.     nfdlm_getInterface_op,
  116.     nfdlm_addRef_op,
  117.     nfdlm_release_op,
  118.     nfdlm_hashCode_op,
  119.     nfdlm_equals_op,
  120.     nfdlm_clone_op,
  121.     nfdlm_toString_op,
  122.     nfdlm_finalize_op,
  123.     nfdlm_SupportsInterface_op,
  124.     nfdlm_CreateObject_op,
  125.     nfdlm_OnUnload_op
  126. } nfdlmOperations;
  127.  
  128. /******************************************************************************/
  129.  
  130. #ifdef __cplusplus
  131. } /* extern "C" */
  132. #endif /* __cplusplus */
  133.  
  134. #endif /* _Mnfdlm_H_ */
  135.