~ubuntu-branches/ubuntu/utopic/pacemaker/utopic-proposed

« back to all changes in this revision

Viewing changes to include/crm/common/mainloop.h

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-08-15 11:27:07 UTC
  • mfrom: (1.1.12) (2.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20130815112707-5r864ink7jme3zl5
Tags: 1.1.10+git20130802-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/control: Build-Depends on libqb-dev; Depends on libheartbeat2.
* Corosync's pacemaker plugin is disabled, hence not built:
  - debian/licrmcluster4-dev.install: Do not install plugin.h.
  - debian/pacemaker.install: Do not install pacemaker.lcrso.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
typedef struct mainloop_io_s mainloop_io_t;
31
31
typedef struct mainloop_child_s mainloop_child_t;
32
32
 
 
33
void mainloop_cleanup(void);
 
34
 
33
35
crm_trigger_t *mainloop_add_trigger(int priority, int (*dispatch) (gpointer user_data),
34
36
                                    gpointer userdata);
35
37
 
79
81
 * Create a new tracked process
80
82
 * To track a process group, use -pid
81
83
 */
82
 
void
83
 
 
84
 
 
85
 
mainloop_add_child(pid_t pid,
86
 
                   int timeout,
87
 
                   const char *desc,
88
 
                   void *userdata,
89
 
                   void (*callback) (mainloop_child_t * p, int status, int signo, int exitcode));
90
 
 
91
 
void *mainloop_get_child_userdata(mainloop_child_t * child);
92
 
int
93
 
 mainloop_get_child_timeout(mainloop_child_t * child);
94
 
 
95
 
pid_t mainloop_get_child_pid(mainloop_child_t * child);
96
 
void
97
 
 mainloop_clear_child_userdata(mainloop_child_t * child);
 
84
void mainloop_child_add(pid_t pid,
 
85
                        int timeout,
 
86
                        const char *desc,
 
87
                        void *userdata,
 
88
                        void (*callback) (mainloop_child_t * p, pid_t pid, int core, int signo, int exitcode));
 
89
 
 
90
void *mainloop_child_userdata(mainloop_child_t * child);
 
91
int mainloop_child_timeout(mainloop_child_t * child);
 
92
const char *mainloop_child_name(mainloop_child_t * child);
 
93
 
 
94
pid_t mainloop_child_pid(mainloop_child_t * child);
 
95
void mainloop_clear_child_userdata(mainloop_child_t * child);
98
96
 
99
97
#  define G_PRIORITY_MEDIUM (G_PRIORITY_HIGH/2)
100
98