This tutorial describes how to enable the MUF extension mechanism.
The purpose of this tutorial is to show you how to access custom parser plug-in interfaces using the MUF extension mechanism
Required Background
The Metadata Utility Library Overview introduces the metadata client utility.
Introduction
The basic functionality of parser plug-ins can be extended by using custom interfaces (extensions). MUF provides an extension mechanism to enable clients to access custom interfaces.
MUF recognizes the required custom interface by its extension ID. The extension ID is passed as a parameter in the GetExtension() method.
The following tasks will be covered in this tutorial:
Basic Procedure
The high level steps to enable the extension mechanism are shown here:
Create a new metadata utility object.
Initialise a parser plug-in with an input source.
Call GetExtension() and set the following parameters:
IMPORT_C virtual TInt GetExtension(TUint aExtensionId, TAny*& aCMInterPtr, TAny* aCMIntPtr);
GetExtension() is called directly on the current parser.