]>
Commit | Line | Data |
---|---|---|
4751a48a AC |
1 | /** @file\r |
2 | This file is cloned from DMTF libredfish library tag v1.0.0 and maintained\r | |
3 | by EDKII.\r | |
4 | \r | |
5 | //----------------------------------------------------------------------------\r | |
6 | // Copyright Notice:\r | |
7 | // Copyright 2017 Distributed Management Task Force, Inc. All rights reserved.\r | |
8 | // License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libredfish/LICENSE.md\r | |
9 | //----------------------------------------------------------------------------\r | |
10 | \r | |
11 | Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r | |
12 | (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>\r | |
13 | \r | |
14 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
15 | \r | |
16 | **/\r | |
17 | #ifndef LIBREDFISH_REDPATH_H_\r | |
18 | #define LIBREDFISH_REDPATH_H_\r | |
19 | \r | |
7311e964 | 20 | #include <Include/Library/RedfishCrtLib.h>\r |
4751a48a AC |
21 | \r |
22 | #include <jansson.h>\r | |
23 | \r | |
24 | typedef struct _redPathNode\r | |
25 | {\r | |
26 | bool isRoot;\r | |
27 | bool isIndex;\r | |
28 | \r | |
29 | char* version;\r | |
30 | char* nodeName;\r | |
31 | size_t index;\r | |
32 | char* op;\r | |
33 | char* propName;\r | |
34 | char* value;\r | |
35 | \r | |
36 | struct _redPathNode* next;\r | |
37 | } redPathNode;\r | |
38 | \r | |
39 | redPathNode* parseRedPath(const char* path);\r | |
40 | void cleanupRedPath(redPathNode* node);\r | |
41 | \r | |
42 | #endif\r |