Code

Move sideband client side support into reusable form.
[git.git] / sideband.h
diff --git a/sideband.h b/sideband.h
new file mode 100644 (file)
index 0000000..90b3855
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef SIDEBAND_H
+#define SIDEBAND_H
+
+#define SIDEBAND_PROTOCOL_ERROR -2
+#define SIDEBAND_REMOTE_ERROR -1
+
+#define DEFAULT_PACKET_MAX 1000
+
+int recv_sideband(const char *me, int in_stream, int out, int err, char *, int);
+
+#endif