Skip to content

Instantly share code, notes, and snippets.

@GrayHatter
Created April 16, 2017 20:24
Show Gist options
  • Save GrayHatter/bda1fa786c3ec178fa37fbdf54e1ecf5 to your computer and use it in GitHub Desktop.
Save GrayHatter/bda1fa786c3ec178fa37fbdf54e1ecf5 to your computer and use it in GitHub Desktop.
struct SAVED_FRIEND {
uint8_t save_version;
uint8_t status;
uint8_t info[SAVED_FRIEND_REQUEST_SIZE]; // the data that is sent during the friend requests we do.
uint16_t info_size; // Length of the info.
uint8_t name[MAX_NAME_LENGTH];
uint16_t name_length;
uint8_t statusmessage[MAX_STATUSMESSAGE_LENGTH];
uint16_t statusmessage_length;
uint8_t userstatus;
uint32_t friendrequest_nospam;
uint64_t last_seen_time;
uint8_t dev_count;
struct SAVED_DEVICE device[];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment