PtFepCmd()

Control a Front-End Processor (FEP) from an application

Synopsis:

int PtFepCmd( PtWidget_t *widget,
              long cmd,
              long sub_cmd,
              char const *data );

Arguments:

widget
A pointer to the widget on which you want any text-input boxes to appear.
cmd
The command that you want to send to the FEP; one of:
sub_cmd
Not currently used; set this argument to 0.
data
A pointer to any extra data that the specific command needs.

Library:

ph

Description:

PtFepCmd() lets you control a Photon front-end processor (FEP) from an application. This function lets you create your own front-end processor that includes all of the functionality of the GUI versions of the FEPs.

To use this function, start the FEP with the -h option to suppress the GUI interface. For more information, see the documentation for cpim and vpim.

Returns:

0
Success.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

cpim, vpim