PreviousNext

Miscellaneous Declarations

The following are declarations for miscellaneous variables:

OM_workspace xdsWorkspace;

/* ...will contain handle to our "workspace" */


DS_feature featureList[] = {


{ OM_STRING(OMP_O_DS_BASIC_DIR_CONTENTS_PKG), OM_TRUE },

{ 0 }

};

/* ...list of service "packages" we will want from XDS */


OM_private_object session;

/* ...will contain handle to a bound-to directory session */



DS_status dsStatus;

/* ...status return from XDS calls */


OM_return_code omStatus;

/* ...status return from XOM calls */


OM_sint dummy;

/* ...for unsupported ds_read() argument */


OM_private_object readResultObject;

/* ...to receive entry information read from CDS by "ds_read()" */


OM_type I_want_entry_object[] = {DS_ENTRY, OM_NO_MORE_TYPES};

OM_type I_want_attribute_list[] = {DS_ATTRIBUTES, OM_NO_MORE_TYPES};

OM_type I_want_attribute_value[] = {DS_ATTRIBUTE_VALUES, OM_NO_MORE_TYPES};

/* ...arrays to pass to "om_get()" to extract subobjects */

/* from the result object returned by "ds_read()" */


OM_value_position number_of_descriptors;

/* ...to hold number of attribute descriptors returned */

/* by "om_get() */


OM_public_object entry;

/* ...to hold public object returned by "om_get()" */