OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
sizeof mgmt_printstr/sizeof mgmt_printstr[0], /* Number of */
/* items in mgmt_printstr array. */
mgmt_printstr, /* An array of sec_acl_printstring_t struc- */
/* tures containing the printable repre- */
/* sentation of each specified permission. */
&mgmt_info, /* A single sec_acl_printstring_t contain- */
/* ing the name and short description for */
/* the given ACL manager. */
sec_acl_perm_control, /* Permission set needed to change */
/* an ACL. Constants like these are defined */
/* in <dce/aclbase.h>. */
sec_acl_perm_test, /* Permission set needed to test an ACL. */
resolver, /* Server function to get ACL UUID for a given */
/* object; for us it’s the */
/* sample_resolve_by_name() call, below. */
/* This routine is for the use of acl_edit: */
/* it allows acl_edit to receive an object */
/* name and come up with the ACL UUID; at */
/* least that’s what I think it’s for. */
NULL, /* Argument to pass to resolver function. */
0, /* Flags -- none here. */
status);
if (*status != error_status_ok)
{
print_server_error("dce_acl_register_object_type()", *status);
return;
}
/* Now register for the regular ACL... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_acl_register_object_type()"));
dce_acl_register_object_type(
*db_acl, /* Backing store where ACLs are to be stored. */
&sample_acl_mgr_uuid, /* Hard-coded at top of this file. */
sizeof sample_printstr/sizeof sample_printstr[0], /* Number */
/* of items in our printstring array. */
sample_printstr, /* An array of sec_acl_printstring_t */
/* structures containing the printable rep- */
/* resentation of each specified permis- */
/* sion set. */
&sample_info, /* A single sec_acl_printstring_t contain- */
/* ing the name and short description for */
/* the manager we’re registering. */
sec_acl_perm_control, /* Permission set needed to change an */
/* ACL. */
sec_acl_perm_test, /* The permission you need to test an */
/* ACL maintained by this manager. */
A 46 Tandem Computers Incorporated 124246