-extern void load_random_image (Screen *screen,
- Window top_level_window,
- Drawable target_window_or_pixmap,
- char **filename_return,
- XRectangle *geometry_return);
-
-/* Like the above, but loads the image in the background and runs the
- given callback once it has been loaded. Copy `name' if you want
- to keep it.
+extern void load_image_async (Screen *, Window, Drawable,
+ void (*callback) (Screen *, Window,
+ Drawable,
+ const char *name,
+ XRectangle *geometry,
+ void *closure),
+ void *closure);
+
+/* A utility wrapper around load_image_async() that is simpler if you
+ are only loading a single image at a time: just keep calling it
+ periodically until it returns NULL. When it does, the image has
+ been loaded.