Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
guild-template.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/guild-template.json, Please don't edit it. */
18  /* specs/discord/guild-template.json:12:20
19  '{ "name": "code", "type":{ "base":"char", "dec":"*"}, "comment":"@todo find fixed size limit"}' */
20  char *code; // @todo find fixed size limit
21 
22  /* specs/discord/guild-template.json:13:20
23  '{ "name": "name", "type":{ "base":"char", "dec":"*"}, "comment":"@todo find fixed size limit"}' */
24  char *name; // @todo find fixed size limit
25 
26  /* specs/discord/guild-template.json:14:20
27  '{ "name": "description", "type":{ "base":"char", "dec":"*" }, "comment": "@todo find fixed size limit"}' */
28  char *description; // @todo find fixed size limit
29 
30  /* specs/discord/guild-template.json:15:20
31  '{ "name": "usage_count", "type":{ "base":"int"}}' */
32  int usage_count;
33 
34  /* specs/discord/guild-template.json:16:20
35  '{ "name": "creator_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }}' */
36  u64_snowflake_t creator_id;
37 
38  /* specs/discord/guild-template.json:17:20
39  '{ "name": "creator", "type":{ "base":"struct discord_user", "dec":"*" }}' */
40  struct discord_user *creator;
41 
42  /* specs/discord/guild-template.json:18:20
43  '{ "name": "created_at", "type":{ "base":"char", "dec":"*", "converter":"iso8601" }}' */
44  u64_unix_ms_t created_at;
45 
46  /* specs/discord/guild-template.json:19:20
47  '{ "name": "updated_at", "type":{ "base":"char", "dec":"*", "converter":"iso8601" }}' */
48  u64_unix_ms_t updated_at;
49 
50  /* specs/discord/guild-template.json:20:20
51  '{ "name": "source_guild_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }}' */
52  u64_snowflake_t source_guild_id;
53 
54  /* specs/discord/guild-template.json:21:20
55  '{ "name": "serialized_source_guild", "type":{ "base":"struct discord_guild", "dec":"*" }}' */
56  struct discord_guild *serialized_source_guild;
57 
58  /* specs/discord/guild-template.json:22:20
59  '{ "name": "is_dirty", "type":{ "base":"bool" }}' */
60  bool is_dirty;
61 
62  // The following is metadata used to
63  // 1. control which field should be extracted/injected
64  // 2. record which field is presented(defined) in JSON
65  // 3. record which field is null in JSON
67  struct {
68  bool enable_arg_switches;
69  bool enable_record_defined;
70  bool enable_record_null;
71  void *arg_switches[11];
72  void *record_defined[11];
73  void *record_null[11];
74  } __M; // metadata
76 };
77 extern void discord_guild_template_cleanup_v(void *p);
78 extern void discord_guild_template_cleanup(struct discord_guild_template *p);
79 extern void discord_guild_template_init_v(void *p);
80 extern void discord_guild_template_init(struct discord_guild_template *p);
81 extern struct discord_guild_template * discord_guild_template_alloc();
82 extern void discord_guild_template_free_v(void *p);
83 extern void discord_guild_template_free(struct discord_guild_template *p);
84 extern void discord_guild_template_from_json_v(char *json, size_t len, void *p);
85 extern void discord_guild_template_from_json(char *json, size_t len, struct discord_guild_template *p);
86 extern size_t discord_guild_template_to_json_v(char *json, size_t len, void *p);
87 extern size_t discord_guild_template_to_json(char *json, size_t len, struct discord_guild_template *p);
88 extern size_t discord_guild_template_to_query_v(char *json, size_t len, void *p);
89 extern size_t discord_guild_template_to_query(char *json, size_t len, struct discord_guild_template *p);
90 extern void discord_guild_template_list_free_v(void **p);
91 extern void discord_guild_template_list_free(struct discord_guild_template **p);
92 extern void discord_guild_template_list_from_json_v(char *str, size_t len, void *p);
93 extern void discord_guild_template_list_from_json(char *str, size_t len, struct discord_guild_template ***p);
94 extern size_t discord_guild_template_list_to_json_v(char *str, size_t len, void *p);
95 extern size_t discord_guild_template_list_to_json(char *str, size_t len, struct discord_guild_template **p);
discord_guild
Guild Structure.
Definition: guild.h:17
discord_guild_template
Guild Template Structure.
Definition: guild-template.h:17
u64_unix_ms_t
uint64_t u64_unix_ms_t
unix time in ms
Definition: discord.h:26
u64_snowflake_t
uint64_t u64_snowflake_t
snowflake datatype
Definition: discord.h:32
discord_user
User Structure.
Definition: user.h:45