Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
emoji.endpoints-params.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/emoji.endpoints-params.json, Please don't edit it. */
18  /* specs/discord/emoji.endpoints-params.json:13:20
19  '{ "name": "name", "type":{ "base":"char", "dec":"*"}}' */
20  char *name;
21 
22  /* specs/discord/emoji.endpoints-params.json:14:20
23  '{ "name": "image", "type":{ "base":"char", "dec":"*"}, "comment":"Base64 Encoded Image Data"}' */
24  char *image; // Base64 Encoded Image Data
25 
26  /* specs/discord/emoji.endpoints-params.json:15:20
27  '{ "name": "roles", "type":{ "base":"ja_u64", "dec":"ntl" }, "comment":"roles for which this emoji will be whitelisted"}' */
28  ja_u64 **roles; // roles for which this emoji will be whitelisted
29 
30  // The following is metadata used to
31  // 1. control which field should be extracted/injected
32  // 2. record which field is presented(defined) in JSON
33  // 3. record which field is null in JSON
35  struct {
36  bool enable_arg_switches;
37  bool enable_record_defined;
38  bool enable_record_null;
39  void *arg_switches[3];
40  void *record_defined[3];
41  void *record_null[3];
42  } __M; // metadata
44 };
45 extern void discord_create_guild_emoji_params_cleanup_v(void *p);
46 extern void discord_create_guild_emoji_params_cleanup(struct discord_create_guild_emoji_params *p);
47 extern void discord_create_guild_emoji_params_init_v(void *p);
48 extern void discord_create_guild_emoji_params_init(struct discord_create_guild_emoji_params *p);
49 extern struct discord_create_guild_emoji_params * discord_create_guild_emoji_params_alloc();
50 extern void discord_create_guild_emoji_params_free_v(void *p);
51 extern void discord_create_guild_emoji_params_free(struct discord_create_guild_emoji_params *p);
52 extern void discord_create_guild_emoji_params_from_json_v(char *json, size_t len, void *p);
53 extern void discord_create_guild_emoji_params_from_json(char *json, size_t len, struct discord_create_guild_emoji_params *p);
54 extern size_t discord_create_guild_emoji_params_to_json_v(char *json, size_t len, void *p);
55 extern size_t discord_create_guild_emoji_params_to_json(char *json, size_t len, struct discord_create_guild_emoji_params *p);
56 extern size_t discord_create_guild_emoji_params_to_query_v(char *json, size_t len, void *p);
57 extern size_t discord_create_guild_emoji_params_to_query(char *json, size_t len, struct discord_create_guild_emoji_params *p);
58 extern void discord_create_guild_emoji_params_list_free_v(void **p);
59 extern void discord_create_guild_emoji_params_list_free(struct discord_create_guild_emoji_params **p);
60 extern void discord_create_guild_emoji_params_list_from_json_v(char *str, size_t len, void *p);
61 extern void discord_create_guild_emoji_params_list_from_json(char *str, size_t len, struct discord_create_guild_emoji_params ***p);
62 extern size_t discord_create_guild_emoji_params_list_to_json_v(char *str, size_t len, void *p);
63 extern size_t discord_create_guild_emoji_params_list_to_json(char *str, size_t len, struct discord_create_guild_emoji_params **p);
64 
72  /* specs/discord/emoji.endpoints-params.json:25:20
73  '{ "name": "name", "type":{ "base":"char", "dec":"*"}}' */
74  char *name;
75 
76  /* specs/discord/emoji.endpoints-params.json:26:20
77  '{ "name": "roles", "type":{ "base":"ja_u64", "dec":"ntl" }, "comment":"roles for which this emoji will be whitelisted"}' */
78  ja_u64 **roles; // roles for which this emoji will be whitelisted
79 
80  // The following is metadata used to
81  // 1. control which field should be extracted/injected
82  // 2. record which field is presented(defined) in JSON
83  // 3. record which field is null in JSON
85  struct {
86  bool enable_arg_switches;
87  bool enable_record_defined;
88  bool enable_record_null;
89  void *arg_switches[2];
90  void *record_defined[2];
91  void *record_null[2];
92  } __M; // metadata
94 };
95 extern void discord_modify_guild_emoji_params_cleanup_v(void *p);
96 extern void discord_modify_guild_emoji_params_cleanup(struct discord_modify_guild_emoji_params *p);
97 extern void discord_modify_guild_emoji_params_init_v(void *p);
98 extern void discord_modify_guild_emoji_params_init(struct discord_modify_guild_emoji_params *p);
99 extern struct discord_modify_guild_emoji_params * discord_modify_guild_emoji_params_alloc();
100 extern void discord_modify_guild_emoji_params_free_v(void *p);
101 extern void discord_modify_guild_emoji_params_free(struct discord_modify_guild_emoji_params *p);
102 extern void discord_modify_guild_emoji_params_from_json_v(char *json, size_t len, void *p);
103 extern void discord_modify_guild_emoji_params_from_json(char *json, size_t len, struct discord_modify_guild_emoji_params *p);
104 extern size_t discord_modify_guild_emoji_params_to_json_v(char *json, size_t len, void *p);
105 extern size_t discord_modify_guild_emoji_params_to_json(char *json, size_t len, struct discord_modify_guild_emoji_params *p);
106 extern size_t discord_modify_guild_emoji_params_to_query_v(char *json, size_t len, void *p);
107 extern size_t discord_modify_guild_emoji_params_to_query(char *json, size_t len, struct discord_modify_guild_emoji_params *p);
108 extern void discord_modify_guild_emoji_params_list_free_v(void **p);
109 extern void discord_modify_guild_emoji_params_list_free(struct discord_modify_guild_emoji_params **p);
110 extern void discord_modify_guild_emoji_params_list_from_json_v(char *str, size_t len, void *p);
111 extern void discord_modify_guild_emoji_params_list_from_json(char *str, size_t len, struct discord_modify_guild_emoji_params ***p);
112 extern size_t discord_modify_guild_emoji_params_list_to_json_v(char *str, size_t len, void *p);
113 extern size_t discord_modify_guild_emoji_params_list_to_json(char *str, size_t len, struct discord_modify_guild_emoji_params **p);
discord_create_guild_emoji_params
Create Guild Emoji.
Definition: emoji.endpoints-params.h:17
discord_modify_guild_emoji_params
Modify Guild Emoji.
Definition: emoji.endpoints-params.h:71