~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to src/child-process.h

  • Committer: robert.ancell at canonical
  • Date: 2011-02-20 10:27:53 UTC
  • Revision ID: robert.ancell@canonical.com-20110220102753-2kehwju1amzcpoag
Use a private pipe for greeter<->server communication instead of D-Bus (needs to be fixed in liblightdm-qt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
typedef struct
33
33
{
34
34
    GObjectClass parent_class;
 
35
    void (*got_data)(ChildProcess *process);
35
36
    void (*got_signal)(ChildProcess *process, int signum);
36
37
    void (*exited)(ChildProcess *process, int status);
37
38
    void (*terminated) (ChildProcess *process, int signum);
53
54
                              const gchar *username,
54
55
                              const gchar *working_dir,
55
56
                              const gchar *command,
 
57
                              gboolean create_pipe, // FIXME: Move the pipe code into session.c, and then make a whitelist of fds to keep open
56
58
                              GError **error);
57
59
 
58
60
GPid child_process_get_pid (ChildProcess *process);
59
61
 
60
62
void child_process_signal (ChildProcess *process, int signum);
61
63
 
 
64
guint32 child_process_read_int (ChildProcess *process);
 
65
 
 
66
gchar *child_process_read_string (ChildProcess *process);
 
67
 
 
68
void child_process_write_int (ChildProcess *process, guint32 value);
 
69
 
 
70
void child_process_write_string (ChildProcess *process, const gchar *value);
 
71
 
 
72
void child_process_flush (ChildProcess *process);
 
73
 
62
74
G_END_DECLS
63
75
 
64
76
#endif /* _CHILD_PROCESS_H_ */