24 enum discord_webhook_types type;
40 char name[WEBHOOK_NAME_LEN];
60 bool enable_arg_switches;
61 bool enable_record_defined;
62 bool enable_record_null;
63 void *arg_switches[9];
64 void *record_defined[9];
69 extern void discord_webhook_cleanup_v(
void *p);
71 extern void discord_webhook_init_v(
void *p);
74 extern void discord_webhook_free_v(
void *p);
76 extern void discord_webhook_from_json_v(
char *json,
size_t len,
void *p);
77 extern void discord_webhook_from_json(
char *json,
size_t len,
struct discord_webhook *p);
78 extern size_t discord_webhook_to_json_v(
char *json,
size_t len,
void *p);
79 extern size_t discord_webhook_to_json(
char *json,
size_t len,
struct discord_webhook *p);
80 extern size_t discord_webhook_to_query_v(
char *json,
size_t len,
void *p);
81 extern size_t discord_webhook_to_query(
char *json,
size_t len,
struct discord_webhook *p);
82 extern void discord_webhook_list_free_v(
void **p);
84 extern void discord_webhook_list_from_json_v(
char *str,
size_t len,
void *p);
85 extern void discord_webhook_list_from_json(
char *str,
size_t len,
struct discord_webhook ***p);
86 extern size_t discord_webhook_list_to_json_v(
char *str,
size_t len,
void *p);
87 extern size_t discord_webhook_list_to_json(
char *str,
size_t len,
struct discord_webhook **p);
90 enum discord_webhook_types {
91 DISCORD_WEBHOOK_INCOMING = 1,
92 DISCORD_WEBHOOK_CHANNEL_FOLLOWER = 2,
94 extern char* discord_webhook_types_to_string(
enum discord_webhook_types);
95 extern enum discord_webhook_types discord_webhook_types_from_string(
char*);
96 extern bool discord_webhook_types_has(
enum discord_webhook_types,
char*);