Contents

getPathComponent

Create a path component for a registry entry.

Declaration

virtual bool getPathComponent(
 char *path,
 int *length, 
 const IORegistryPlane *plane ) const;

Parameters

  • path:

    A char buffer allocated by the caller.

  • length:

    An in/out parameter - the caller sets the length of the buffer available, and getPathComponent returns the total length of the path component copied to the buffer.

  • plane:

    The plane object.

Return Value

true if the path fits into the supplied buffer or false on a overflow.

Overview

Each component of a path created with getPath is created with getPathComponent. The default implementation concatenates the entry's name in the the plane, with the "at" symbol and the location string of the entry in the plane if it has been set.

See Also

Miscellaneous