register
Description:
public static bool register (Plugin? plugin, string name, uint rank, owned TypeFindFunction func, string? extensions, Caps? possible_caps)
Registers a new typefind function to be used for typefinding.
After registering this function will be available for typefinding. This function is typically called during an element's plugin initialization.
Parameters:
plugin |
A Plugin, or |
name |
The name for registering |
rank |
The rank (or importance) of this typefind function |
func |
The TypeFindFunction to use |
extensions |
Optional comma-separated list of extensions that could belong to this type |
possible_caps |
Optionally the caps that could be returned when typefinding succeeds |
data |
Optional user data. This user data must be available until the plugin is unloaded. |
data_notify |
a DestroyNotify that will be called on |
Returns:
|