2021-02-21 06:58:40 +00:00
|
|
|
#ifndef RC_URL_H
|
|
|
|
#define RC_URL_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-06-21 17:00:14 +00:00
|
|
|
int rc_url_award_cheevo(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned cheevo_id, int hardcore, const char* game_hash);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2021-06-21 17:00:14 +00:00
|
|
|
int rc_url_submit_lboard(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned lboard_id, int value);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
|
|
|
int rc_url_get_gameid(char* buffer, size_t size, const char* hash);
|
|
|
|
|
|
|
|
int rc_url_get_patch(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid);
|
|
|
|
|
|
|
|
int rc_url_get_badge_image(char* buffer, size_t size, const char* badge_name);
|
|
|
|
|
|
|
|
int rc_url_login_with_password(char* buffer, size_t size, const char* user_name, const char* password);
|
|
|
|
|
|
|
|
int rc_url_login_with_token(char* buffer, size_t size, const char* user_name, const char* login_token);
|
|
|
|
|
2021-06-21 17:00:14 +00:00
|
|
|
int rc_url_get_unlock_list(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid, int hardcore);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
|
|
|
int rc_url_post_playing(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid);
|
|
|
|
|
|
|
|
int rc_url_ping(char* url_buffer, size_t url_buffer_size, char* post_buffer, size_t post_buffer_size,
|
|
|
|
const char* user_name, const char* login_token, unsigned gameid, const char* rich_presence);
|
|
|
|
|
2021-06-17 18:20:59 +00:00
|
|
|
// Custom exports, static in upstream rcheevos
|
2021-06-21 17:00:14 +00:00
|
|
|
int rc_url_build_dorequest(char* url_buffer, size_t url_buffer_size, size_t* buffer_offset, const char* api, const char* user_name);
|
|
|
|
|
2021-06-17 18:20:59 +00:00
|
|
|
int rc_url_append_unum(char* buffer, size_t buffer_size, size_t* buffer_offset, const char* param, unsigned value);
|
|
|
|
|
|
|
|
int rc_url_append_str(char* buffer, size_t buffer_size, size_t* buffer_offset, const char* param, const char* value);
|
|
|
|
|
2021-02-21 06:58:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* RC_URL_H */
|