… | |
… | |
45 | |
45 | |
46 | #include "rxvt.h" |
46 | #include "rxvt.h" |
47 | #include "rxvtdaemon.h" |
47 | #include "rxvtdaemon.h" |
48 | #include "libptytty.h" |
48 | #include "libptytty.h" |
49 | |
49 | |
50 | struct server : rxvt_connection { |
50 | struct server : rxvt_connection |
|
|
51 | { |
51 | log_callback log_cb; |
52 | log_callback log_cb; |
52 | getfd_callback getfd_cb; |
53 | getfd_callback getfd_cb; |
53 | |
54 | |
54 | void read_cb (ev::io &w, int revents); ev::io read_ev; |
55 | void read_cb (ev::io &w, int revents); ev::io read_ev; |
55 | void log_msg (const char *msg); |
56 | void log_msg (const char *msg); |
… | |
… | |
68 | } |
69 | } |
69 | |
70 | |
70 | void err (const char *format = 0, ...); |
71 | void err (const char *format = 0, ...); |
71 | }; |
72 | }; |
72 | |
73 | |
73 | struct unix_listener { |
74 | struct unix_listener |
|
|
75 | { |
74 | int fd; |
76 | int fd; |
75 | |
77 | |
76 | void accept_cb (ev::io &w, int revents); ev::io accept_ev; |
78 | void accept_cb (ev::io &w, int revents); ev::io accept_ev; |
77 | |
79 | |
78 | unix_listener (int fd); |
80 | unix_listener (int fd); |