mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-09-04 22:30:36 +00:00
Change wrapper function of get_groups().
This commit is contained in:
@@ -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);
|
||||
|
@@ -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 *
|
||||
|
Reference in New Issue
Block a user