2005-06-30 05:50:15 +02:00
|
|
|
#ifndef PKTLINE_H
|
|
|
|
#define PKTLINE_H
|
|
|
|
|
2006-06-26 10:27:07 +02:00
|
|
|
#include "git-compat-util.h"
|
|
|
|
|
2005-06-30 05:50:15 +02:00
|
|
|
/*
|
|
|
|
* Silly packetized line writing interface
|
|
|
|
*/
|
|
|
|
void packet_flush(int fd);
|
2005-08-09 17:30:22 +02:00
|
|
|
void packet_write(int fd, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
|
2005-06-30 05:50:15 +02:00
|
|
|
|
|
|
|
int packet_read_line(int fd, char *buffer, unsigned size);
|
2006-06-21 09:30:21 +02:00
|
|
|
ssize_t safe_write(int, const void *, ssize_t);
|
2005-06-30 05:50:15 +02:00
|
|
|
|
|
|
|
#endif
|