Skip to main content

Name

membership_subscribe

Synopsis

#include "hooks/msgc/membership_subscribe.h"

| void **membership_subscribe** ( | closure, |   | |   | mode, |   | |   | sender, |   | |   | sender_len, |   | |   | group, |   | |   | group_len, |   | |   | capabilities, |   | |   | capabilities_len, |   | |   | gid); |   |

void * <var class="pdparam">closure</var>; int <var class="pdparam">mode</var>; const char * <var class="pdparam">sender</var>; int <var class="pdparam">sender_len</var>; const char * <var class="pdparam">group</var>; int <var class="pdparam">group_len</var>; const char * <var class="pdparam">capabilities</var>; int <var class="pdparam">capabilities_len</var>; u_int32_t <var class="pdparam">gid</var>;

| int **has_msgc_membership_subscribe_hook** ( | ); |   |

| void **register_msgc_membership_subscribe_hook_first** ( | hook, |   | |   | closure); |   |

ec_hook_msgc_membership_subscribe_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **register_msgc_membership_subscribe_hook_last** ( | hook, |   | |   | closure); |   |

ec_hook_msgc_membership_subscribe_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **call_msgc_membership_subscribe_hook** ( | mode, |   | |   | sender, |   | |   | sender_len, |   | |   | group, |   | |   | group_len, |   | |   | capabilities, |   | |   | capabilities_len, |   | |   | gid); |   |

int <var class="pdparam">mode</var>; const char * <var class="pdparam">sender</var>; int <var class="pdparam">sender_len</var>; const char * <var class="pdparam">group</var>; int <var class="pdparam">group_len</var>; const char * <var class="pdparam">capabilities</var>; int <var class="pdparam">capabilities_len</var>; u_int32_t <var class="pdparam">gid</var>;

Description

Called when any MSGC membership event is received. mode means the following: 0: Leave message 1: Join message 2: GID update message (sender and capabilities will be empty in this case

Was this page helpful?