Data Transformation Engine Services Guide
Chapter 21 –  Adding the Adapter to Mercator Command Server 
122
Get_Function = MNA_Get 
Put_Function = MNA_Put 
Shutdown_Function = MNA_ShutdownAdapter 
Validate_Cmd_Function = MNA_ValidateCommand 
Compare_Connection_Function = MNA_CompareConnections 
Connect_Function = MNA_Connect 
DisConnect_Function = MNA_DisConnect 
Validate_Connection_Function = MNA_ValidateConnection 
Free_Adapter_Parm = MNA_FreeAdapterParms 
Case_Sensitive = TRUE 
Defunct = FALSE 
ResMgr_Manage_Output = TRUE 
Use_ResMgr_Get_Put = TRUE     
Logical_Physical_Fetch = FALSE 
Notice that there is correlation between the following files: 
vtableu.c – you add information about your entry points to this file 
makefile – you add information about your new adapter to this file so that it will get built 
into the Mercator Command Server. 
mercadpt.ini – you add information about your new adapter to this file so that the 
Mercator Command Server can get this information at run time. 
testapi.mak – similar to makefile; only this one is for the SDK (Platform API). 
Of course, you must also have all of your source files and a makefile for your new 
adapter; which must be built prior to running the makefile for the Mercator Command 
Server. 
Removing the Built-In Sample Adapter 
You may wish to remove the build-in sample adapter “useradapter”. The following 
procedure will effectively accomplish this: 
makefile and testapi.mak 
Comment out the following 3 lines by placing a # in column 1 of each line: 
HAVE_USER_ADAPTERS = -DHAVE_USER_ADAPTERS 
USER_ADAPTERSD = libuseradapter.a 
USER_ADAPTERS = -l useradaptermercadpt.ini 
mercadpt.ini 
Remove the entries in this file associated with the sample user adapter; for example, the 
line beginning with [USERADAPTER] up to and including the line 
Logical_Physical_Fetch  = FALSE. 
vtableu.c 
Either touch this file or delete the file named vtableu.o. 
Then at the command line, and while in the directory /installdir/src; type make in order 
to rebuild the Mercator Command Server; and type make –f testapi.mak in order to 
rebuild the sample testapi and jtestapi programs. 










