Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
audit_log.endpoints-params.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/audit_log.endpoints-params.json, Please don't edit it. */
16  /* specs/discord/audit_log.endpoints-params.json:11:20
17  '{ "name": "user_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "inject_if_not":0 }' */
18  u64_snowflake_t user_id;
19 
20  /* specs/discord/audit_log.endpoints-params.json:12:20
21  '{ "name": "action_type", "type":{ "base":"int", "int_alias":"enum discord_audit_log_events" }, "inject_if_not":0 }' */
22  enum discord_audit_log_events action_type;
23 
24  /* specs/discord/audit_log.endpoints-params.json:13:20
25  '{ "name": "before", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "inject_if_not":0 }' */
26  u64_snowflake_t before;
27 
28  /* specs/discord/audit_log.endpoints-params.json:14:20
29  '{ "name": "limit", "type":{ "base":"int" }, "inject_if_not":0 }' */
30  int limit;
31 
32  // The following is metadata used to
33  // 1. control which field should be extracted/injected
34  // 2. record which field is presented(defined) in JSON
35  // 3. record which field is null in JSON
37  struct {
38  bool enable_arg_switches;
39  bool enable_record_defined;
40  bool enable_record_null;
41  void *arg_switches[4];
42  void *record_defined[4];
43  void *record_null[4];
44  } __M; // metadata
46 };
47 extern void discord_get_guild_audit_log_params_cleanup_v(void *p);
48 extern void discord_get_guild_audit_log_params_cleanup(struct discord_get_guild_audit_log_params *p);
49 extern void discord_get_guild_audit_log_params_init_v(void *p);
50 extern void discord_get_guild_audit_log_params_init(struct discord_get_guild_audit_log_params *p);
51 extern struct discord_get_guild_audit_log_params * discord_get_guild_audit_log_params_alloc();
52 extern void discord_get_guild_audit_log_params_free_v(void *p);
53 extern void discord_get_guild_audit_log_params_free(struct discord_get_guild_audit_log_params *p);
54 extern void discord_get_guild_audit_log_params_from_json_v(char *json, size_t len, void *p);
55 extern void discord_get_guild_audit_log_params_from_json(char *json, size_t len, struct discord_get_guild_audit_log_params *p);
56 extern size_t discord_get_guild_audit_log_params_to_json_v(char *json, size_t len, void *p);
57 extern size_t discord_get_guild_audit_log_params_to_json(char *json, size_t len, struct discord_get_guild_audit_log_params *p);
58 extern size_t discord_get_guild_audit_log_params_to_query_v(char *json, size_t len, void *p);
59 extern size_t discord_get_guild_audit_log_params_to_query(char *json, size_t len, struct discord_get_guild_audit_log_params *p);
60 extern void discord_get_guild_audit_log_params_list_free_v(void **p);
61 extern void discord_get_guild_audit_log_params_list_free(struct discord_get_guild_audit_log_params **p);
62 extern void discord_get_guild_audit_log_params_list_from_json_v(char *str, size_t len, void *p);
63 extern void discord_get_guild_audit_log_params_list_from_json(char *str, size_t len, struct discord_get_guild_audit_log_params ***p);
64 extern size_t discord_get_guild_audit_log_params_list_to_json_v(char *str, size_t len, void *p);
65 extern size_t discord_get_guild_audit_log_params_list_to_json(char *str, size_t len, struct discord_get_guild_audit_log_params **p);
u64_snowflake_t
uint64_t u64_snowflake_t
snowflake datatype
Definition: discord.h:32
discord_get_guild_audit_log_params
Definition: audit_log.endpoints-params.h:15