IxNpeMhUnsolicitedCbMgr_p.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /**
  2. * @file IxNpeMhUnsolicitedCbMgr_p.h
  3. *
  4. * @author Intel Corporation
  5. * @date 18 Jan 2002
  6. *
  7. * @brief This file contains the private API for the Unsolicited Callback
  8. * Manager module.
  9. *
  10. *
  11. * @par
  12. * IXP400 SW Release version 2.0
  13. *
  14. * -- Copyright Notice --
  15. *
  16. * @par
  17. * Copyright 2001-2005, Intel Corporation.
  18. * All rights reserved.
  19. *
  20. * @par
  21. * Redistribution and use in source and binary forms, with or without
  22. * modification, are permitted provided that the following conditions
  23. * are met:
  24. * 1. Redistributions of source code must retain the above copyright
  25. * notice, this list of conditions and the following disclaimer.
  26. * 2. Redistributions in binary form must reproduce the above copyright
  27. * notice, this list of conditions and the following disclaimer in the
  28. * documentation and/or other materials provided with the distribution.
  29. * 3. Neither the name of the Intel Corporation nor the names of its contributors
  30. * may be used to endorse or promote products derived from this software
  31. * without specific prior written permission.
  32. *
  33. * @par
  34. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
  35. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  36. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  37. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
  38. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  39. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  40. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  41. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  42. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  43. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  44. * SUCH DAMAGE.
  45. *
  46. * @par
  47. * -- End of Copyright Notice --
  48. */
  49. /**
  50. * @defgroup IxNpeMhUnsolicitedCbMgr_p IxNpeMhUnsolicitedCbMgr_p
  51. *
  52. * @brief The private API for the Unsolicited Callback Manager module.
  53. *
  54. * @{
  55. */
  56. #ifndef IXNPEMHUNSOLICITEDCBMGR_P_H
  57. #define IXNPEMHUNSOLICITEDCBMGR_P_H
  58. #include "IxNpeMh.h"
  59. #include "IxOsalTypes.h"
  60. /*
  61. * #defines for function return types, etc.
  62. */
  63. /*
  64. * Prototypes for interface functions.
  65. */
  66. /**
  67. * @fn void ixNpeMhUnsolicitedCbMgrInitialize (void)
  68. *
  69. * @brief This function initializes the Unsolicited Callback Manager
  70. * module, setting up a callback data structure for each NPE.
  71. *
  72. * @return No return value.
  73. */
  74. void ixNpeMhUnsolicitedCbMgrInitialize (void);
  75. /**
  76. * @fn void ixNpeMhUnsolicitedCbMgrCallbackSave (
  77. IxNpeMhNpeId npeId,
  78. IxNpeMhMessageId unsolicitedMessageId,
  79. IxNpeMhCallback unsolicitedCallback)
  80. *
  81. * @brief This function saves a callback in the specified NPE's callback
  82. * table. If a callback already exists for the specified ID then it will
  83. * be overwritten.
  84. *
  85. * @param IxNpeMhNpeId npeId (in) - The ID of the NPE in whose callback
  86. * table the callback will be saved.
  87. * @param IxNpeMhMessageId unsolicitedMessageId (in) - The ID of the
  88. * messages that this callback is for.
  89. * @param IxNpeMhCallback unsolicitedCallback (in) - The callback function
  90. * pointer to save.
  91. *
  92. * @return No return value.
  93. */
  94. void ixNpeMhUnsolicitedCbMgrCallbackSave (
  95. IxNpeMhNpeId npeId,
  96. IxNpeMhMessageId unsolicitedMessageId,
  97. IxNpeMhCallback unsolicitedCallback);
  98. /**
  99. * @fn void ixNpeMhUnsolicitedCbMgrCallbackRetrieve (
  100. IxNpeMhNpeId npeId,
  101. IxNpeMhMessageId unsolicitedMessageId,
  102. IxNpeMhCallback *unsolicitedCallback)
  103. *
  104. * @brief This function retrieves the callback for the specified ID from
  105. * the specified NPE's callback table. If no callback is registered for
  106. * the specified ID and NPE then a callback value of NULL will be returned.
  107. *
  108. * @param IxNpeMhNpeId npeId (in) - The ID of the NPE from whose callback
  109. * table the callback will be retrieved.
  110. * @param IxNpeMhMessageId unsolicitedMessageId (in) - The ID of the
  111. * messages that the callback is for.
  112. * @param IxNpeMhCallback unsolicitedCallback (out) - The callback function
  113. * pointer retrieved.
  114. *
  115. * @return No return value.
  116. */
  117. void ixNpeMhUnsolicitedCbMgrCallbackRetrieve (
  118. IxNpeMhNpeId npeId,
  119. IxNpeMhMessageId unsolicitedMessageId,
  120. IxNpeMhCallback *unsolicitedCallback);
  121. /**
  122. * @fn void ixNpeMhUnsolicitedCbMgrShow (
  123. IxNpeMhNpeId npeId)
  124. *
  125. * @brief This function will display the current state of the Unsolicited
  126. * Callback Manager module.
  127. *
  128. * @param IxNpeMhNpeId npeId (in) - The ID of the NPE to display state
  129. * information for.
  130. *
  131. * @return No return value.
  132. */
  133. void ixNpeMhUnsolicitedCbMgrShow (
  134. IxNpeMhNpeId npeId);
  135. /**
  136. * @fn void ixNpeMhUnsolicitedCbMgrShowReset (
  137. IxNpeMhNpeId npeId)
  138. *
  139. * @brief This function will reset the current state of the Unsolicited
  140. * Callback Manager module.
  141. *
  142. * @param IxNpeMhNpeId npeId (in) - The ID of the NPE to reset state
  143. * information for.
  144. *
  145. * @return No return value.
  146. */
  147. void ixNpeMhUnsolicitedCbMgrShowReset (
  148. IxNpeMhNpeId npeId);
  149. #endif /* IXNPEMHUNSOLICITEDCBMGR_P_H */
  150. /**
  151. * @} defgroup IxNpeMhUnsolicitedCbMgr_p
  152. */