source: roaraudio/include/libroar/libroar.h @ 3567:9c0a3dac20c4

Last change on this file since 3567:9c0a3dac20c4 was 3567:9c0a3dac20c4, checked in by phi, 14 years ago

added beep.h

File size: 3.8 KB
Line 
1//libroar.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008, 2009, 2010
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, 51 Franklin Street, Fifth Floor,
22 *  Boston, MA 02110-1301, USA.
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
36#ifndef _LIBROAR_H_
37#define _LIBROAR_H_
38
39#define ROAR_DBG_PREFIX  "libroar"
40
41#include <roaraudio.h>
42
43#include <stdarg.h>
44
45#ifdef ROAR_HAVE_WAIT
46#include <sys/wait.h>
47#endif
48
49#ifdef ROAR_HAVE_H_FCNTL
50#include <fcntl.h>
51#endif
52
53#ifdef ROAR_HAVE_H_SIGNAL
54#include <signal.h>
55#endif
56
57#ifdef ROAR_HAVE_BSDSOCKETS
58
59#ifndef ROAR_TARGET_WIN32
60#include <sys/socket.h>
61#ifdef ROAR_HAVE_IPV4
62#include <netinet/in_systm.h>
63#include <netinet/in.h>
64#include <netinet/ip.h>
65#endif
66#include <sys/uio.h>
67#endif
68#ifdef ROAR_HAVE_LIBDNET
69#include <netdnet/dn.h>
70#include <netdnet/dnetdb.h>
71#endif
72#ifdef ROAR_HAVE_IPX
73#include <netipx/ipx.h>
74#endif
75
76#endif /* ROAR_HAVE_BSDSOCKETS */
77
78#ifdef ROAR_HAVE_LIBSSL
79#include <openssl/bio.h>
80#include <openssl/evp.h>
81#endif
82
83#ifdef ROAR_HAVE_LIBSLP
84#include <slp.h>
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
91#endif
92
93#if defined(ROAR_HAVE_LIBDL)
94#include <dlfcn.h>
95#endif
96
97#ifdef ROAR_HAVE_LIBX11
98#include <X11/Xlib.h>
99#include <X11/Xatom.h>
100#endif
101
102#include "error.h"
103#include "config.h"
104#include "keyval.h"
105#include "roardl.h"
106#include "debug.h"
107#include "memmgr.h"
108#include "stack.h"
109#include "buffer.h"
110#include "nnode.h"
111#include "vio_ctl.h"
112#include "vio.h"
113#include "vio_cmd.h"
114#include "vio_ops.h"
115#include "vio_string.h"
116#include "vio_magic.h"
117#include "vio_bio.h"
118#include "vio_stdio.h"
119#include "vio_stack.h"
120#include "vio_jumbo.h"
121#include "vio_pipe.h"
122#include "vio_socket.h"
123#include "vio_winsock.h"
124#include "vio_proto.h"
125#include "vio_rtp.h"
126#include "vio_select.h"
127// dstr needs to have access to all other VIOs, so it must be included last
128#include "vio_dstr.h"
129#include "vio_tantalos.h"
130#include "client.h"
131#include "basic.h"
132#include "stream.h"
133#include "simple.h"
134#include "cdrom.h"
135#include "auth.h"
136#include "socket.h"
137#include "ctl.h"
138#include "meta.h"
139#include "file.h"
140#include "acl.h"
141#include "pinentry.h"
142#include "sshaskpass.h"
143#include "roarslp.h"
144#include "roarx11.h"
145#include "beep.h"
146
147// some basic macros:
148#define ROAR_MAX2(a,b) ((a) > (b) ? (a) : (b))
149#define ROAR_MIN2(a,b) ((a) < (b) ? (a) : (b))
150
151#define ROAR_MAX3(a,b,c) ROAR_MAX2(ROAR_MAX2(a,b),c)
152#define ROAR_MIN3(a,b,c) ROAR_MIN2(ROAR_MIN2(a,b),c)
153
154#define ROAR_MAX4(a,b,c,d) ROAR_MAX2(ROAR_MAX2(a,b),ROAR_MAX2(c,d))
155#define ROAR_MIN4(a,b,c,d) ROAR_MIN2(ROAR_MIN2(a,b),ROAR_MIN2(c,d))
156
157#define ROAR_MAX ROAR_MAX2
158#define ROAR_MIN ROAR_MIN2
159
160#endif
161
162//ll
Note: See TracBrowser for help on using the repository browser.