equal
deleted
inserted
replaced
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 */ |
24 /** Transport failed, the line_proto is corrupt, you should call line_proto_release next. */ |
25 void (*on_error) (struct error_info *err, void *arg); |
25 void (*on_error) (struct error_info *err, void *arg); |
26 }; |
26 }; |
27 |
27 |
28 /** |
28 /** |
29 * 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. |