Added Magic tool API version API.

This commit is contained in:
William Kendrick 2007-07-08 07:53:39 +00:00
parent abf6a2a1bb
commit 73b8464b75
22 changed files with 85 additions and 172 deletions

View file

@ -143,6 +143,12 @@ would have functions whose names begin with "blur_").</p>
Magic tools that accept colors becomes active, or the user picks a new
color while such a tool is currently active.)
<li>Uint32 api_version(void)<br>
The plugin should return an integer value representing the version of
the Tux&nbsp;Paint 'Magic' tool plugin API it was built against.
Simply return TP_MAGIC_API_VERSION, which is defined in
"tp_magic_api.h", to satisfy this requirement.
<li>int init(magic_api * api)<br>
The plugin should do any initialization here. This function is called once,
at Tux&nbsp;Paint startup. Return '1' if initialization was successful,