Changeset 508:1129ff87dd1e in roaraudio for include
- Timestamp:
- 08/15/08 00:40:31 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/socket.h
r502 r508 36 36 int roar_socket_new_udp (void); 37 37 int roar_socket_new_unix (void); 38 int roar_socket_new_decnet_seqpacket (void); 39 int roar_socket_new_decnet_stream (void); 40 38 41 int roar_socket_open (int mode, int type, char * host, int port); 39 42 int roar_socket_open_fork (int mode, char * host, int port); 40 43 int roar_socket_open_file (int mode, char * host, int port); 41 44 int roar_socket_open_proxy (int mode, int type, char * host, int port, char * proxy_type); 45 46 int roar_socket_listen_decnet (char * object, int num); 42 47 43 48 int roar_socket_nonblock(int fh, int state); -
include/roaraudio.h
r480 r508 52 52 #include <libroar/libroar.h> 53 53 54 // IP 54 55 #define ROAR_DEFAULT_PORT 16002 55 56 #define ROAR_DEFAULT_HOST "localhost" 56 57 58 // UNIX Domain Sockets 57 59 #define ROAR_DEFAULT_SOCK_GLOBAL "/tmp/roar" 58 60 #define ROAR_DEFAULT_SOCK_USER ".roar" 61 62 // DECnet 63 #define ROAR_DEFAULT_OBJECT "roar" 64 #define ROAR_DEFAULT_NUM 0 65 #define ROAR_DEFAULT_LISTEN_OBJECT "LISTEN::" ROAR_DEFAULT_OBJECT 59 66 60 67 #define ROAR_DEFAULT_SOCKGRP "audio" … … 118 125 #define ROAR_HOST2NET16(x) (x) 119 126 127 #ifdef ROAR_HAVE_LIBDNET 128 #define ROAR_dn_ntohs(x) ((((x)&0x0ff)<<8) | (((x)&0xff00)>>8)) 129 #define ROAR_dn_ntohl(x) ( ((dn_ntohs((x)&0xffff))<<16) |\ 130 ((dn_ntohs(((x)>>16)))) ) 131 #define ROAR_dn_htonl(x) ROAR_dn_ntohl(x) 132 #define ROAR_dn_htons(x) ROAR_dn_ntohs(x) 133 #endif 134 120 135 //#elif BYTE_ORDER == LITTLE_ENDIAN 121 136 #else … … 126 141 #define ROAR_HOST2NET16(x) htons((x)) 127 142 143 #ifdef ROAR_HAVE_LIBDNET 144 #if BYTE_ORDER == LITTLE_ENDIAN 145 #define ROAR_dn_ntohs(x) (x) 146 #define ROAR_dn_htons(x) (x) 147 148 #define ROAR_dn_ntohl(x) (x) 149 #define ROAR_dn_htonl(x) (x) 150 #else 151 #error can not build on this architecture with DECnet support enabled 152 #endif 153 #endif 154 128 155 #endif 129 156
Note: See TracChangeset
for help on using the changeset viewer.