Use safer rstime_t instead of time_t

Avoid problems to serialization on different platforms, without breaking
nested STL containers serialization.

The conversion have been made with sed, and checked with grep, plus
kdiff3 visual ispection, plus rutime tests, so it should be fine.
This commit is contained in:
Gioacchino Mazzurco 2018-10-07 01:34:05 +02:00
parent 41aa675a9b
commit 329050a9c2
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
223 changed files with 930 additions and 911 deletions

View file

@ -134,7 +134,7 @@ struct RsGxsIdGroup : RsSerializable
// Avatar
RsGxsImage mImage ;
time_t mLastUsageTS ;
rstime_t mLastUsageTS ;
// Not Serialised - for GUI's benefit.
bool mPgpKnown;
@ -168,8 +168,8 @@ struct RsRecognTagDetails
valid_from(0), valid_to(0), tag_class(0), tag_type(0), is_valid(false),
is_pending(false) {}
time_t valid_from;
time_t valid_to;
rstime_t valid_from;
rstime_t valid_to;
uint16_t tag_class;
uint16_t tag_type;
@ -315,9 +315,9 @@ struct RsIdentityDetails : RsSerializable
RsGxsImage mAvatar;
time_t mLastUsageTS;
rstime_t mLastUsageTS;
std::map<RsIdentityUsage,time_t> mUseCases;
std::map<RsIdentityUsage,rstime_t> mUseCases;
/// @see RsSerializable
virtual void serial_process(RsGenericSerializer::SerializeJob j,
@ -390,7 +390,7 @@ struct RsIdentity : RsGxsIfaceHelper
* \param id
* \return
*/
virtual time_t getLastUsageTS(const RsGxsId &id) =0;
virtual rstime_t getLastUsageTS(const RsGxsId &id) =0;
// Specific RsIdentity Functions....
/* Specific Service Data */