third_party/cairo/src/cairo-raster-source-pattern.c
void
cairo_raster_source_pattern_get_acquire (cairo_pattern_t *abstract_pattern,
					 cairo_raster_source_acquire_func_t *acquire,
					 cairo_raster_source_release_func_t *release)
{
    cairo_raster_source_pattern_t *pattern;

    if (abstract_pattern->type != CAIRO_PATTERN_TYPE_RASTER_SOURCE)
	return;

    pattern = (cairo_raster_source_pattern_t *) abstract_pattern;
    if (acquire)
	*acquire = pattern->acquire;
    if (release)
	*release = pattern->release;
}
/**
 * cairo_raster_source_pattern_get_acquire:
 * @pattern: the pattern to query
 * @acquire: return value for the current acquire callback
 * @release: return value for the current release callback
 *
 * Queries the current acquire and release callbacks.
 *
 * Since: 1.12
 **/
@pattern: the pattern to query
@acquire: return value for the current acquire callback
@release: return value for the current release callback

Queries the current acquire and release callbacks.


@pattern : the pattern to query @acquire : return value for the current acquire callback @release : return value for the current release callback Queries the current acquire and release callbacks .
void
cairo_raster_source_pattern_get_acquire (cairo_pattern_t *abstract_pattern,
					 cairo_raster_source_acquire_func_t *acquire,
					 cairo_raster_source_release_func_t *release)
{
    cairo_raster_source_pattern_t *pattern;
    if (abstract_pattern->type != CAIRO_PATTERN_TYPE_RASTER_SOURCE)
	return;
    pattern = (cairo_raster_source_pattern_t *) abstract_pattern;
    if (acquire)
	*acquire = pattern->acquire;
    if (release)
	*release = pattern->release;
}
void cairo_raster_source_pattern_get_acquire ( cairo_pattern_t * abstract_pattern , cairo_raster_source_acquire_func_t * acquire , cairo_raster_source_release_func_t * release ) { cairo_raster_source_pattern_t * pattern ; if ( abstract_pattern -> type != CAIRO_PATTERN_TYPE_RASTER_SOURCE ) return ; pattern = ( cairo_raster_source_pattern_t * ) abstract_pattern ; if ( acquire ) * acquire = pattern -> acquire ; if ( release ) * release = pattern -> release ; }
cairo_raster_source_pattern_get_acquire:
 @pattern: the pattern to query
 @acquire: return value for the current acquire callback
 @release: return value for the current release callback
cairo_raster_source_pattern_get_acquire : @pattern : the pattern to query @acquire : return value for the current acquire callback @release : return value for the current release callback