diff options
author | Vito Piserchia <vito.piserchia@dreamlab.net> | 2017-03-16 17:32:38 +0100 |
---|---|---|
committer | Vito Piserchia <vito.piserchia@dreamlab.net> | 2017-03-16 17:35:10 +0100 |
commit | 4300208642e0ccd4d945a25e738b65d019b2cc30 (patch) | |
tree | 3a7aa5e85305d3eaf9dbef47d9cff9b8a6223d4a /src/lib/protocols/mysql.c | |
parent | 149818671d0cfcf09e37588aee963adc056f4250 (diff) |
Added ndpi_flow_ free/malloc and set_ functions:
Ideally these two new functions will provide more flexibility
in regards of application that want to use specific allocation
approaches, for example storage queues for this structures
from where the application can pop and release the data it
needs.
Semantically they can be set up as the other ndpi_malloc and ndpi_free
functions, that is via the set_ndpi_flow_malloc and set_ndpi_flow_free.
In case a NULL parameter is passed to the above functions the old
approach will be used, that means that the ndpi_malloc will be used as
the ndpi_flow_malloc function and ndpi_free_flow as the ndpi_flow_free one.
Application that use the old functions will be not affected by this change,
and the ndpi_free_flow can be deprecated in the future and made private.
Diffstat (limited to 'src/lib/protocols/mysql.c')
0 files changed, 0 insertions, 0 deletions