• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. SyncML API and Reference Imp... > Initializing the Reference Implement...

Initializing the Reference Implementation

Before using the toolkit to generate or parse any documents, it has to be initialized using the smlInit function. Likewise smlTerminate needs to be called before the application is terminated to allow the toolkit to free all resources allocated during initialization.

SyncMLOptions_t    syncmlOptions;

// Define the maximum amount of memory that
// the workspace should use
syncmlOptions->maxWorkspaceAvailMem = 60000;
syncmlOptions->defaultPrintFunc = NULL;
//Initialize SyncML
smlInit(syncmlOptions);

// Data processing takes place here
...

// Cleanup all allocated resources
smlTerminate();


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint