OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Entering server_export_objects()"));
*status = error_status_ok;
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling rpc_ep_register()"));
rpc_ep_register(interface, binding_vector, object_uuid_vector,
annotation, status);
if (*status != error_status_ok)
{
print_server_error("rpc_ep_register()", *status);
return;
}
if (object_uuid_vector)
{
if (entryname_vector->count != object_uuid_vector->count)
{
dce_svc_printf(BAD_ENTRYNAME_COUNT_MSG);
return;
}
object_uuid.count = 1;
/* Export objects one at a time to CDS entries... */
for (i = 0; i < entryname_vector->count; i++)
{
dce_svc_printf(EXPORTING_TO_MSG, entryname_vector->name[i]);
object_uuid.uuid[0] = object_uuid_vector->uuid[i];
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling rpc_ns_binding_export()"));
rpc_ns_binding_export(rpc_c_ns_syntax_default,
entryname_vector->name[i],
interface,
binding_vector,
(uuid_vector_t*)&object_uuid,
status);
if (*status != error_status_ok)
{
print_server_error("rpc_ns_binding_export()",
*status);
return;
}
}
}
A− 24 Tandem Computers Incorporated 124246