Init basesystem source codes.
[staging/basesystem.git] / nsframework / framework_unified / client / NS_XMLConfigeParser / library / include / ns_config_parser_internal.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 //////////////////////////////////////////////////////////////////////////////////////////////////
18 /// \ingroup MY 14 Platform Software Team
19 /// \brief   Internal Header for ns_config_parser_cfg.c
20 ///
21 ///  These structures are file handler structure.
22 ///
23 ///
24 //////////////////////////////////////////////////////////////////////////////////////////////////
25
26 #ifndef FRAMEWORK_UNIFIED_CLIENT_NS_XMLCONFIGEPARSER_LIBRARY_INCLUDE_NS_CONFIG_PARSER_INTERNAL_H_
27 #define FRAMEWORK_UNIFIED_CLIENT_NS_XMLCONFIGEPARSER_LIBRARY_INCLUDE_NS_CONFIG_PARSER_INTERNAL_H_
28
29 #include <libxml/tree.h>
30 #include <ns_config_parser.h>
31
32
33 // defines enum for MODE
34 // in which file is opened
35 typedef enum MODE {
36   kReadMode = 0, kWriteMode, kAppend
37 } MODE;
38
39 // defines enum for STATUS
40 typedef enum STATUS {
41   kSuccess = 0, kFailure
42 } STATUS;
43
44 // defines enum for Filetype
45 // i.e .cfg or .xml or other type of file
46 typedef enum Filetype {
47   kCfg = 0, kXml, kOther
48 } Filetype;
49
50 // FILE STRUCTURE
51 typedef struct FILESTRUCT {
52   char *filename;
53   Filetype filetype;
54   MODE mode;
55   xmlDocPtr doc;
56   FILE *fileptr;
57 } FILESTRUCT;
58
59
60 #endif  // FRAMEWORK_UNIFIED_CLIENT_NS_XMLCONFIGEPARSER_LIBRARY_INCLUDE_NS_CONFIG_PARSER_INTERNAL_H_