OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
dce_db_store_by_uuid(db_object,
object_uuid,
(void *)&object_data,
status);
if (*status != error_status_ok)
{
print_server_error("dce_db_store_by_uuid()", *status);
return;
}
/* Finally, store the object UUID keyed by the object ("residual") */
/* name... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_db_store_by_name(%s)", object_name));
dce_db_store_by_name(db_name, (char *)object_name, object_uuid, status);
if (*status != error_status_ok)
{
print_server_error("dce_db_store_by_name()", *status);
return;
}
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Exiting server_store_acl()"));
}
/******
*
* server_acl_mgr_setup -- Open and, if necessary, create the ACL-related
* databases, i.e.:
*
* 1. Set up a default ACL manager for the management interface.
*
* 2. Create an initial ACL. For servers that dynamically create
* objects, this ACL is intended to be used as the ACL on the
* "container" in which objects are created. If the server
* manages static objects, this ACL can be used for some other
* purpose.
*
* Note that all the container-related code is actually in the
* server_store_acl() routine above.
*
* Called from main().
*
******/
124246 Tandem Computers Incorporated A− 41