summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-04 00:10:43 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-04 00:10:43 +0200
commit8222f1200fc2db90fdfde17f5f958f04272f9ade (patch)
treec1456c452eb2e79ade956d412272e8e4869d48db /src/pulsecore/core-util.h
parent7a1a1478819c0f4716f0612f1121a0429f455fa9 (diff)
add new API function pa_in_valgrind() to check for
Diffstat (limited to 'src/pulsecore/core-util.h')
-rw-r--r--src/pulsecore/core-util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h
index df8ce3f8..fd6ee896 100644
--- a/src/pulsecore/core-util.h
+++ b/src/pulsecore/core-util.h
@@ -35,6 +35,10 @@
#include <pulse/gccmacro.h>
#include <pulsecore/macro.h>
+#ifndef PACKAGE
+#error "Please include config.h before including this file!"
+#endif
+
struct timeval;
/* These resource limits are pretty new on Linux, let's define them
@@ -193,4 +197,13 @@ pa_bool_t pa_in_system_mode(void);
char *pa_machine_id(void);
char *pa_uname_string(void);
+
+#ifdef HAVE_VALGRIND_MEMCHECK_H
+pa_bool_t pa_in_valgrind(void);
+#else
+static inline pa_bool_t pa_in_valgrind(void) {
+ return FALSE;
+}
+#endif
+
#endif