Skip to content
Snippets Groups Projects
Unverified Commit 9f32aae8 authored by Jake Drahos's avatar Jake Drahos
Browse files

Added backendWrite

parent 25ad7d0f
No related branches found
No related tags found
No related merge requests found
......@@ -83,3 +83,8 @@ char * ucart_backendGetline(struct backend_conn *conn)
getline(&conn->buf, &conn->len, conn->socket);
return conn->buf;
}
size_t ucart_backendWrite(struct backend_conn *conn, const char * line)
{
return fputs(line, conn->socket);
}
......@@ -15,4 +15,7 @@ void ucart_backendDisconnect(struct backend_conn * conn);
*/
char * ucart_backendGetline(struct backend_conn * conn);
/* Write a line to the backend */
void ucart_backendWrite(struct backend_conn * backend, const char * line);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment