From eb967475a57391b692df9e66bdffdf4f55983819 Mon Sep 17 00:00:00 2001 From: vdutta Date: Wed, 4 Nov 2020 16:30:28 +0530 Subject: [PATCH] api to get datamodel type --- dmbbfcommon.c | 5 +++++ dmbbfcommon.h | 1 + 2 files changed, 6 insertions(+) diff --git a/dmbbfcommon.c b/dmbbfcommon.c index abc89688..8c8fb28f 100644 --- a/dmbbfcommon.c +++ b/dmbbfcommon.c @@ -57,6 +57,11 @@ int set_bbfdatamodel_type(int bbf_type) return 0; } +int get_bbfdatamodel_type(void) +{ + return bbfdatamodel_type; +} + int bbfdmuci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *package, char *section, char *option, char *value) { return dmuci_lookup_ptr(ctx, ptr, package, section, option, value); diff --git a/dmbbfcommon.h b/dmbbfcommon.h index 11662ca9..580b403f 100644 --- a/dmbbfcommon.h +++ b/dmbbfcommon.h @@ -20,6 +20,7 @@ extern struct list_head list_execute_end_session; void bbf_apply_end_session(void); int set_bbfdatamodel_type(int bbf_type); +int get_bbfdatamodel_type(void); int bbf_set_ip_version(int ipversion); void del_list_parameter(struct dm_parameter *dm_parameter); int dm_update_file_enabled_notify(char *param, char *new_value);