![]() |
![]() |
![]() |
OGMJob Reference Manual | ![]() |
---|---|---|---|---|
#include <ogmjob-container.h> void (*OGMJobCallback) (OGMJobSpawn *spawn, gpointer data); OGMJobContainer; void ogmjob_container_add (OGMJobContainer *container, OGMJobSpawn *spawn); void ogmjob_container_remove (OGMJobContainer *container, OGMJobSpawn *spawn); void ogmjob_container_foreach (OGMJobContainer *container, OGMJobCallback callback, gpointer data);
void (*OGMJobCallback) (OGMJobSpawn *spawn, gpointer data);
Specifies the type of functions passed to ogmjob_container_foreach()
.
spawn : |
An OGMJobSpawn |
data : |
The user data |
void ogmjob_container_add (OGMJobContainer *container, OGMJobSpawn *spawn);
Adds spawn
to container
.
container : |
An OGMJobContainer |
spawn : |
An OGMJobSpawn |
void ogmjob_container_remove (OGMJobContainer *container, OGMJobSpawn *spawn);
Removes spawn
from container
.
container : |
An OGMJobContainer |
spawn : |
An OGMJobSpawn |
void ogmjob_container_foreach (OGMJobContainer *container, OGMJobCallback callback, gpointer data);
Invokes callback
on each child of container
.
container : |
An OGMJobContainer |
callback : |
A callback |
data : |
Callback user data |
void user_function (OGMJobContainer *container, OGMJobSpawn *child, gpointer user_data) : Run Last / No Recursion / No Hooks
Emitted each time a child is added to a container.
container : |
the container that received the signal |
child : |
the child to be added |
user_data : |
user data set when the signal handler was connected. |
void user_function (OGMJobContainer *container, OGMJobSpawn *child, gpointer user_data) : Run Last / No Recursion / No Hooks
Emitted each time a child is removed from a container.
container : |
the container that received the signal |
child : |
the child to be removed |
user_data : |
user data set when the signal handler was connected. |