home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnfdoer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.6 KB  |  126 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/nfdoer public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnfdoer_H_
  25. #define _Mnfdoer_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nfdoer
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nfdoer interface. */
  38. struct nfdoerInterface;
  39.  
  40. /* The public type of a nfdoer instance. */
  41. typedef struct nfdoer {
  42.     const struct nfdoerInterface*    vtable;
  43. } nfdoer;
  44.  
  45. /* The inteface ID of the nfdoer interface. */
  46. #ifndef JMC_INIT_nfdoer_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nfdoer_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nfdoer_ID = { 0x31133d0d, 0x67392f05, 0x1367271c, 0x60794020 };
  50. #endif /* JMC_INIT_nfdoer_ID */
  51. /*******************************************************************************
  52.  * nfdoer Operations
  53.  ******************************************************************************/
  54.  
  55. #define nfdoer_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nfdoer_getInterface_op, a, exception))
  57.  
  58. #define nfdoer_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nfdoer_addRef_op, exception))
  60.  
  61. #define nfdoer_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nfdoer_release_op, exception))
  63.  
  64. #define nfdoer_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nfdoer_hashCode_op, exception))
  66.  
  67. #define nfdoer_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nfdoer_equals_op, a, exception))
  69.  
  70. #define nfdoer_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nfdoer_clone_op, exception))
  72.  
  73. #define nfdoer_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nfdoer_toString_op, exception))
  75.  
  76. #define nfdoer_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nfdoer_finalize_op, exception))
  78.  
  79. #define nfdoer_Update(self, a, exception)    \
  80.     (((self)->vtable->Update)(self, nfdoer_Update_op, a, exception))
  81.  
  82. /*******************************************************************************
  83.  * nfdoer Interface
  84.  ******************************************************************************/
  85.  
  86. struct netscape_jmc_JMCInterfaceID;
  87. struct java_lang_Object;
  88. struct java_lang_String;
  89. struct netscape_fonts_nff;
  90.  
  91. struct nfdoerInterface {
  92.     void*    (*getInterface)(struct nfdoer* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  93.     void    (*addRef)(struct nfdoer* self, jint op, JMCException* *exception);
  94.     void    (*release)(struct nfdoer* self, jint op, JMCException* *exception);
  95.     jint    (*hashCode)(struct nfdoer* self, jint op, JMCException* *exception);
  96.     jbool    (*equals)(struct nfdoer* self, jint op, void* a, JMCException* *exception);
  97.     void*    (*clone)(struct nfdoer* self, jint op, JMCException* *exception);
  98.     const char*    (*toString)(struct nfdoer* self, jint op, JMCException* *exception);
  99.     void    (*finalize)(struct nfdoer* self, jint op, JMCException* *exception);
  100.     void    (*Update)(struct nfdoer* self, jint op, struct nff* a, JMCException* *exception);
  101. };
  102.  
  103. /*******************************************************************************
  104.  * nfdoer Operation IDs
  105.  ******************************************************************************/
  106.  
  107. typedef enum nfdoerOperations {
  108.     nfdoer_getInterface_op,
  109.     nfdoer_addRef_op,
  110.     nfdoer_release_op,
  111.     nfdoer_hashCode_op,
  112.     nfdoer_equals_op,
  113.     nfdoer_clone_op,
  114.     nfdoer_toString_op,
  115.     nfdoer_finalize_op,
  116.     nfdoer_Update_op
  117. } nfdoerOperations;
  118.  
  119. /******************************************************************************/
  120.  
  121. #ifdef __cplusplus
  122. } /* extern "C" */
  123. #endif /* __cplusplus */
  124.  
  125. #endif /* _Mnfdoer_H_ */
  126.