2021-02-21 06:58:40 +00:00
|
|
|
#ifndef RC_URL_H
|
|
|
|
#define RC_URL_H
|
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
#include "rc_export.h"
|
|
|
|
|
2021-02-21 06:58:40 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_BEGIN_C_DECLS
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV 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
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV 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
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_get_lboard_entries(char* buffer, size_t size, unsigned lboard_id, unsigned first_index, unsigned count);
|
|
|
|
RC_EXPORT int RC_CCONV rc_url_get_lboard_entries_near_user(char* buffer, size_t size, unsigned lboard_id, const char* user_name, unsigned count);
|
2022-01-07 15:21:37 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_get_gameid(char* buffer, size_t size, const char* hash);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_get_patch(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_get_badge_image(char* buffer, size_t size, const char* badge_name);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_login_with_password(char* buffer, size_t size, const char* user_name, const char* password);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_login_with_token(char* buffer, size_t size, const char* user_name, const char* login_token);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV 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
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV rc_url_post_playing(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid);
|
2021-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_EXPORT int RC_CCONV 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-02-21 06:58:40 +00:00
|
|
|
|
2024-01-13 04:24:04 +00:00
|
|
|
RC_END_C_DECLS
|
2021-02-21 06:58:40 +00:00
|
|
|
|
|
|
|
#endif /* RC_URL_H */
|