33 |
33 |
34 #define DESCRIPTION ( "Templated commands\nProvides command /templatecmd (and any commands, you define with it)" ) |
34 #define DESCRIPTION ( "Templated commands\nProvides command /templatecmd (and any commands, you define with it)" ) |
35 |
35 |
36 static module_info_t info_templatecmd_experimental = { |
36 static module_info_t info_templatecmd_experimental = { |
37 .branch = "experimental", |
37 .branch = "experimental", |
38 #ifndef HAVE_CMD_ID |
38 .api = 28, |
39 .api = 20, |
|
40 #elif defined HAVE_CMD_SAFE |
|
41 .api = 24, |
|
42 #else |
|
43 .api = 23, |
|
44 #endif |
|
45 .version = PROJECT_VERSION, |
39 .version = PROJECT_VERSION, |
46 .description = DESCRIPTION, |
40 .description = DESCRIPTION, |
47 .requires = NULL, |
41 .requires = NULL, |
48 .init = tcmd_init, |
42 .init = tcmd_init, |
49 .uninit = tcmd_uninit, |
43 .uninit = tcmd_uninit, |
50 .next = NULL, |
44 .next = NULL, |
51 }; |
45 }; |
52 |
46 |
53 module_info_t info_templatecmd = { |
47 static module_info_t info_templatecmd_dev = { |
54 .branch = "dev", |
48 .branch = "dev", |
55 .api = 13, |
49 .api = 13, |
56 .version = PROJECT_VERSION, |
50 .version = PROJECT_VERSION, |
57 .description = DESCRIPTION, |
51 .description = DESCRIPTION, |
58 .requires = NULL, |
52 .requires = NULL, |
59 .init = tcmd_init, |
53 .init = tcmd_init, |
60 .uninit = tcmd_uninit, |
54 .uninit = tcmd_uninit, |
61 .next = &info_templatecmd_experimental, |
55 .next = &info_templatecmd_experimental, |
62 }; |
56 }; |
63 |
57 |
|
58 module_info_t info_templatecmd = { |
|
59 .branch = "0.10.0", |
|
60 .api = 1, |
|
61 .version = PROJECT_VERSION, |
|
62 .description = DESCRIPTION, |
|
63 .requires = NULL, |
|
64 .init = tcmd_init, |
|
65 .uninit = tcmd_uninit, |
|
66 .next = &info_templatecmd_dev, |
|
67 }; |
|
68 |
64 typedef struct { |
69 typedef struct { |
65 gchar *name; |
70 gchar *name; |
66 #ifdef HAVE_CMD_ID |
71 #ifdef HAVE_CMD_ID |
67 gpointer id; |
72 gpointer id; |
68 #endif |
73 #endif |