third_party/cairo/src/cairo-svg-surface.c
void
cairo_svg_surface_restrict_to_version (cairo_surface_t		*abstract_surface,
				       cairo_svg_version_t	 version)
{
    cairo_svg_surface_t *surface;

    if (! _extract_svg_surface (abstract_surface, &surface))
	return;

    if (version < CAIRO_SVG_VERSION_LAST)
	surface->document->svg_version = version;
}
/**
 * cairo_svg_surface_restrict_to_version:
 * @surface: a SVG #cairo_surface_t
 * @version: SVG version
 *
 * Restricts the generated SVG file to @version. See cairo_svg_get_versions()
 * for a list of available version values that can be used here.
 *
 * This function should only be called before any drawing operations
 * have been performed on the given surface. The simplest way to do
 * this is to call this function immediately after creating the
 * surface.
 *
 * Since: 1.2
 **/
@surface: a SVG #cairo_surface_t
@version: SVG version

Restricts the generated SVG file to @version. See cairo_svg_get_versions()
for a list of available version values that can be used here.

This function should only be called before any drawing operations
have been performed on the given surface. The simplest way to do
this is to call this function immediately after creating the
surface.


@surface : a SVG #cairo_surface_t @version : SVG version Restricts the generated SVG file to @version . See cairo_svg_get_versions () for a list of available version values that can be used here . This function should only be called before any drawing operations have been performed on the given surface . The simplest way to do this is to call this function immediately after creating the surface .
void
cairo_svg_surface_restrict_to_version (cairo_surface_t		*abstract_surface,
				       cairo_svg_version_t	 version)
{
    cairo_svg_surface_t *surface;
    if (! _extract_svg_surface (abstract_surface, &surface))
	return;
    if (version < CAIRO_SVG_VERSION_LAST)
	surface->document->svg_version = version;
}
void cairo_svg_surface_restrict_to_version ( cairo_surface_t * abstract_surface , cairo_svg_version_t version ) { cairo_svg_surface_t * surface ; if ( ! _extract_svg_surface ( abstract_surface , & surface ) ) return ; if ( version < CAIRO_SVG_VERSION_LAST ) surface -> document -> svg_version = version ; }
cairo_svg_surface_restrict_to_version:
 @surface: a SVG #cairo_surface_t
 @version: SVG version
cairo_svg_surface_restrict_to_version : @surface : a SVG #cairo_surface_t @version : SVG version