ais_ckpt.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*
  2. * Copyright (c) 2002-2003 MontaVista Software, Inc.
  3. *
  4. * All rights reserved.
  5. *
  6. * Author: Steven Dake (sdake@mvista.com)
  7. *
  8. * This software licensed under BSD license, the text of which follows:
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions are met:
  12. *
  13. * - Redistributions of source code must retain the above copyright notice,
  14. * this list of conditions and the following disclaimer.
  15. * - Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. * - Neither the name of the MontaVista Software, Inc. nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  26. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  32. * THE POSSIBILITY OF SUCH DAMAGE.
  33. */
  34. #include "ais_types.h"
  35. #ifndef AIS_CKPT_H_DEFINED
  36. #define AIS_CKPT_H_DEFINED
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. SaErrorT
  41. saCkptInitialize (
  42. SaCkptHandleT *ckptHandle,
  43. const SaCkptCallbacksT *callbacks,
  44. const SaVersionT *version);
  45. SaErrorT
  46. saCkptSelectionObjectGet (
  47. const SaCkptHandleT *ckptHandle,
  48. SaSelectionObjectT *selectionObject);
  49. SaErrorT
  50. saCkptDispatch (
  51. const SaCkptHandleT *ckptHandle,
  52. SaDispatchFlagsT dispatchFlags);
  53. SaErrorT
  54. saCkptFinalize (
  55. const SaCkptHandleT *ckptHandle);
  56. SaErrorT
  57. saCkptCheckpointOpen (
  58. const SaNameT *checkpointName,
  59. const SaCkptCheckpointCreationAttributesT *checkpointCreationAttributes,
  60. SaCkptCheckpointOpenFlagsT checkpointOpenFlags,
  61. SaTimeT timeout,
  62. SaCkptCheckpointHandleT *checkpointHandle);
  63. SaErrorT
  64. saCkptCheckpointOpenAsync (
  65. const SaCkptHandleT *ckptHandle,
  66. SaInvocationT invocation,
  67. const SaNameT *checkpointName,
  68. const SaCkptCheckpointCreationAttributesT *checkpointCreationAttributes,
  69. SaCkptCheckpointOpenFlagsT checkpointOpenFlags);
  70. SaErrorT
  71. saCkptCheckpointClose (
  72. const SaCkptCheckpointHandleT *checkpointHandle);
  73. SaErrorT
  74. saCkptCheckpointUnlink (
  75. const SaNameT *checkpointName);
  76. SaErrorT
  77. saCkptCheckpointRetentionDurationSet (
  78. const SaCkptCheckpointHandleT *checkpointHandle,
  79. SaTimeT retentionDuration);
  80. SaErrorT
  81. saCkptActiveCheckpointSet (
  82. const SaCkptCheckpointHandleT *checkpointHandle);
  83. SaErrorT
  84. saCkptCheckpointStatusGet (
  85. const SaCkptCheckpointHandleT *checkpointHandle,
  86. SaCkptCheckpointStatusT *checkpointStatus);
  87. SaErrorT
  88. saCkptSectionCreate (
  89. const SaCkptCheckpointHandleT *checkpointHandle,
  90. SaCkptSectionCreationAttributesT *sectionCreationAttributes,
  91. const void *initialData,
  92. SaUint32T initialDataSize);
  93. SaErrorT
  94. saCkptSectionDelete (
  95. const SaCkptCheckpointHandleT *checkpointHandle,
  96. const SaCkptSectionIdT *sectionId);
  97. SaErrorT
  98. saCkptSectionExpirationTimeSet (
  99. const SaCkptCheckpointHandleT *checkpointHandle,
  100. const SaCkptSectionIdT *sectionId,
  101. SaTimeT expirationTime);
  102. SaErrorT
  103. saCkptSectionIteratorInitialize (
  104. const SaCkptCheckpointHandleT *checkpointHandle,
  105. SaCkptSectionsChosenT sectionsChosen,
  106. SaTimeT expirationTime,
  107. SaCkptSectionIteratorT *sectionIterator);
  108. SaErrorT
  109. saCkptSectionIteratorNext (
  110. SaCkptSectionIteratorT *sectionIterator,
  111. SaCkptSectionDescriptorT *sectionDescriptor);
  112. SaErrorT
  113. saCkptSectionIteratorFinalize (
  114. SaCkptSectionIteratorT *sectionIterator);
  115. SaErrorT
  116. saCkptCheckpointWrite (
  117. const SaCkptCheckpointHandleT *checkpointHandle,
  118. const SaCkptIOVectorElementT *ioVector,
  119. SaUint32T numberOfElements,
  120. SaUint32T *erroneousVectorIndex);
  121. SaErrorT
  122. saCkptSectionOverwrite (
  123. const SaCkptCheckpointHandleT *checkpointHandle,
  124. const SaCkptSectionIdT *secitonId,
  125. SaUint8T *dataBuffer,
  126. SaSizeT dataSize);
  127. SaErrorT
  128. saCkptCheckpointRead (
  129. const SaCkptCheckpointHandleT *checkpointHandle,
  130. SaCkptIOVectorElementT *ioVector,
  131. SaUint32T numberOfElements,
  132. SaUint32T *erroneousVectorIndex);
  133. SaErrorT
  134. saCkptCheckpointSynchronize (
  135. const SaCkptCheckpointHandleT *checkpointHandle,
  136. SaTimeT timeout);
  137. SaErrorT
  138. saCkptCheckpointSynchronizeAsync (
  139. const SaCkptHandleT *ckptHandle,
  140. SaInvocationT invocation,
  141. const SaCkptCheckpointHandleT *checkpointHandle);
  142. #ifdef __cplusplus
  143. }
  144. #endif
  145. #endif /* AIS_CKPT_H_DEFINED */