register_custom


Description:

[ Version ( since = "1.20" ) ]
public static unowned MetaInfo? register_custom (string name, string[] tags, owned CustomMetaTransformFunction? transform_func)

Register a new custom Meta implementation, backed by an opaque structure holding a Structure.

The registered info can be retrieved later with get_info by using name as the key.

The backing Structure can be retrieved with get_structure, its mutability is conditioned by the writability of the buffer the meta is attached to.

When transform_func is null, the meta and its backing Structure will always be copied when the transform operation is copy, other operations are discarded, copy regions are ignored.

Parameters:

name

the name of the Meta implementation

tags

tags for api

transform_func

a MetaTransformFunction

destroy_data

DestroyNotify for user_data

user_data

user data passed to transform_func

Returns:

a MetaInfo that can be used to access metadata.