1.2 pulseaudio: make some function pointers static. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 17 Jan 2010 05:17:59 +0000
branchSDL-1.2
changeset 4396f5d3f7fa071d
parent 4395 3c35b8d3b9fc
child 4397 fb1fc6c9289e
1.2 pulseaudio: make some function pointers static.
build-scripts/fatbuild.sh
src/audio/pulse/SDL_pulseaudio.c
     1.1 --- a/build-scripts/fatbuild.sh	Wed Jan 06 06:41:41 2010 +0000
     1.2 +++ b/build-scripts/fatbuild.sh	Sun Jan 17 05:17:59 2010 +0000
     1.3 @@ -5,96 +5,98 @@
     1.4  # Number of CPUs (for make -j)
     1.5  NCPU=`sysctl -n hw.ncpu`
     1.6  NJOB=$NCPU
     1.7 -#NJOB=`expr $NCPU + 1`
     1.8  
     1.9  # Generic, cross-platform CFLAGS you always want go here.
    1.10  CFLAGS="-O3 -g -pipe"
    1.11  
    1.12 -# Locate Xcode SDK path
    1.13 -SDK_PATH=/Developer/SDKs
    1.14 -if [ ! -d $SDK_PATH ]; then
    1.15 -    echo "Couldn't find SDK path"
    1.16 -    exit 1
    1.17 -fi
    1.18 -
    1.19 -# See if we can use 10.2 or 10.3 runtime compatibility
    1.20 -if [ -d "$SDK_PATH/MacOSX10.2.8.sdk" ]; then
    1.21 -    # PowerPC configure flags (10.2 runtime compatibility)
    1.22 -    # We dynamically load X11, so using the system X11 headers is fine.
    1.23 -    CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
    1.24 +# PowerPC 32-bit configure flags (10.4 runtime compatibility)
    1.25 +# We dynamically load X11, so using the system X11 headers is fine.
    1.26 +CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
    1.27  --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
    1.28  
    1.29 -    # PowerPC compiler flags
    1.30 -    CC_PPC="gcc-3.3 -arch ppc"
    1.31 -    CXX_PPC="g++-3.3 -arch ppc"
    1.32 -    CFLAGS_PPC=""
    1.33 -    CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 \
    1.34 +# PowerPC 32-bit compiler flags
    1.35 +CC_PPC="gcc-4.0 -arch ppc"
    1.36 +CXX_PPC="g++-4.0 -arch ppc"
    1.37 +CFLAGS_PPC="-mmacosx-version-min=10.4"
    1.38 +CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    1.39  -nostdinc \
    1.40 --F$SDK_PATH/MacOSX10.2.8.sdk/System/Library/Frameworks \
    1.41 --I$SDK_PATH/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3 \
    1.42 --isystem $SDK_PATH/MacOSX10.2.8.sdk/usr/include"
    1.43 +-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
    1.44 +-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include \
    1.45 +-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
    1.46  
    1.47 -    # PowerPC linker flags 
    1.48 -    LFLAGS_PPC="-Wl,-headerpad_max_install_names -arch ppc \
    1.49 --L$SDK_PATH/MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 \
    1.50 --F$SDK_PATH/MacOSX10.2.8.sdk/System/Library/Frameworks \
    1.51 --Wl,-syslibroot,$SDK_PATH/MacOSX10.2.8.sdk"
    1.52 +# PowerPC 32-bit linker flags
    1.53 +LFLAGS_PPC="-arch ppc -mmacosx-version-min=10.4 \
    1.54 +-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
    1.55 +-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1 \
    1.56 +-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
    1.57  
    1.58 -else # 10.2 or 10.3 SDK
    1.59 -
    1.60 -    # PowerPC configure flags (10.3 runtime compatibility)
    1.61 -    # We dynamically load X11, so using the system X11 headers is fine.
    1.62 -    CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
    1.63 +# PowerPC 64-bit configure flags (10.5 runtime compatibility)
    1.64 +# We dynamically load X11, so using the system X11 headers is fine.
    1.65 +CONFIG_PPC64="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
    1.66  --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
    1.67  
    1.68 -    # PowerPC compiler flags
    1.69 -    CC_PPC="gcc-4.0 -arch ppc"
    1.70 -    CXX_PPC="g++-4.0 -arch ppc"
    1.71 -    CFLAGS_PPC=""
    1.72 -    CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1030 \
    1.73 +# PowerPC 64-bit compiler flags
    1.74 +CC_PPC64="gcc-4.0 -arch ppc64"
    1.75 +CXX_PPC64="g++-4.0 -arch ppc64"
    1.76 +CFLAGS_PPC64="-mmacosx-version-min=10.5"
    1.77 +CPPFLAGS_PPC64="-DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
    1.78  -nostdinc \
    1.79 --F$SDK_PATH/MacOSX10.3.9.sdk/System/Library/Frameworks \
    1.80 --I$SDK_PATH/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include \
    1.81 --isystem $SDK_PATH/MacOSX10.3.9.sdk/usr/include"
    1.82 +-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \
    1.83 +-I/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include \
    1.84 +-isystem /Developer/SDKs/MacOSX10.5.sdk/usr/include"
    1.85  
    1.86 -    # PowerPC linker flags
    1.87 -    LFLAGS_PPC="-Wl,-headerpad_max_install_names -arch ppc -mmacosx-version-min=10.3 \
    1.88 --L$SDK_PATH/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 \
    1.89 --F$SDK_PATH/MacOSX10.3.9.sdk/System/Library/Frameworks \
    1.90 --Wl,-syslibroot,$SDK_PATH/MacOSX10.3.9.sdk"
    1.91 +# PowerPC 64-bit linker flags
    1.92 +LFLAGS_PPC64="-arch ppc64 -mmacosx-version-min=10.5 \
    1.93 +-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \
    1.94 +-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/ppc64 \
    1.95 +-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk"
    1.96  
    1.97 -fi # 10.2 or 10.3 SDK
    1.98 -
    1.99 -# Intel configure flags (10.4 runtime compatibility)
   1.100 +# Intel 32-bit configure flags (10.4 runtime compatibility)
   1.101  # We dynamically load X11, so using the system X11 headers is fine.
   1.102  CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
   1.103  --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
   1.104  
   1.105 -# They changed this to "darwin10" in Xcode 3.2 (Snow Leopard).
   1.106 -GCCUSRPATH="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1"
   1.107 -if [ ! -d "$GCCUSRPATH" ]; then
   1.108 -    GCCUSRPATH="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1"
   1.109 -fi
   1.110 +# Intel 32-bit configure flags (10.4 runtime compatibility)
   1.111 +# We dynamically load X11, so using the system X11 headers is fine.
   1.112 +CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
   1.113 +--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
   1.114  
   1.115 -if [ ! -d "$GCCUSRPATH" ]; then
   1.116 -    echo "Couldn't find any GCC usr path"
   1.117 -    exit 1
   1.118 -fi
   1.119 -
   1.120 -# Intel compiler flags
   1.121 +# Intel 32-bit compiler flags
   1.122  CC_X86="gcc-4.0 -arch i386"
   1.123  CXX_X86="g++-4.0 -arch i386"
   1.124  CFLAGS_X86="-mmacosx-version-min=10.4"
   1.125  CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
   1.126  -nostdinc \
   1.127 --F$SDK_PATH/MacOSX10.4u.sdk/System/Library/Frameworks \
   1.128 --I$GCCUSRPATH/include \
   1.129 --isystem $SDK_PATH/MacOSX10.4u.sdk/usr/include"
   1.130 +-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
   1.131 +-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \
   1.132 +-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
   1.133 +
   1.134 +# Intel 32-bit linker flags
   1.135 +LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \
   1.136 +-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
   1.137 +-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1 \
   1.138 +-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
   1.139 +
   1.140 +# Intel 64-bit configure flags (10.5 runtime compatibility)
   1.141 +# We dynamically load X11, so using the system X11 headers is fine.
   1.142 +CONFIG_X64="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
   1.143 +--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
   1.144  
   1.145 -# Intel linker flags
   1.146 -LFLAGS_X86="-Wl,-headerpad_max_install_names -arch i386 -mmacosx-version-min=10.4 \
   1.147 --L$GCCUSRPATH \
   1.148 --Wl,-syslibroot,$SDK_PATH/MacOSX10.4u.sdk"
   1.149 +# Intel 64-bit compiler flags
   1.150 +CC_X64="gcc-4.0 -arch x86_64"
   1.151 +CXX_X64="g++-4.0 -arch x86_64"
   1.152 +CFLAGS_X64="-mmacosx-version-min=10.5"
   1.153 +CPPFLAGS_X64="-DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
   1.154 +-nostdinc \
   1.155 +-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \
   1.156 +-I/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \
   1.157 +-isystem /Developer/SDKs/MacOSX10.5.sdk/usr/include"
   1.158 +
   1.159 +# Intel 64-bit linker flags
   1.160 +LFLAGS_X64="-arch x86_64 -mmacosx-version-min=10.5 \
   1.161 +-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \
   1.162 +-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/x86_64 \
   1.163 +-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk"
   1.164  
   1.165  #
   1.166  # Find the configure script
   1.167 @@ -106,8 +108,8 @@
   1.168  #
   1.169  # Figure out which phase to build:
   1.170  # all,
   1.171 -# configure, configure-ppc, configure-x86,
   1.172 -# make, make-ppc, make-x86, merge
   1.173 +# configure, configure-ppc, configure-ppc64, configure-x86, configure-x64
   1.174 +# make, make-ppc, make-ppc64, make-x86, make-x64, merge
   1.175  # install
   1.176  # clean
   1.177  if test x"$1" = x; then
   1.178 @@ -118,32 +120,52 @@
   1.179  case $phase in
   1.180      all)
   1.181          configure_ppc="yes"
   1.182 +        #configure_ppc64="yes"
   1.183          configure_x86="yes"
   1.184 +        configure_x64="yes"
   1.185          make_ppc="yes"
   1.186 +        #make_ppc64="yes"
   1.187          make_x86="yes"
   1.188 +        make_x64="yes"
   1.189          merge="yes"
   1.190          ;;
   1.191      configure)
   1.192          configure_ppc="yes"
   1.193 +        configure_ppc64="yes"
   1.194          configure_x86="yes"
   1.195 +        configure_x64="yes"
   1.196          ;;
   1.197      configure-ppc)
   1.198          configure_ppc="yes"
   1.199          ;;
   1.200 +    configure-ppc64)
   1.201 +        configure_ppc64="yes"
   1.202 +        ;;
   1.203      configure-x86)
   1.204          configure_x86="yes"
   1.205          ;;
   1.206 +    configure-x64)
   1.207 +        configure_x64="yes"
   1.208 +        ;;
   1.209      make)
   1.210          make_ppc="yes"
   1.211 +        make_ppc64="yes"
   1.212          make_x86="yes"
   1.213 +        make_x64="yes"
   1.214          merge="yes"
   1.215          ;;
   1.216      make-ppc)
   1.217          make_ppc="yes"
   1.218          ;;
   1.219 +    make-ppc64)
   1.220 +        make_ppc64="yes"
   1.221 +        ;;
   1.222      make-x86)
   1.223          make_x86="yes"
   1.224          ;;
   1.225 +    make-x64)
   1.226 +        make_x64="yes"
   1.227 +        ;;
   1.228      merge)
   1.229          merge="yes"
   1.230          ;;
   1.231 @@ -171,16 +193,24 @@
   1.232          ;;
   1.233      clean)
   1.234          clean_ppc="yes"
   1.235 +        clean_ppc64="yes"
   1.236          clean_x86="yes"
   1.237 +        clean_x64="yes"
   1.238          ;;
   1.239      clean-ppc)
   1.240          clean_ppc="yes"
   1.241          ;;
   1.242 +    clean-ppc64)
   1.243 +        clean_ppc64="yes"
   1.244 +        ;;
   1.245      clean-x86)
   1.246          clean_x86="yes"
   1.247          ;;
   1.248 +    clean-x64)
   1.249 +        clean_x64="yes"
   1.250 +        ;;
   1.251      *)
   1.252 -        echo "Usage: $0 [all|configure[-ppc|-x86]|make[-ppc|-x86]|merge|install|clean]"
   1.253 +        echo "Usage: $0 [all|configure[-ppc|-ppc64|-x86|-x64]|make[-ppc|-ppc64|-x86|-x64]|merge|install|clean[-ppc|-ppc64|-x86|-x64]]"
   1.254          exit 1
   1.255          ;;
   1.256  esac
   1.257 @@ -188,9 +218,15 @@
   1.258      powerpc)
   1.259          native_path=ppc
   1.260          ;;
   1.261 +    powerpc64)
   1.262 +        native_path=ppc64
   1.263 +        ;;
   1.264      *86)
   1.265          native_path=x86
   1.266          ;;
   1.267 +    x86_64)
   1.268 +        native_path=x64
   1.269 +        ;;
   1.270      *)
   1.271          echo "Couldn't figure out native architecture path"
   1.272          exit 1
   1.273 @@ -200,7 +236,7 @@
   1.274  #
   1.275  # Create the build directories
   1.276  #
   1.277 -for dir in build build/ppc build/x86; do
   1.278 +for dir in build build/ppc build/ppc64 build/x86 build/x64; do
   1.279      if test -d $dir; then
   1.280          :
   1.281      else
   1.282 @@ -209,7 +245,7 @@
   1.283  done
   1.284  
   1.285  #
   1.286 -# Build the PowerPC binary
   1.287 +# Build the PowerPC 32-bit binary
   1.288  #
   1.289  if test x$configure_ppc = xyes; then
   1.290      (cd build/ppc && \
   1.291 @@ -220,7 +256,18 @@
   1.292  fi
   1.293  
   1.294  #
   1.295 -# Build the Intel binary
   1.296 +# Build the PowerPC 64-bit binary
   1.297 +#
   1.298 +if test x$configure_ppc64 = xyes; then
   1.299 +    (cd build/ppc64 && \
   1.300 +     sh ../../configure $CONFIG_PPC64 CC="$CC_PPC64" CXX="$CXX_PPC64" CFLAGS="$CFLAGS $CFLAGS_PPC64" CPPFLAGS="$CPPFLAGS_PPC64" LDFLAGS="$LFLAGS_PPC64") || exit 2
   1.301 +fi
   1.302 +if test x$make_ppc64 = xyes; then
   1.303 +    (cd build/ppc64 && ls include && make -j$NJOB) || exit 3
   1.304 +fi
   1.305 +
   1.306 +#
   1.307 +# Build the Intel 32-bit binary
   1.308  #
   1.309  if test x$configure_x86 = xyes; then
   1.310      (cd build/x86 && \
   1.311 @@ -231,15 +278,25 @@
   1.312  fi
   1.313  
   1.314  #
   1.315 +# Build the Intel 32-bit binary
   1.316 +#
   1.317 +if test x$configure_x64 = xyes; then
   1.318 +    (cd build/x64 && \
   1.319 +     sh ../../configure $CONFIG_X64 CC="$CC_X64" CXX="$CXX_X64" CFLAGS="$CFLAGS $CFLAGS_X64" CPPFLAGS="$CPPFLAGS_X64" LDFLAGS="$LFLAGS_X64") || exit 2
   1.320 +fi
   1.321 +if test x$make_x64 = xyes; then
   1.322 +    (cd build/x64 && make -j$NJOB) || exit 3
   1.323 +fi
   1.324 +
   1.325 +#
   1.326  # Combine into fat binary
   1.327  #
   1.328  if test x$merge = xyes; then
   1.329      output=.libs
   1.330      sh $auxdir/mkinstalldirs build/$output
   1.331      cd build
   1.332 -    target=`find . -mindepth 3 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
   1.333 -    (lipo -create -o $output/$target `find . -mindepth 3 -type f -name "*.dylib"` &&
   1.334 -     ln -sf $target $output/libSDL-1.2.0.dylib &&
   1.335 +    target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
   1.336 +    (lipo -create -o $output/$target `find . -mindepth 4 -maxdepth 4 -type f -name "*.dylib"` &&
   1.337       ln -sf $target $output/libSDL.dylib &&
   1.338       lipo -create -o $output/libSDL.a */build/.libs/libSDL.a &&
   1.339       cp $native_path/build/.libs/libSDL.la $output &&
     2.1 --- a/src/audio/pulse/SDL_pulseaudio.c	Wed Jan 06 06:41:41 2010 +0000
     2.2 +++ b/src/audio/pulse/SDL_pulseaudio.c	Sun Jan 17 05:17:59 2010 +0000
     2.3 @@ -82,37 +82,37 @@
     2.4  	pa_channel_map_def_t def
     2.5  );
     2.6  
     2.7 -pa_mainloop * (*SDL_NAME(pa_mainloop_new))(void);
     2.8 -pa_mainloop_api * (*SDL_NAME(pa_mainloop_get_api))(pa_mainloop *m);
     2.9 -int (*SDL_NAME(pa_mainloop_iterate))(pa_mainloop *m, int block, int *retval);
    2.10 -void (*SDL_NAME(pa_mainloop_free))(pa_mainloop *m);
    2.11 +static pa_mainloop * (*SDL_NAME(pa_mainloop_new))(void);
    2.12 +static pa_mainloop_api * (*SDL_NAME(pa_mainloop_get_api))(pa_mainloop *m);
    2.13 +static int (*SDL_NAME(pa_mainloop_iterate))(pa_mainloop *m, int block, int *retval);
    2.14 +static void (*SDL_NAME(pa_mainloop_free))(pa_mainloop *m);
    2.15  
    2.16 -pa_operation_state_t (*SDL_NAME(pa_operation_get_state))(pa_operation *o);
    2.17 -void (*SDL_NAME(pa_operation_cancel))(pa_operation *o);
    2.18 -void (*SDL_NAME(pa_operation_unref))(pa_operation *o);
    2.19 +static pa_operation_state_t (*SDL_NAME(pa_operation_get_state))(pa_operation *o);
    2.20 +static void (*SDL_NAME(pa_operation_cancel))(pa_operation *o);
    2.21 +static void (*SDL_NAME(pa_operation_unref))(pa_operation *o);
    2.22  
    2.23 -pa_context * (*SDL_NAME(pa_context_new))(
    2.24 +static pa_context * (*SDL_NAME(pa_context_new))(
    2.25  	pa_mainloop_api *m, const char *name);
    2.26 -int (*SDL_NAME(pa_context_connect))(
    2.27 +static int (*SDL_NAME(pa_context_connect))(
    2.28  	pa_context *c, const char *server,
    2.29  	pa_context_flags_t flags, const pa_spawn_api *api);
    2.30 -pa_context_state_t (*SDL_NAME(pa_context_get_state))(pa_context *c);
    2.31 -void (*SDL_NAME(pa_context_disconnect))(pa_context *c);
    2.32 -void (*SDL_NAME(pa_context_unref))(pa_context *c);
    2.33 +static pa_context_state_t (*SDL_NAME(pa_context_get_state))(pa_context *c);
    2.34 +static void (*SDL_NAME(pa_context_disconnect))(pa_context *c);
    2.35 +static void (*SDL_NAME(pa_context_unref))(pa_context *c);
    2.36  
    2.37 -pa_stream * (*SDL_NAME(pa_stream_new))(pa_context *c,
    2.38 +static pa_stream * (*SDL_NAME(pa_stream_new))(pa_context *c,
    2.39  	const char *name, const pa_sample_spec *ss, const pa_channel_map *map);
    2.40 -int (*SDL_NAME(pa_stream_connect_playback))(pa_stream *s, const char *dev,
    2.41 +static int (*SDL_NAME(pa_stream_connect_playback))(pa_stream *s, const char *dev,
    2.42  	const pa_buffer_attr *attr, pa_stream_flags_t flags,
    2.43  	pa_cvolume *volume, pa_stream *sync_stream);
    2.44 -pa_stream_state_t (*SDL_NAME(pa_stream_get_state))(pa_stream *s);
    2.45 -size_t (*SDL_NAME(pa_stream_writable_size))(pa_stream *s);
    2.46 -int (*SDL_NAME(pa_stream_write))(pa_stream *s, const void *data, size_t nbytes,
    2.47 +static pa_stream_state_t (*SDL_NAME(pa_stream_get_state))(pa_stream *s);
    2.48 +static size_t (*SDL_NAME(pa_stream_writable_size))(pa_stream *s);
    2.49 +static int (*SDL_NAME(pa_stream_write))(pa_stream *s, const void *data, size_t nbytes,
    2.50  	pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek);
    2.51 -pa_operation * (*SDL_NAME(pa_stream_drain))(pa_stream *s,
    2.52 +static pa_operation * (*SDL_NAME(pa_stream_drain))(pa_stream *s,
    2.53  	pa_stream_success_cb_t cb, void *userdata);
    2.54 -int (*SDL_NAME(pa_stream_disconnect))(pa_stream *s);
    2.55 -void (*SDL_NAME(pa_stream_unref))(pa_stream *s);
    2.56 +static int (*SDL_NAME(pa_stream_disconnect))(pa_stream *s);
    2.57 +static void (*SDL_NAME(pa_stream_unref))(pa_stream *s);
    2.58  
    2.59  static struct {
    2.60  	const char *name;