| CodeSlayer Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
#include <codeslayer/codeslayer-process.h> struct CodeSlayerProcess; CodeSlayerProcess * codeslayer_process_new (gint id); const gint codeslayer_process_get_id (CodeSlayerProcess *process); const gchar * codeslayer_process_get_name (CodeSlayerProcess *process); void codeslayer_process_set_name (CodeSlayerProcess *process,const gchar *name); StopProcessFunc codeslayer_process_get_func (CodeSlayerProcess *process); void codeslayer_process_set_func (CodeSlayerProcess *process,StopProcessFunc func); gpointer codeslayer_process_get_data (CodeSlayerProcess *process); void codeslayer_process_set_data (CodeSlayerProcess *process,gpointer data); void codeslayer_process_stop (CodeSlayerProcess *process);
"data" gpointer : Read / Write "func" gpointer : Read / Write "name" gchar* : Read / Write
CodeSlayerProcess * codeslayer_process_new (gint id);
Creates a new CodeSlayerProcess.
|
the process identifier. |
Returns : |
a new CodeSlayerProcess. |
const gint codeslayer_process_get_id (CodeSlayerProcess *process);
|
a CodeSlayerProcess. |
Returns : |
the identifier for the process. |
const gchar * codeslayer_process_get_name (CodeSlayerProcess *process);
|
a CodeSlayerProcess. |
Returns : |
the text to display for the process. |
void codeslayer_process_set_name (CodeSlayerProcess *process,const gchar *name);
|
a CodeSlayerProcess. |
|
the text to display for the process. |
StopProcessFunc codeslayer_process_get_func (CodeSlayerProcess *process);
|
a CodeSlayerProcess. |
Returns : |
the callback function for when the process is stopped |
void codeslayer_process_set_func (CodeSlayerProcess *process,StopProcessFunc func);
|
a CodeSlayerProcess. |
|
the callback function for when the process is stopped |
gpointer codeslayer_process_get_data (CodeSlayerProcess *process);
|
a CodeSlayerProcess. |
Returns : |
the data for the stopped callback function |
void codeslayer_process_set_data (CodeSlayerProcess *process,gpointer data);
|
a CodeSlayerProcess. |
|
the data for the stopped callback function |
void codeslayer_process_stop (CodeSlayerProcess *process);
Stop the running thread
|
a CodeSlayerProcess. |
"name" property"name" gchar* : Read / Write
The displayed name for the process.
Default value: ""
"stopped" signalvoid user_function (CodeSlayerProcess *codeslayerprocess,
gpointer arg1,
gpointer user_data) : No Hooks
Note: for internal use only.
The ::stopped signal is invoked when a thread is finished
|
the process that received the signal |
|
user data set when the signal handler was connected. |