root/crmd/fsa_proto.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* 
   2  * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
   3  * 
   4  * This program is free software; you can redistribute it and/or
   5  * modify it under the terms of the GNU Lesser General Public
   6  * License as published by the Free Software Foundation; either
   7  * version 2 of the License, or (at your option) any later version.
   8  * 
   9  * This software is distributed in the hope that it will be useful,
  10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12  * General Public License for more details.
  13  * 
  14  * You should have received a copy of the GNU Lesser General Public
  15  * License along with this library; if not, write to the Free Software
  16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  17  */
  18 
  19 #ifndef XML_FSA_PROTO__H
  20 #  define XML_FSA_PROTO__H
  21 
  22 extern xmlNode *do_lrm_query(gboolean, const char *node_name);
  23 
  24 /*       A_READCONFIG   */
  25 void
  26 
  27 do_read_config(long long action,
  28                enum crmd_fsa_cause cause,
  29                enum crmd_fsa_state cur_state,
  30                enum crmd_fsa_input current_input, fsa_data_t * msg_data);
  31 
  32 /*       A_PE_INVOKE    */
  33 void
  34 
  35 do_pe_invoke(long long action,
  36              enum crmd_fsa_cause cause,
  37              enum crmd_fsa_state cur_state,
  38              enum crmd_fsa_input current_input, fsa_data_t * msg_data);
  39 
  40 /*      A_ERROR */
  41 void
  42 
  43 do_error(long long action,
  44          enum crmd_fsa_cause cause,
  45          enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  46 
  47 /*      A_LOG   */
  48 void
  49 
  50 do_log(long long action,
  51        enum crmd_fsa_cause cause,
  52        enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  53 
  54 /*      A_STARTUP       */
  55 void
  56 
  57 do_startup(long long action,
  58            enum crmd_fsa_cause cause,
  59            enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  60 
  61 /*      A_CIB_START, STOP, RESTART      */
  62 void
  63 
  64 do_cib_control(long long action,
  65                enum crmd_fsa_cause cause,
  66                enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  67 
  68 /*      A_HA_CONNECT    */
  69 void
  70 
  71 do_ha_control(long long action,
  72               enum crmd_fsa_cause cause,
  73               enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  74 
  75 /*      A_CCM_CONNECT   */
  76 void
  77 
  78 do_ccm_control(long long action,
  79                enum crmd_fsa_cause cause,
  80                enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  81 
  82 /*      A_LRM_CONNECT   */
  83 void
  84 
  85 do_lrm_control(long long action,
  86                enum crmd_fsa_cause cause,
  87                enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  88 
  89 /*      A_PE_START, STOP, RESTART       */
  90 void
  91 
  92 do_pe_control(long long action,
  93               enum crmd_fsa_cause cause,
  94               enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
  95 
  96 /*      A_TE_START, STOP, RESTART       */
  97 void
  98 
  99 do_te_control(long long action,
 100               enum crmd_fsa_cause cause,
 101               enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 102 
 103 /*      A_STARTED       */
 104 void
 105 
 106 do_started(long long action,
 107            enum crmd_fsa_cause cause,
 108            enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 109 
 110 /*      A_MSG_ROUTE     */
 111 void
 112 
 113 do_msg_route(long long action,
 114              enum crmd_fsa_cause cause,
 115              enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 116 
 117 /*      A_RECOVER       */
 118 void
 119 
 120 do_recover(long long action,
 121            enum crmd_fsa_cause cause,
 122            enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 123 
 124 /*      A_ELECTION_VOTE */
 125 void
 126 
 127 do_election_vote(long long action,
 128                  enum crmd_fsa_cause cause,
 129                  enum crmd_fsa_state cur_state,
 130                  enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 131 
 132 /*      A_ELECTION_COUNT        */
 133 void
 134 
 135 do_election_count_vote(long long action,
 136                        enum crmd_fsa_cause cause,
 137                        enum crmd_fsa_state cur_state,
 138                        enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 139 
 140 /*      A_ELECTION_CHECK        */
 141 void
 142 
 143 do_election_check(long long action,
 144                   enum crmd_fsa_cause cause,
 145                   enum crmd_fsa_state cur_state,
 146                   enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 147 
 148 /*      A_ELECT_TIMER_START, A_ELECTION_TIMEOUT */
 149 void
 150 
 151 do_election_timer_ctrl(long long action,
 152                        enum crmd_fsa_cause cause,
 153                        enum crmd_fsa_state cur_state,
 154                        enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 155 
 156 /*      A_DC_TIMER_STOP */
 157 void
 158 
 159 do_timer_control(long long action,
 160                  enum crmd_fsa_cause cause,
 161                  enum crmd_fsa_state cur_state,
 162                  enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 163 
 164 #  if SUPPORT_HEARTBEAT
 165 /*      A_CCM_UPDATE_CACHE      */
 166 void do_ccm_update_cache(enum crmd_fsa_cause cause, enum crmd_fsa_state cur_state,
 167                          oc_ed_t event, const oc_ev_membership_t * oc, xmlNode * xml);
 168 #  endif
 169 
 170 /*      A_CCM_EVENT     */
 171 void
 172 
 173 do_ccm_event(long long action,
 174              enum crmd_fsa_cause cause,
 175              enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 176 
 177 /*      A_DC_TAKEOVER   */
 178 void
 179 
 180 do_dc_takeover(long long action,
 181                enum crmd_fsa_cause cause,
 182                enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 183 
 184 /*      A_DC_RELEASE    */
 185 void
 186 
 187 do_dc_release(long long action,
 188               enum crmd_fsa_cause cause,
 189               enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 190 
 191 /*      A_DC_JOIN_OFFER_ALL     */
 192 void
 193 
 194 do_dc_join_offer_all(long long action,
 195                      enum crmd_fsa_cause cause,
 196                      enum crmd_fsa_state cur_state,
 197                      enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 198 
 199 /*      A_DC_JOIN_OFFER_ONE     */
 200 void
 201 
 202 do_dc_join_offer_one(long long action,
 203                      enum crmd_fsa_cause cause,
 204                      enum crmd_fsa_state cur_state,
 205                      enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 206 
 207 /*      A_DC_JOIN_ACK   */
 208 void
 209 
 210 do_dc_join_ack(long long action,
 211                enum crmd_fsa_cause cause,
 212                enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 213 
 214 /*      A_DC_JOIN_REQ   */
 215 void
 216 
 217 do_dc_join_filter_offer(long long action,
 218                         enum crmd_fsa_cause cause,
 219                         enum crmd_fsa_state cur_state,
 220                         enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 221 
 222 /*      A_DC_JOIN_FINALIZE      */
 223 void
 224 
 225 do_dc_join_finalize(long long action,
 226                     enum crmd_fsa_cause cause,
 227                     enum crmd_fsa_state cur_state,
 228                     enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 229 
 230 /*      A_CL_JOIN_QUERY         */
 231 /* is there a DC out there? */
 232 void
 233 
 234 do_cl_join_query(long long action,
 235                  enum crmd_fsa_cause cause,
 236                  enum crmd_fsa_state cur_state,
 237                  enum crmd_fsa_input current_input, fsa_data_t * msg_data);
 238 
 239 /*       A_CL_JOIN_ANNOUNCE     */
 240 void
 241 
 242 do_cl_join_announce(long long action,
 243                     enum crmd_fsa_cause cause,
 244                     enum crmd_fsa_state cur_state,
 245                     enum crmd_fsa_input current_input, fsa_data_t * msg_data);
 246 
 247 /*       A_CL_JOIN_REQUEST      */
 248 void
 249 
 250 do_cl_join_offer_respond(long long action,
 251                          enum crmd_fsa_cause cause,
 252                          enum crmd_fsa_state cur_state,
 253                          enum crmd_fsa_input current_input, fsa_data_t * msg_data);
 254 
 255 /*       A_CL_JOIN_RESULT       */
 256 void
 257 
 258 do_cl_join_finalize_respond(long long action,
 259                             enum crmd_fsa_cause cause,
 260                             enum crmd_fsa_state cur_state,
 261                             enum crmd_fsa_input current_input, fsa_data_t * msg_data);
 262 
 263 /*       A_UPDATE_NODESTATUS */
 264 void
 265 
 266 do_update_node_status(long long action,
 267                       enum crmd_fsa_cause cause,
 268                       enum crmd_fsa_state cur_state,
 269                       enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 270 
 271 /*      A_LRM_INVOKE    */
 272 void
 273 
 274 do_lrm_invoke(long long action,
 275               enum crmd_fsa_cause cause,
 276               enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 277 
 278 /*      A_LRM_EVENT     */
 279 void
 280 
 281 do_lrm_event(long long action,
 282              enum crmd_fsa_cause cause,
 283              enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 284 
 285 /*      A_PE_INVOKE     */
 286 void
 287 
 288 do_pe_invoke(long long action,
 289              enum crmd_fsa_cause cause,
 290              enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 291 
 292 /*      A_TE_INVOKE, A_TE_CANCEL        */
 293 void
 294 
 295 do_te_invoke(long long action,
 296              enum crmd_fsa_cause cause,
 297              enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 298 
 299 /*      A_TE_INVOKE     */
 300 void
 301 
 302 do_te_copyto(long long action,
 303              enum crmd_fsa_cause cause,
 304              enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 305 
 306 /*      A_SHUTDOWN_REQ  */
 307 void
 308 
 309 do_shutdown_req(long long action,
 310                 enum crmd_fsa_cause cause,
 311                 enum crmd_fsa_state cur_state,
 312                 enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 313 
 314 /*      A_SHUTDOWN      */
 315 void
 316 
 317 do_shutdown(long long action,
 318             enum crmd_fsa_cause cause,
 319             enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 320 
 321 /*      A_STOP  */
 322 void
 323 
 324 do_stop(long long action,
 325         enum crmd_fsa_cause cause,
 326         enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 327 
 328 /*      A_EXIT_0, A_EXIT_1      */
 329 void
 330 
 331 do_exit(long long action,
 332         enum crmd_fsa_cause cause,
 333         enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data);
 334 
 335 void
 336 
 337 do_dc_join_final(long long action,
 338                  enum crmd_fsa_cause cause,
 339                  enum crmd_fsa_state cur_state,
 340                  enum crmd_fsa_input current_input, fsa_data_t * msg_data);
 341 
 342 #endif

/* [previous][next][first][last][top][bottom][index][help] */