diff -r c59d3eaff0fb -r 6534a4ac957b src/line_proto.h --- a/src/line_proto.h Tue Apr 28 20:27:45 2009 +0300 +++ b/src/line_proto.h Tue Apr 28 22:08:59 2009 +0300 @@ -38,10 +38,10 @@ * @param err error information is returned via this pointer */ err_t line_proto_create (struct line_proto **lp_ptr, transport_t *transport, size_t buf_size, - const struct line_proto_callbacks *callbacks, void *cb_arg, struct error_info *err); + const struct line_proto_callbacks *callbacks, void *cb_arg, error_t *err); /** - * Runs the socket recv() into our internal buffer. If a full line was received, a pointer to our internal bufffer is + * Runs transport_read() with our internal buffer. If a full line was received, a pointer to our internal bufffer is * returned via *line_ptr, and we return SUCCESS. If we don't yet have a full line, and receiving more would block, * NULL is returned via *line_ptr instead. Otherwise, nonzero error return code. * @@ -71,10 +71,10 @@ const struct error_info* line_proto_error (struct line_proto *lp); /** - * Release any allocated buffers, and the underlying sock_stream. + * Destroy any buffers and the underlying transport. * * This does not close the connection cleanly, and is intended for use to abort after errors. */ -void line_proto_release (struct line_proto *lp); +void line_proto_destroy (struct line_proto *lp); #endif /* LINE_PROTO_H */