@@ -692,15 +692,25 @@ LY_ERR lysp_stmt_parse(struct lysc_ctx *ctx, const struct lysp_stmt *stmt, void
692692 */
693693void lysp_node_free (struct ly_ctx * ctx , struct lysp_node * node );
694694
695+ /**
696+ * @brief Free a bit/enum item.
697+ *
698+ * @param[in] ctx libyang context.
699+ * @param[in] item Bit/enum item to free.
700+ */
701+ void lysc_enum_item_free (struct ly_ctx * ctx , struct lysc_type_bitenum_item * item );
702+
695703/**
696704 * @brief Free the compiled type structure.
705+ *
697706 * @param[in] ctx libyang context where the string data resides in a dictionary.
698707 * @param[in,out] type Compiled type structure to be freed. The structure has refcount, so it is freed only in case the value is decreased to 0.
699708 */
700709void lysc_type_free (struct ly_ctx * ctx , struct lysc_type * type );
701710
702711/**
703712 * @brief Free the compiled if-feature structure.
713+ *
704714 * @param[in] ctx libyang context where the string data resides in a dictionary.
705715 * @param[in,out] iff Compiled if-feature structure to be cleaned.
706716 * Since the structure is typically part of the sized array, the structure itself is not freed.
@@ -709,6 +719,7 @@ void lysc_iffeature_free(struct ly_ctx *ctx, struct lysc_iffeature *iff);
709719
710720/**
711721 * @brief Free the compiled identity structure.
722+ *
712723 * @param[in] ctx libyang context where the string data resides in a dictionary.
713724 * @param[in,out] ident Compiled identity structure to be cleaned.
714725 * Since the structure is typically part of the sized array, the structure itself is not freed.
@@ -717,6 +728,7 @@ void lysc_ident_free(struct ly_ctx *ctx, struct lysc_ident *ident);
717728
718729/**
719730 * @brief Free the compiled must structure.
731+ *
720732 * @param[in] ctx libyang context where the string data resides in a dictionary.
721733 * @param[in,out] must Compiled must structure to be cleaned.
722734 * Since the structure is typically part of the sized array, the structure itself is not freed.
@@ -741,6 +753,7 @@ void lysc_node_action_free(struct ly_ctx *ctx, struct lysc_node_action *action);
741753
742754/**
743755 * @brief Free the items inside the compiled Notification structure.
756+ *
744757 * @param[in] ctx libyang context where the string data resides in a dictionary.
745758 * @param[in,out] notif Compiled Notification structure to be cleaned.
746759 * Since the structure is typically part of the sized array, the structure itself is not freed.
@@ -749,13 +762,15 @@ void lysc_node_notif_free(struct ly_ctx *ctx, struct lysc_node_notif *notif);
749762
750763/**
751764 * @brief Free the compiled extension definition and NULL the provided pointer.
765+ *
752766 * @param[in] ctx libyang context where the string data resides in a dictionary.
753767 * @param[in,out] ext Compiled extension definition to be freed.
754768 */
755769void lysc_extension_free (struct ly_ctx * ctx , struct lysc_ext * * ext );
756770
757771/**
758772 * @brief Free the compiled extension instance structure.
773+ *
759774 * @param[in] ctx libyang context where the string data resides in a dictionary.
760775 * @param[in,out] ext Compiled extension instance structure to be cleaned.
761776 * Since the structure is typically part of the sized array, the structure itself is not freed.
@@ -764,6 +779,7 @@ void lysc_ext_instance_free(struct ly_ctx *ctx, struct lysc_ext_instance *ext);
764779
765780/**
766781 * @brief Free the compiled node structure.
782+ *
767783 * @param[in] ctx libyang context where the string data resides in a dictionary.
768784 * @param[in] node Compiled node structure to be freed.
769785 * @param[in] unlink Whether to first unlink the node before freeing.
@@ -783,12 +799,14 @@ void lysc_node_container_free(struct ly_ctx *ctx, struct lysc_node_container *no
783799
784800/**
785801 * @brief Free the compiled schema structure.
802+ *
786803 * @param[in,out] module Compiled schema module structure to free.
787804 */
788805void lysc_module_free (struct lysc_module * module );
789806
790807/**
791808 * @brief Free the schema structure. It just frees, it does not remove the schema from its context.
809+ *
792810 * @param[in,out] module Schema module structure to free.
793811 */
794812void lys_module_free (struct lys_module * module );
0 commit comments