Bug 1885489 - Part 9: Add SnapshotIterator::readObject(). r=iain
[gecko.git] / docs / nspr / reference / pr_getidentitieslayer.rst
blob9a15f9b60d3441fd05ead01e08c10f5b810523ce
1 PR_GetIdentitiesLayer
2 =====================
4 Finds the layer with the specified identity in the specified stack of
5 layers.
8 Syntax
9 ------
11 .. code::
13    #include <prio.h>
15    PRFileDesc* PR_GetIdentitiesLayer(
16      PRFileDesc* stack,
17      PRDescIdentity id);
20 Parameters
21 ~~~~~~~~~~
23 The function has the following parameters:
25 ``stack``
26    A pointer to a :ref:`PRFileDesc` object that is a layer in a stack of
27    layers.
28 ``id``
29    The identity of the specified layer.
32 Returns
33 ~~~~~~~
35 The function returns one of the following values:
37 -  If successful, a pointer to a file descriptor of the layer with the
38    specified identity in the given stack of layers.
39 -  If not successful, ``NULL``.
42 Description
43 -----------
45 The stack of layers to be searched is specified by the fd parameter,
46 which is a layer in the stack. Both the layers underneath fd and the
47 layers above fd are searched to find the layer with the specified
48 identity.