Add free function for freeing the custom structs.

This commit is contained in:
2018-04-17 11:22:48 -07:00
parent af87c6646d
commit b1a113a57d
4 changed files with 32 additions and 3 deletions

View File

@@ -76,4 +76,20 @@ typedef struct libab_behavior_s libab_behavior;
typedef struct libab_operator_s libab_operator;
typedef struct libab_function_s libab_function;
/**
* Frees the given behavior.
* @param behavior the behavior to free.
*/
void libab_behavior_free(libab_behavior* behavior);
/**
* Frees the given operator.
* @param op the operator to free.
*/
void libab_operator_free(libab_operator* op);
/**
* Frees the given function.
* @param fun the function to free.
*/
void libab_function_free(libab_function* fun);
#endif