/* LICENSE:
  =========================================================================
    CMPack'04 Source Code Release for OPEN-R SDK 1.1.5-r2 for ERS7
    Copyright (C) 2004 Multirobot Lab [Project Head: Manuela Veloso]
    School of Computer Science, Carnegie Mellon University
    All rights reserved.
  ========================================================================= */

extern "C" {

#include <X11/Xlib.h>
  /** Function for taking a window and dumping its pixmap to a file.  Pass 
   *  in the current display, the xid of the window and a filename and a
   *  xwd file will be saved.
   *
   *  Returns 0 on successful capture and 1 if a failure occurs
   */
  int window_capture(Display * display, unsigned int window, const char * fn);

}
