10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 5-2 shows a modified stDdaClInit() that takes care of this step.Example 5-2 Modified stDdaClInit() code to handle Notes C API Initializationint ST_DDA_APIstDdaClInit( /*in/out*/ int* prVersion,/*in*/ int initializedOutside,/*out*/ int* initializedInside,/*out*/ char* dirType,/*out*/ char* libVersion,/*out*/ StDdaRetVal* appRetCode,/*out*/ char* appRetMsg){if (dirType && libVersion){strcpy(dirType, "Looseleaf Chat Recorder");strcpy(libVersion, VP_CL_VERSION);}globalRetCode = appRetCode;globalRetMsg = appRetMsg;*globalRetCode = ST_DDA_OK;if (*prVersion < ST_DDA_CL_LIB_VERSION){/*dbg.print("The recived version - %d not suppoted, black support onlyversion %d and up",*prVersion,ST_DDA_CL_LIB_VERSION);*/*globalRetCode = ST_DDA_ERROR;sprintf(globalRetMsg, "Version - %d is not supported",*prVersion);return ST_DDA_API_VERSION_MISMATCH;}*prVersion = ST_DDA_CL_LIB_VERSION;// init notes, if necessaryif (!(initializedOutside & ST_DDA_API_NOTES))RecorderInst = InitNotes();(*initializedInside) |= (initializedOutside | ST_DDA_API_NOTES);globalInitMask = *initializedInside;return ST_DDA_API_OK;} // end stDdaClInitChapter 5. Chat Logging/DDA Toolkit 137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!