[ClusterLabs] Definition of function pointer cpg_totem_confchg_fn_t
Jan Friesse
jfriesse at redhat.com
Tue Oct 15 02:52:29 EDT 2019
DaShi,
> typedef void (*cpg_totem_confchg_fn_t) (
> cpg_handle_t handle,
> struct cpg_ring_id ring_id,
> uint32_t member_list_entries,
> const uint32_t *member_list);
>
> Should "struct cpg_ring_id ring_id" be "struct cpg_ring_id *ring_id"?
Nope, ringid is really passed as a structure, not a pointer.
https://github.com/corosync/corosync/blob/ee8b8993d98b3f6af9c058194228fc534fcd0796/test/testcpg.c#L212
is an example how to use this callback.
Regards,
Honza
>
> Regards,
> Dashi Cao
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>
More information about the Users
mailing list