add new API function pa_in_valgrind() to check for

This commit is contained in:
Lennart Poettering 2008-10-04 00:10:43 +02:00
parent 7a1a147881
commit 8222f1200f
2 changed files with 28 additions and 0 deletions

View file

@ -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