Changeset 5260:03340eac5983 in roaraudio for include


Ignore:
Timestamp:
11/14/11 00:29:49 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some const keywords ;)

Location:
include/libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/socket.h

    r5248 r5260  
    5050#define ROAR_SOCKET_MAX_HOSTNAMELEN 64 
    5151 
    52 int roar_socket_listen  (int type, char * host, int port); 
    53 int roar_socket_connect (char * host, int port); 
     52int roar_socket_listen  (int type, const char * host, int port); 
     53int roar_socket_connect (const char * host, int port); 
    5454 
    5555// TODO: those function should be made /static/. 
     
    6161int roar_socket_new        (int type); 
    6262 
    63 int roar_socket_open       (int mode, int type, char * host, int port); 
    64 int roar_socket_open_fork  (int mode, char * host, int port); 
    65 int roar_socket_open_file  (int mode, char * host, int port); 
    66 int roar_socket_open_proxy (int mode, int type, char * host, int port, char * proxy_type); 
     63int roar_socket_open       (int mode, int type, const char * host, int port); 
     64int roar_socket_open_fork  (int mode, const char * host, int port); 
     65int roar_socket_open_file  (int mode, const char * host, int port); 
     66int roar_socket_open_proxy (int mode, int type, const char * host, int port, const char * proxy_type); 
    6767 
    6868int roar_socket_listen_decnet (char * object, int num); 
     
    8080int roar_socket_recv_fh (int sock,         char * mes, size_t * len); 
    8181 
    82 int roar_socket_open_socks4 (int mode, int fh, char * host, int port, char * user, char * pw, char * opts); 
    83 int roar_socket_open_socks4a(int mode, int fh, char * host, int port, char * user, char * pw, char * opts); 
    84 int roar_socket_open_socks4d(int mode, int fh, char * host, int port, char * user, char * pw, char * opts); 
    85 int roar_socket_open_socks4x(int mode, int fh, char host[4], int port, char * app, size_t app_len, char * user); 
     82int roar_socket_open_socks4 (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
     83int roar_socket_open_socks4a(int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
     84int roar_socket_open_socks4d(int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
     85int roar_socket_open_socks4x(int mode, int fh, char host[4], int port, const char * app, size_t app_len, const char * user); 
    8686 
    87 int roar_socket_open_http   (int mode, int fh, char * host, int port, char * user, char * pw, char * opts); 
     87int roar_socket_open_http   (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
    8888 
    89 int roar_socket_open_ssh    (int mode, int fh, char * host, int port, char * user, char * pw, char * opts); 
     89int roar_socket_open_ssh    (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
    9090 
    9191#endif 
  • include/libroar/vio.h

    r5242 r5260  
    8787int     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) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    90 int     roar_vio_open_socket_listen(struct roar_vio_calls * calls, int type, char * host, int port) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     89int     roar_vio_open_socket   (struct roar_vio_calls * calls, const 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, const 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.