2 * \brief Header: Background support
5 #ifndef MC__BACKGROUND_H
6 #define MC__BACKGROUND_H
10 #include <sys/types.h> /* pid_t */
12 /*** typedefs(not structures) and defined constants **********************************************/
20 typedef struct TaskList
27 struct TaskList
*next
;
32 /*** enums ***************************************************************************************/
34 /*** structures declarations (and typedefs of structures)*****************************************/
36 /*** global variables defined in .c file *********************************************************/
38 extern struct TaskList
*task_list
;
40 /*** declarations of public functions ************************************************************/
42 int do_background (struct FileOpContext
*ctx
, char *info
);
43 int parent_call (void *routine
, struct FileOpContext
*ctx
, int argc
, ...);
44 char *parent_call_string (void *routine
, int argc
, ...);
46 void unregister_task_running (pid_t pid
, int fd
);
47 void unregister_task_with_pid (pid_t pid
);
49 gboolean
background_parent_call (const gchar
* event_group_name
, const gchar
* event_name
,
50 gpointer init_data
, gpointer data
);
53 background_parent_call_string (const gchar
* event_group_name
, const gchar
* event_name
,
54 gpointer init_data
, gpointer data
);
56 /*** inline functions ****************************************************************************/
58 #endif /* !WITH_BACKGROUND */
60 #endif /* MC__BACKGROUND_H */