PhRegisterTransportType()

Add a new transport type to the transport registry

Synopsis:

int PhRegisterTransportType( 
       PhTransportRegEntry_t *ref );

Library:

ph

Description:

This function adds a the transport type definition pointed to by ref to the transport registry. For details on defining your own transport types, see Registering new transport types in the Drag and Drop chapter of the Photon Programmer's Guide.

Returns:

0
The new type was added successfully.
-1
The new type couldn't be added because there wasn't enough memory, the type was already defined, or ref was NULL.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhFindTransportType(), PhFreeTransportType(), PhMallocUnpack(), PhPackEntry(), PhTransportRegEntry_t, PhTransportType(), PhUnpack()

Registering new transport types in the Drag and Drop chapter of the Photon Programmer's Guide