Supervisor Control API

API Reference

Supervisor API for controlling the framework and applications. This API is only available to privileged users.

Binding

You can use a definition .adef file to bind your client-side app and component to the server-side Supervisor Control service.

This code sample shows how to bind an app to this service:

bindings
{
myExe.myComp.le_sup_ctrl -> <root>.le_sup_ctrl
}

See Application Definition .adef for details.

Start App

Use le_sup_ctrl_StartApp() (const char * appName) to automatically start an app.

The code sample shows how to use the Supervisor Control service to start an app:

where myApp is the name of the app.

Stop App

Use le_sup_ctrl_StopApp() to automatically stop an app.

This code sample shows how to use the Supervisor Control service to stop an app, where appAplication.app is your app's actual name:

le_result_t result = le_sup_ctrl_StopApp("myApp");

where myApp is the name of the app.