PfDetachLocalDll()

Unload a local server

Synopsis:

#include <font_api.h>
int PfDetachLocalDll( fontdll_t dll );

Arguments:

dll
The local server context, returned by PfAttachLocalDll()

Library:

font

Description:

This function unloads a local font server dll. All resources associated with the provided fontdll_t context are deallocated. If a server thread is active, it will also terminate. If a fontsleuth thread is active, it will also terminate.

Returns:

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

Errors:

EFAULT Font dll context is NULL.

Examples:

See the examples for PfAttachLocalDll() and PfAssignDllCx().

Classification:

Photon

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

See also:

PfAttachLocalDll().

Fonts chapter of the Photon Programmer's Guide