mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
RedsStream: make some functions static
These were not used outside of reds-stream.c, so make them static and remove them from the header. Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
5553dec9a6
commit
8de82e5818
@ -438,7 +438,7 @@ bool reds_stream_is_ssl(RedsStream *stream)
|
||||
return (stream->priv->ssl != NULL);
|
||||
}
|
||||
|
||||
void reds_stream_disable_writev(RedsStream *stream)
|
||||
static void reds_stream_disable_writev(RedsStream *stream)
|
||||
{
|
||||
stream->priv->writev = NULL;
|
||||
}
|
||||
@ -572,12 +572,12 @@ void reds_stream_async_read(RedsStream *stream,
|
||||
}
|
||||
|
||||
#if HAVE_SASL
|
||||
bool reds_stream_write_u8(RedsStream *s, uint8_t n)
|
||||
static bool reds_stream_write_u8(RedsStream *s, uint8_t n)
|
||||
{
|
||||
return reds_stream_write_all(s, &n, sizeof(uint8_t));
|
||||
}
|
||||
|
||||
bool reds_stream_write_u32(RedsStream *s, uint32_t n)
|
||||
static bool reds_stream_write_u32(RedsStream *s, uint32_t n)
|
||||
{
|
||||
return reds_stream_write_all(s, &n, sizeof(uint32_t));
|
||||
}
|
||||
|
||||
@ -53,9 +53,6 @@ void reds_stream_set_async_error_handler(RedsStream *stream,
|
||||
ssize_t reds_stream_write(RedsStream *s, const void *buf, size_t nbyte);
|
||||
ssize_t reds_stream_writev(RedsStream *s, const struct iovec *iov, int iovcnt);
|
||||
bool reds_stream_write_all(RedsStream *stream, const void *in_buf, size_t n);
|
||||
bool reds_stream_write_u8(RedsStream *s, uint8_t n);
|
||||
bool reds_stream_write_u32(RedsStream *s, uint32_t n);
|
||||
void reds_stream_disable_writev(RedsStream *stream);
|
||||
void reds_stream_free(RedsStream *s);
|
||||
|
||||
void reds_stream_push_channel_event(RedsStream *s, int event);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user