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/


_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to