Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
emoji.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/emoji.json, Please don't edit it. */
17 struct discord_emoji {
18  /* specs/discord/emoji.json:12:20
19  '{ "name": "id", "type":{ "base":"char", "dec":"*", "converter":"snowflake"}}' */
20  u64_snowflake_t id;
21 
22  /* specs/discord/emoji.json:13:20
23  '{ "name": "name", "type":{ "base":"char", "dec":"*"}}' */
24  char *name;
25 
26  /* specs/discord/emoji.json:14:20
27  '{ "name": "roles", "type":{ "base":"struct discord_permissions_role", "dec":"ntl"}, "option":true,
28  "todo":true }' */
30 
31  /* specs/discord/emoji.json:16:20
32  '{ "name": "user", "type":{ "base":"struct discord_user", "dec":"*" }, "option":true }' */
33  struct discord_user *user;
34 
35  /* specs/discord/emoji.json:17:20
36  '{ "name": "require_colons", "type":{ "base":"bool" }, "option":true}' */
37  bool require_colons;
38 
39  /* specs/discord/emoji.json:18:20
40  '{ "name": "managed", "type":{ "base":"bool" }, "option":true}' */
41  bool managed;
42 
43  /* specs/discord/emoji.json:19:20
44  '{ "name": "animated", "type":{ "base":"bool" }, "option":true}' */
45  bool animated;
46 
47  /* specs/discord/emoji.json:20:20
48  '{ "name": "available", "type":{ "base":"bool" }, "option":true}' */
49  bool available;
50 
51  // The following is metadata used to
52  // 1. control which field should be extracted/injected
53  // 2. record which field is presented(defined) in JSON
54  // 3. record which field is null in JSON
56  struct {
57  bool enable_arg_switches;
58  bool enable_record_defined;
59  bool enable_record_null;
60  void *arg_switches[8];
61  void *record_defined[8];
62  void *record_null[8];
63  } __M; // metadata
65 };
66 extern void discord_emoji_cleanup_v(void *p);
67 extern void discord_emoji_cleanup(struct discord_emoji *p);
68 extern void discord_emoji_init_v(void *p);
69 extern void discord_emoji_init(struct discord_emoji *p);
70 extern struct discord_emoji * discord_emoji_alloc();
71 extern void discord_emoji_free_v(void *p);
72 extern void discord_emoji_free(struct discord_emoji *p);
73 extern void discord_emoji_from_json_v(char *json, size_t len, void *p);
74 extern void discord_emoji_from_json(char *json, size_t len, struct discord_emoji *p);
75 extern size_t discord_emoji_to_json_v(char *json, size_t len, void *p);
76 extern size_t discord_emoji_to_json(char *json, size_t len, struct discord_emoji *p);
77 extern size_t discord_emoji_to_query_v(char *json, size_t len, void *p);
78 extern size_t discord_emoji_to_query(char *json, size_t len, struct discord_emoji *p);
79 extern void discord_emoji_list_free_v(void **p);
80 extern void discord_emoji_list_free(struct discord_emoji **p);
81 extern void discord_emoji_list_from_json_v(char *str, size_t len, void *p);
82 extern void discord_emoji_list_from_json(char *str, size_t len, struct discord_emoji ***p);
83 extern size_t discord_emoji_list_to_json_v(char *str, size_t len, void *p);
84 extern size_t discord_emoji_list_to_json(char *str, size_t len, struct discord_emoji **p);
discord_emoji::user
struct discord_user * user
<
Definition: emoji.h:33
u64_snowflake_t
uint64_t u64_snowflake_t
snowflake datatype
Definition: discord.h:32
discord_emoji
Emoji Structure.
Definition: emoji.h:17
discord_user
User Structure.
Definition: user.h:45