mirror of
https://github.com/lux-tel/libsession-util.git
synced 2026-10-30 20:25:11 +00:00
- an errant "not" had crept in - MSVC requires the export macro in all the headers as well. - MSVC didn't like the find_first_not_of ustring invocation - MSVC refuses to accept C struct designators in C++17
26 lines
691 B
C
26 lines
691 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "../export.h"
|
|
|
|
// Maximum length of the profile pic URL (not including the null terminator)
|
|
LIBSESSION_EXPORT extern const size_t PROFILE_PIC_MAX_URL_LENGTH;
|
|
|
|
typedef struct user_profile_pic {
|
|
// Null-terminated C string containing the uploaded URL of the pic. Will be length 0 if there
|
|
// is no profile pic.
|
|
char url[224];
|
|
// The profile pic decryption key, in bytes. This is a byte buffer of length 32, *not* a
|
|
// null-terminated C string. This is only valid when there is a url (i.e. url has strlen > 0).
|
|
unsigned char key[32];
|
|
} user_profile_pic;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|