[cairo] const usage in API

Hakki Dogusan dogusanh at tr.net
Fri Nov 9 13:59:16 PST 2007


Hi,

Some functions use const for parameters, but some not. Is there a rule?

ex:
cairo_public void
cairo_scaled_font_extents (cairo_scaled_font_t  *scaled_font, 
      	cairo_font_extents_t *extents);

cairo_public void
cairo_set_matrix (cairo_t *cr,
	const cairo_matrix_t *matrix);



--
Regards,
Hakki Dogusan


More information about the cairo mailing list