src/line_proto.h
changeset 33 e5139b339b18
parent 32 ae66e9ae4afb
child 41 40f7aa051acb
equal deleted inserted replaced
32:ae66e9ae4afb 33:e5139b339b18
    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  *