Phenom
889f23f9d8
Fix CppCheck in rstlvidset.h
...
/libretroshare/src/serialiser/rstlvidset.h:93: warning:
Cppcheck(unreadVariable): Variable 'ok' is assigned a value that is
never used.
2017-11-07 21:57:39 +01:00
Gioacchino Mazzurco
d89c151a4d
Fix typo
2017-09-17 14:41:18 +02:00
Phenom
a0ebddb4eb
Fic Gcc warnings:
...
/libretroshare/src/file_sharing/p3filelists.cc👎 In static member
function ‘static bool p3FileDatabase::convertPointerToEntryIndex(const
void*, p3FileDatabase::EntryIndex&, uint32_t&)’:
/libretroshare/src/file_sharing/p3filelists.cc:624: warning:
dereferencing type-punned pointer will break strict-aliasing rules [-
Wstrict-aliasing]
e = EntryIndex( *reinterpret_cast<uint32_t*>(&p) &
ENTRY_INDEX_BIT_MASK ) ;
/home/phenom/GIT/RetroShare/trunk/libretroshare/src/file_sharing/
p3filelists.cc:625: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
friend_index = (*reinterpret_cast<uint32_t*>(&p)) >>
NB_ENTRY_INDEX_BITS ;
/libretroshare/src/gxstrans/p3gxstransitems.h:29: In file included from
../../../trunk/libretroshare/src/gxstrans/p3gxstransitems.h:29:0,
/libretroshare/src/gxstrans/p3gxstransitems.cc:19: from ../../../trunk/
libretroshare/src/gxstrans/p3gxstransitems.cc:19:
/libretroshare/src/gxstrans/p3gxstransitems.cc👎 In member function
‘virtual void
OutgoingRecord_deprecated::serial_process(RsGenericSerializer::SerializeJob,
RsGenericSerializer::SerializeContext&)’:
/libretroshare/src/serialiser/rstypeserializer.h:61: warning:
dereferencing type-punned pointer will break strict-aliasing rules [-
Wstrict-aliasing]
RsTypeSerializer::serial_process<T>(j, ctx, reinterpret_cast<T&>(I),
#I);\
/libretroshare/src/gxstrans/p3gxstransitems.cc:51: in expansion of macro
‘RS_REGISTER_SERIAL_MEMBER_TYPED’
RS_REGISTER_SERIAL_MEMBER_TYPED(clientService, uint16_t);
/libretroshare/src/gxstrans/p3gxstransitems.cc👎 In member function
‘virtual void
OutgoingRecord::serial_process(RsGenericSerializer::SerializeJob,
RsGenericSerializer::SerializeContext&)’:
/libretroshare/src/serialiser/rstypeserializer.h:61: warning:
dereferencing type-punned pointer will break strict-aliasing rules [-
Wstrict-aliasing]
RsTypeSerializer::serial_process<T>(j, ctx, reinterpret_cast<T&>(I),
#I);\
/libretroshare/src/gxstrans/p3gxstransitems.cc:65: in expansion of macro
‘RS_REGISTER_SERIAL_MEMBER_TYPED’
RS_REGISTER_SERIAL_MEMBER_TYPED(clientService, uint16_t);
/retroshare-gui/src/gui/common/RsBanListToolButton.cpp👎 In member
function ‘void RsBanListToolButton::applyIp()’:
/retroshare-gui/src/gui/common/RsBanListToolButton.cpp:163: warning:
‘list_type’ may be used uninitialized in this function [-Wmaybe-
uninitialized]
changed = rsBanList->removeIpRange(addr, masked_bytes, list_type);
2017-09-13 18:37:32 +02:00
Gioacchino Mazzurco
3b1606ceb9
Remove misguiding if
2017-07-24 11:52:23 +02:00
Phenom
903f875d1d
Fix clang warning: unused variable 'MAX_SERIALIZED_ARRAY_SIZE'
...
/libretroshare/src/serialiser/rstypeserializer.cc:39: warning: unused
variable 'MAX_SERIALIZED_ARRAY_SIZE' [-Wunused-const-variable]
static const uint32_t MAX_SERIALIZED_ARRAY_SIZE = 500 ;
2017-07-16 21:36:35 +02:00
Phenom
e1ea92d733
Fix warning: unused parameter ‘n’
...
/libretroshare/src/serialiser/rstypeserializer.cc:358: warning: unused
parameter ‘n’ [-Wunused-parameter]
template<> void RsTypeSerializer::print_data( const std::string& n,
2017-07-16 20:41:24 +02:00
csoler
c0c5cc52db
Merge branch 'master' into gxs_mail_experiments
2017-05-13 21:08:16 +02:00
Phenom
58c812aea8
Fix Warnings: unused parameter ‘s’
...
warning: unused parameter ‘s’ [-Wunused-parameter]
template<> uint32_t RsTypeSerializer::serial_size(uint16_t /*
type_subtype */,const uint32_t& s)
^
2017-05-08 12:17:01 +02:00
Phenom
7892004641
Fix Warnings: unused parameter ‘member_name’
...
warning: unused parameter ‘member_name’ [-Wunused-parameter]
static void serial_process(RsGenericSerializer::SerializeJob
j,RsGenericSerializer::SerializeContext& ctx,t_RsFlags32<N>& v,const
std::string& member_name)
^~~~~~~~~~~
2017-05-08 12:04:08 +02:00
Gioacchino Mazzurco
ea8f800003
Port GxsTrans to new serialization system
...
RsItem added some comment and more verbose error reporting
RsTypeSerializer added support for RsItem derived classes as members
added utility macros for better readability of the code and easier
handling of RsItem derived members
RS_REGISTER_SERIAL_MEMBER(I)
RS_REGISTER_SERIAL_MEMBER_TYPED(I, T)
RS_REGISTER_ITEM_TYPE(T)
RsNxsMsg::serial_process use new macros for better readability and to
have an exemple of usage with RsTlvItem derived class
Fix undefined reference to RsNxsMsg::print
2017-05-08 00:19:11 +02:00
csoler
868c0467f2
fixed bug in serializer caused to not updating the size parameter. Also fixes unittests
2017-05-06 13:23:26 +02:00
Phenom
d31b80c13a
Fix Windows Compilation
2017-05-04 11:58:45 +02:00
csoler
4f4240d570
fixed bug in history serializer
2017-05-03 22:43:16 +02:00
csoler
214aaa7c9b
added safety check for null chunks in TlvMemBlock_proxy deserialization
2017-05-03 22:20:58 +02:00
csoler
99d8b7d5d8
switched service control items to new serialization
2017-05-01 21:23:34 +02:00
csoler
16b8947af1
improved serializer documentation
2017-04-30 20:31:43 +02:00
csoler
24c7c38016
removed old file rssrviceserialiser.h/cc
2017-04-30 20:08:30 +02:00
csoler
14076de1e0
moved code of rsservicerserialiser into rsserializer.h/cc and renamed it into RsRawSerializer
2017-04-30 19:17:44 +02:00
csoler
e401b90e02
moved rsserializer and rstypeserializer to serialiser/
2017-04-30 16:05:37 +02:00
csoler
1159c863a2
moved wiki and wire items to rsitems/
2017-04-29 21:50:55 +02:00
csoler
d58c638af8
switched wiki and wire items to new serialization
2017-04-29 21:46:54 +02:00
csoler
5cba0059c8
moved recognitems to rsitems/
2017-04-28 23:32:47 +02:00
csoler
23492698d4
switch rsrecognitems to new serialization
2017-04-28 23:28:56 +02:00
csoler
688813fbf5
moved photo items to rsitems/
2017-04-28 18:51:35 +02:00
csoler
634efb6142
switched rsphotoitems to new serialization
2017-04-28 18:42:11 +02:00
csoler
22e2416f3e
moved rsserviceinfo items to rsitems/
2017-04-28 17:47:41 +02:00
csoler
2d19783296
switched serviceinfo items to new serialization
2017-04-28 17:44:45 +02:00
csoler
c33c34b175
moved rspluginitems to rsitems/
2017-04-28 16:44:04 +02:00
csoler
d32a8caf06
switched PluginItems to new serialization
2017-04-28 16:39:54 +02:00
csoler
45eaf27deb
moved rsgxsupdateitems to rsitems/
2017-04-28 16:30:33 +02:00
csoler
2e6766569d
switched MsgUpdate items to new serialization
2017-04-28 16:26:59 +02:00
csoler
5995e508c5
moved rsstatusitem.h to rsitems/
2017-04-27 21:24:27 +02:00
csoler
87018edeb2
switched rsstatusitem to new serializer
2017-04-27 21:20:30 +02:00
csoler
07a93be1b2
moved heartbeatitem.h to rsitems/
2017-04-27 21:11:10 +02:00
csoler
9adbab3281
switched heartbeatitems to new serialization
2017-04-27 21:10:22 +02:00
csoler
349d14b354
moved rsposteditems to rsitems/
2017-04-27 14:44:41 +02:00
csoler
35ecc19677
switched rsposteditems to new serialization
2017-04-27 14:41:31 +02:00
csoler
22f6d150df
moved rsnxsitems.cc to rsitems/
2017-04-27 14:21:46 +02:00
csoler
3c20a85335
switched RsNxsItems to new serialization
2017-04-27 14:16:57 +02:00
csoler
f6e59f7dee
moved gxsforumitems to rsitems/
2017-04-27 11:59:18 +02:00
csoler
449a4209d9
dwitched gxsforum items to new serialization
2017-04-27 11:56:56 +02:00
csoler
f50670f773
moved circle items to rsitems/
2017-04-26 20:59:59 +02:00
csoler
559137d05b
switched gxscircleitems to new serialization
2017-04-26 20:57:28 +02:00
csoler
db645239cb
moved rsgxschannel items to rsitems
2017-04-26 20:15:54 +02:00
csoler
69729ad7d2
switch Channel items to new serialization
2017-04-26 18:55:23 +02:00
csoler
c31396a010
moved dsdv code to unused directory
2017-04-26 14:31:15 +02:00
csoler
508a2e2864
moved gxs comment and Id items to rsitems/
2017-04-26 14:28:25 +02:00
csoler
c0d8735251
switched RsGxsIdItems to new serialization
2017-04-26 14:17:38 +02:00
csoler
fb34fa19c0
switch GxsComment item to new serialization
2017-04-26 13:44:09 +02:00
csoler
9c610a736d
cleaned the hierarchy of serialization classes
2017-04-26 11:40:46 +02:00
csoler
77e809ea4b
switched GRouter to new serialization
2017-04-25 21:21:46 +02:00
csoler
0d7df568b4
moved rsconfigitems and rshistoryitems to rsitems/
2017-04-24 22:47:08 +02:00
csoler
f7338d4a3d
removed old code
2017-04-24 22:39:05 +02:00
csoler
43b3b87782
fixed a few bugs in config items
2017-04-24 22:36:03 +02:00
csoler
fcabe6359f
switch RsConfigItems to new serialization
2017-04-24 18:51:51 +02:00
csoler
af4fcf7679
switched rshistoryitems to new serialization
2017-04-24 17:33:30 +02:00
csoler
26e95416d1
moved RTT items to rsitems/
2017-04-24 11:06:51 +02:00
csoler
f6aaee7382
converted RTT items to new serialization
2017-04-24 11:01:45 +02:00
csoler
5071c4bc7f
moved msgitems to rsitems/
2017-04-24 11:00:57 +02:00
csoler
fc82b20833
removed old serialization code in msgs
2017-04-24 10:36:22 +02:00
csoler
31c07f4dfd
converted RsMsgItems to new serialization. Added format and flag members to RsSerialiser and used the later to handle signature and config serialization techniques
2017-04-23 22:40:26 +02:00
csoler
63b4b3a1f7
moved discovery2 items to rsitems/
2017-04-23 19:07:26 +02:00
csoler
9d9ff567bb
switched discovery2items to new serialization
2017-04-23 19:02:12 +02:00
csoler
bef6db4b43
moved files
2017-04-22 21:32:57 +02:00
csoler
311f257090
converted GxsReputationItems to new serialization
2017-04-22 21:10:55 +02:00
csoler
e2d9152b22
moved converted serialisation files into new directory rsitems/, leaving serialiser/ for the serialisation classes
2017-04-18 21:11:37 +02:00
csoler
121133488c
fixed bug in serialization for turtle
2017-04-16 19:59:22 +02:00
csoler
636450f14d
moved turtle and FT to new serialization
2017-04-15 18:46:44 +02:00
csoler
3453a3e57d
switched FileTransfer items to new serialization
2017-04-11 23:05:27 +02:00
csoler
80e8769ed7
added missign file and converted BW control items
2017-04-11 21:37:35 +02:00
csoler
731e20d0a3
switch BanListItem classes to new serialization system
2017-04-10 22:09:56 +02:00
csoler
a941136c04
fixed a few bugs in new serialization
2017-04-05 18:09:45 +02:00
csoler
5b3e488b42
fixed compilation
2017-04-05 16:53:20 +02:00
csoler
059dfcff47
added hability to print in the serialization process
2017-04-04 14:00:17 +02:00
csoler
ddbe2ef9a1
created .cc files for serialization
2017-04-02 14:48:17 +02:00
csoler
b52071d0c9
removed RsSerializable and merged it into RsItem
2017-04-01 18:05:53 +02:00
Phenom
aa05d60894
Fix all warnings in UnitTest
2017-01-21 16:31:45 +01:00
csoler
0dd3a318ed
added last used TS in reputation items
2017-01-08 11:10:33 +01:00
Phenom
40cf76808c
Fix compilation and some new warnings.
2016-12-21 21:23:54 +01:00
csoler
948b88bccd
fixed bug caused by calling clear in constructor which would reset the TS in GXS when saving...
2016-12-19 21:40:04 +01:00
csoler
dd2a3c26de
fixed serialisation bug in new UpdateMap code, and removed debug info from RsGxsNetService
2016-12-12 22:52:55 +01:00
csoler
0d94b683dd
removed duplicate peerID/grpId in msg/grp update maps
2016-12-12 21:01:24 +01:00
csoler
a4c14c2212
improved serialisation methods in RsGxsNet items, and added serialisation for RsGrpConfigItem
2016-12-06 22:17:03 +01:00
csoler
661038d9b2
added a function to check keep/req times for consistency
2016-12-05 23:42:44 +01:00
csoler
5612647672
added new GrpServerConfigMap to store additional data on groups for net service. Removed pointers to simplify the code
2016-12-04 23:40:52 +01:00
csoler
143829c881
moved constants for GXS group management into rsgxs.h
2016-12-04 23:40:39 +01:00
csoler
f3a34bf5a3
created a new item to hold/save per gxs group information (statistics, update delays)
2016-12-04 23:39:45 +01:00
csoler
c6d21e4abc
changed old msg update default strategy to one month
2016-12-04 23:39:10 +01:00
Phenom
674b6de381
Fix Some gcc warnings 383 to 208 lines
...
Left explicit #warning and deprecated.
Some lines are wrong indented and produce mal formed code.
2016-11-30 22:01:01 +01:00
csoler
4bdfc6e74e
removed unused old file
2016-11-18 17:56:42 +01:00
Gio
633a6cf8c2
Fixed a bunch of warnings in safe ways
2016-10-13 00:01:33 +02:00
mr-alice
0757fb303c
merged upstream/master
2016-09-20 20:51:50 +02:00
mr-alice
679c53b0b0
added load/save of directory hierarchies. Fixed bug in loading of hash cache (caused y non initialisation of dest string in GetRawString())
2016-09-05 21:22:11 +02:00
mr-alice
ade6017f74
merged with upstream/master
2016-09-01 19:52:31 +02:00
Gio
746f4d7292
libretroshare remove unuseful code from RsRawItem
2016-08-25 15:11:58 +02:00
mr-alice
edc602f68f
added infrastructure for synchronisation of file lists
2016-08-20 16:23:11 +02:00
csoler
7545ad4d11
simplied/improved reputation system. Now ids can be banned based on their owner node using a single checkbox in the Person tab, with immediate effect
2016-08-04 11:43:35 +02:00
csoler
c4ef4d7743
saved owner node ID in GXS reputation item
2016-08-03 14:52:37 +02:00
mr-alice
5b9fd74d85
removed most of CacheStrapper stuff from ftServer, replaced fimonitor by p3FileDatabase
2016-07-30 21:52:42 +02:00
Phenom
3152ecaa9b
Fix UnitTests and run it in windows too.
2016-07-15 15:36:06 +02:00