Add words about adding support for a new OS
Add a skel file (task-manager-skel.c) and make it possible in the build-env to build the task manager with this file (--with-skel).
This commit is contained in:
@@ -38,27 +38,6 @@ struct _Task
|
||||
gshort prio;
|
||||
};
|
||||
|
||||
/**
|
||||
* Enumerations of virtual values between the interface and the OS implementation.
|
||||
*/
|
||||
|
||||
enum
|
||||
{
|
||||
XTM_SIGNAL_TERMINATE = 0,
|
||||
XTM_SIGNAL_STOP,
|
||||
XTM_SIGNAL_CONTINUE,
|
||||
XTM_SIGNAL_KILL,
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
XTM_PRIORITY_VERY_LOW = 0,
|
||||
XTM_PRIORITY_LOW,
|
||||
XTM_PRIORITY_NORMAL,
|
||||
XTM_PRIORITY_HIGH,
|
||||
XTM_PRIORITY_VERY_HIGH,
|
||||
};
|
||||
|
||||
/**
|
||||
* OS specific implementation.
|
||||
*/
|
||||
@@ -94,6 +73,23 @@ void xtm_task_manager_update_model (XtmTaskManager *manager);
|
||||
* Helper functions.
|
||||
*/
|
||||
|
||||
enum
|
||||
{
|
||||
XTM_SIGNAL_TERMINATE = 0,
|
||||
XTM_SIGNAL_STOP,
|
||||
XTM_SIGNAL_CONTINUE,
|
||||
XTM_SIGNAL_KILL,
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
XTM_PRIORITY_VERY_LOW = 0,
|
||||
XTM_PRIORITY_LOW,
|
||||
XTM_PRIORITY_NORMAL,
|
||||
XTM_PRIORITY_HIGH,
|
||||
XTM_PRIORITY_VERY_HIGH,
|
||||
};
|
||||
|
||||
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
|
||||
gchar * get_hostname ();
|
||||
gboolean send_signal_to_pid (guint pid, gint signal);
|
||||
|
||||
Reference in New Issue
Block a user