OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
/* Using the UUID "key" that we just retrieved, get the object_data */
/* for the desired object (note that the data that one retrieves */
/* with this routine can be anything; it depends on what we are */
/* using the backing store for)... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_db_fetch_by_uuid()"));
dce_db_fetch_by_uuid(db_object, up, /* (void *) */ &object_data, st);
if (*st != error_status_ok)
{
print_server_error("dce_db_fetch_by_uuid()", *st);
return;
}
/* Now, depending on the kind of ACL we’re hunting for (i.e. ob- */
/* ject, container, etc.), extract its UUID from the object’s */
/* header structure... */
switch (sec_acl_type)
{
case 1:
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug8,
"Case == 1"));
*acl_uuid = object_data.s_hdr.tagged_union.h.def_object_acl;
break;
case 2:
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug8,
"Case == 2"));
*acl_uuid = object_data.s_hdr.tagged_union.h.def_container_acl;
break;
default:
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug8,
"Case == default"));
*acl_uuid = object_data.s_hdr.tagged_union.h.acl_uuid;
}
/* Find out some other interesting stuff... */
owner_uuid = object_data.s_hdr.tagged_union.h.owner_id;
group_uuid = object_data.s_hdr.tagged_union.h.group_id;
uuid_to_string(&owner_uuid, &uuid_string, st);
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug8,
"Owner UUID == %s", uuid_string));
rpc_string_free(&uuid_string, st);
uuid_to_string(&group_uuid, &uuid_string, st);
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug8,
"Group UUID == %s", uuid_string));
rpc_string_free(&uuid_string, st);
A 64 Tandem Computers Incorporated 124246