[cairo] user_data and get_reference_count APIs

Vladimir Vukicevic vladimir at pobox.com
Wed Feb 21 14:34:23 PST 2007


Howdy,

Here's a patch that adds two sets of public APIs.

It adds user_data to the public objects that were missing them (cairo_t, cairo_pattern_t, cairo_scaled_font_t):

  cairo_get_user_data
  cairo_set_user_data

  cairo_scaled_font_get_user_data
  cairo_scaled_font_set_user_data

  cairo_pattern_get_user_data
  cairo_pattern_set_user_data

It also adds a get_reference_count method to all five of the public refcounted objects:

  cairo_get_reference_count
  cairo_surface_get_reference_count
  cairo_font_face_get_reference_count
  cairo_scaled_font_get_reference_count
  cairo_pattern_get_reference_count

How's this look?

    - Vlad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-user-data.patch
Type: application/octet-stream
Size: 15899 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070221/079f505a/cairo-user-data-0001.obj


More information about the cairo mailing list