We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


Gets the string associated with a layer's unique identity.


#include <prio.h>

const char* PR_GetNameForIdentity(PRDescIdentity ident);


The function has the following parameter:

A layer's identity.


The function returns one of the following values:

  • If successful, the function returns a pointer to the string associated with the specified layer.
  • If unsuccessful, the function returns NULL.


A string may be associated with a layer when the layer is created. The string is copied by the runtime, and PR_GetNameForIdentity returns a pointer to that copy.

Document Tags and Contributors

 Contributors to this page: teoli, alecananian
 Last updated by: teoli,