⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crmd_utils.h

📁 linux集群服务器软件代码包
💻 H
字号:
/* $Id: crmd_utils.h,v 1.13 2005/02/02 21:51:19 andrew Exp $ *//*  * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net> *  * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * General Public License for more details. *  * You should have received a copy of the GNU General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef CRMD_UTILS__H#define CRMD_UTILS__H#include <crm/crm.h>#include <crm/common/xml.h>#define CLIENT_EXIT_WAIT 30extern void update_local_cib_adv(	crm_data_t *msg_data, gboolean do_now, const char *raised_from);#define update_local_cib(data) update_local_cib_adv(data, TRUE, __FUNCTION__)extern long long toggle_bit   (long long  action_list, long long action);extern long long clear_bit    (long long  action_list, long long action);extern long long set_bit      (long long  action_list, long long action);#define set_bit_inplace(word, bit)    word = set_bit(word, bit)#define clear_bit_inplace(word, bit)  word = clear_bit(word, bit)#define toggle_bit_inplace(word, bit) word = toggle_bit(word, bit)extern gboolean is_set(long long action_list, long long action);extern gboolean is_set_any(long long action_list, long long action);extern gboolean stopTimer (fsa_timer_t *timer);extern gboolean startTimer(fsa_timer_t *timer);extern gboolean timer_popped(gpointer data);extern void cleanup_subsystem(struct crm_subsystem_s *the_subsystem);extern crm_data_t *create_node_state(	const char *uuid, const char *uname,	const char *ha_state, const char *ccm_state,	const char *crmd_state, const char *join_state, const char *exp_state);extern void create_node_entry(	const char *uuid, const char *uname, const char *type);extern gboolean stop_subsystem (struct crm_subsystem_s *centry);extern gboolean start_subsystem(struct crm_subsystem_s *centry);extern lrm_op_t *copy_lrm_op(const lrm_op_t *op);extern lrm_rsc_t *copy_lrm_rsc(const lrm_rsc_t *rsc);extern struct crmd_ccm_data_s *copy_ccm_data(	const struct crmd_ccm_data_s *ccm_input);extern oc_ev_membership_t *copy_ccm_oc_data(const oc_ev_membership_t *oc_in) ;extern void fsa_dump_actions(long long action, const char *text);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -