2014-07-10 04:15:29 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
#include "eolian_database.h"
|
|
|
|
|
|
|
|
void
|
|
|
|
database_function_del(Eolian_Function *fid)
|
|
|
|
{
|
|
|
|
Eolian_Function_Parameter *param;
|
|
|
|
if (!fid) return;
|
2014-08-07 07:15:07 -07:00
|
|
|
|
|
|
|
if (fid->base.file) eina_stringshare_del(fid->base.file);
|
2014-07-10 04:15:29 -07:00
|
|
|
eina_stringshare_del(fid->name);
|
|
|
|
EINA_LIST_FREE(fid->keys, param) database_parameter_del(param);
|
|
|
|
EINA_LIST_FREE(fid->params, param) database_parameter_del(param);
|
|
|
|
database_type_del(fid->get_ret_type);
|
|
|
|
database_type_del(fid->set_ret_type);
|
2014-08-07 07:15:07 -07:00
|
|
|
database_expr_del(fid->get_ret_val);
|
|
|
|
database_expr_del(fid->set_ret_val);
|
2014-08-15 03:52:11 -07:00
|
|
|
if (fid->get_legacy) eina_stringshare_del(fid->get_legacy);
|
|
|
|
if (fid->set_legacy) eina_stringshare_del(fid->set_legacy);
|
|
|
|
if (fid->get_description) eina_stringshare_del(fid->get_description);
|
|
|
|
if (fid->set_description) eina_stringshare_del(fid->set_description);
|
|
|
|
if (fid->get_return_comment) eina_stringshare_del(fid->get_return_comment);
|
|
|
|
if (fid->set_return_comment) eina_stringshare_del(fid->set_return_comment);
|
2014-07-10 04:15:29 -07:00
|
|
|
free(fid);
|
|
|
|
}
|