Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
pacemaker.13547
pacemaker-libcrmcommon-add-function-to-get-text...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-libcrmcommon-add-function-to-get-text-equivalent-of-client-type.patch of Package pacemaker.13547
commit 02881e0e43f632725a1359be7534c6e326e636ca Author: Ken Gaillot <kgaillot@redhat.com> Date: Fri Mar 2 15:45:48 2018 -0600 Refactor: libcrmcommon: add function to get text equivalent of client type for improved logging Index: pacemaker-1.1.16+20170320.77ea74d/include/crm/common/ipcs.h =================================================================== --- pacemaker-1.1.16+20170320.77ea74d.orig/include/crm/common/ipcs.h +++ pacemaker-1.1.16+20170320.77ea74d/include/crm/common/ipcs.h @@ -104,6 +104,7 @@ void crm_client_cleanup(void); crm_client_t *crm_client_get(qb_ipcs_connection_t * c); crm_client_t *crm_client_get_by_id(const char *id); const char *crm_client_name(crm_client_t * c); +const char *crm_client_type_text(enum client_type client_type); crm_client_t *crm_client_new(qb_ipcs_connection_t * c, uid_t uid, gid_t gid); void crm_client_destroy(crm_client_t * c); Index: pacemaker-1.1.16+20170320.77ea74d/lib/common/ipc.c =================================================================== --- pacemaker-1.1.16+20170320.77ea74d.orig/lib/common/ipc.c +++ pacemaker-1.1.16+20170320.77ea74d/lib/common/ipc.c @@ -248,6 +248,23 @@ crm_client_name(crm_client_t * c) } } +const char * +crm_client_type_text(enum client_type client_type) +{ + switch (client_type) { + case CRM_CLIENT_IPC: + return "IPC"; + case CRM_CLIENT_TCP: + return "TCP"; +#ifdef HAVE_GNUTLS_GNUTLS_H + case CRM_CLIENT_TLS: + return "TLS"; +#endif + default: + return "unknown"; + } +} + void crm_client_init(void) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor