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