Previous section.

DCE 1.1: Authentication and Security Services
Copyright © 1997 The Open Group

NAME

sec_rgy_attr_sch_cursor_init-Initialize and allocate a cursor used with the sec_rgy_attr_sch_scan() call

SYNOPSIS

#include <dce/sec_rgy_attr_sch.h>

void sec_rgy_attr_cursor_init(
    sec_rgy_handle_t context,
    sec_attr_component_name_t schema_name, 
    unsigned32 *cur_num_entries,
    sec_attr_cursor_t *cursor,
    error_status_t status);

PARAMETERS

Input

context

An opaque handle bound to a registry server. Use sec_rgy_site_open() to acquire a bound handle.

schema_name

Reserved for future use.

Output

cur_num_entries

A pointer to an unsigned 32-bit integer that specifies the total number of entries contained in the schema at the time of this call.

cursor

A pointer to a sec_attr_cursor_t that is initialized to the first entry in the the schema.

status

A pointer to the completion status. On successful completion, the call returns error_status_ok. Otherwise, it returns an error.

DESCRIPTION

The sec_rgy_attr_sch_cursor_init() call initializes and allocates resources to a cursor used with the sec_rgy_attr_sch_scan() call. This call makes remote calls to initialize the cursor. To limit the number of remote calls, use the sec_rgy_attr_sch_cursor_alloc() call to allocate cursor, but not initialize it. Be aware, however, that the the sec_rgy_attr_sch_cursor_init() call supplies the total number of entries found in the schema as an output parameter; the sec_rgy_attr_sch_cursor_alloc() call does not.

If the cursor input to sec_rgy_attr_sch_scan() has not been initialized, the sec_rgy_attr_sch_scan() call will initialize it; if it has been initialized, sec_rgy_attr_sch_scan() advances it.

Permissions Required
None.

FILES

/usr/include/dce/sec_rgy_attr_sch.idl

The idl file from which dce/sec_rgy_attr_sch.h was derived.

ERRORS

error_status_ok

The call was successful.

sec_attr_no_memory

Unable to allocate memory.

sec_attr_svr_unavailable

Server is unavailable.

sec_attr_unauthorized

Unauthorized to perform this operation.

SEE ALSO

Functions: sec_rgy_attr_sch_cursor_release(), sec_rgy_attr_sch_scan(), sec_rgy_attr_sch_cursor_alloc().
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