From 5f8aa3d0dca650035ea1d0b6f4ebaba81747a106 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Tue, 19 May 2009 22:26:24 +0000 Subject: [PATCH] change_acl code adapted to the new API using generated types --- org.glite.lb.client/examples/change_acl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; -- 1.8.2.3