Commit 495b8209 495b82090be28e7b1a2904a3346776576dcab0d1 by Sergey Poznyakoff

Minor fix.

* libmailutils/stream/fltstream.c: Implement shutdown method.
1 parent ab2982d8
...@@ -446,6 +446,13 @@ filter_ctl (struct _mu_stream *stream, int code, int opcode, void *ptr) ...@@ -446,6 +446,13 @@ filter_ctl (struct _mu_stream *stream, int code, int opcode, void *ptr)
446 return 0; 446 return 0;
447 } 447 }
448 448
449 static int
450 filter_shutdown (struct _mu_stream *str, int how)
451 {
452 struct _mu_filter_stream *fs = (struct _mu_filter_stream *)str;
453 return mu_stream_shutdown (fs->transport, how);
454 }
455
449 static const char * 456 static const char *
450 filter_error_string (struct _mu_stream *stream, int rc) 457 filter_error_string (struct _mu_stream *stream, int rc)
451 { 458 {
...@@ -576,6 +583,7 @@ mu_filter_stream_create (mu_stream_t *pflt, ...@@ -576,6 +583,7 @@ mu_filter_stream_create (mu_stream_t *pflt,
576 fs->stream.done = filter_done; 583 fs->stream.done = filter_done;
577 if (flags & MU_STREAM_SEEK) 584 if (flags & MU_STREAM_SEEK)
578 fs->stream.seek = filter_seek; 585 fs->stream.seek = filter_seek;
586 fs->stream.shutdown = filter_shutdown;
579 fs->stream.ctl = filter_ctl; 587 fs->stream.ctl = filter_ctl;
580 fs->stream.wait = filter_wait; 588 fs->stream.wait = filter_wait;
581 fs->stream.error_string = filter_error_string; 589 fs->stream.error_string = filter_error_string;
......