Patch looks good. I'll commit it.
Regards
-steve
On Wed, 2009-07-01 at 08:06 +0200, Wojtek Meler wrote:
> Steven Dake pisze:
> > On Tue, 2009-06-30 at 11:02 +0200, Wojtek Meler wrote:
> >
> >> Hi!
> >>
> >> I've noticed family of context getters and setters in confdb, cpg,
> >> quorum and votequorum headers, which are undocumented in man pages.
> >> Is it common public interface? These functions are missing in evs.
> >> It would be useful to implement scripting language bindings - callbacks
> >> would use them.
> >>
> >
> > These are public. Once 1.0.0 hits, we will not remove or change any
> > existing APIs.
> >
> Just after writing my message I had discovered cpg_context_set(3) man
> page. It is just omitted in SEE_ALSO section.
> Attached patch introduces *_context_{get,set} in man pages SEE_ALSO
> section and adds this functionality to evs.
>
> Regards,
> Wojtek
>
> plain text document attachment (context.patch)
> Index: include/corosync/evs.h
> ===================================================================
> --- include/corosync/evs.h (wersja 2323)
> +++ include/corosync/evs.h (kopia robocza)
> @@ -111,6 +111,17 @@
> int *fd);
>
> /*
> + * Get and set contexts for a EVS handle
> + */
> +cs_error_t evs_context_get (
> + evs_handle_t handle,
> + void **context);
> +
> +cs_error_t evs_context_set (
> + evs_handle_t handle,
> + void *context);
> +
> +/*
> * Dispatch messages and configuration changes
> */
> cs_error_t evs_dispatch (
> Index: lib/evs.c
> ===================================================================
> --- lib/evs.c (wersja 2323)
> +++ lib/evs.c (kopia robocza)
> @@ -66,6 +66,7 @@
> hdb_handle_t handle;
> int finalize;
> evs_callbacks_t callbacks;
> + void *context;
> };
>
> DECLARE_HDB_DATABASE (evs_handle_t_db,NULL);
> @@ -178,6 +179,44 @@
> return (CS_OK);
> }
>
> +evs_error_t evs_context_get (
> + evs_handle_t handle,
> + void **context)
> +{
> + cs_error_t error;
> + struct evs_inst *evs_inst;
> +
> + error = hdb_error_to_cs (hdb_handle_get (&evs_handle_t_db, handle,
> (void *)&evs_inst));
> + if (error != CS_OK) {
> + return (error);
> + }
> +
> + *context = evs_inst->context;
> +
> + hdb_handle_put (&evs_handle_t_db, handle);
> +
> + return (CS_OK);
> +}
> +
> +cs_error_t evs_context_set (
> + evs_handle_t handle,
> + void *context)
> +{
> + cs_error_t error;
> + struct evs_inst *evs_inst;
> +
> + error = hdb_error_to_cs (hdb_handle_get (&evs_handle_t_db, handle,
> (void *)&evs_inst));
> + if (error != CS_OK) {
> + return (error);
> + }
> +
> + evs_inst->context = context;
> +
> + hdb_handle_put (&evs_handle_t_db, handle);
> +
> + return (CS_OK);
> +}
> +
> evs_error_t evs_dispatch (
> evs_handle_t handle,
> cs_dispatch_flags_t dispatch_types)
> Index: man/cpg_zcb_mcast_joined.3
> ===================================================================
> --- man/cpg_zcb_mcast_joined.3 (wersja 2323)
> +++ man/cpg_zcb_mcast_joined.3 (kopia robocza)
> @@ -113,9 +113,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> -.BR cpg_join (3),
> +.BR cpg_mcast_joined (3),
> .BR cpg_membership_get (3)
> .BR cpg_zcb_alloc (3)
> .BR cpg_zcb_free (3)
> +.BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
> +
> .PP
> Index: man/cpg_initialize.3
> ===================================================================
> --- man/cpg_initialize.3 (wersja 2323)
> +++ man/cpg_initialize.3 (kopia robocza)
> @@ -153,15 +153,19 @@
> The errors are undocumented.
> .SH "SEE ALSO"
> .BR cpg_overview (8),
> +.BR cpg_initialize (3),
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> .BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_finalize.3
> ===================================================================
> --- man/cpg_finalize.3 (wersja 2323)
> +++ man/cpg_finalize.3 (kopia robocza)
> @@ -54,14 +54,18 @@
> .SH "SEE ALSO"
> .BR cpg_overview (8),
> .BR cpg_initialize (3),
> +.BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> .BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_overview.8
> ===================================================================
> --- man/cpg_overview.8 (wersja 2323)
> +++ man/cpg_overview.8 (kopia robocza)
> @@ -51,6 +51,7 @@
> access the corosync services.
>
> .SH "SEE ALSO"
> +.BR cpg_overview (8),
> .BR cpg_initialize (3),
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> @@ -62,5 +63,8 @@
> .BR cpg_zcb_alloc (3)
> .BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/evs_leave.3
> ===================================================================
> --- man/evs_leave.3 (wersja 2323)
> +++ man/evs_leave.3 (kopia robocza)
> @@ -95,4 +95,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/evs_join.3
> ===================================================================
> --- man/evs_join.3 (wersja 2323)
> +++ man/evs_join.3 (kopia robocza)
> @@ -100,4 +100,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/cpg_fd_get.3
> ===================================================================
> --- man/cpg_fd_get.3 (wersja 2323)
> +++ man/cpg_fd_get.3 (kopia robocza)
> @@ -59,12 +59,17 @@
> .BR cpg_overview (8),
> .BR cpg_initialize (3),
> .BR cpg_finalize (3),
> +.BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> .BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> .BR cpg_membership_get (3)
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
> +
> .PP
> Index: man/cpg_membership_get.3
> ===================================================================
> --- man/cpg_membership_get.3 (wersja 2323)
> +++ man/cpg_membership_get.3 (kopia robocza)
> @@ -67,11 +67,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_dispatch.3
> ===================================================================
> --- man/cpg_dispatch.3 (wersja 2323)
> +++ man/cpg_dispatch.3 (kopia robocza)
> @@ -93,8 +93,15 @@
> .BR cpg_initialize (3),
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> +.BR cpg_dispatch (3),
> .BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> .BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> +.BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
> .PP
> Index: man/cpg_mcast_joined.3
> ===================================================================
> --- man/cpg_mcast_joined.3 (wersja 2323)
> +++ man/cpg_mcast_joined.3 (kopia robocza)
> @@ -127,11 +127,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> -.BR cpg_join (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_mcast_joined (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/evs_context_get.3
> ===================================================================
> --- man/evs_context_get.3 (wersja 0)
> +++ man/evs_context_get.3 (wersja 0)
> @@ -0,0 +1,64 @@
> +.\"/*
> +.\" * Copyright (c) 2007 Red Hat, Inc.
> +.\" *
> +.\" * All rights reserved.
> +.\" *
> +.\" * Author: Patrick Caulfield <[email protected]>
> +.\" *
> +.\" * This software licensed under BSD license, the text of which follows:
> +.\" *
> +.\" * Redistribution and use in source and binary forms, with or without
> +.\" * modification, are permitted provided that the following conditions are
> met:
> +.\" *
> +.\" * - Redistributions of source code must retain the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer.
> +.\" * - Redistributions in binary form must reproduce the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer in the
> documentation
> +.\" * and/or other materials provided with the distribution.
> +.\" * - Neither the name of the MontaVista Software, Inc. nor the names of
> its
> +.\" * contributors may be used to endorse or promote products derived from
> this
> +.\" * software without specific prior written permission.
> +.\" *
> +.\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS"
> +.\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> +.\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
> BE
> +.\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +.\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +.\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> +.\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +.\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> +.\" * THE POSSIBILITY OF SUCH DAMAGE.
> +.\" */
> +.TH EVS_CONTEXT_GET 3 2004-08-31 "corosync Man Page" "Corosync Cluster
> Engine Programmer's Manual"
> +.SH NAME
> +evs_context_get \- Gets the context variable for a EVS instance
> +.SH SYNOPSIS
> +.B #include <corosync/evs.h>
> +.sp
> +.BI "int evs_context_get(evs_handle_t " handle ", void **" context ");
> +.SH DESCRIPTION
> +The
> +.B evs_context_get
> +function is used to retrieve the context variable previously stored using
> +.B evs_context_set(3)
> +.SH RETURN VALUE
> +This call returns the EVS_OK value if successful, otherwise an error is
> returned.
> +.PP
> +.SH ERRORS
> +The errors are undocumented.
> +.SH "SEE ALSO"
> +.BR evs_overview (8),
> +.BR evs_initialize (3),
> +.BR evs_finalize (3),
> +.BR evs_fd_get (3),
> +.BR evs_dispatch (3),
> +.BR evs_join (3),
> +.BR evs_leave (3),
> +.BR evs_mcast_joined (3),
> +.BR evs_mcast_groups (3),
> +.BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> +.PP
> Index: man/evs_context_set.3
> ===================================================================
> --- man/evs_context_set.3 (wersja 0)
> +++ man/evs_context_set.3 (wersja 0)
> @@ -0,0 +1,66 @@
> +.\"/*
> +.\" * Copyright (c) 2007 Red Hat, Inc.
> +.\" *
> +.\" * All rights reserved.
> +.\" *
> +.\" * Author: Patrick Caulfield <[email protected]>
> +.\" *
> +.\" * This software licensed under BSD license, the text of which follows:
> +.\" *
> +.\" * Redistribution and use in source and binary forms, with or without
> +.\" * modification, are permitted provided that the following conditions are
> met:
> +.\" *
> +.\" * - Redistributions of source code must retain the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer.
> +.\" * - Redistributions in binary form must reproduce the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer in the
> documentation
> +.\" * and/or other materials provided with the distribution.
> +.\" * - Neither the name of the MontaVista Software, Inc. nor the names of
> its
> +.\" * contributors may be used to endorse or promote products derived from
> this
> +.\" * software without specific prior written permission.
> +.\" *
> +.\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS"
> +.\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> +.\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
> BE
> +.\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +.\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +.\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> +.\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +.\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> +.\" * THE POSSIBILITY OF SUCH DAMAGE.
> +.\" */
> +.TH EVS_CONTEXT_SET 3 2004-08-31 "corosync Man Page" "Corosync Cluster
> Engine Programmer's Manual"
> +.SH NAME
> +evs_context_set \- Sets the context variable for a EVS instance
> +.SH SYNOPSIS
> +.B #include <corosync/evs.h>
> +.sp
> +.BI "int evs_context_set(evs_handle_t " handle ", void *" context ");
> +.SH DESCRIPTION
> +The
> +.B evs_context_set
> +function is used to set the context variable for a evs instance. It has no
> +meaning insire libevs itself and will not be touched by the library. It can
> +be retrieved using
> +.B evs_context_get(3)
> +.SH RETURN VALUE
> +This call returns the EVS_OK value if successful, otherwise an error is
> returned.
> +.PP
> +.SH ERRORS
> +The errors are undocumented.
> +.SH "SEE ALSO"
> +.BR evs_overview (8),
> +.BR evs_initialize (3),
> +.BR evs_finalize (3),
> +.BR evs_fd_get (3),
> +.BR evs_dispatch (3),
> +.BR evs_join (3),
> +.BR evs_leave (3),
> +.BR evs_mcast_joined (3),
> +.BR evs_mcast_groups (3),
> +.BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> +.PP
> Index: man/votequorum_overview.8
> ===================================================================
> --- man/votequorum_overview.8 (wersja 2323)
> +++ man/votequorum_overview.8 (kopia robocza)
> @@ -79,4 +79,6 @@
> .BR votequorum_finalize (3),
> .BR votequorum_fd_get (3),
> .BR votequorum_dispatch (3),
> +.BR votequorum_context_get (3),
> +.BR votequorum_context_set (3),
> .PP
> Index: man/cpg_local_get.3
> ===================================================================
> --- man/cpg_local_get.3 (wersja 2323)
> +++ man/cpg_local_get.3 (kopia robocza)
> @@ -58,11 +58,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_leave.3
> ===================================================================
> --- man/cpg_leave.3 (wersja 2323)
> +++ man/cpg_leave.3 (kopia robocza)
> @@ -64,10 +64,14 @@
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> .BR cpg_join (3),
> +.BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_join.3
> ===================================================================
> --- man/cpg_join.3 (wersja 2323)
> +++ man/cpg_join.3 (kopia robocza)
> @@ -98,11 +98,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_zcb_free.3
> ===================================================================
> --- man/cpg_zcb_free.3 (wersja 2323)
> +++ man/cpg_zcb_free.3 (kopia robocza)
> @@ -62,11 +62,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> -.BR cpg_join (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_mcast_joined (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/cpg_context_get.3
> ===================================================================
> --- man/cpg_context_get.3 (wersja 2323)
> +++ man/cpg_context_get.3 (kopia robocza)
> @@ -52,13 +52,17 @@
> .BR cpg_overview (8),
> .BR cpg_initialize (3),
> .BR cpg_finalize (3),
> +.BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> .BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_context_set (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
> +
> .PP
> Index: man/evs_finalize.3
> ===================================================================
> --- man/evs_finalize.3 (wersja 2323)
> +++ man/evs_finalize.3 (kopia robocza)
> @@ -61,4 +61,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/evs_initialize.3
> ===================================================================
> --- man/evs_initialize.3 (wersja 2323)
> +++ man/evs_initialize.3 (kopia robocza)
> @@ -137,4 +137,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/cpg_zcb_alloc.3
> ===================================================================
> --- man/cpg_zcb_alloc.3 (wersja 2323)
> +++ man/cpg_zcb_alloc.3 (kopia robocza)
> @@ -70,11 +70,15 @@
> .BR cpg_finalize (3),
> .BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> +.BR cpg_join (3),
> .BR cpg_leave (3),
> -.BR cpg_join (3),
> -.BR cpg_membership_get (3),
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> +.BR cpg_mcast_joined (3),
> +.BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> .BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_get (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
>
> .PP
> Index: man/evs_mcast_groups.3
> ===================================================================
> --- man/evs_mcast_groups.3 (wersja 2323)
> +++ man/evs_mcast_groups.3 (kopia robocza)
> @@ -159,4 +159,6 @@
> .BR evs_join (3),
> .BR evs_mcast_joined (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/cpg_context_set.3
> ===================================================================
> --- man/cpg_context_set.3 (wersja 2323)
> +++ man/cpg_context_set.3 (kopia robocza)
> @@ -54,13 +54,16 @@
> .BR cpg_overview (8),
> .BR cpg_initialize (3),
> .BR cpg_finalize (3),
> +.BR cpg_fd_get (3),
> .BR cpg_dispatch (3),
> .BR cpg_join (3),
> .BR cpg_leave (3),
> .BR cpg_mcast_joined (3),
> .BR cpg_membership_get (3)
> +.BR cpg_zcb_alloc (3)
> +.BR cpg_zcb_free (3)
> +.BR cpg_zcb_mcast_joined (3)
> .BR cpg_context_get (3)
> -.BR cpg_zcb_alloc (3),
> -.BR cpg_zcb_free (3),
> -.BR cpg_zcb_mcast_joined (3)
> +.BR cpg_context_set (3)
> +.BR cpg_local_get (3)
> .PP
> Index: man/evs_overview.8
> ===================================================================
> --- man/evs_overview.8 (wersja 2323)
> +++ man/evs_overview.8 (kopia robocza)
> @@ -177,5 +177,7 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
>
> .PP
> Index: man/votequorum_context_get.3
> ===================================================================
> --- man/votequorum_context_get.3 (wersja 0)
> +++ man/votequorum_context_get.3 (wersja 0)
> @@ -0,0 +1,58 @@
> +.\"/*
> +.\" * Copyright (c) 2007 Red Hat, Inc.
> +.\" *
> +.\" * All rights reserved.
> +.\" *
> +.\" * Author: Patrick Caulfield <[email protected]>
> +.\" *
> +.\" * This software licensed under BSD license, the text of which follows:
> +.\" *
> +.\" * Redistribution and use in source and binary forms, with or without
> +.\" * modification, are permitted provided that the following conditions are
> met:
> +.\" *
> +.\" * - Redistributions of source code must retain the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer.
> +.\" * - Redistributions in binary form must reproduce the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer in the
> documentation
> +.\" * and/or other materials provided with the distribution.
> +.\" * - Neither the name of the MontaVista Software, Inc. nor the names of
> its
> +.\" * contributors may be used to endorse or promote products derived from
> this
> +.\" * software without specific prior written permission.
> +.\" *
> +.\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS"
> +.\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> +.\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
> BE
> +.\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +.\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +.\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> +.\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +.\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> +.\" * THE POSSIBILITY OF SUCH DAMAGE.
> +.\" */
> +.TH VOTEQUORUM_CONTEXT_GET 3 2004-08-31 "corosync Man Page" "Corosync
> Cluster Engine Programmer's Manual"
> +.SH NAME
> +votequorum_context_get \- Gets the context variable for a VOTEQUORUM instance
> +.SH SYNOPSIS
> +.B #include <corosync/votequorum.h>
> +.sp
> +.BI "int votequorum_context_get(votequorum_handle_t " handle ", void **"
> context ");
> +.SH DESCRIPTION
> +The
> +.B votequorum_context_get
> +function is used to retrieve the context variable previously stored using
> +.B votequorum_context_set(3)
> +.SH RETURN VALUE
> +This call returns the VOTEQUORUM_OK value if successful, otherwise an error
> is returned.
> +.PP
> +.SH ERRORS
> +The errors are undocumented.
> +.SH "SEE ALSO"
> +.BR votequorum_initialize (3),
> +.BR votequorum_finalize (3),
> +.BR votequorum_fd_get (3),
> +.BR votequorum_dispatch (3),
> +.BR votequorum_context_get (3),
> +.BR votequorum_context_set (3),
> +.PP
> Index: man/confdb_context_get.3
> ===================================================================
> --- man/confdb_context_get.3 (wersja 0)
> +++ man/confdb_context_get.3 (wersja 0)
> @@ -0,0 +1,71 @@
> +.\"/*
> +.\" * Copyright (c) 2007 Red Hat, Inc.
> +.\" *
> +.\" * All rights reserved.
> +.\" *
> +.\" * Author: Patrick Caulfield <[email protected]>
> +.\" *
> +.\" * This software licensed under BSD license, the text of which follows:
> +.\" *
> +.\" * Redistribution and use in source and binary forms, with or without
> +.\" * modification, are permitted provided that the following conditions are
> met:
> +.\" *
> +.\" * - Redistributions of source code must retain the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer.
> +.\" * - Redistributions in binary form must reproduce the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer in the
> documentation
> +.\" * and/or other materials provided with the distribution.
> +.\" * - Neither the name of the MontaVista Software, Inc. nor the names of
> its
> +.\" * contributors may be used to endorse or promote products derived from
> this
> +.\" * software without specific prior written permission.
> +.\" *
> +.\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS"
> +.\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> +.\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
> BE
> +.\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +.\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +.\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> +.\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +.\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> +.\" * THE POSSIBILITY OF SUCH DAMAGE.
> +.\" */
> +.TH CONFDB_CONTEXT_GET 3 2004-08-31 "corosync Man Page" "Corosync Cluster
> Engine Programmer's Manual"
> +.SH NAME
> +confdb_context_get \- Gets the context variable for a CONFDB instance
> +.SH SYNOPSIS
> +.B #include <corosync/confdb.h>
> +.sp
> +.BI "int confdb_context_get(confdb_handle_t " handle ", void **" context ");
> +.SH DESCRIPTION
> +The
> +.B confdb_context_get
> +function is used to retrieve the context variable previously stored using
> +.B confdb_context_set(3)
> +.SH RETURN VALUE
> +This call returns the CONFDB_OK value if successful, otherwise an error is
> returned.
> +.PP
> +.SH ERRORS
> +The errors are undocumented.
> +.SH "SEE ALSO"
> +.BR confdb_overview (8),
> +.BR confdb_initialize (3),
> +.BR confdb_finalize (3),
> +.BR confdb_fd_get (3),
> +.BR confdb_dispatch (3),
> +.BR confdb_object_create (3),
> +.BR confdb_object_destroy (3),
> +.BR confdb_object_parent_get (3),
> +.BR confdb_key_create (3),
> +.BR confdb_key_delete (3),
> +.BR confdb_key_get (3),
> +.BR confdb_key_replace (3),
> +.BR confdb_object_find_start (3),
> +.BR confdb_object_find (3),
> +.BR confdb_object_iter_start (3),
> +.BR confdb_object_iter (3),
> +.BR confdb_key_iter_start (3),
> +.BR confdb_key_iter (3),
> +
> +.PP
> Index: man/votequorum_context_set.3
> ===================================================================
> --- man/votequorum_context_set.3 (wersja 0)
> +++ man/votequorum_context_set.3 (wersja 0)
> @@ -0,0 +1,60 @@
> +.\"/*
> +.\" * Copyright (c) 2007 Red Hat, Inc.
> +.\" *
> +.\" * All rights reserved.
> +.\" *
> +.\" * Author: Patrick Caulfield <[email protected]>
> +.\" *
> +.\" * This software licensed under BSD license, the text of which follows:
> +.\" *
> +.\" * Redistribution and use in source and binary forms, with or without
> +.\" * modification, are permitted provided that the following conditions are
> met:
> +.\" *
> +.\" * - Redistributions of source code must retain the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer.
> +.\" * - Redistributions in binary form must reproduce the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer in the
> documentation
> +.\" * and/or other materials provided with the distribution.
> +.\" * - Neither the name of the MontaVista Software, Inc. nor the names of
> its
> +.\" * contributors may be used to endorse or promote products derived from
> this
> +.\" * software without specific prior written permission.
> +.\" *
> +.\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS"
> +.\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> +.\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
> BE
> +.\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +.\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +.\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> +.\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +.\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> +.\" * THE POSSIBILITY OF SUCH DAMAGE.
> +.\" */
> +.TH VOTEQUORUM_CONTEXT_SET 3 2004-08-31 "corosync Man Page" "Corosync
> Cluster Engine Programmer's Manual"
> +.SH NAME
> +votequorum_context_set \- Sets the context variable for a VOTEQUORUM instance
> +.SH SYNOPSIS
> +.B #include <corosync/votequorum.h>
> +.sp
> +.BI "int votequorum_context_set(votequorum_handle_t " handle ", void *"
> context ");
> +.SH DESCRIPTION
> +The
> +.B votequorum_context_set
> +function is used to set the context variable for a votequorum instance. It
> has no
> +meaning insire libvotequorum itself and will not be touched by the library.
> It can
> +be retrieved using
> +.B votequorum_context_get(3)
> +.SH RETURN VALUE
> +This call returns the VOTEQUORUM_OK value if successful, otherwise an error
> is returned.
> +.PP
> +.SH ERRORS
> +The errors are undocumented.
> +.SH "SEE ALSO"
> +.BR votequorum_initialize (3),
> +.BR votequorum_finalize (3),
> +.BR votequorum_fd_get (3),
> +.BR votequorum_dispatch (3),
> +.BR votequorum_context_get (3),
> +.BR votequorum_context_set (3),
> +.PP
> Index: man/evs_fd_get.3
> ===================================================================
> --- man/evs_fd_get.3 (wersja 2323)
> +++ man/evs_fd_get.3 (kopia robocza)
> @@ -65,4 +65,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/evs_membership_get.3
> ===================================================================
> --- man/evs_membership_get.3 (wersja 2323)
> +++ man/evs_membership_get.3 (kopia robocza)
> @@ -69,4 +69,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/Makefile.am
> ===================================================================
> --- man/Makefile.am (wersja 2323)
> +++ man/Makefile.am (kopia robocza)
> @@ -59,6 +59,8 @@
> confdb_object_find.3 \
> confdb_object_iter.3 \
> confdb_object_parent_get.3 \
> + confdb_context_get.3 \
> + confdb_context_set.3 \
> cpg_context_get.3 \
> cpg_context_set.3 \
> cpg_dispatch.3 \
> @@ -82,8 +84,12 @@
> evs_mcast_groups.3 \
> evs_mcast_joined.3 \
> evs_membership_get.3 \
> + evs_context_get.3 \
> + evs_context_set.3 \
> votequorum_dispatch.3 \
> votequorum_fd_get.3 \
> + votequorum_context_get.3 \
> + votequorum_context_set.3 \
> votequorum_finalize.3 \
> votequorum_getinfo.3 \
> votequorum_initialize.3 \
> Index: man/confdb_context_set.3
> ===================================================================
> --- man/confdb_context_set.3 (wersja 0)
> +++ man/confdb_context_set.3 (wersja 0)
> @@ -0,0 +1,72 @@
> +.\"/*
> +.\" * Copyright (c) 2007 Red Hat, Inc.
> +.\" *
> +.\" * All rights reserved.
> +.\" *
> +.\" * Author: Patrick Caulfield <[email protected]>
> +.\" *
> +.\" * This software licensed under BSD license, the text of which follows:
> +.\" *
> +.\" * Redistribution and use in source and binary forms, with or without
> +.\" * modification, are permitted provided that the following conditions are
> met:
> +.\" *
> +.\" * - Redistributions of source code must retain the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer.
> +.\" * - Redistributions in binary form must reproduce the above copyright
> notice,
> +.\" * this list of conditions and the following disclaimer in the
> documentation
> +.\" * and/or other materials provided with the distribution.
> +.\" * - Neither the name of the MontaVista Software, Inc. nor the names of
> its
> +.\" * contributors may be used to endorse or promote products derived from
> this
> +.\" * software without specific prior written permission.
> +.\" *
> +.\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS"
> +.\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
> THE
> +.\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
> BE
> +.\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +.\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +.\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> +.\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +.\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> +.\" * THE POSSIBILITY OF SUCH DAMAGE.
> +.\" */
> +.TH CONFDB_CONTEXT_SET 3 2004-08-31 "corosync Man Page" "Corosync Cluster
> Engine Programmer's Manual"
> +.SH NAME
> +confdb_context_set \- Sets the context variable for a CONFDB instance
> +.SH SYNOPSIS
> +.B #include <corosync/confdb.h>
> +.sp
> +.BI "int confdb_context_set(confdb_handle_t " handle ", void *" context ");
> +.SH DESCRIPTION
> +The
> +.B confdb_context_set
> +function is used to set the context variable for a confdb instance. It has no
> +meaning insire libconfdb itself and will not be touched by the library. It
> can
> +be retrieved using
> +.B confdb_context_get(3)
> +.SH RETURN VALUE
> +This call returns the CONFDB_OK value if successful, otherwise an error is
> returned.
> +.PP
> +.SH ERRORS
> +The errors are undocumented.
> +.SH "SEE ALSO"
> +.BR confdb_overview (8),
> +.BR confdb_initialize (3),
> +.BR confdb_finalize (3),
> +.BR confdb_fd_get (3),
> +.BR confdb_dispatch (3),
> +.BR confdb_object_create (3),
> +.BR confdb_object_destroy (3),
> +.BR confdb_object_parent_get (3),
> +.BR confdb_key_create (3),
> +.BR confdb_key_delete (3),
> +.BR confdb_key_get (3),
> +.BR confdb_key_replace (3),
> +.BR confdb_object_find_start (3),
> +.BR confdb_object_find (3),
> +.BR confdb_object_iter_start (3),
> +.BR confdb_object_iter (3),
> +.BR confdb_key_iter_start (3),
> +.BR confdb_key_iter (3),
> +.PP
> Index: man/evs_dispatch.3
> ===================================================================
> --- man/evs_dispatch.3 (wersja 2323)
> +++ man/evs_dispatch.3 (kopia robocza)
> @@ -98,4 +98,6 @@
> .BR evs_mcast_joined (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
> Index: man/evs_mcast_joined.3
> ===================================================================
> --- man/evs_mcast_joined.3 (wersja 2323)
> +++ man/evs_mcast_joined.3 (kopia robocza)
> @@ -132,4 +132,6 @@
> .BR evs_join (3),
> .BR evs_mcast_groups (3),
> .BR evs_mmembership_get (3)
> +.BR evs_context_get (3)
> +.BR evs_context_set (3)
> .PP
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais