diff options
Diffstat (limited to 'core/Messenger.h')
-rw-r--r-- | core/Messenger.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Messenger.h b/core/Messenger.h index cd9e6e63..20ea33fb 100644 --- a/core/Messenger.h +++ b/core/Messenger.h | |||
@@ -68,6 +68,9 @@ extern "C" { | |||
68 | /* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased | 68 | /* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased |
69 | to an absurdly large number later */ | 69 | to an absurdly large number later */ |
70 | 70 | ||
71 | /* Default start timeout in seconds between friend requests */ | ||
72 | #define FRIENDREQUEST_TIMEOUT 5; | ||
73 | |||
71 | /* USERSTATUS | 74 | /* USERSTATUS |
72 | * Represents userstatuses someone can have. */ | 75 | * Represents userstatuses someone can have. */ |
73 | 76 | ||
@@ -82,7 +85,8 @@ USERSTATUS; | |||
82 | typedef struct { | 85 | typedef struct { |
83 | uint8_t client_id[CLIENT_ID_SIZE]; | 86 | uint8_t client_id[CLIENT_ID_SIZE]; |
84 | int crypt_connection_id; | 87 | int crypt_connection_id; |
85 | uint64_t friend_request_id; /* id of the friend request corresponding to the current friend request to the current friend. */ | 88 | uint64_t friendrequest_lastsent; /* time at which the last friend request was sent. */ |
89 | uint32_t friendrequest_timeout; /* The timeout between successful friendrequest sending attempts */ | ||
86 | uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */ | 90 | uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */ |
87 | uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */ | 91 | uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */ |
88 | uint8_t name[MAX_NAME_LENGTH]; | 92 | uint8_t name[MAX_NAME_LENGTH]; |