diff --git a/include/ccnet.h b/include/ccnet.h index 7133ebc..d327d52 100644 --- a/include/ccnet.h +++ b/include/ccnet.h @@ -90,7 +90,7 @@ CcnetPeer *ccnet_get_default_relay (SearpcClient *client); GList *ccnet_get_peers_by_role (SearpcClient *client, const char *role); char *ccnet_get_binding_email (SearpcClient *client, const char *peer_id); -GList *ccnet_get_groups_by_user (SearpcClient *client, const char *user); +GList *ccnet_get_groups_by_user (SearpcClient *client, const char *user, int return_ancestors); GList *ccnet_get_org_groups_by_user (SearpcClient *client, const char *user, int org_id); GList * ccnet_get_group_members (SearpcClient *client, int group_id); diff --git a/lib/ccnet-rpc-wrapper.c b/lib/ccnet-rpc-wrapper.c index d394ff6..94b8ca6 100644 --- a/lib/ccnet-rpc-wrapper.c +++ b/lib/ccnet-rpc-wrapper.c @@ -181,14 +181,14 @@ ccnet_get_binding_email (SearpcClient *client, const char *peer_id) } GList * -ccnet_get_groups_by_user (SearpcClient *client, const char *user) +ccnet_get_groups_by_user (SearpcClient *client, const char *user, int return_ancestors) { if (!user) return NULL; return searpc_client_call__objlist ( client, "get_groups", CCNET_TYPE_GROUP, NULL, - 1, "string", user); + 2, "string", user, "int", return_ancestors); } GList *