Function

Vipscache_operation_buildp

Declaration [src]

int
vips_cache_operation_buildp (
  VipsOperation** operation
)

Description [src]

Look up operation in the cache. If we get a hit, unref operation, ref the old one and return that through the argument pointer.

If we miss, build and add operation.

This function is not directly available to language bindings

Parameters

operation VipsOperation
 

Pointer to operation to lookup.

 The data is owned by the caller of the function.

Return value

Returns: int
 

0 on success, or -1 on error.