X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.h;h=6d2202071c6b849fe37a9a69c30c21d09ff80ef0;hp=851b8f13485a042f8747031ebed1a3bb2e0e3128;hb=820ae21f7a453408dca3faa9ff1d28ca94d60009;hpb=2830b9f881898aaec073d5ba19e33482e30190bd diff --git a/command.h b/command.h index 851b8f13..6d220207 100644 --- a/command.h +++ b/command.h @@ -14,8 +14,6 @@ struct command_context { struct server_command *cmd; /** File descriptor and crypto keys. */ struct stream_cipher_context scc; - /** Whether to use the sideband API for this command. */ - bool use_sideband; }; /** @@ -40,6 +38,7 @@ 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 send_strerror(struct command_context *cc, int err); int recv_sb(struct stream_cipher_context *scc, enum sb_designator expected_band, size_t max_size, struct iovec *result);