Index: /branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.c
===================================================================
--- /branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.c	(revision 29441)
+++ /branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.c	(revision 29442)
@@ -208,5 +208,5 @@
 
 // XXX need to update bDraw APIs to pass in/out structure and avoid the local static 
-bool psImageJpeg(const psImageJpegOptions *options, const psImage *image, void *bdbuf, const char *filename)
+bool psImageJpeg(const psImageJpegOptions *options, const psImage *image, bDrawBuffer *bdbuf, const char *filename)
 {
   PS_ASSERT_PTR_NON_NULL(options, false);
@@ -351,5 +351,5 @@
   if (bdbuf) {
     offset = (options->showScale == PS_JPEG_SHOWSCALE_TOP) ? PS_JPEG_COLORPAD + PS_JPEG_LABELPAD : 0;
-    psImageJpegOverlayDraw(jpegImage, (bDrawBuffer *) bdbuf, 0, offset);
+    psImageJpegOverlayDraw(jpegImage, bdbuf, 0, offset);
   }
 
Index: /branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.h
===================================================================
--- /branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.h	(revision 29441)
+++ /branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.h	(revision 29442)
@@ -53,9 +53,9 @@
 bool psImageJpeg(const psImageJpegOptions *options, // Color map
                  const psImage *image,  // Image to write
-		 void *bdbuf, 
+		 bDrawBuffer *bdbuf, 
                  const char *filename  // Filename of JPEG
 		 );
 
-// bDrawBuffer *psImageJpegOverlayInit (const psImage *image);
+bDrawBuffer *psImageJpegOverlayInit (const psImage *image);
 
 /// @}
Index: /branches/eam_branches/ipp-20100823/psLib/src/pslib.h
===================================================================
--- /branches/eam_branches/ipp-20100823/psLib/src/pslib.h	(revision 29441)
+++ /branches/eam_branches/ipp-20100823/psLib/src/pslib.h	(revision 29442)
@@ -17,4 +17,5 @@
 #define PS_LIB_H
 
+#include <kapa.h>
 #include "pslib_strict.h"
 
