Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
voice.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/voice.json, Please don't edit it. */
18  /* specs/discord/voice.json:12:20
19  '{ "name": "guild_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }}' */
20  u64_snowflake_t guild_id;
21 
22  /* specs/discord/voice.json:13:20
23  '{ "name": "channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake"}}' */
24  u64_snowflake_t channel_id;
25 
26  /* specs/discord/voice.json:14:20
27  '{ "name": "user_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }}' */
28  u64_snowflake_t user_id;
29 
30  /* specs/discord/voice.json:15:20
31  '{ "name": "member", "type":{ "base":"struct discord_guild_member", "dec":"*" }}' */
32  struct discord_guild_member *member;
33 
34  /* specs/discord/voice.json:16:20
35  '{ "name": "session_id", "type":{ "base":"char", "dec":"*" }}' */
36  char *session_id;
37 
38  /* specs/discord/voice.json:17:20
39  '{ "name": "deaf", "type":{ "base":"bool" }}' */
40  bool deaf;
41 
42  /* specs/discord/voice.json:18:20
43  '{ "name": "mute", "type":{ "base":"bool" }}' */
44  bool mute;
45 
46  /* specs/discord/voice.json:19:20
47  '{ "name": "self_deaf", "type":{ "base":"bool" }}' */
48  bool self_deaf;
49 
50  /* specs/discord/voice.json:20:20
51  '{ "name": "self_mute", "type":{ "base":"bool" }}' */
52  bool self_mute;
53 
54  /* specs/discord/voice.json:21:20
55  '{ "name": "self_stream", "type":{ "base":"bool" }}' */
56  bool self_stream;
57 
58  /* specs/discord/voice.json:22:20
59  '{ "name": "self_video", "type":{ "base":"bool" }}' */
60  bool self_video;
61 
62  /* specs/discord/voice.json:23:20
63  '{ "name": "supress", "type":{ "base":"bool" }}' */
64  bool supress;
65 
66  // The following is metadata used to
67  // 1. control which field should be extracted/injected
68  // 2. record which field is presented(defined) in JSON
69  // 3. record which field is null in JSON
71  struct {
72  bool enable_arg_switches;
73  bool enable_record_defined;
74  bool enable_record_null;
75  void *arg_switches[12];
76  void *record_defined[12];
77  void *record_null[12];
78  } __M; // metadata
80 };
81 extern void discord_voice_state_cleanup_v(void *p);
82 extern void discord_voice_state_cleanup(struct discord_voice_state *p);
83 extern void discord_voice_state_init_v(void *p);
84 extern void discord_voice_state_init(struct discord_voice_state *p);
85 extern struct discord_voice_state * discord_voice_state_alloc();
86 extern void discord_voice_state_free_v(void *p);
87 extern void discord_voice_state_free(struct discord_voice_state *p);
88 extern void discord_voice_state_from_json_v(char *json, size_t len, void *p);
89 extern void discord_voice_state_from_json(char *json, size_t len, struct discord_voice_state *p);
90 extern size_t discord_voice_state_to_json_v(char *json, size_t len, void *p);
91 extern size_t discord_voice_state_to_json(char *json, size_t len, struct discord_voice_state *p);
92 extern size_t discord_voice_state_to_query_v(char *json, size_t len, void *p);
93 extern size_t discord_voice_state_to_query(char *json, size_t len, struct discord_voice_state *p);
94 extern void discord_voice_state_list_free_v(void **p);
95 extern void discord_voice_state_list_free(struct discord_voice_state **p);
96 extern void discord_voice_state_list_from_json_v(char *str, size_t len, void *p);
97 extern void discord_voice_state_list_from_json(char *str, size_t len, struct discord_voice_state ***p);
98 extern size_t discord_voice_state_list_to_json_v(char *str, size_t len, void *p);
99 extern size_t discord_voice_state_list_to_json(char *str, size_t len, struct discord_voice_state **p);
100 
108  /* specs/discord/voice.json:32:20
109  '{ "name": "id", "type":{ "base":"char", "dec":"*" }, "comment":"@todo fixed size limit" }' */
110  char *id; // @todo fixed size limit
111 
112  /* specs/discord/voice.json:33:20
113  '{ "name": "name", "type":{ "base":"char", "dec":"*" }, "comment":"@todo fixed size limit" }' */
114  char *name; // @todo fixed size limit
115 
116  /* specs/discord/voice.json:34:20
117  '{ "name": "vip", "type":{ "base":"bool" }}' */
118  bool vip;
119 
120  /* specs/discord/voice.json:35:20
121  '{ "name": "optimal", "type":{ "base":"bool" }}' */
122  bool optimal;
123 
124  /* specs/discord/voice.json:36:20
125  '{ "name": "deprecated", "type":{ "base":"bool" }}' */
126  bool deprecated;
127 
128  /* specs/discord/voice.json:37:20
129  '{ "name": "custom", "type":{ "base":"bool" }}' */
130  bool custom;
131 
132  // The following is metadata used to
133  // 1. control which field should be extracted/injected
134  // 2. record which field is presented(defined) in JSON
135  // 3. record which field is null in JSON
137  struct {
138  bool enable_arg_switches;
139  bool enable_record_defined;
140  bool enable_record_null;
141  void *arg_switches[6];
142  void *record_defined[6];
143  void *record_null[6];
144  } __M; // metadata
146 };
147 extern void discord_voice_region_cleanup_v(void *p);
148 extern void discord_voice_region_cleanup(struct discord_voice_region *p);
149 extern void discord_voice_region_init_v(void *p);
150 extern void discord_voice_region_init(struct discord_voice_region *p);
151 extern struct discord_voice_region * discord_voice_region_alloc();
152 extern void discord_voice_region_free_v(void *p);
153 extern void discord_voice_region_free(struct discord_voice_region *p);
154 extern void discord_voice_region_from_json_v(char *json, size_t len, void *p);
155 extern void discord_voice_region_from_json(char *json, size_t len, struct discord_voice_region *p);
156 extern size_t discord_voice_region_to_json_v(char *json, size_t len, void *p);
157 extern size_t discord_voice_region_to_json(char *json, size_t len, struct discord_voice_region *p);
158 extern size_t discord_voice_region_to_query_v(char *json, size_t len, void *p);
159 extern size_t discord_voice_region_to_query(char *json, size_t len, struct discord_voice_region *p);
160 extern void discord_voice_region_list_free_v(void **p);
161 extern void discord_voice_region_list_free(struct discord_voice_region **p);
162 extern void discord_voice_region_list_from_json_v(char *str, size_t len, void *p);
163 extern void discord_voice_region_list_from_json(char *str, size_t len, struct discord_voice_region ***p);
164 extern size_t discord_voice_region_list_to_json_v(char *str, size_t len, void *p);
165 extern size_t discord_voice_region_list_to_json(char *str, size_t len, struct discord_voice_region **p);
discord_voice_state
Voice State Structure.
Definition: voice.h:17
discord_voice_region
Voice Region Structure.
Definition: voice.h:107
u64_snowflake_t
uint64_t u64_snowflake_t
snowflake datatype
Definition: discord.h:32
discord_guild_member
Guild Member Structure.
Definition: guild.h:515