All manifest constants defined in laygodef.h are defined with the same names and values in Laygo.pas. Therefore they can be used in Delphi 4 in exactly the way they are documented for the C language API. For instance, the C code:
if (state == lgo_STATE_DATA_TRANSFER_XON)
{
ConnectNotify();
}
else if (state == lgo_STATE_WAITING_FOR_REMOTE_CONFIRMATION)
{
DisconnectNotify();
}
else if (state == lgo_STATE_OPEN)
{
OpenNotify();
}
can be written in Delphi 4 as:
if state = STATE_DATA_TRANSFER_XON then
ConnectNotify()
else if state = STATE_WAITING_FOR_REMOTE_CONFIRMATION then
DisconnectNotify()
else if state = STATE_OPEN then
OpenNotify();