Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
guild-template.endpoints-params.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/guild-template.endpoints-params.json, Please don't edit it. */
18  /* specs/discord/guild-template.endpoints-params.json:13:20
19  '{ "name": "name", "type":{ "base":"char", "dec":"*"}, "comment":"name of the guild"}' */
20  char *name; // name of the guild
21 
22  /* specs/discord/guild-template.endpoints-params.json:14:20
23  '{ "name": "icon", "type":{ "base":"char", "dec":"*" }, "comment":"base64 128x128 image for the guild icon"}' */
24  char *icon; // base64 128x128 image for the guild icon
25 
26  // The following is metadata used to
27  // 1. control which field should be extracted/injected
28  // 2. record which field is presented(defined) in JSON
29  // 3. record which field is null in JSON
31  struct {
32  bool enable_arg_switches;
33  bool enable_record_defined;
34  bool enable_record_null;
35  void *arg_switches[2];
36  void *record_defined[2];
37  void *record_null[2];
38  } __M; // metadata
40 };
41 extern void discord_create_guild_from_guild_template_params_cleanup_v(void *p);
42 extern void discord_create_guild_from_guild_template_params_cleanup(struct discord_create_guild_from_guild_template_params *p);
43 extern void discord_create_guild_from_guild_template_params_init_v(void *p);
44 extern void discord_create_guild_from_guild_template_params_init(struct discord_create_guild_from_guild_template_params *p);
45 extern struct discord_create_guild_from_guild_template_params * discord_create_guild_from_guild_template_params_alloc();
46 extern void discord_create_guild_from_guild_template_params_free_v(void *p);
47 extern void discord_create_guild_from_guild_template_params_free(struct discord_create_guild_from_guild_template_params *p);
48 extern void discord_create_guild_from_guild_template_params_from_json_v(char *json, size_t len, void *p);
49 extern void discord_create_guild_from_guild_template_params_from_json(char *json, size_t len, struct discord_create_guild_from_guild_template_params *p);
50 extern size_t discord_create_guild_from_guild_template_params_to_json_v(char *json, size_t len, void *p);
51 extern size_t discord_create_guild_from_guild_template_params_to_json(char *json, size_t len, struct discord_create_guild_from_guild_template_params *p);
52 extern size_t discord_create_guild_from_guild_template_params_to_query_v(char *json, size_t len, void *p);
53 extern size_t discord_create_guild_from_guild_template_params_to_query(char *json, size_t len, struct discord_create_guild_from_guild_template_params *p);
54 extern void discord_create_guild_from_guild_template_params_list_free_v(void **p);
55 extern void discord_create_guild_from_guild_template_params_list_free(struct discord_create_guild_from_guild_template_params **p);
56 extern void discord_create_guild_from_guild_template_params_list_from_json_v(char *str, size_t len, void *p);
57 extern void discord_create_guild_from_guild_template_params_list_from_json(char *str, size_t len, struct discord_create_guild_from_guild_template_params ***p);
58 extern size_t discord_create_guild_from_guild_template_params_list_to_json_v(char *str, size_t len, void *p);
59 extern size_t discord_create_guild_from_guild_template_params_list_to_json(char *str, size_t len, struct discord_create_guild_from_guild_template_params **p);
60 
68  /* specs/discord/guild-template.endpoints-params.json:24:20
69  '{ "name": "name", "type":{ "base":"char", "dec":"*"}, "comment":"name of the guild"}' */
70  char *name; // name of the guild
71 
72  /* specs/discord/guild-template.endpoints-params.json:25:20
73  '{ "name": "description", "type":{ "base":"char", "dec":"*" }, "comment":"description for the template (0-120) chars"}' */
74  char *description; // description for the template (0-120) chars
75 
76  // The following is metadata used to
77  // 1. control which field should be extracted/injected
78  // 2. record which field is presented(defined) in JSON
79  // 3. record which field is null in JSON
81  struct {
82  bool enable_arg_switches;
83  bool enable_record_defined;
84  bool enable_record_null;
85  void *arg_switches[2];
86  void *record_defined[2];
87  void *record_null[2];
88  } __M; // metadata
90 };
91 extern void discord_create_guild_template_params_cleanup_v(void *p);
92 extern void discord_create_guild_template_params_cleanup(struct discord_create_guild_template_params *p);
93 extern void discord_create_guild_template_params_init_v(void *p);
94 extern void discord_create_guild_template_params_init(struct discord_create_guild_template_params *p);
95 extern struct discord_create_guild_template_params * discord_create_guild_template_params_alloc();
96 extern void discord_create_guild_template_params_free_v(void *p);
97 extern void discord_create_guild_template_params_free(struct discord_create_guild_template_params *p);
98 extern void discord_create_guild_template_params_from_json_v(char *json, size_t len, void *p);
99 extern void discord_create_guild_template_params_from_json(char *json, size_t len, struct discord_create_guild_template_params *p);
100 extern size_t discord_create_guild_template_params_to_json_v(char *json, size_t len, void *p);
101 extern size_t discord_create_guild_template_params_to_json(char *json, size_t len, struct discord_create_guild_template_params *p);
102 extern size_t discord_create_guild_template_params_to_query_v(char *json, size_t len, void *p);
103 extern size_t discord_create_guild_template_params_to_query(char *json, size_t len, struct discord_create_guild_template_params *p);
104 extern void discord_create_guild_template_params_list_free_v(void **p);
105 extern void discord_create_guild_template_params_list_free(struct discord_create_guild_template_params **p);
106 extern void discord_create_guild_template_params_list_from_json_v(char *str, size_t len, void *p);
107 extern void discord_create_guild_template_params_list_from_json(char *str, size_t len, struct discord_create_guild_template_params ***p);
108 extern size_t discord_create_guild_template_params_list_to_json_v(char *str, size_t len, void *p);
109 extern size_t discord_create_guild_template_params_list_to_json(char *str, size_t len, struct discord_create_guild_template_params **p);
110 
118  /* specs/discord/guild-template.endpoints-params.json:35:20
119  '{ "name": "name", "type":{ "base":"char", "dec":"*"}, "comment":"name of the guild"}' */
120  char *name; // name of the guild
121 
122  /* specs/discord/guild-template.endpoints-params.json:36:20
123  '{ "name": "description", "type":{ "base":"char", "dec":"*" }, "comment":"description for the template (0-120) chars"}' */
124  char *description; // description for the template (0-120) chars
125 
126  // The following is metadata used to
127  // 1. control which field should be extracted/injected
128  // 2. record which field is presented(defined) in JSON
129  // 3. record which field is null in JSON
131  struct {
132  bool enable_arg_switches;
133  bool enable_record_defined;
134  bool enable_record_null;
135  void *arg_switches[2];
136  void *record_defined[2];
137  void *record_null[2];
138  } __M; // metadata
140 };
141 extern void discord_modify_guild_template_params_cleanup_v(void *p);
142 extern void discord_modify_guild_template_params_cleanup(struct discord_modify_guild_template_params *p);
143 extern void discord_modify_guild_template_params_init_v(void *p);
144 extern void discord_modify_guild_template_params_init(struct discord_modify_guild_template_params *p);
145 extern struct discord_modify_guild_template_params * discord_modify_guild_template_params_alloc();
146 extern void discord_modify_guild_template_params_free_v(void *p);
147 extern void discord_modify_guild_template_params_free(struct discord_modify_guild_template_params *p);
148 extern void discord_modify_guild_template_params_from_json_v(char *json, size_t len, void *p);
149 extern void discord_modify_guild_template_params_from_json(char *json, size_t len, struct discord_modify_guild_template_params *p);
150 extern size_t discord_modify_guild_template_params_to_json_v(char *json, size_t len, void *p);
151 extern size_t discord_modify_guild_template_params_to_json(char *json, size_t len, struct discord_modify_guild_template_params *p);
152 extern size_t discord_modify_guild_template_params_to_query_v(char *json, size_t len, void *p);
153 extern size_t discord_modify_guild_template_params_to_query(char *json, size_t len, struct discord_modify_guild_template_params *p);
154 extern void discord_modify_guild_template_params_list_free_v(void **p);
155 extern void discord_modify_guild_template_params_list_free(struct discord_modify_guild_template_params **p);
156 extern void discord_modify_guild_template_params_list_from_json_v(char *str, size_t len, void *p);
157 extern void discord_modify_guild_template_params_list_from_json(char *str, size_t len, struct discord_modify_guild_template_params ***p);
158 extern size_t discord_modify_guild_template_params_list_to_json_v(char *str, size_t len, void *p);
159 extern size_t discord_modify_guild_template_params_list_to_json(char *str, size_t len, struct discord_modify_guild_template_params **p);
discord_create_guild_from_guild_template_params
Create Guild From Guild Template.
Definition: guild-template.endpoints-params.h:17
discord_modify_guild_template_params
Modify Guild Template.
Definition: guild-template.endpoints-params.h:117
discord_create_guild_template_params
Create Guild Template.
Definition: guild-template.endpoints-params.h:67