1
0
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:
cuihaikuo
2018-05-15 11:26:01 +08:00
parent 7bb0f9ccc3
commit c29fa12ca1
2 changed files with 3 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ CcnetPeer *ccnet_get_default_relay (SearpcClient *client);
GList *ccnet_get_peers_by_role (SearpcClient *client, const char *role); GList *ccnet_get_peers_by_role (SearpcClient *client, const char *role);
char *ccnet_get_binding_email (SearpcClient *client, const char *peer_id); 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_org_groups_by_user (SearpcClient *client, const char *user, int org_id);
GList * GList *
ccnet_get_group_members (SearpcClient *client, int group_id); ccnet_get_group_members (SearpcClient *client, int group_id);

View File

@@ -181,14 +181,14 @@ ccnet_get_binding_email (SearpcClient *client, const char *peer_id)
} }
GList * 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) if (!user)
return NULL; return NULL;
return searpc_client_call__objlist ( return searpc_client_call__objlist (
client, "get_groups", CCNET_TYPE_GROUP, NULL, client, "get_groups", CCNET_TYPE_GROUP, NULL,
1, "string", user); 2, "string", user, "int", return_ancestors);
} }
GList * GList *