Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1992-1996 Microsoft Corporation
  3. Module Name:
  4. mibtree.h
  5. Abstract:
  6. mibtree.h contains the definitions used by the MIB tree routines.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. 10-May-1996 DonRyan
  11. Removed banner from Technology Dynamics, Inc.
  12. --*/
  13. #ifndef mibtree_h
  14. #define mibtree_h
  15. //--------------------------- PUBLIC CONSTANTS ------------------------------
  16. //--------------------------- PUBLIC STRUCTS --------------------------------
  17. typedef struct _TreeNode {
  18. struct _TreeNode * lpParent; /* pointer to parent */
  19. struct _TreeNode * * lpChildArray; /* array is alloced */
  20. UINT uNumChildren;
  21. LPSTR lpszTextSubID;
  22. UINT uNumSubID;
  23. } TreeNode, *lpTreeNode;
  24. //--------------------------- PUBLIC VARIABLES --(same as in module.c file)--
  25. extern lpTreeNode lpMIBRoot;
  26. //--------------------------- PUBLIC PROTOTYPES -----------------------------
  27. void TreeInit (lpTreeNode *lplpRoot);
  28. void TreeDeInit (lpTreeNode *lplpRoot);
  29. void NodeInit (lpTreeNode lpNode);
  30. lpTreeNode FindNodeByName (lpTreeNode lpParent, LPSTR lpszName);
  31. lpTreeNode FindNodeByNumber (lpTreeNode lpParent, UINT uNum);
  32. lpTreeNode FindNodeAddToTree (lpTreeNode lpParent, LPSTR lpszName, UINT uNum);
  33. lpTreeNode FindNodeInSubTree (lpTreeNode lpRoot, LPSTR lpszName);
  34. lpTreeNode NewChildNode (LPSTR lpszName, UINT uNum);
  35. void InsertChildNode (lpTreeNode lpParent, lpTreeNode lpNode);
  36. void PrintTree (lpTreeNode lpRoot, unsigned int nIndent);
  37. //--------------------------- END -------------------------------------------
  38. #endif /* mibtree_h */