Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfallocdetailscx.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfallocdetailscx.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfallocdetailscx.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfallocdetailscx.html on line 8

PfAllocDetailsCx()

Retrieve render buffer details

Synopsis:

#include <font_api.h>

int PfAllocDetailsCx( struct _Pf_ctrl * context,
                      char const ** name,
                      long * size );

Arguments:

context
A pointer to the font context to use, returned by PfAttachCx() or PfAttachDllCx().
name
A pointer to a location where the function stores the path and name of the shared memory, if context is not NULL.
size
A pointer to a long where the function stores the size, in bytes, of the render buffer.

Library:

font

Description:

This function retrieves the shared memory path and size of the render buffer associated with a font context. If the render buffer was allocated from the heap, the function sets name to NULL.

Returns:

0
Success
-1
An error occurred (errno is set).

Errors:

EFAULT
Font context is NULL.

Examples:

See the example for PfAttachDllCx().

Classification:

Photon

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

PfAttachCx(), PfAttachDllCx()

Fonts chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfallocdetailscx.html on line 131

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfallocdetailscx.html on line 131