From d1dcf954e8a05055aa201d6795aed9c594b9fa33 Mon Sep 17 00:00:00 2001 From: Miguel Ponce de Leon Date: Thu, 10 Oct 2019 14:12:59 +0100 Subject: [PATCH] Adding back in mms_named_variable_list.h --- src/mms/inc/mms_named_variable_list.h | 85 +++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/mms/inc/mms_named_variable_list.h diff --git a/src/mms/inc/mms_named_variable_list.h b/src/mms/inc/mms_named_variable_list.h new file mode 100644 index 00000000..15e7d16a --- /dev/null +++ b/src/mms/inc/mms_named_variable_list.h @@ -0,0 +1,85 @@ +/* + * mms_named_variable_list.h + * + * Copyright 2013 Michael Zillgith + * + * This file is part of libIEC61850. + * + * libIEC61850 is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * libIEC61850 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with libIEC61850. If not, see . + * + * See COPYING file for the complete license text. + */ + +#ifndef MMS_NAMED_VARIABLE_LIST_H_ +#define MMS_NAMED_VARIABLE_LIST_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** \addtogroup mms_server_api_group + * @{ + */ + +#include "libiec61850_common_api.h" +#include "linked_list.h" +#include "mms_common.h" + +struct sMmsNamedVariableList { + bool deletable; + MmsDomain* domain; + char* name; + LinkedList listOfVariables; +}; + +MmsNamedVariableListEntry +MmsNamedVariableListEntry_create(MmsAccessSpecifier accessSpecifier); + +void +MmsNamedVariableListEntry_destroy(MmsNamedVariableListEntry self); + +MmsDomain* +MmsNamedVariableListEntry_getDomain(MmsNamedVariableListEntry self); + +char* +MmsNamedVariableListEntry_getVariableName(MmsNamedVariableListEntry self); + +MmsNamedVariableList +MmsNamedVariableList_create(MmsDomain* domain, char* name, bool deletable); + +char* +MmsNamedVariableList_getName(MmsNamedVariableList self); + +MmsDomain* +MmsNamedVariableList_getDomain(MmsNamedVariableList self); + +bool +MmsNamedVariableList_isDeletable(MmsNamedVariableList self); + +void +MmsNamedVariableList_addVariable(MmsNamedVariableList self, MmsNamedVariableListEntry variable); + +LinkedList +MmsNamedVariableList_getVariableList(MmsNamedVariableList self); + +void +MmsNamedVariableList_destroy(MmsNamedVariableList self); + +/**@}*/ + +#ifdef __cplusplus +} +#endif + +#endif /* MMS_NAMED_VARIABLE_LIST_H_ */