redpath.h 1.3 KB

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