Logo Search packages:      
Sourcecode: ladish version File versions  Download package

Classes | Defines | Typedefs | Functions | Variables

app_supervisor.h File Reference

#include "common.h"
#include "common.h"
Include dependency graph for app_supervisor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ladish_app_supervisor_tag
struct  ladish_app_tag

Defines

#define LADISH_APP_STATE_KILL   3
 app is being force killed
#define LADISH_APP_STATE_STARTED   1
 app is running and not stopping
#define LADISH_APP_STATE_STOPPED   0
 app is stopped (not running)
#define LADISH_APP_STATE_STOPPING   2
 app is stopping

Typedefs

typedef struct ladish_app_tagladish_app_handle
typedef bool(* ladish_app_supervisor_enum_callback )(void *context, const char *name, bool running, const char *command, bool terminal, uint8_t level, pid_t pid, const uuid_t uuid)
typedef struct
ladish_app_supervisor_tag
ladish_app_supervisor_handle
typedef void(* ladish_app_supervisor_on_app_renamed_callback )(void *context, const uuid_t uuid, const char *old_name, const char *new_app_name)

Functions

void ladish_app_add_pid (ladish_app_handle app_handle, pid_t pid)
void ladish_app_del_pid (ladish_app_handle app_handle, pid_t pid)
const char * ladish_app_get_commandline (ladish_app_handle app_handle)
const char * ladish_app_get_name (ladish_app_handle app_handle)
unsigned int ladish_app_get_state (ladish_app_handle app_handle)
void ladish_app_get_uuid (ladish_app_handle app_handle, uuid_t uuid)
bool ladish_app_is_running (ladish_app_handle app_handle)
void ladish_app_kill (ladish_app_handle app_handle)
void ladish_app_save_L1 (ladish_app_handle app_handle)
void ladish_app_stop (ladish_app_handle app_handle)
ladish_app_handle ladish_app_supervisor_add (ladish_app_supervisor_handle supervisor_handle, const char *name, uuid_t uuid, bool autorun, const char *command, bool terminal, uint8_t level)
void ladish_app_supervisor_autorun (ladish_app_supervisor_handle supervisor_handle)
bool ladish_app_supervisor_child_exit (ladish_app_supervisor_handle supervisor_handle, pid_t pid)
bool ladish_app_supervisor_clear (ladish_app_supervisor_handle supervisor_handle)
bool ladish_app_supervisor_create (ladish_app_supervisor_handle *supervisor_handle_ptr, const char *opath, const char *name, void *context, ladish_app_supervisor_on_app_renamed_callback on_app_renamed)
void ladish_app_supervisor_destroy (ladish_app_supervisor_handle supervisor_handle)
void ladish_app_supervisor_dump (ladish_app_supervisor_handle supervisor_handle)
bool ladish_app_supervisor_enum (ladish_app_supervisor_handle supervisor_handle, void *context, ladish_app_supervisor_enum_callback callback)
ladish_app_handle ladish_app_supervisor_find_app_by_id (ladish_app_supervisor_handle supervisor_handle, uint64_t id)
ladish_app_handle ladish_app_supervisor_find_app_by_name (ladish_app_supervisor_handle supervisor_handle, const char *name)
ladish_app_handle ladish_app_supervisor_find_app_by_pid (ladish_app_supervisor_handle supervisor_handle, pid_t pid)
ladish_app_handle ladish_app_supervisor_find_app_by_uuid (ladish_app_supervisor_handle supervisor_handle, const uuid_t uuid)
const char * ladish_app_supervisor_get_name (ladish_app_supervisor_handle supervisor_handle)
const char * ladish_app_supervisor_get_opath (ladish_app_supervisor_handle supervisor_handle)
unsigned int ladish_app_supervisor_get_running_app_count (ladish_app_supervisor_handle supervisor_handle)
bool ladish_app_supervisor_has_apps (ladish_app_supervisor_handle supervisor_handle)
void ladish_app_supervisor_remove_app (ladish_app_supervisor_handle supervisor_handle, ladish_app_handle app_handle)
void ladish_app_supervisor_save_L1 (ladish_app_supervisor_handle supervisor_handle)
bool ladish_app_supervisor_set_directory (ladish_app_supervisor_handle supervisor_handle, const char *dir)
bool ladish_app_supervisor_set_project_name (ladish_app_supervisor_handle supervisor_handle, const char *project_name)
bool ladish_app_supervisor_start_app (ladish_app_supervisor_handle supervisor_handle, ladish_app_handle app_handle)
void ladish_app_supervisor_stop (ladish_app_supervisor_handle supervisor_handle)

Variables

struct dbus_interface_descriptor g_iface_app_supervisor

Detailed Description

Definition in file app_supervisor.h.


Generated by  Doxygen 1.6.0   Back to index