~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to include/client/mir_toolkit/mir_surface.h

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2015-03-31 08:44:18 UTC
  • mfrom: (2426.2.8 no-delegate)
  • Revision ID: tarmac-20150331084418-h9hf19plv3gcfqk3
Deprecate MirEventDelegate. This makes the client API slightly more pleasant to use.

Binary ABI compatibility with the old form is also retained.

Approved by PS Jenkins bot, Kevin DuBois, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
 *            called back in different threads, for the same surface,
320
320
 *            simultaneously.
321
321
 *   \param [in] surface        The surface
322
 
 *   \param [in] event_handler  The event handler to call
 
322
 *   \param [in] callback       The callback function
 
323
 *   \param [in] context        Additional argument to be passed to callback
323
324
 */
324
325
void mir_surface_set_event_handler(MirSurface *surface,
325
 
                                   MirEventDelegate const *event_handler);
 
326
                                   mir_surface_event_callback callback,
 
327
                                   void* context);
326
328
 
327
329
/**
328
330
 * Retrieve the primary MirBufferStream associated with a surface (to advance buffers,