equal
deleted
inserted
replaced
18 * User callback list |
18 * User callback list |
19 */ |
19 */ |
20 struct line_proto_callbacks { |
20 struct line_proto_callbacks { |
21 /** Handle received line */ |
21 /** Handle received line */ |
22 void (*on_line) (char *line, void *arg); |
22 void (*on_line) (char *line, void *arg); |
23 |
23 |
|
24 /** Event-based action failed */ |
|
25 void (*on_error) (struct error_info *err, void *arg); |
24 }; |
26 }; |
25 |
27 |
26 /** |
28 /** |
27 * Create a new line_proto off the the given sock_stream. The newly allocated line_proto will be returned via *lp_ptr. |
29 * Create a new line_proto off the the given sock_stream. The newly allocated line_proto will be returned via *lp_ptr. |
28 * |
30 * |