Function MQ_contextData

This function can be called to retrieve user data set earlier with MQ_setContextData.

Every plugin may associate data with a plugin. This data pointer is completely ignored by MailerQ, but allows plugins to store data between different callbacks for the same context. The data pointer is unique per plugin, so you do not have to worry that this function returns pointer to data that is set by a different plugin.

If no data was set earlier, this function returns NULL.

/**
 *  Retrieve previously stored data.
 *
 *  @param  context the context to retrieve the data from
 *  @return void*
 */
void *MQ_contextData(MQ_Context *context);