src/line_proto.c
branchnew-transport
changeset 168 a58ad50911fc
parent 160 4f8dc89d7cbb
equal deleted inserted replaced
167:0d2d8ca879d8 168:a58ad50911fc
    90     if ((ret = line_proto_flush(lp)) < 0)
    90     if ((ret = line_proto_flush(lp)) < 0)
    91         // faaail
    91         // faaail
    92         return line_proto_set_error(lp);
    92         return line_proto_set_error(lp);
    93 }
    93 }
    94 
    94 
       
    95 // XXX: implement on_error!
    95 static const struct transport_callbacks line_proto_transport_callbacks = {
    96 static const struct transport_callbacks line_proto_transport_callbacks = {
    96     .on_read    = &line_proto_on_read,
    97     .on_read    = &line_proto_on_read,
    97     .on_write   = &line_proto_on_write,
    98     .on_write   = &line_proto_on_write,
    98 };
    99 };
    99 
   100