src/line_proto.h
changeset 45 71e65564afd2
parent 41 40f7aa051acb
child 87 f0db6ebf18b9
equal deleted inserted replaced
44:6bd70113e1ed 45:71e65564afd2
    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.