X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.h;h=d28db0389f01846d4b7bb0c9c37ff156028a2bbf;hp=05510cc08aa33d50a104f71a05d353ad3027e7d2;hb=741c19c2a25c5d9e165cb99f7ff512209b7bade6;hpb=0703f75a276020f9645f987134d49402f7c019c0 diff --git a/command.h b/command.h index 05510cc0..d28db038 100644 --- a/command.h +++ b/command.h @@ -11,7 +11,7 @@ struct command_context { /** Argument vector. */ char **argv; /** The command being executed. */ - struct server_command *cmd; + const struct server_command *cmd; /** File descriptor and crypto keys. */ struct stream_cipher_context scc; }; @@ -33,3 +33,12 @@ 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 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);