/* * Copyright (C) 2023 iopsys Software Solutions AB * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1 * as published by the Free Software Foundation * * Author MOHAMED Kallel * Author Imen Bhiri * Author Feten Besbes * Author Amin Ben Romdhane * Author: Omar Kallel */ #ifndef __DMENTRY_H__ #define __DMENTRY_H__ void bbf_ctx_init(struct dmctx *ctx, DMOBJ *tEntryObj); void bbf_ctx_clean(struct dmctx *ctx); void bbf_ctx_init_sub(struct dmctx *ctx, DMOBJ *tEntryObj); void bbf_ctx_clean_sub(struct dmctx *ctx); int bbf_fault_map(struct dmctx *ctx, int fault); int bbf_entry_method(struct dmctx *ctx, int cmd); void bbf_global_init(DMOBJ *dm_entryobj, const char *plugin_path); void bbf_global_clean(DMOBJ *dm_entryobj); int dm_validate_allowed_objects(struct dmctx *ctx, struct dm_reference *reference, char *objects[]); bool adm_entry_object_exists(struct dmctx *ctx, const char *param); // To be removed later!!!!!!!!!!!! (After moving all Objects outside bbfdm core) void bbf_entry_services(unsigned int proto, bool is_commit, bool reload_required); void get_list_of_registered_service(struct list_head *srvlist, struct blob_buf *bb); bool load_service(DMOBJ *main_dm, struct list_head *srv_list, const char *srv_name, const char *srv_parent_dm, const char *srv_obj); void free_services_from_list(struct list_head *clist); #endif //__DMENTRY_H__