Manual page for fn_ctx_get_ref(3N)
fn_ctx_get_ref - return a context's reference
SYNOPSIS
cc
[ flag ... ] file ...
-lxfn
[ library ... ]
#include <xfn/xfn.h>
FN_ref_t *fn_ctx_get_ref(const FN_ctx_t *ctx,
FN_status_t *status);
MT-LEVEL
Safe.
DESCRIPTION
This operation returns a reference to the supplied context object.
RETURN VALUE
fn_ctx_get_ref()
returns a pointer to an FN_ref_t object if the operation succeeds, it
returns 0 if the operation fails.
ERRORS
fn_ctx_get_ref()
sets
status
as described in
FN_status_t.3n
and
xfn_status_codes.3n
The following status code is of particular relevance to this operation:
- FN_E_OPERATION_NOT_SUPPORTED
-
Using the
fn_ctx_get_ref()
operation on the Initial Context
returns this status code.
APPLICATION USAGE
fn_ctx_get_ref()
cannot be used on the Initial Context.
fn_ctx_get_ref()
can be used on contexts bound in the Initial Context
(in other words, the bindings in the Initial Context have references).
If the context handle was created earlier using the
fn_ctx_handle_from_ref()
operation, the reference returned by the
fn_ctx_get_ref()
operation may not necessarily be exactly the same in content
as that originally supplied.
For example,
fn_ctx_handle_from_ref()
may construct the context handle from one address from the list of addresses.
The context implementation may return with a call to
fn_ctx_get_ref()
only that address, or a more complete list of addresses than
what was supplied in
fn_ctx_handle_from_ref().
SEE ALSO
FN_ctx_t.3n
FN_ref_t.3n
FN_status_t.3n
fn_ctx_handle_from_initial.3n
fn_ctx_handle_from_ref.3n
xfn_status_codes.3n
xfn.3n
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97