Changeset 5109:4f9fc788fe91 in roaraudio for include/libroar/vio.h


Ignore:
Timestamp:
07/28/11 16:32:34 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Started to use compiler attributes (Also see: #130)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r4963 r5109  
    6161}; 
    6262 
    63 int roar_vio_init_calls (struct roar_vio_calls * calls); 
     63int roar_vio_init_calls (struct roar_vio_calls * calls) _LIBROAR_ATTR_TO_STATIC; 
    6464 
    6565int roar_vio_clear_calls (struct roar_vio_calls * calls); 
    6666 
    6767int roar_vio_set_inst (struct roar_vio_calls * vio, void * inst); 
    68 int roar_vio_set_fh   (struct roar_vio_calls * vio, int fh); 
     68int roar_vio_set_fh   (struct roar_vio_calls * vio, int fh) _LIBROAR_ATTR_TO_STATIC; 
    6969 
    70 int roar_vio_get_fh   (struct roar_vio_calls * vio); 
     70int roar_vio_get_fh   (struct roar_vio_calls * vio) _LIBROAR_ATTR_TO_STATIC; 
    7171 
    72 ssize_t roar_vio_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    73 ssize_t roar_vio_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    74 off_t   roar_vio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    75 int     roar_vio_nonblock(struct roar_vio_calls * vio, int state); 
    76 int     roar_vio_sync    (struct roar_vio_calls * vio); 
    77 int     roar_vio_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    78 int     roar_vio_close   (struct roar_vio_calls * vio); 
     72ssize_t roar_vio_read    (struct roar_vio_calls * vio, void *buf, size_t count) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     73ssize_t roar_vio_write   (struct roar_vio_calls * vio, void *buf, size_t count) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     74off_t   roar_vio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     75int     roar_vio_nonblock(struct roar_vio_calls * vio, int state) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     76int     roar_vio_sync    (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
     77int     roar_vio_ctl     (struct roar_vio_calls * vio, int cmd, void * data) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL(1); 
     78int     roar_vio_close   (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
    7979 
    8080// specal commands: 
    81 int     roar_vio_accept  (struct roar_vio_calls * calls, struct roar_vio_calls * dst); 
    82 int     roar_vio_shutdown(struct roar_vio_calls * vio,   int how); 
     81int     roar_vio_accept  (struct roar_vio_calls * calls, struct roar_vio_calls * dst) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     82int     roar_vio_shutdown(struct roar_vio_calls * vio,   int how) _LIBROAR_ATTR_NONNULL_ALL; 
    8383 
    8484// converters: 
    85 int     roar_vio_open_file     (struct roar_vio_calls * calls, char * filename, int flags, mode_t mode); 
    86 int     roar_vio_open_fh       (struct roar_vio_calls * calls, int fh); 
    87 int     roar_vio_open_fh_socket(struct roar_vio_calls * calls, int fh); 
     85int     roar_vio_open_file     (struct roar_vio_calls * calls, char * filename, int flags, mode_t mode) _LIBROAR_ATTR_DEPRECATED _LIBROAR_ATTR_NONNULL_ALL; 
     86int     roar_vio_open_fh       (struct roar_vio_calls * calls, int fh) _LIBROAR_ATTR_NONNULL_ALL; 
     87int     roar_vio_open_fh_socket(struct roar_vio_calls * calls, int fh) _LIBROAR_ATTR_NONNULL_ALL; 
    8888 
    89 int     roar_vio_open_socket   (struct roar_vio_calls * calls, char * host, int port); 
    90 int     roar_vio_open_socket_listen(struct roar_vio_calls * calls, int type, char * host, int port); 
     89int     roar_vio_open_socket   (struct roar_vio_calls * calls, char * host, int port) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     90int     roar_vio_open_socket_listen(struct roar_vio_calls * calls, int type, char * host, int port) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    9191 
    9292int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
Note: See TracChangeset for help on using the changeset viewer.