]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.h
Add sideband implementation.
[paraslash.git] / command.h
index 851c00ba2f4ab4450493d29f878ea65125462588..851b8f13485a042f8747031ebed1a3bb2e0e3128 100644 (file)
--- a/command.h
+++ b/command.h
@@ -35,3 +35,11 @@ struct server_command {
        /** The long help text. */
        const char *help;
 };
+
+int send_sb(struct stream_cipher_context *scc, void *buf, size_t numbytes,
+               int band, bool dont_free);
+__printf_3_4 int send_sb_va(struct stream_cipher_context *scc, int band,
+               const char *fmt, ...);
+int recv_sb(struct stream_cipher_context *scc,
+               enum sb_designator expected_band,
+               size_t max_size, struct iovec *result);