ais_msg.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  1. /*
  2. * Copyright (c) 2002-2004 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. #ifndef AIS_MSG_H_DEFINED
  35. #define AIS_MSG_H_DEFINED
  36. #include <netinet/in.h>
  37. #include "ais_types.h"
  38. enum req_amf_response_interfaces {
  39. MESSAGE_REQ_AMF_RESPONSE_SAAMFHEALTHCHECKCALLBACK = 1,
  40. MESSAGE_REQ_AMF_RESPONSE_SAAMFREADINESSSTATESETCALLBACK,
  41. MESSAGE_REQ_AMF_RESPONSE_SAAMFCOMPONENTTERMINATECALLBACK,
  42. MESSAGE_REQ_AMF_RESPONSE_SAAMFCSISETCALLBACK,
  43. MESSAGE_REQ_AMF_RESPONSE_SAAMFCSIREMOVECALLBACK,
  44. MESSAGE_REQ_AMF_RESPONSE_SAAMFEXTERNALCOMPONENTRESTARTCALLBACK,
  45. MESSAGE_REQ_AMF_RESPONSE_SAAMFEXTERNALCOMPONENTCONTROLCALLBACK,
  46. MESSAGE_REQ_AMF_RESPONSE_SAAMFPENDINGOPERATIONCONFIRMCALLBACK
  47. };
  48. enum req_init_types {
  49. MESSAGE_REQ_CLM_INIT,
  50. MESSAGE_REQ_AMF_INIT,
  51. MESSAGE_REQ_CKPT_INIT,
  52. MESSAGE_REQ_CKPT_CHECKPOINT_INIT,
  53. MESSAGE_REQ_CKPT_SECTIONITERATOR_INIT,
  54. MESSAGE_REQ_EVT_INIT
  55. };
  56. enum res_init_types {
  57. MESSAGE_RES_INIT
  58. };
  59. #define MESSAGE_REQ_LIB_ACTIVATEPOLL 0
  60. #define MESSAGE_RES_LIB_ACTIVATEPOLL 0
  61. enum req_clm_types {
  62. MESSAGE_REQ_CLM_TRACKSTART = 1,
  63. MESSAGE_REQ_CLM_TRACKSTOP,
  64. MESSAGE_REQ_CLM_NODEGET
  65. };
  66. enum res_clm_types {
  67. MESSAGE_RES_CLM_TRACKCALLBACK = 1,
  68. MESSAGE_RES_CLM_NODEGET,
  69. MESSAGE_RES_CLM_NODEGETCALLBACK
  70. };
  71. enum req_amf_types {
  72. MESSAGE_REQ_AMF_COMPONENTREGISTER = 1,
  73. MESSAGE_REQ_AMF_COMPONENTUNREGISTER,
  74. MESSAGE_REQ_AMF_READINESSSTATEGET,
  75. MESSAGE_REQ_AMF_HASTATEGET,
  76. MESSAGE_REQ_AMF_PROTECTIONGROUPTRACKSTART,
  77. MESSAGE_REQ_AMF_PROTECTIONGROUPTRACKSTOP,
  78. MESSAGE_REQ_AMF_ERRORREPORT,
  79. MESSAGE_REQ_AMF_ERRORCANCELALL,
  80. MESSAGE_REQ_AMF_STOPPINGCOMPLETE,
  81. MESSAGE_REQ_AMF_RESPONSE,
  82. MESSAGE_REQ_AMF_COMPONENTCAPABILITYMODELGET
  83. };
  84. enum res_amf_types {
  85. MESSAGE_RES_AMF_COMPONENTREGISTER = 1,
  86. MESSAGE_RES_AMF_COMPONENTUNREGISTER,
  87. MESSAGE_RES_AMF_READINESSSTATEGET,
  88. MESSAGE_RES_AMF_HASTATEGET,
  89. MESSAGE_RES_AMF_HEALTHCHECKCALLBACK,
  90. MESSAGE_RES_AMF_READINESSSTATESETCALLBACK,
  91. MESSAGE_RES_AMF_COMPONENTTERMINATECALLBACK,
  92. MESSAGE_RES_AMF_CSISETCALLBACK,
  93. MESSAGE_RES_AMF_CSIREMOVECALLBACK,
  94. MESSAGE_RES_AMF_PROTECTIONGROUPTRACKSTART,
  95. MESSAGE_RES_AMF_PROTECTIONGROUPTRACKCALLBACK,
  96. MESSAGE_RES_AMF_PROTECTIONGROUPTRACKSTOP,
  97. MESSAGE_RES_AMF_COMPONENTCAPABILITYMODELGET,
  98. MESSAGE_RES_AMF_ERRORREPORT,
  99. MESSAGE_RES_AMF_ERRORCANCELALL
  100. };
  101. enum req_lib_ckpt_checkpoint_types {
  102. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTOPEN = 1,
  103. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTOPENASYNC,
  104. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTUNLINK,
  105. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTRETENTIONDURATIONSET,
  106. MESSAGE_REQ_CKPT_CHECKPOINT_ACTIVECHECKPOINTSET,
  107. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTSTATUSGET,
  108. MESSAGE_REQ_CKPT_CHECKPOINT_SECTIONCREATE,
  109. MESSAGE_REQ_CKPT_CHECKPOINT_SECTIONDELETE,
  110. MESSAGE_REQ_CKPT_CHECKPOINT_SECTIONEXPIRATIONTIMESET,
  111. MESSAGE_REQ_CKPT_CHECKPOINT_SECTIONWRITE,
  112. MESSAGE_REQ_CKPT_CHECKPOINT_SECTIONOVERWRITE,
  113. MESSAGE_REQ_CKPT_CHECKPOINT_SECTIONREAD,
  114. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTSYNCHRONIZE,
  115. MESSAGE_REQ_CKPT_CHECKPOINT_CHECKPOINTSYNCHRONIZEASYNC
  116. };
  117. enum req_lib_ckpt_sectioniterator_types {
  118. MESSAGE_REQ_CKPT_SECTIONITERATOR_SECTIONITERATORINITIALIZE = 1,
  119. MESSAGE_REQ_CKPT_SECTIONITERATOR_SECTIONITERATORNEXT
  120. };
  121. enum res_lib_ckpt_types {
  122. MESSAGE_RES_CKPT_CHECKPOINTOPENASYNC = 1,
  123. MESSAGE_RES_CKPT_CHECKPOINTSYNCHRONIZEASYNC
  124. };
  125. enum res_lib_ckpt_checkpoint_types {
  126. MESSAGE_RES_CKPT_CHECKPOINT_CHECKPOINTOPEN = 1,
  127. MESSAGE_RES_CKPT_CHECKPOINT_CHECKPOINTUNLINK,
  128. MESSAGE_RES_CKPT_CHECKPOINT_CHECKPOINTRETENTIONDURATIONSET,
  129. MESSAGE_RES_CKPT_CHECKPOINT_ACTIVECHECKPOINTSET,
  130. MESSAGE_RES_CKPT_CHECKPOINT_CHECKPOINTSTATUSGET,
  131. MESSAGE_RES_CKPT_CHECKPOINT_SECTIONCREATE,
  132. MESSAGE_RES_CKPT_CHECKPOINT_SECTIONDELETE,
  133. MESSAGE_RES_CKPT_CHECKPOINT_SECTIONEXPIRATIONTIMESET,
  134. MESSAGE_RES_CKPT_CHECKPOINT_SECTIONWRITE,
  135. MESSAGE_RES_CKPT_CHECKPOINT_SECTIONOVERWRITE,
  136. MESSAGE_RES_CKPT_CHECKPOINT_SECTIONREAD,
  137. MESSAGE_RES_CKPT_CHECKPOINT_CHECKPOINTSYNCHRONIZE
  138. };
  139. enum res_lib_ckpt_sectioniterator_types {
  140. MESSAGE_RES_CKPT_SECTIONITERATOR_SECTIONITERATORINITIALIZE = 1,
  141. MESSAGE_RES_CKPT_SECTIONITERATOR_SECTIONITERATORNEXT
  142. };
  143. enum nodeexec_message_types {
  144. MESSAGE_REQ_EXEC_CLM_NODEJOIN,
  145. MESSAGE_REQ_EXEC_AMF_COMPONENTREGISTER,
  146. MESSAGE_REQ_EXEC_AMF_COMPONENTUNREGISTER,
  147. MESSAGE_REQ_EXEC_AMF_ERRORREPORT,
  148. MESSAGE_REQ_EXEC_AMF_ERRORCANCELALL,
  149. MESSAGE_REQ_EXEC_AMF_READINESSSTATESET,
  150. MESSAGE_REQ_EXEC_AMF_HASTATESET,
  151. MESSAGE_REQ_EXEC_CKPT_CHECKPOINTOPEN,
  152. MESSAGE_REQ_EXEC_CKPT_CHECKPOINTCLOSE,
  153. MESSAGE_REQ_EXEC_CKPT_CHECKPOINTUNLINK,
  154. MESSAGE_REQ_EXEC_CKPT_CHECKPOINTRETENTIONDURATIONSET,
  155. MESSAGE_REQ_EXEC_CKPT_SECTIONCREATE,
  156. MESSAGE_REQ_EXEC_CKPT_SECTIONDELETE,
  157. MESSAGE_REQ_EXEC_CKPT_SECTIONEXPIRATIONTIMESET,
  158. MESSAGE_REQ_EXEC_CKPT_SECTIONWRITE,
  159. MESSAGE_REQ_EXEC_CKPT_SECTIONOVERWRITE,
  160. MESSAGE_REQ_EXEC_CKPT_SECTIONREAD
  161. };
  162. enum req_evt_types {
  163. MESSAGE_REQ_EVT_OPEN_CHANNEL = 1,
  164. MESSAGE_REQ_EVT_CLOSE_CHANNEL,
  165. MESSAGE_REQ_EVT_SUBSCRIBE,
  166. MESSAGE_REQ_EVT_UNSUBSCRIBE,
  167. MESSAGE_REQ_EVT_PUBLISH,
  168. MESSAGE_REQ_EVT_CLEAR_RETENTIONTIME
  169. };
  170. enum res_evt_types {
  171. MESSAGE_RES_EVT_OPEN_CHANNEL = 1,
  172. MESSAGE_RES_EVT_CLOSE_CHANNEL,
  173. MESSAGE_RES_EVT_SUBSCRIBE,
  174. MESSAGE_RES_EVT_UNSUBSCRIBE,
  175. MESSAGE_RES_EVT_PUBLISH,
  176. MESSAGE_RES_EVT_CLEAR_RETENTIONTIME,
  177. MESSAGE_RES_EVT_CHAN_OPEN_CALLBACK,
  178. MESSAGE_RES_EVT_EVENT_DATA
  179. };
  180. #define MESSAGE_MAGIC 0x5a6b7c8d
  181. struct message_header {
  182. int magic;
  183. int size;
  184. int id;
  185. };
  186. struct message_source {
  187. struct conn_info *conn_info;
  188. struct in_addr in_addr;
  189. };
  190. struct req_execauth_xmit_authkey {
  191. struct message_header header;
  192. int authModule;
  193. unsigned char random[16];
  194. };
  195. struct res_execauth_xmit_signature {
  196. struct message_header header;
  197. unsigned char signature[64];
  198. unsigned int signature_length;
  199. };
  200. struct req_execauth_connection_authorized {
  201. struct message_header header;
  202. };
  203. struct req_clm_trackstart {
  204. struct message_header header;
  205. SaUint8T trackFlags;
  206. SaClmClusterNotificationT *notificationBufferAddress;
  207. SaUint32T numberOfItems;
  208. };
  209. struct req_lib_init {
  210. struct message_header header;
  211. };
  212. struct res_lib_init {
  213. struct message_header header;
  214. SaErrorT error;
  215. };
  216. struct req_lib_amf_componentregister {
  217. struct message_header header;
  218. SaNameT compName;
  219. SaNameT proxyCompName;
  220. };
  221. struct req_exec_amf_componentregister {
  222. struct message_header header;
  223. struct message_source source;
  224. struct req_lib_amf_componentregister req_lib_amf_componentregister;
  225. };
  226. struct res_lib_amf_componentregister {
  227. struct message_header header;
  228. SaErrorT error;
  229. };
  230. struct req_lib_amf_componentunregister {
  231. struct message_header header;
  232. SaNameT compName;
  233. SaNameT proxyCompName;
  234. };
  235. struct req_exec_amf_componentunregister {
  236. struct message_header header;
  237. struct message_source source;
  238. struct req_lib_amf_componentunregister req_lib_amf_componentunregister;
  239. };
  240. struct res_lib_amf_componentunregister {
  241. struct message_header header;
  242. SaErrorT error;
  243. };
  244. struct req_amf_readinessstateget {
  245. struct message_header header;
  246. SaNameT compName;
  247. };
  248. struct res_amf_readinessstateget {
  249. struct message_header header;
  250. SaAmfReadinessStateT readinessState;
  251. SaErrorT error;
  252. };
  253. struct res_amf_healthcheckcallback {
  254. struct message_header header;
  255. int instance;
  256. SaInvocationT invocation;
  257. SaNameT compName;
  258. SaAmfHealthcheckT checkType;
  259. };
  260. struct res_amf_readinessstatesetcallback {
  261. struct message_header header;
  262. SaInvocationT invocation;
  263. SaNameT compName;
  264. SaAmfReadinessStateT readinessState;
  265. };
  266. struct req_exec_amf_readinessstateset {
  267. struct message_header header;
  268. SaNameT compName;
  269. SaAmfReadinessStateT readinessState;
  270. };
  271. struct req_exec_amf_hastateset {
  272. struct message_header header;
  273. SaNameT compName;
  274. SaAmfHAStateT haState;
  275. };
  276. struct req_exec_ckpt_checkpointclose {
  277. struct message_header header;
  278. SaNameT checkpointName;
  279. };
  280. struct req_exec_ckpt_checkpointretentiondurationset {
  281. struct message_header header;
  282. SaNameT checkpointName;
  283. SaTimeT retentionDuration;
  284. };
  285. struct res_amf_componentterminatecallback {
  286. struct message_header header;
  287. SaInvocationT invocation;
  288. SaNameT compName;
  289. };
  290. struct req_amf_hastateget {
  291. struct message_header header;
  292. SaNameT compName;
  293. SaNameT csiName;
  294. };
  295. struct res_amf_hastateget {
  296. struct message_header header;
  297. SaAmfHAStateT haState;
  298. SaErrorT error;
  299. };
  300. struct res_amf_csisetcallback {
  301. struct message_header header;
  302. SaInvocationT invocation;
  303. SaNameT compName;
  304. SaNameT csiName;
  305. SaAmfCSIFlagsT csiFlags;
  306. SaAmfHAStateT haState;
  307. SaNameT activeCompName;
  308. SaAmfCSITransitionDescriptorT transitionDescriptor;
  309. };
  310. struct res_amf_csiremovecallback {
  311. struct message_header header;
  312. SaInvocationT invocation;
  313. SaNameT compName;
  314. SaNameT csiName;
  315. SaAmfCSIFlagsT csiFlags;
  316. };
  317. struct req_amf_protectiongrouptrackstart {
  318. struct message_header header;
  319. SaNameT csiName;
  320. SaUint8T trackFlags;
  321. SaAmfProtectionGroupNotificationT *notificationBufferAddress;
  322. SaUint32T numberOfItems;
  323. };
  324. struct res_amf_protectiongrouptrackstart {
  325. struct message_header header;
  326. SaErrorT error;
  327. };
  328. struct req_amf_protectiongrouptrackstop {
  329. struct message_header header;
  330. SaNameT csiName;
  331. };
  332. struct res_amf_protectiongrouptrackstop {
  333. struct message_header header;
  334. SaErrorT error;
  335. };
  336. struct res_amf_protectiongrouptrackcallback {
  337. struct message_header header;
  338. SaNameT csiName;
  339. SaAmfProtectionGroupNotificationT *notificationBufferAddress;
  340. SaUint32T numberOfItems;
  341. SaUint32T numberOfMembers;
  342. SaUint32T error;
  343. SaAmfProtectionGroupNotificationT notificationBuffer[0];
  344. };
  345. struct req_lib_amf_errorreport {
  346. struct message_header header;
  347. SaNameT reportingComponent;
  348. SaNameT erroneousComponent;
  349. SaTimeT errorDetectionTime;
  350. SaAmfErrorDescriptorT errorDescriptor;
  351. SaAmfAdditionalDataT additionalData;
  352. };
  353. struct req_exec_amf_errorreport {
  354. struct message_header header;
  355. struct message_source source;
  356. struct req_lib_amf_errorreport req_lib_amf_errorreport;
  357. };
  358. struct res_lib_amf_errorreport {
  359. struct message_header header;
  360. SaErrorT error;
  361. };
  362. struct req_lib_amf_errorcancelall {
  363. struct message_header header;
  364. SaNameT compName;
  365. };
  366. struct req_exec_amf_errorcancelall {
  367. struct message_header header;
  368. struct message_source source;
  369. struct req_lib_amf_errorcancelall req_lib_amf_errorcancelall;
  370. };
  371. struct res_lib_amf_errorcancelall {
  372. struct message_header header;
  373. SaErrorT error;
  374. };
  375. struct req_amf_response {
  376. struct message_header header;
  377. SaInvocationT invocation;
  378. SaErrorT error;
  379. };
  380. struct req_amf_stoppingcomplete {
  381. struct message_header header;
  382. SaInvocationT invocation;
  383. SaErrorT error;
  384. };
  385. struct req_amf_componentcapabilitymodelget {
  386. struct message_header header;
  387. SaNameT compName;
  388. };
  389. struct res_amf_componentcapabilitymodelget {
  390. struct message_header header;
  391. SaAmfComponentCapabilityModelT componentCapabilityModel;
  392. SaErrorT error;
  393. };
  394. struct req_lib_activatepoll {
  395. struct message_header header;
  396. };
  397. struct res_lib_activatepoll {
  398. struct message_header header;
  399. };
  400. struct req_lib_ckpt_checkpointopen {
  401. struct message_header header;
  402. SaNameT checkpointName;
  403. SaCkptCheckpointCreationAttributesT checkpointCreationAttributes;
  404. SaCkptCheckpointOpenFlagsT checkpointOpenFlags;
  405. };
  406. struct res_lib_ckpt_checkpointopen {
  407. struct message_header header;
  408. SaErrorT error;
  409. };
  410. struct req_exec_ckpt_checkpointopen {
  411. struct message_header header;
  412. struct message_source source;
  413. struct req_lib_ckpt_checkpointopen req_lib_ckpt_checkpointopen;
  414. };
  415. struct req_lib_ckpt_checkpointopenasync {
  416. struct message_header header;
  417. SaNameT checkpointName;
  418. SaCkptCheckpointCreationAttributesT checkpointCreationAttributes;
  419. SaCkptCheckpointOpenFlagsT checkpointOpenFlags;
  420. SaInvocationT invocation;
  421. };
  422. struct res_lib_ckpt_checkpointopenasync {
  423. struct message_header header;
  424. SaCkptCheckpointHandleT checkpointHandle;
  425. SaInvocationT invocation;
  426. SaErrorT error;
  427. };
  428. struct req_lib_ckpt_checkpointclose {
  429. struct message_header header;
  430. };
  431. struct res_lib_ckpt_checkpointclose {
  432. struct message_header header;
  433. SaNameT checkpointName;
  434. };
  435. struct req_lib_ckpt_checkpointunlink {
  436. struct message_header header;
  437. SaNameT checkpointName;
  438. };
  439. struct res_lib_ckpt_checkpointunlink {
  440. struct message_header header;
  441. SaErrorT error;
  442. };
  443. struct req_exec_ckpt_checkpointunlink {
  444. struct message_header header;
  445. struct message_source source;
  446. struct req_lib_ckpt_checkpointunlink req_lib_ckpt_checkpointunlink;
  447. };
  448. struct req_lib_ckpt_checkpointretentiondurationset {
  449. struct message_header header;
  450. SaTimeT retentionDuration;
  451. };
  452. struct req_lib_ckpt_activecheckpointset {
  453. struct message_header header;
  454. };
  455. struct res_lib_ckpt_activecheckpointset {
  456. struct message_header header;
  457. SaErrorT error;
  458. };
  459. struct req_lib_ckpt_checkpointstatusget {
  460. struct message_header header;
  461. };
  462. struct res_lib_ckpt_checkpointstatusget {
  463. struct message_header header;
  464. SaCkptCheckpointStatusT checkpointStatus;
  465. };
  466. struct req_lib_ckpt_sectioncreate {
  467. struct message_header header;
  468. SaUint32T idLen;
  469. SaTimeT expirationTime;
  470. SaUint32T initialDataSize;
  471. };
  472. struct res_lib_ckpt_sectioncreate {
  473. struct message_header header;
  474. SaErrorT error;
  475. };
  476. struct req_exec_ckpt_sectioncreate {
  477. struct message_header header;
  478. struct message_source source;
  479. SaNameT checkpointName;
  480. struct req_lib_ckpt_sectioncreate req_lib_ckpt_sectioncreate; /* this must be last */
  481. };
  482. struct req_lib_ckpt_sectiondelete {
  483. struct message_header header;
  484. SaUint32T idLen;
  485. };
  486. struct res_lib_ckpt_sectiondelete {
  487. struct message_header header;
  488. SaErrorT error;
  489. };
  490. struct req_exec_ckpt_sectiondelete {
  491. struct message_header header;
  492. struct message_source source;
  493. SaNameT checkpointName;
  494. struct req_lib_ckpt_sectiondelete req_lib_ckpt_sectiondelete; /* this must be last */
  495. };
  496. struct req_lib_ckpt_sectionexpirationtimeset {
  497. struct message_header header;
  498. SaUint32T idLen;
  499. SaTimeT expirationTime;
  500. };
  501. struct res_lib_ckpt_sectionexpirationtimeset {
  502. struct message_header header;
  503. SaErrorT error;
  504. };
  505. struct req_exec_ckpt_sectionexpirationtimeset {
  506. struct message_header header;
  507. struct message_source source;
  508. SaNameT checkpointName;
  509. struct req_lib_ckpt_sectionexpirationtimeset req_lib_ckpt_sectionexpirationtimeset;
  510. };
  511. struct req_lib_ckpt_sectioniteratorinitialize {
  512. struct message_header header;
  513. SaNameT checkpointName;
  514. SaCkptSectionsChosenT sectionsChosen;
  515. SaTimeT expirationTime;
  516. };
  517. struct res_lib_ckpt_sectioniteratorinitialize {
  518. struct message_header header;
  519. SaErrorT error;
  520. };
  521. struct req_lib_ckpt_sectioniteratornext {
  522. struct message_header header;
  523. };
  524. struct res_lib_ckpt_sectioniteratornext {
  525. struct message_header header;
  526. SaCkptSectionDescriptorT sectionDescriptor;
  527. SaErrorT error;
  528. };
  529. struct req_lib_ckpt_sectionwrite {
  530. struct message_header header;
  531. SaUint32T idLen;
  532. SaOffsetT dataOffset;
  533. SaOffsetT dataSize;
  534. };
  535. struct res_lib_ckpt_sectionwrite {
  536. struct message_header header;
  537. SaErrorT error;
  538. };
  539. struct req_exec_ckpt_sectionwrite {
  540. struct message_header header;
  541. struct message_source source;
  542. SaNameT checkpointName;
  543. struct req_lib_ckpt_sectionwrite req_lib_ckpt_sectionwrite;
  544. };
  545. struct req_lib_ckpt_sectionoverwrite {
  546. struct message_header header;
  547. SaUint32T idLen;
  548. SaUint32T dataSize;
  549. };
  550. struct res_lib_ckpt_sectionoverwrite {
  551. struct message_header header;
  552. SaErrorT error;
  553. };
  554. struct req_exec_ckpt_sectionoverwrite {
  555. struct message_header header;
  556. struct message_source source;
  557. SaNameT checkpointName;
  558. struct req_lib_ckpt_sectionoverwrite req_lib_ckpt_sectionoverwrite;
  559. };
  560. struct req_lib_ckpt_sectionread {
  561. struct message_header header;
  562. SaUint32T idLen;
  563. SaOffsetT dataOffset;
  564. SaOffsetT dataSize;
  565. };
  566. struct res_lib_ckpt_sectionread {
  567. struct message_header header;
  568. SaErrorT error;
  569. SaSizeT dataRead;
  570. };
  571. struct req_exec_ckpt_sectionread {
  572. struct message_header header;
  573. struct message_source source;
  574. SaNameT checkpointName;
  575. struct req_lib_ckpt_sectionread req_lib_ckpt_sectionread;
  576. };
  577. struct req_lib_ckpt_checkpointsynchronize {
  578. struct message_header header;
  579. };
  580. struct res_lib_ckpt_checkpointsynchronize {
  581. struct message_header header;
  582. SaErrorT error;
  583. };
  584. struct req_lib_ckpt_checkpointsynchronizeasync {
  585. struct message_header header;
  586. SaInvocationT invocation;
  587. };
  588. struct req_clm_trackstop {
  589. struct message_header header;
  590. SaSizeT dataRead;
  591. SaErrorT error;
  592. };
  593. struct res_clm_trackcallback {
  594. struct message_header header;
  595. SaUint64T viewNumber;
  596. SaUint32T numberOfItems;
  597. SaUint32T numberOfMembers;
  598. SaClmClusterNotificationT *notificationBufferAddress;
  599. SaClmClusterNotificationT notificationBuffer[0];
  600. };
  601. struct req_clm_nodeget {
  602. struct message_header header;
  603. SaClmClusterNodeT *clusterNodeAddress;
  604. SaInvocationT invocation;
  605. SaClmNodeIdT nodeId;
  606. };
  607. struct res_clm_nodeget {
  608. struct message_header header;
  609. SaInvocationT invocation;
  610. SaClmClusterNodeT *clusterNodeAddress;
  611. SaClmClusterNodeT clusterNode;
  612. int valid;
  613. };
  614. struct res_clm_nodegetcallback {
  615. struct message_header header;
  616. SaInvocationT invocation;
  617. SaClmClusterNodeT *clusterNodeAddress;
  618. SaClmClusterNodeT clusterNode;
  619. int valid;
  620. };
  621. struct req_exec_clm_heartbeat {
  622. struct message_header header;
  623. };
  624. struct res_exec_clm_heartbeat {
  625. struct message_header header;
  626. };
  627. struct req_exec_clm_nodejoin {
  628. struct message_header header;
  629. SaClmClusterNodeT clusterNode;
  630. };
  631. /*
  632. * MESSAGE_REQ_EVT_OPEN_CHANNEL
  633. *
  634. * ico_head Request head
  635. * ico_open_flag: Channel open flags
  636. * ico_channel_name: Name of channel to open
  637. * ico_c_handle: Local lib channel handle (used in returned event data)
  638. * ico_timeout: Used only by open
  639. * ico_invocation: Used only by async open
  640. *
  641. */
  642. struct req_evt_channel_open {
  643. struct message_header ico_head;
  644. SaUint8T ico_open_flag;
  645. SaNameT ico_channel_name;
  646. SaEvtChannelHandleT ico_c_handle; /* client chan handle */
  647. SaTimeT ico_timeout; /* open only */
  648. SaInvocationT ico_invocation; /* open async only */
  649. };
  650. /*
  651. * MESSAGE_RES_EVT_OPEN_CHANNEL
  652. *
  653. *
  654. * ico_head: Results head
  655. * ico_error: Request results
  656. * ico_channel_handle: Server side channel handle (used in channel ops)
  657. *
  658. */
  659. struct res_evt_channel_open {
  660. struct message_header ico_head;
  661. SaErrorT ico_error;
  662. uint32_t ico_channel_handle;/* svr chan handle */
  663. };
  664. /*
  665. * MESSAGE_RES_EVT_CHAN_OPEN_CALLBACK
  666. *
  667. * TODO: Define this
  668. */
  669. struct res_evt_open_chan_async {
  670. struct message_header ico_head;
  671. };
  672. /*
  673. * MESSAGE_REQ_EVT_CLOSE_CHANNEL
  674. *
  675. * icc_head: Request head
  676. * icc_channel_handle: Server handle of channel to close
  677. *
  678. */
  679. struct req_evt_channel_close {
  680. struct message_header icc_head;
  681. uint32_t icc_channel_handle;
  682. };
  683. /*
  684. * MESSAGE_RES_EVT_CLOSE_CHANNEL
  685. *
  686. * icc_head: Results head
  687. * icc_error: Request result
  688. *
  689. */
  690. struct res_evt_channel_close {
  691. struct message_header icc_head;
  692. SaErrorT icc_error;
  693. };
  694. /*
  695. * MESSAGE_REQ_EVT_SUBSCRIBE
  696. *
  697. * ics_head: Request head
  698. * ics_channel_handle: Server handle of channel
  699. * ics_sub_id: Subscription ID
  700. * ics_filter_size: Size of supplied filter data
  701. * ics_filter_count: Number of filters supplied
  702. * ics_filter_data: Filter data
  703. *
  704. */
  705. struct req_evt_channel_subscribe {
  706. struct message_header ics_head;
  707. uint32_t ics_channel_handle;
  708. SaEvtSubscriptionIdT ics_sub_id;
  709. uint32_t ics_filter_size;
  710. uint32_t ics_filter_count;
  711. uint8_t ics_filter_data[0];
  712. };
  713. /*
  714. * MESSAGE_RES_EVT_SUBSCRIBE
  715. *
  716. * ics_head: Result head
  717. * ics_error: Request results
  718. *
  719. */
  720. struct res_evt_channel_subscribe {
  721. struct message_header ics_head;
  722. SaErrorT ics_error;
  723. };
  724. /*
  725. * MESSAGE_REQ_EVT_UNSUBSCRIBE
  726. *
  727. * icu_head: Request head
  728. * icu_channel_handle: Server handle of channel
  729. * icu_sub_id: Subscription ID
  730. *
  731. */
  732. struct req_evt_channel_unsubscribe {
  733. struct message_header icu_head;
  734. uint32_t icu_channel_handle;
  735. SaEvtSubscriptionIdT icu_sub_id;
  736. };
  737. /*
  738. * MESSAGE_RES_EVT_UNSUBSCRIBE
  739. *
  740. * icu_head: Results head
  741. * icu_error: request result
  742. *
  743. */
  744. struct res_evt_channel_unsubscribe {
  745. struct message_header icu_head;
  746. SaErrorT icu_error;
  747. };
  748. /*
  749. * MESSAGE_REQ_EVT_PUBLISH
  750. * MESSAGE_RES_EVT_EVENT_DATA
  751. *
  752. * led_head: Request/Results head
  753. * led_svr_channel_handle: Server channel handle (Publish only)
  754. * led_lib_channel_handle: Lib channel handle (Event Data only)
  755. * led_event_id: Event ID (Event Data only)
  756. * led_sub_id: Subscription ID (Event Data only)
  757. * led_publisher_node_id: Node ID of event publisher
  758. * led_publisher_name: Node name of event publisher
  759. * led_retention_time: Event retention time
  760. * led_publish_time: Publication time of the event
  761. * led_priority: Event priority
  762. * led_user_data_offset: Offset to user data
  763. * led_user_data_size: Size of user data
  764. * led_patterns_number: Number of patterns in the event
  765. * led_body: Pattern and user data
  766. */
  767. struct lib_event_data {
  768. struct message_header led_head;
  769. uint32_t led_svr_channel_handle;
  770. uint32_t led_lib_channel_handle;
  771. SaEvtEventIdT led_event_id;
  772. SaEvtSubscriptionIdT led_sub_id;
  773. SaClmNodeIdT led_publisher_node_id;
  774. SaNameT led_publisher_name;
  775. SaTimeT led_retention_time;
  776. SaTimeT led_publish_time;
  777. SaEvtEventPriorityT led_priority;
  778. uint32_t led_user_data_offset;
  779. uint32_t led_user_data_size;
  780. uint32_t led_patterns_number;
  781. uint8_t led_body[0];
  782. };
  783. /*
  784. * MESSAGE_RES_EVT_PUBLISH
  785. *
  786. * iep_head: Result head
  787. * iep_error: Request results
  788. * iep_event_id: Event ID of published message
  789. *
  790. */
  791. struct res_evt_event_publish {
  792. struct message_header iep_head;
  793. SaErrorT iep_error;
  794. SaEvtEventIdT iep_event_id;
  795. };
  796. /*
  797. * MESSAGE_REQ_EVT_CLEAR_RETENTIONTIME
  798. *
  799. * Request message:
  800. *
  801. * iec_head: Request head
  802. * iec_event_id: ID of event to clear
  803. * iec_channel_handle: Server handle of associate channel
  804. *
  805. */
  806. struct req_evt_event_clear_retentiontime {
  807. struct message_header iec_head;
  808. uint64_t iec_event_id;
  809. uint32_t iec_channel_handle;
  810. };
  811. /*
  812. * MESSAGE_RES_EVT_CLEAR_RETENTIONTIME
  813. *
  814. * iec_head: Results head
  815. * iec_error: Request result
  816. *
  817. */
  818. struct res_evt_event_clear_retentiontime {
  819. struct message_header iec_head;
  820. SaErrorT iec_error;
  821. };
  822. #endif /* AIS_MSG_H_DEFINED */