cluster/ccs/lib ccs.h libccs.c
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rmccabe at sourceware.org 2007-10-08 16:43:21
Modified files:
ccs/lib : ccs.h libccs.c
Log message:
add new function to libccs:
* ccs_lookup_nodename
* @cd: ccs descriptor
* @nodename: node name string
* @retval: pointer to location to assign the result, if found *
* This function takes any valid representation (FQDN, non-qualified
* hostname, IP address, IPv6 address) of a node's name and finds its
* canonical name (per cluster.conf). This function will find the primary
* node name if passed a node's "altname" or any valid representation
* of it.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/lib/ccs.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/lib/libccs.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
ccs/lib/ccs.h +2 -1
@@ -1,7 +1,7 @@/****************************************************************************** ******************************************************************************* ** -** Copyright (C) 2004 Red Hat, Inc. All rights reserved. +** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. ** ** This copyrighted material is made available to anyone wishing to use, ** modify, copy, or redistribute it subject to the terms and conditions
@@ -20,5 +20,6 @@int ccs_set (int desc,const char *path,char *val);int ccs_get_state (int desc,char **cw_path,char **prev_query);int ccs_set_state (int desc,const char *cw_path,int reset_query); +int ccs_lookup_nodename (int desc,const char *nodename,char **rtn);#endif /* __CCS_DOT_H__ */
ccs/lib/libccs.c +175 -1
191 lines not on this page · raw message