MMT Global Handler
[TOC]
Definition
MMT global handler is a set of internal global variables that maintain the state of MMT and allow it to function. The elements of the global handler are not directly exposed to the user of MMT.
Internals
MMT global handler is constituted of:
- The list of registered protocols
- The list of registered protocol stacks
- Global configuration options (default values for the configuration options)
- The list of initialised MMT Handlers
API
Get current version of MMT-DPI:
char * mmt_version();
(sdk/include/mmt_core.h:1045)
init_extraction() / close_extraction(): (sdk/include/mmt_core.h:165,178)
User API
Initialization
int init_extraction();
Initializes MMT global context. This function MUST be called before any use of MMT. It returns a positive value on success and zero on failure (sdk/include/mmt_core.h:165).
Cleanup
int close_extraction();
Closes MMT global context and frees any previously allocated memory (sdk/include/mmt_core.h:178).