PgPHookRegister()

Load a Photon hook module

Synopsis:

int PgPHookRegister( char const *phook );

Arguments:

phook
The name of the hook module that you want to load; one of:

Library:

ph

Description:

This function loads a Photon hook module, such as those that rotate the display, “on the fly.” No surface or layer is lost during the installation of the module.


Note: You can also use the phook option in the configuration file for io-display; for more information, see the Utilities Reference.

To remove a currently installed hook module, invoke PgPHookRegister() with the PHOOK_DFLT parameter.

Returns:

0
Success.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

io-display; in the Utilities Reference