[pulseaudio-commits] r2005 - /trunk/src/pulsecore/core-util.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Oct 31 17:06:32 PDT 2007


Author: lennart
Date: Thu Nov  1 01:06:31 2007
New Revision: 2005

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2005&root=pulseaudio&view=rev
Log:
add new function pa_yes_no()

Modified:
    trunk/src/pulsecore/core-util.h

Modified: trunk/src/pulsecore/core-util.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core-util.h?rev=2005&root=pulseaudio&r1=2004&r2=2005&view=diff
==============================================================================
--- trunk/src/pulsecore/core-util.h (original)
+++ trunk/src/pulsecore/core-util.h Thu Nov  1 01:06:31 2007
@@ -31,6 +31,7 @@
 #include <stdio.h>
 
 #include <pulsecore/gccmacro.h>
+#include <pulsecore/macro.h>
 
 struct timeval;
 
@@ -61,6 +62,10 @@
 void pa_reset_priority(void);
 
 int pa_parse_boolean(const char *s) PA_GCC_PURE;
+
+static inline const char *pa_yes_no(pa_bool_t b) {
+    return b ? "yes" : "no";
+}
 
 char *pa_split(const char *c, const char*delimiters, const char **state);
 char *pa_split_spaces(const char *c, const char **state);




More information about the pulseaudio-commits mailing list