From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group/lib libgroup.h
Date: 25 Jun 2007 18:06:52 -0000 [thread overview]
Message-ID: <20070625180652.1253.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-06-25 18:06:50
Modified files:
group/lib : libgroup.h
Log message:
Rename "private" to "priv" to make the file usable by C++ programs, and wrap the header with extern C { ... } if compiling C++.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/lib/libgroup.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.17&r2=1.17.2.1
--- cluster/group/lib/libgroup.h 2006/10/13 16:03:48 1.17
+++ cluster/group/lib/libgroup.h 2007/06/25 18:06:48 1.17.2.1
@@ -23,6 +23,10 @@
#ifndef _LIBGROUP_H_
#define _LIBGROUP_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define MAX_GROUP_MEMBERS 256
#define MAX_GROUP_NAME_LEN 32
@@ -33,16 +37,16 @@
typedef void *group_handle_t;
-typedef void (*group_stop_t)(group_handle_t h, void *private, char *name);
-typedef void (*group_start_t)(group_handle_t h, void *private, char *name,
+typedef void (*group_stop_t)(group_handle_t h, void *priv, char *name);
+typedef void (*group_start_t)(group_handle_t h, void *priv, char *name,
int event_nr, int type, int member_count,
int *members);
-typedef void (*group_finish_t)(group_handle_t h, void *private, char *name,
+typedef void (*group_finish_t)(group_handle_t h, void *priv, char *name,
int event_nr);
-typedef void (*group_terminate_t)(group_handle_t h, void *private, char *name);
-typedef void (*group_set_id_t)(group_handle_t h, void *private, char *name,
+typedef void (*group_terminate_t)(group_handle_t h, void *priv, char *name);
+typedef void (*group_set_id_t)(group_handle_t h, void *priv, char *name,
unsigned int id);
-typedef void (*group_deliver_t)(group_handle_t h, void *private, char *name,
+typedef void (*group_deliver_t)(group_handle_t h, void *priv, char *name,
int nodeid, int len, char *buf);
typedef struct {
@@ -54,7 +58,7 @@
group_deliver_t deliver;
} group_callbacks_t;
-group_handle_t group_init(void *private, char *prog_name, int level, group_callbacks_t *cbs, int timeout);
+group_handle_t group_init(void *priv, char *prog_name, int level, group_callbacks_t *cbs, int timeout);
int group_exit(group_handle_t handle);
int group_join(group_handle_t handle, char *name);
@@ -90,5 +94,8 @@
int group_get_groups(int max, int *count, group_data_t *data);
int group_get_group(int level, const char *name, group_data_t *data);
+#ifdef __cplusplus
+}
#endif
+#endif
next reply other threads:[~2007-06-25 18:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-25 18:06 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-06-25 18:08 [Cluster-devel] cluster/group/lib libgroup.h rmccabe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070625180652.1253.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.