[0] | 1 | //libroar.h: |
---|
| 2 | |
---|
[690] | 3 | /* |
---|
[3110] | 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008, 2009, 2010 |
---|
[690] | 5 | * |
---|
| 6 | * This file is part of libroar a part of RoarAudio, |
---|
| 7 | * a cross-platform sound system for both, home and professional use. |
---|
| 8 | * See README for details. |
---|
| 9 | * |
---|
| 10 | * This file is free software; you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU General Public License version 3 |
---|
| 12 | * as published by the Free Software Foundation. |
---|
| 13 | * |
---|
| 14 | * libroar is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this software; see the file COPYING. If not, write to |
---|
[3517] | 21 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 22 | * Boston, MA 02110-1301, USA. |
---|
[690] | 23 | * |
---|
| 24 | * NOTE for everyone want's to change something and send patches: |
---|
| 25 | * read README and HACKING! There a addition information on |
---|
| 26 | * the license of this document you need to read before you send |
---|
| 27 | * any patches. |
---|
| 28 | * |
---|
| 29 | * NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc |
---|
| 30 | * or libpulse*: |
---|
| 31 | * The libs libroaresd, libroararts and libroarpulse link this lib |
---|
| 32 | * and are therefore GPL. Because of this it may be illigal to use |
---|
| 33 | * them with any software that uses libesd, libartsc or libpulse*. |
---|
| 34 | */ |
---|
| 35 | |
---|
[0] | 36 | #ifndef _LIBROAR_H_ |
---|
| 37 | #define _LIBROAR_H_ |
---|
| 38 | |
---|
| 39 | #define ROAR_DBG_PREFIX "libroar" |
---|
| 40 | |
---|
[474] | 41 | #include <roaraudio.h> |
---|
| 42 | |
---|
[1351] | 43 | #include <stdarg.h> |
---|
| 44 | |
---|
[1386] | 45 | #ifdef ROAR_HAVE_WAIT |
---|
[1254] | 46 | #include <sys/wait.h> |
---|
[1386] | 47 | #endif |
---|
[1254] | 48 | |
---|
[1425] | 49 | #ifdef ROAR_HAVE_H_FCNTL |
---|
[0] | 50 | #include <fcntl.h> |
---|
[1425] | 51 | #endif |
---|
[1374] | 52 | |
---|
[3056] | 53 | #ifdef ROAR_HAVE_H_SIGNAL |
---|
[1418] | 54 | #include <signal.h> |
---|
| 55 | #endif |
---|
| 56 | |
---|
[1374] | 57 | #ifdef ROAR_HAVE_BSDSOCKETS |
---|
| 58 | |
---|
[1075] | 59 | #ifndef ROAR_TARGET_WIN32 |
---|
[322] | 60 | #include <sys/socket.h> |
---|
[1374] | 61 | #ifdef ROAR_HAVE_IPV4 |
---|
[726] | 62 | #include <netinet/in_systm.h> |
---|
[322] | 63 | #include <netinet/in.h> |
---|
| 64 | #include <netinet/ip.h> |
---|
[1374] | 65 | #endif |
---|
[902] | 66 | #include <sys/uio.h> |
---|
[1075] | 67 | #endif |
---|
[501] | 68 | #ifdef ROAR_HAVE_LIBDNET |
---|
| 69 | #include <netdnet/dn.h> |
---|
| 70 | #include <netdnet/dnetdb.h> |
---|
| 71 | #endif |
---|
[529] | 72 | #ifdef ROAR_HAVE_IPX |
---|
[528] | 73 | #include <netipx/ipx.h> |
---|
| 74 | #endif |
---|
[0] | 75 | |
---|
[1374] | 76 | #endif /* ROAR_HAVE_BSDSOCKETS */ |
---|
| 77 | |
---|
[1322] | 78 | #ifdef ROAR_HAVE_LIBSSL |
---|
| 79 | #include <openssl/bio.h> |
---|
| 80 | #include <openssl/evp.h> |
---|
| 81 | #endif |
---|
| 82 | |
---|
[1996] | 83 | #ifdef ROAR_HAVE_LIBSLP |
---|
| 84 | #include <slp.h> |
---|
[3203] | 85 | #ifdef ROAR_HAVE_H_SYS_TIME |
---|
| 86 | #include <sys/time.h> |
---|
| 87 | #endif |
---|
| 88 | #ifdef ROAR_HAVE_H_TIME |
---|
| 89 | #include <time.h> |
---|
| 90 | #endif |
---|
[1996] | 91 | #endif |
---|
| 92 | |
---|
[3297] | 93 | #if defined(ROAR_HAVE_LIBDL) |
---|
| 94 | #include <dlfcn.h> |
---|
| 95 | #endif |
---|
| 96 | |
---|
[3371] | 97 | #ifdef ROAR_HAVE_LIBX11 |
---|
| 98 | #include <X11/Xlib.h> |
---|
| 99 | #include <X11/Xatom.h> |
---|
| 100 | #endif |
---|
| 101 | |
---|
[797] | 102 | #include "error.h" |
---|
[2477] | 103 | #include "config.h" |
---|
[3376] | 104 | #include "keyval.h" |
---|
[3297] | 105 | #include "roardl.h" |
---|
[2648] | 106 | #include "debug.h" |
---|
[2976] | 107 | #include "memmgr.h" |
---|
[1280] | 108 | #include "stack.h" |
---|
[1297] | 109 | #include "buffer.h" |
---|
[2812] | 110 | #include "nnode.h" |
---|
[2058] | 111 | #include "vio_ctl.h" |
---|
[588] | 112 | #include "vio.h" |
---|
[1255] | 113 | #include "vio_cmd.h" |
---|
[1274] | 114 | #include "vio_ops.h" |
---|
[2060] | 115 | #include "vio_string.h" |
---|
[1274] | 116 | #include "vio_magic.h" |
---|
[1347] | 117 | #include "vio_bio.h" |
---|
[2059] | 118 | #include "vio_stdio.h" |
---|
[1347] | 119 | #include "vio_stack.h" |
---|
[2981] | 120 | #include "vio_jumbo.h" |
---|
[1300] | 121 | #include "vio_pipe.h" |
---|
[1331] | 122 | #include "vio_socket.h" |
---|
[3315] | 123 | #include "vio_winsock.h" |
---|
[1347] | 124 | #include "vio_proto.h" |
---|
[3272] | 125 | #include "vio_rtp.h" |
---|
[1506] | 126 | #include "vio_select.h" |
---|
[1326] | 127 | // dstr needs to have access to all other VIOs, so it must be included last |
---|
[1321] | 128 | #include "vio_dstr.h" |
---|
[3109] | 129 | #include "vio_tantalos.h" |
---|
[2812] | 130 | #include "client.h" |
---|
[0] | 131 | #include "basic.h" |
---|
| 132 | #include "stream.h" |
---|
| 133 | #include "simple.h" |
---|
[808] | 134 | #include "cdrom.h" |
---|
[0] | 135 | #include "auth.h" |
---|
| 136 | #include "socket.h" |
---|
| 137 | #include "ctl.h" |
---|
[94] | 138 | #include "meta.h" |
---|
[320] | 139 | #include "file.h" |
---|
[347] | 140 | #include "acl.h" |
---|
[1232] | 141 | #include "pinentry.h" |
---|
[1288] | 142 | #include "sshaskpass.h" |
---|
[2000] | 143 | #include "roarslp.h" |
---|
[3370] | 144 | #include "roarx11.h" |
---|
[0] | 145 | |
---|
[2067] | 146 | // some basic macros: |
---|
| 147 | #define ROAR_MAX2(a,b) ((a) > (b) ? (a) : (b)) |
---|
| 148 | #define ROAR_MIN2(a,b) ((a) < (b) ? (a) : (b)) |
---|
| 149 | |
---|
| 150 | #define ROAR_MAX3(a,b,c) ROAR_MAX2(ROAR_MAX2(a,b),c) |
---|
| 151 | #define ROAR_MIN3(a,b,c) ROAR_MIN2(ROAR_MIN2(a,b),c) |
---|
| 152 | |
---|
| 153 | #define ROAR_MAX4(a,b,c,d) ROAR_MAX2(ROAR_MAX2(a,b),ROAR_MAX2(c,d)) |
---|
| 154 | #define ROAR_MIN4(a,b,c,d) ROAR_MIN2(ROAR_MIN2(a,b),ROAR_MIN2(c,d)) |
---|
| 155 | |
---|
| 156 | #define ROAR_MAX ROAR_MAX2 |
---|
| 157 | #define ROAR_MIN ROAR_MIN2 |
---|
| 158 | |
---|
[0] | 159 | #endif |
---|
| 160 | |
---|
| 161 | //ll |
---|