ec_message_addref — Create a reference to an existing message
ec_message * **ec_message_addref** ( | sm
); | |
Create a reference to an existing message.
Intended to be used when performing async processing where part of the processing would otherwise free the message while it is still in use.
A pointer to an ec_message struct (the source message). For documentation of this data structure see “ec_message”
An ec_message pointer (the source message). You are responsible for releasing the reference via ec_message_free when you no longer need it.
It is legal to call this function in any thread.