Changeset 508:1129ff87dd1e in roaraudio for include/roaraudio.h
- Timestamp:
- 08/15/08 00:40:31 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.