diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-12-17 23:24:44 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-12-17 23:24:44 +0300 |
| commit | 4c3d77032316bc8814cddc00d020ba00d4533999 (patch) | |
| tree | 1862e30966a69bf94a7288b95baed5b04a040d80 /protocols/Steam/src/steam_utils.h | |
| parent | 4b5082aef3817173bc254755c0ec352da064a440 (diff) | |
Steam:
- contact statuses are back;
- contact info is back too;
- Miranda's account status is passed to the server;
- some old code removed;
Diffstat (limited to 'protocols/Steam/src/steam_utils.h')
| -rw-r--r-- | protocols/Steam/src/steam_utils.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_utils.h b/protocols/Steam/src/steam_utils.h new file mode 100644 index 0000000000..40cdd07088 --- /dev/null +++ b/protocols/Steam/src/steam_utils.h @@ -0,0 +1,18 @@ +#ifndef _STEAM_UTILS_H_ +#define _STEAM_UTILS_H_ + +int SteamToMirandaStatus(PersonaState state); +PersonaState MirandaToSteamState(int status); + +void ShowNotification(const wchar_t *message, int flags = 0, MCONTACT hContact = NULL); +void ShowNotification(const wchar_t *caption, const wchar_t *message, int flags = 0, MCONTACT hContact = NULL); + +MBinBuffer RsaEncrypt(const char *pszModulus, const char *exponent, const char *data); +MBinBuffer createMachineID(const char *accName); + +#define now() time(0) + +int64_t getRandomInt(); +CMStringA protobuf_c_text_to_string(const ProtobufCMessage &msg); + +#endif //_STEAM_UTILS_H_ |
