rpc_ns_entry_object_inq_next- returns one object at a time from an entry in the name service database
#include <dce/rpc.h>
void rpc_ns_entry_object_inq_next(
rpc_ns_handle_t inquiry_context,
uuid_t *obj_uuid,
unsigned32 *status);
Input
- inquiry_context
- Specifies an inquiry context. The application obtains the inquiry context by calling the rpc_ns_entry_object_inq_begin() routine.
Output
- obj_uuid
- Returns an exported object UUID.
- status
- Returns the status code from this routine. The status code indicates whether the routine completed successfully, or if not, why not.
Possible status codes and their meanings include:
- rpc_s_ok
- Success.
- rpc_s_entry_not_found
Name service entry not found.
- rpc_s_not_rpc_entry
Not an RPC entry.
- rpc_s_class_version_mismatch
Name service entry has incompatible RPC class version.
- rpc_s_name_service_unavailable
Name service unavailable.
- rpc_s_no_more_members
No more members.
- rpc_s_no_ns_permission
No permission for name service operation.
The rpc_ns_entry_object_inq_next() routine returns one of the object UUIDs exported to an entry in the name service database. The entry_name argument in the rpc_ns_entry_object_inq_begin() routine specifies the entry.An application can view all of the exported object UUIDs by repeatedly calling the rpc_ns_entry_object_inq_next() routine. When all the object UUIDs are viewed, this routine returns an rpc_s_no_more_members status. The returned object UUIDs are returned in unspecified order.
The application supplies the memory for the object UUID returned in obj_uuid.
After viewing the object UUIDs, the application must call the rpc_ns_entry_object_inq_done() routine to delete the inquiry context.
The order in which routine rpc_ns_entry_object_inq_next() returns object UUIDs can be different for each viewing of an entry. This means that the order in which an application receives object UUIDs can be different each time the application is run.
Permissions Required
The application needs read permission for the target name service entry.
None.
rpc_ns_binding_export()
rpc_ns_entry_object_inq_begin()
rpc_ns_entry_object_inq_done()
rpc_ns_mgmt_set_exp_age().
Please note that the html version of this specification may contain formatting aberrations. The definitive version is available as an electronic publication on CD-ROM from The Open Group.
Contents | Next section | Index |