core: added generic fparam fixup_free functions
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 5 Aug 2010 20:47:29 +0000 (22:47 +0200)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 5 Aug 2010 20:47:29 +0000 (22:47 +0200)
commit6a40b4bdc0c9a481276cfdbfde3a70f833b85836
tree25a2e381096f2ac565f0259a9bf7cdea323813ba
parentb4f455f834e621c58c0750660b9e63ccbb01f695
core: added generic fparam fixup_free functions

Added generic fparam fixup_free functions that can be used to
clean up after a fparam fixup:

void fparam_free_restore(void** param);
int fixup_free_fparam_all(void** param, int param_no);
int fixup_free_fparam_1(void** param, int param_no);
int fixup_free_fparam_2(void** param, int param_no);

They will free anything that was allocated by the fixup and
restore the parameter pointer to the saved original value.
mod_fix.c
sr_module.c
sr_module.h