Sync tp_magic_example.c in docs; new init() complexity arg

This commit is contained in:
Bill Kendrick 2023-12-29 14:46:54 -08:00
parent 2055b071f1
commit c7916e8ac8
12 changed files with 24 additions and 24 deletions

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
April 13, 2023 December 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
April 13, 2023 December 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
abril 13, 2023 diciembre 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
abril 13, 2023 diciembre 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
avril 13, 2023 décembre 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
avril 13, 2023 décembre 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
Abril 13, 2023 Decembro 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
Abril 13, 2023 Decembro 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
13. apríl 2023 29. desember 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
13. apríl 2023 29. desember 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
4 13, 2023 12 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];

View file

@ -1,7 +1,7 @@
/* tp_magic_example.c /* tp_magic_example.c
An example of a "Magic" tool plugin for Tux Paint An example of a "Magic" tool plugin for Tux Paint
4 13, 2023 12 29, 2023
*/ */
@ -144,7 +144,7 @@ released, aka deallocated) when the user quits Tux Paint, when our
example_shutdown() function is called. example_shutdown() function is called.
*/ */
int example_init(magic_api * api, Uint32 disabled_features) int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level)
{ {
int i; int i;
char filename[1024]; char filename[1024];