#ifndef CONFIGURATION_H
#define CONFIGURATION_H
-#if HAVE_PCRE_H
-# include <pcre.h>
-#endif
-
#include "speaker-protocol.h"
+#include "regexp.h"
#include "rights.h"
#include "addr.h"
struct collection *s;
};
-#if HAVE_PCRE_H
/** @brief A track name part */
struct namepart {
char *part; /* part */
- pcre *re; /* compiled regexp */
+ regexp *re; /* compiled regexp */
char *res; /* regexp as a string */
char *replace; /* replacement string */
char *context; /* context glob */
char *type; /* track or dir */
char *context; /* sort or choose */
char *replace; /* substitution string */
- pcre *re; /* compiled re */
+ regexp *re; /* compiled re */
unsigned flags; /* regexp flags */
};
int n;
struct transform *t;
};
-#endif
/** @brief System configuration */
struct config {
/** @brief Minimum time between a track being played again */
long replay_min;
-#if HAVE_PCRE_H
struct namepartlist namepart; /* transformations */
-#endif
/** @brief Termination signal for subprocesses */
int signal;
/** @brief ALSA output device */
const char *device;
-#if HAVE_PCRE_H
struct transformlist transform; /* path name transformations */
-#endif
/** @brief Address to send audio data to */
struct netaddress broadcast;
/** @brief RTP delay threshold */
long rtp_delay_threshold;
+ /** @brief Whether to ignore the server's suggested RTP arrangement and
+ * always request a unicast stream */
+ int rtp_always_request;
+
+ /** @brief RTP buffer low-water mark */
+ long rtp_minbuffer;
+
+ /** @brief RTP buffer maximum size */
+ long rtp_maxbuffer;
+
+ /* @brief RTP receive buffer size */
+ long rtp_rcvbuf;
+
+ /** @brief Fixed RTP listening address */
+ struct netaddress rtp_request_address;
+
/** @brief Verbose RTP transmission logging */
int rtp_verbose;