OSF DCE Application Development Guide--Introduction and Style Guide

A Sample Application
#include <dce/dce.h>
#include <dce/dce_cf.h>
#include <dce/dce_error.h>
#include <dce/rpc.h>
#include <dce/sec_login.h>
#include <dce/keymgmt.h>
#include <dce/uuid.h>
#include <dce/exc_handling.h>
#include <dce/dce_msg.h>
#include <dce/dbif.h>
#include <dce/aclif.h>
#include <dce/dceacl.h>
#include <dce/pgo.h>
#include <dce/dcesvcmsg.h>
#include <dce/svcremote.h>
/* Serviceability sams-generated header files... */
#include "dcesmpsvc.h"
#include "dcesmpmsg.h"
#include "dcesmpmac.h"
/* Following is our IDL-generated header... */
#include "sample_bind.h"
#include "sample_server.h"
/* Declaration of the bind interface’s routines’ entry point vector. The */
/* actual addresses are filled in at the bottom of this file... */
struct sample_bind_v1_0_epv_t sample_bind_epv;
/******
*
* name_to_object -- The remote bind operation implementation code:
* receives a name, returns an object UUID.
*
* Essentially what this routine is is a remote operation that doesn’t
* actually "do" anything; it just returns a given object’s UUID.
*
*
******/
void
name_to_object(handle_t binding_h, /* The binding that got us here. */
unsigned_char_t *component, /* The backing store’s key. */
uuid_t *object_uuid, /* For the UUID we will return. */
uuid_t *mgr_type_uuid, /* Type Manager UUID. */
unsigned32 *st /* Status. */
)
124246 Tandem Computers Incorporated A 71