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

📄 util.h

📁 linux集群服务器软件代码包
💻 H
字号:
/* $Id: util.h,v 1.11 2005/02/07 11:39:54 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 CRM_COMMON_UTIL__H#define CRM_COMMON_UTIL__H#include <signal.h>#include <crm/common/xml.h>#include <hb_api.h>#define DEBUG_INC SIGUSR1#define DEBUG_DEC SIGUSR2extern unsigned int crm_log_level;extern gboolean crm_log_init(const char *entity);extern void do_crm_log(int log_level, const char *function,		       const char *alt_debugfile, const char *format, ...) G_GNUC_PRINTF(4,5);/* returns the old value */extern unsigned int set_crm_log_level(unsigned int level);extern unsigned int get_crm_log_level(void);extern char *crm_itoa(int an_int);extern char *crm_strdup(const char *a);extern char *generate_hash_key(const char *crm_msg_reference,			       const char *sys);extern char *generate_hash_value(const char *src_node,				 const char *src_subsys);extern gboolean decode_hash_value(gpointer value,				  char **node,				  char **subsys);extern gboolean decodeNVpair(const char *srcstring,		      char separator,		      char **name,		      char **value);extern int compare_version(const char *version1, const char *version2);extern char *generateReference(const char *custom1, const char *custom2);extern void alter_debug(int nsig);extern void g_hash_destroy_str(gpointer data);extern void set_uuid(	ll_cluster_t* hb, crm_data_t *node, const char *attr, const char *uname);#endif

⌨️ 快捷键说明

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