From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 1 Sep 2006 08:36:17 -0000 Subject: [Cluster-devel] cluster/cman/lib libcman.h Message-ID: <20060901083617.31162.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL4 Changes by: pcaulfield at sourceware.org 2006-09-01 08:36:16 Modified files: cman/lib : libcman.h Log message: rename 'private' to 'privdata' so that it doesn't upset c++ Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/lib/libcman.h.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.2.2.4&r2=1.2.2.5 --- cluster/cman/lib/libcman.h 2006/04/26 08:54:33 1.2.2.4 +++ cluster/cman/lib/libcman.h 2006/09/01 08:36:16 1.2.2.5 @@ -81,22 +81,22 @@ } cman_cluster_t; /* Callback routine for a membership event */ -typedef void (*cman_callback_t)(cman_handle_t handle, void *private, int reason, int arg); +typedef void (*cman_callback_t)(cman_handle_t handle, void *privdata, int reason, int arg); /* Callback routine for data received */ -typedef void (*cman_datacallback_t)(cman_handle_t handle, void *private, +typedef void (*cman_datacallback_t)(cman_handle_t handle, void *privdata, char *buf, int len, uint8_t port, int nodeid); /* cman_init returns the handle you need to pass to the other API calls, cman_finish destroys that handle */ -cman_handle_t cman_init(void *private); +cman_handle_t cman_init(void *privdata); int cman_finish(cman_handle_t handle); /* Update/retrieve private data */ -int cman_set_private(cman_handle_t *h, void *private); -int cman_get_private(cman_handle_t *h, void **private); +int cman_set_private(cman_handle_t *h, void *privdata); +int cman_get_private(cman_handle_t *h, void **privdata); /* Notification of membership change events. NOte that these are sent after a transition so multiple nodes may have left the cluster (but a maximum of