Re: [PATCH spice-server 1/2] websocket: Add header guards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ping the series

> 
> ping the series
> 
> > 
> > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> > ---
> >  server/websocket.h | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/server/websocket.h b/server/websocket.h
> > index 22120d939..7707e6804 100644
> > --- a/server/websocket.h
> > +++ b/server/websocket.h
> > @@ -15,6 +15,9 @@
> >   *  License along with this library; if not, see
> >   <http://www.gnu.org/licenses/>.
> >   */
> >  
> > +#ifndef WEBSOCKET_H_
> > +#define WEBSOCKET_H_
> > +
> >  typedef ssize_t (*websocket_read_cb_t)(void *opaque, void *buf, size_t
> >  nbyte);
> >  typedef ssize_t (*websocket_write_cb_t)(void *opaque, const void *buf,
> >  size_t nbyte);
> >  typedef ssize_t (*websocket_writev_cb_t)(void *opaque, struct iovec *iov,
> >  int iovcnt);
> > @@ -41,3 +44,5 @@ void websocket_free(RedsWebSocket *ws);
> >  int websocket_read(RedsWebSocket *ws, uint8_t *buf, size_t len, unsigned
> >  *flags);
> >  int websocket_write(RedsWebSocket *ws, const void *buf, size_t len,
> >  unsigned
> >  flags);
> >  int websocket_writev(RedsWebSocket *ws, const struct iovec *iov, int
> >  iovcnt,
> >  unsigned flags);
> > +
> > +#endif

OT: should we consider "#pragma once" in the future?

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]