nnadkstubplugin.h

来自「puwerbuilder test example」· C头文件 代码 · 共 142 行

H
142
字号
/* /////////////////////////////////////////////////////////////////////
// BEGIN_COPYRIGHT
// Copyright (C) 1995-2001 New Era Of Networks, Inc.
// END_COPYRIGHT
//
// BEGIN_DISCLAIMER
// New Era Of Networks, Inc. shall have no liability with respect to
// the infringement of copyrights, trade secrets or any patents by
// New Era Of Networks, Inc. or any part thereof except where
// specifically provided by License Agreement.
//
// In no event will New Era Of Networks, Inc. be liable for any lost
// revenue or profits or other special, indirect and consequential
// damages, even if New Era Of Networks, Inc. has been advised of the
// possibility of such damages.
//
// New Era Of Networks, Inc.
// 6550 Greenwood Plaza Blvd.
// Englewood, Colorado 80111
// USA
// END_DISCLAIMER
//
////////////////////////////////////////////////////////////////////// */

//******************************************************************
// NAME: 
//                                                                     
// 

//                                                           
// DESCRIPTION: 
//
// AUTHORS: 
//
// HISTORY: 
// 
// USAGE: 
// 
// REQUIREMENTS: 
//
// THREAD SAFETY COMMENTS:
//
// RESULTS: 
// 
// REFERENCES: 
// 
// GLOSSARY: 
//
// COPYRIGHT: Copyright (c) 1999  New Era of Networks, Inc.
//
//******************************************************************
#if !defined(NNADKSTUBPLUGIN_H_INCLUDED)
#define NNADKSTUBPLUGIN_H_INCLUDED

#pragma warning ( disable : 4786 )

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the NNADKSTUBPLUGIN_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// NNADKSTUBPLUGIN_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef _WIN32
#	ifdef NNADKSTUBPLUGIN_EXPORTS
#		define NNADKSTUBPLUGIN_API __declspec(dllexport)
#	else
#		define NNADKSTUBPLUGIN_API __declspec(dllimport)
#	endif
#else
#	define NNADKSTUBPLUGIN_API
#endif

#include <CFG/NNConfig.h>

#include <NDO/NNDOObject.h>

#include <ADK/NNDataBuffer.h>
#include <ADK/NNADKOutOfBand.h>
#include <ADK/NNADKPlugInInterface.h>

extern "C"
{
										// Setup	
NNADKSTUBPLUGIN_API bool initAdapter(NNSY_CONFIG_NAMESPACE NNConfig&		config, 
									 NNSY_ADK_NAMESPACE e_NNAdapterMode		mode,
									 void**									userdata);

										// Clean up function
NNADKSTUBPLUGIN_API void shutdownAdapter(void** userdata);

										// Provide schema
NNADKSTUBPLUGIN_API bool acquireSchema(const STL_STRING& schemaName, 
										NNSY_NDO_NAMESPACE NNDOObject&  schemaObject, 
										void *userdata, 
										int instance);

										// Get Data From End System
NNADKSTUBPLUGIN_API bool acquireData(NNSY_NDO_NAMESPACE NNDOObject&		dataObject, 
									 void*								userdata, 
									 NNSY_ADK_NAMESPACE NNADKOutOfBand&	oobInformation);

										// Deliver to End System
NNADKSTUBPLUGIN_API bool deliverData(NNSY_NDO_NAMESPACE NNDOObject& 		dataObject, 
									 void*									userdata, 
									 NNSY_ADK_NAMESPACE NNADKOutOfBand&		oobInformation);
	
										// Acquire & Deliver 
NNADKSTUBPLUGIN_API bool processData(NNSY_NDO_NAMESPACE NNDOObject& 	inputDataObject, 
									 NNSY_NDO_NAMESPACE NNDOObject& 	outputDataObject, 
									 void*								userdata, 
									 NNSY_ADK_NAMESPACE NNADKOutOfBand&	oobInformation);
	
// As Above, For Bufferes...
NNADKSTUBPLUGIN_API bool processBuffer(NNSY_ADK_NAMESPACE NNDataBuffer&		inputBuffer, 
									   NNSY_ADK_NAMESPACE NNDataBuffer&		outputBuffer, 
									   void*								userdata, 
									   NNSY_ADK_NAMESPACE NNADKOutOfBand&	oobInformation);

NNADKSTUBPLUGIN_API bool acquireBuffer(NNSY_ADK_NAMESPACE NNDataBuffer&		dataBuffer, 
									   void*								userdata, 
									   NNSY_ADK_NAMESPACE NNADKOutOfBand&	oobInformation);

NNADKSTUBPLUGIN_API bool deliverBuffer(NNSY_ADK_NAMESPACE NNDataBuffer&		dataBuffer, 
									   void*								userdata, 
									   NNSY_ADK_NAMESPACE NNADKOutOfBand&	oobInformation);

NNADKSTUBPLUGIN_API bool acknowledgePutData(NNSY_NDO_NAMESPACE NNDOObject& dataObject,
                                        NNSY_ADK_NAMESPACE NNADKOutOfBand &OB,
										void*								userdata, 
                                        NNSY_ADK_NAMESPACE e_Acknowledge ackStatus);

NNADKSTUBPLUGIN_API bool acknowledgePutBuffer(NNSY_ADK_NAMESPACE NNDataBuffer& dataBuffer,
                                        NNSY_ADK_NAMESPACE NNADKOutOfBand &OB,
										void*								userdata, 
                                        NNSY_ADK_NAMESPACE e_Acknowledge ackStatus);

NNADKSTUBPLUGIN_API bool handleQuietState(void* userdata);

}
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?