From: Daniel KouĊ™il Date: Tue, 19 May 2009 22:26:24 +0000 (+0000) Subject: change_acl code adapted to the new API using generated types X-Git-Tag: glite-lb-client_R_4_0_2_2~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5f8aa3d0dca650035ea1d0b6f4ebaba81747a106;p=jra1mw.git change_acl code adapted to the new API using generated types --- diff --git a/org.glite.lb.client/examples/change_acl.c b/org.glite.lb.client/examples/change_acl.c index feb4ba4..24a1d4d 100644 --- a/org.glite.lb.client/examples/change_acl.c +++ b/org.glite.lb.client/examples/change_acl.c @@ -22,10 +22,10 @@ int main(int argc, char *argv[]) { edg_wll_Context ctx; - int operation = EDG_WLL_ACL_ADD; - int permission = EDG_WLL_PERM_READ; - int permission_type = EDG_WLL_PERM_ALLOW; - int user_id_type = EDG_WLL_USER_SUBJECT; + int operation = EDG_WLL_CHANGEACL_ADD; + int permission = EDG_WLL_CHANGEACL_READ; + int permission_type = EDG_WLL_CHANGEACL_ALLOW; + int user_id_type = EDG_WLL_CHANGEACL_DN; edg_wlc_JobId jobid; int opt; int ret; @@ -37,9 +37,9 @@ main(int argc, char *argv[]) while ((opt=getopt(argc, argv, "rdg")) != -1) switch(opt) { - case 'r': operation = EDG_WLL_ACL_REMOVE; break; - case 'd': permission_type = EDG_WLL_PERM_DENY; break; - case 'g': user_id_type = EDG_WLL_USER_VOMS_GROUP; break; + case 'r': operation = EDG_WLL_CHANGEACL_REMOVE; break; + case 'd': permission_type = EDG_WLL_CHANGEACL_DENY; break; + case 'g': user_id_type = EDG_WLL_CHANGEACL_GROUP; break; default: usage(argv[0]); return 1;