Data Transformation Engine Services Guide

Chapter 21 – Adding the Adapter to Mercator Command Server
117
ENTRY_X( UA_Listen )
ENTRY_X( UA_ValidateProperties )
ENTRY_X( UA_ValidateConnection )
ENTRY_X( UA_CompareConnection )
ENTRY_X( UA_OnNotify )
#endif
/* define the entry points for sample adapter */
vtable_t vtable_user[] = {
#ifdef HAVE_USER_ADAPTERS
ENTRY( useradapter_config ),
ENTRY( UA_CompareWatches ),
ENTRY( UA_CompareResources ),
ENTRY( UA_Get ),
ENTRY( UA_Put ),
ENTRY( UA_BeginTransaction ),
ENTRY( UA_EndTransaction ),
ENTRY( UA_Listen ),
ENTRY( UA_ValidateProperties ),
ENTRY( UA_ValidateConnection ),
ENTRY( UA_CompareConnection ),
ENTRY( UA_OnNotify ),
#endif
{ NULL, NULL }
}; #endif
Add the following lines:
ENTRY_X( MNA_Connect )
ENTRY_X( MNA_DisConnect )
ENTRY_X( MNA_Get )
ENTRY_X( MNA_Put )
ENTRY_X( MNA_InitializeAdapter )
ENTRY_X( MNA_ValidateCommand )
ENTRY_X( MNA_ValidateConnection )
ENTRY_X( MNA_FreeAdapterParms )
ENTRY_X( MNA_CompareConnections )
ENTRY_X( MNA_ShutdownAdapter )
Immediately following the line ENTRY_X( UA_ShutdownAdapter )
Add the following lines:
ENTRY( MNA_Connect ),
ENTRY( MNA_DisConnect ),
ENTRY( MNA_Get ),
ENTRY( MNA_Put ),
ENTRY( MNA_InitializeAdapter ),
ENTRY( MNA_ValidateCommand ),
ENTRY( MNA_ValidateConnection ),
ENTRY( MNA_FreeAdapterParms ),
ENTRY( MNA_CompareConnections ),
ENTRY( MNA_ShutdownAdapter ),
Immediately following the line ENTRY( UA_ShutdownAdapter ),.
Note that only those functions that you actually have in your new adapter need to be
defined here. If, for example, you do not have a entry point
MNA_InitializeAdapter, it
should not be specified here.
Note also that the function names are only examples. You may call them anything you
like.