pjs/modules/libfont/jmcgen/include/Mnfstrm.h

160 строки
6.1 KiB
C
Исходник Обычный вид История

1998-03-28 05:44:41 +03:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
1998-03-28 05:44:41 +03:00
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
1998-03-28 05:44:41 +03:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
1998-03-28 05:44:41 +03:00
/*******************************************************************************
* Source date: 9 Apr 1997 21:45:13 GMT
* netscape/fonts/nfstrm public interface
* Generated by jmc version 1.8 -- DO NOT EDIT
******************************************************************************/
#ifndef _Mnfstrm_H_
#define _Mnfstrm_H_
#include "jmc.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*******************************************************************************
* nfstrm
******************************************************************************/
/* The type of the nfstrm interface. */
struct nfstrmInterface;
/* The public type of a nfstrm instance. */
typedef struct nfstrm {
const struct nfstrmInterface* vtable;
} nfstrm;
/* The inteface ID of the nfstrm interface. */
#ifndef JMC_INIT_nfstrm_ID
extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nfstrm_ID;
#else
EXTERN_C const JMCInterfaceID nfstrm_ID = { 0x3b686461, 0x5c714911, 0x4c06346e, 0x1c47186a };
#endif /* JMC_INIT_nfstrm_ID */
/*******************************************************************************
* nfstrm Operations
******************************************************************************/
#define nfstrm_getInterface(self, a, exception) \
(((self)->vtable->getInterface)(self, nfstrm_getInterface_op, a, exception))
#define nfstrm_addRef(self, exception) \
(((self)->vtable->addRef)(self, nfstrm_addRef_op, exception))
#define nfstrm_release(self, exception) \
(((self)->vtable->release)(self, nfstrm_release_op, exception))
#define nfstrm_hashCode(self, exception) \
(((self)->vtable->hashCode)(self, nfstrm_hashCode_op, exception))
#define nfstrm_equals(self, a, exception) \
(((self)->vtable->equals)(self, nfstrm_equals_op, a, exception))
#define nfstrm_clone(self, exception) \
(((self)->vtable->clone)(self, nfstrm_clone_op, exception))
#define nfstrm_toString(self, exception) \
(((self)->vtable->toString)(self, nfstrm_toString_op, exception))
#define nfstrm_finalize(self, exception) \
(((self)->vtable->finalize)(self, nfstrm_finalize_op, exception))
#define nfstrm_IsWriteReady(self, exception) \
(((self)->vtable->IsWriteReady)(self, nfstrm_IsWriteReady_op, exception))
#define nfstrm_Write(self, a, a_length, exception) \
(((self)->vtable->Write)(self, nfstrm_Write_op, a, a_length, exception))
#define nfstrm_Abort(self, a, exception) \
(((self)->vtable->Abort)(self, nfstrm_Abort_op, a, exception))
#define nfstrm_Complete(self, exception) \
(((self)->vtable->Complete)(self, nfstrm_Complete_op, exception))
/*******************************************************************************
* nfstrm Interface
******************************************************************************/
struct netscape_jmc_JMCInterfaceID;
struct java_lang_Object;
struct java_lang_String;
struct nfstrmInterface {
void* (*getInterface)(struct nfstrm* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
void (*addRef)(struct nfstrm* self, jint op, JMCException* *exception);
void (*release)(struct nfstrm* self, jint op, JMCException* *exception);
jint (*hashCode)(struct nfstrm* self, jint op, JMCException* *exception);
jbool (*equals)(struct nfstrm* self, jint op, void* a, JMCException* *exception);
void* (*clone)(struct nfstrm* self, jint op, JMCException* *exception);
const char* (*toString)(struct nfstrm* self, jint op, JMCException* *exception);
void (*finalize)(struct nfstrm* self, jint op, JMCException* *exception);
jint (*IsWriteReady)(struct nfstrm* self, jint op, JMCException* *exception);
jint (*Write)(struct nfstrm* self, jint op, jbyte* a, jsize a_length, JMCException* *exception);
void (*Abort)(struct nfstrm* self, jint op, jint a, JMCException* *exception);
void* (*Complete)(struct nfstrm* self, jint op, JMCException* *exception);
};
/*******************************************************************************
* nfstrm Operation IDs
******************************************************************************/
typedef enum nfstrmOperations {
nfstrm_getInterface_op,
nfstrm_addRef_op,
nfstrm_release_op,
nfstrm_hashCode_op,
nfstrm_equals_op,
nfstrm_clone_op,
nfstrm_toString_op,
nfstrm_finalize_op,
nfstrm_IsWriteReady_op,
nfstrm_Write_op,
nfstrm_Abort_op,
nfstrm_Complete_op
} nfstrmOperations;
/******************************************************************************/
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif /* _Mnfstrm_H_ */