source: roaraudio/include/libroar/libroar.h @ 3370:5bfd80b0e72d

Last change on this file since 3370:5bfd80b0e72d was 3370:5bfd80b0e72d, checked in by phi, 14 years ago

preper libroar for X11 code

File size: 3.6 KB
RevLine 
[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
21 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 *
23 *  NOTE for everyone want's to change something and send patches:
24 *  read README and HACKING! There a addition information on
25 *  the license of this document you need to read before you send
26 *  any patches.
27 *
28 *  NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc
29 *  or libpulse*:
30 *  The libs libroaresd, libroararts and libroarpulse link this lib
31 *  and are therefore GPL. Because of this it may be illigal to use
32 *  them with any software that uses libesd, libartsc or libpulse*.
33 */
34
[0]35#ifndef _LIBROAR_H_
36#define _LIBROAR_H_
37
38#define ROAR_DBG_PREFIX  "libroar"
39
[474]40#include <roaraudio.h>
41
[1351]42#include <stdarg.h>
43
[1386]44#ifdef ROAR_HAVE_WAIT
[1254]45#include <sys/wait.h>
[1386]46#endif
[1254]47
[1425]48#ifdef ROAR_HAVE_H_FCNTL
[0]49#include <fcntl.h>
[1425]50#endif
[1374]51
[3056]52#ifdef ROAR_HAVE_H_SIGNAL
[1418]53#include <signal.h>
54#endif
55
[1374]56#ifdef ROAR_HAVE_BSDSOCKETS
57
[1075]58#ifndef ROAR_TARGET_WIN32
[322]59#include <sys/socket.h>
[1374]60#ifdef ROAR_HAVE_IPV4
[726]61#include <netinet/in_systm.h>
[322]62#include <netinet/in.h>
63#include <netinet/ip.h>
[1374]64#endif
[902]65#include <sys/uio.h>
[1075]66#endif
[501]67#ifdef ROAR_HAVE_LIBDNET
68#include <netdnet/dn.h>
69#include <netdnet/dnetdb.h>
70#endif
[529]71#ifdef ROAR_HAVE_IPX
[528]72#include <netipx/ipx.h>
73#endif
[0]74
[1374]75#endif /* ROAR_HAVE_BSDSOCKETS */
76
[1322]77#ifdef ROAR_HAVE_LIBSSL
78#include <openssl/bio.h>
79#include <openssl/evp.h>
80#endif
81
[1996]82#ifdef ROAR_HAVE_LIBSLP
83#include <slp.h>
[3203]84#ifdef ROAR_HAVE_H_SYS_TIME
85#include <sys/time.h>
86#endif
87#ifdef ROAR_HAVE_H_TIME
88#include <time.h>
89#endif
[1996]90#endif
91
[3297]92#if defined(ROAR_HAVE_LIBDL)
93#include <dlfcn.h>
94#endif
95
[797]96#include "error.h"
[2477]97#include "config.h"
[3297]98#include "roardl.h"
[2648]99#include "debug.h"
[2976]100#include "memmgr.h"
[1280]101#include "stack.h"
[1297]102#include "buffer.h"
[2812]103#include "nnode.h"
[2058]104#include "vio_ctl.h"
[588]105#include "vio.h"
[1255]106#include "vio_cmd.h"
[1274]107#include "vio_ops.h"
[2060]108#include "vio_string.h"
[1274]109#include "vio_magic.h"
[1347]110#include "vio_bio.h"
[2059]111#include "vio_stdio.h"
[1347]112#include "vio_stack.h"
[2981]113#include "vio_jumbo.h"
[1300]114#include "vio_pipe.h"
[1331]115#include "vio_socket.h"
[3315]116#include "vio_winsock.h"
[1347]117#include "vio_proto.h"
[3272]118#include "vio_rtp.h"
[1506]119#include "vio_select.h"
[1326]120// dstr needs to have access to all other VIOs, so it must be included last
[1321]121#include "vio_dstr.h"
[3109]122#include "vio_tantalos.h"
[2812]123#include "client.h"
[0]124#include "basic.h"
125#include "stream.h"
126#include "simple.h"
[808]127#include "cdrom.h"
[0]128#include "auth.h"
129#include "socket.h"
130#include "ctl.h"
[94]131#include "meta.h"
[320]132#include "file.h"
[347]133#include "acl.h"
[1232]134#include "pinentry.h"
[1288]135#include "sshaskpass.h"
[2000]136#include "roarslp.h"
[3370]137#include "roarx11.h"
[0]138
[2067]139// some basic macros:
140#define ROAR_MAX2(a,b) ((a) > (b) ? (a) : (b))
141#define ROAR_MIN2(a,b) ((a) < (b) ? (a) : (b))
142
143#define ROAR_MAX3(a,b,c) ROAR_MAX2(ROAR_MAX2(a,b),c)
144#define ROAR_MIN3(a,b,c) ROAR_MIN2(ROAR_MIN2(a,b),c)
145
146#define ROAR_MAX4(a,b,c,d) ROAR_MAX2(ROAR_MAX2(a,b),ROAR_MAX2(c,d))
147#define ROAR_MIN4(a,b,c,d) ROAR_MIN2(ROAR_MIN2(a,b),ROAR_MIN2(c,d))
148
149#define ROAR_MAX ROAR_MAX2
150#define ROAR_MIN ROAR_MIN2
151
[0]152#endif
153
154//ll
Note: See TracBrowser for help on using the repository browser.