From: g0dil Date: Fri, 10 Jul 2009 13:51:12 +0000 (+0000) Subject: Packets: Make PRIVATE packet fields protected instead of private X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=4295f356d55b1810c8d452c231047cff0c939f77;p=senf.git Packets: Make PRIVATE packet fields protected instead of private git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1268 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/ListParser.hh b/Packets/ListParser.hh index 8807578..7986f36 100644 --- a/Packets/ListParser.hh +++ b/Packets/ListParser.hh @@ -316,7 +316,7 @@ namespace senf { \ingroup packetparsermacros */ # define SENF_PARSER_PRIVATE_LIST(name, size, elt_type) \ - SENF_PARSER_LIST_I(private, name, size, elt_type) + SENF_PARSER_LIST_I(protected, name, size, elt_type) } diff --git a/Packets/ParseHelpers.ih b/Packets/ParseHelpers.ih index a4d1cd9..4053ba3 100644 --- a/Packets/ParseHelpers.ih +++ b/Packets/ParseHelpers.ih @@ -94,8 +94,8 @@ # define SENF_PARSER_FIELD_fix(name, type) SENF_PARSER_FIELD_I(name, type, fix, rw, public) # define SENF_PARSER_FIELD_RO_fix(name, type) SENF_PARSER_FIELD_I(name, type, fix, ro, public) # -# define SENF_PARSER_P_FIELD_var(name, type) SENF_PARSER_FIELD_I(name, type, var, rw, private) -# define SENF_PARSER_P_FIELD_fix(name, type) SENF_PARSER_FIELD_I(name, type, fix, rw, private) +# define SENF_PARSER_P_FIELD_var(name, type) SENF_PARSER_FIELD_I(name, type, var, rw, protected) +# define SENF_PARSER_P_FIELD_fix(name, type) SENF_PARSER_FIELD_I(name, type, fix, rw, protected) # # define SENF_PARSER_FIELD_I(name, type, ofstype, rwtype, access) \ access: \ @@ -250,9 +250,9 @@ SENF_PARSER_BITFIELD_I(name, bits, type, fix, ro, public) # # define SENF_PARSER_P_BITFIELD_var(name, bits, type) \ - SENF_PARSER_BITFIELD_I(name, bits, type, var, rw, private) + SENF_PARSER_BITFIELD_I(name, bits, type, var, rw, protected) # define SENF_PARSER_P_BITFIELD_fix(name, bits, type) \ - SENF_PARSER_BITFIELD_I(name, bits, type, fix, rw, private) + SENF_PARSER_BITFIELD_I(name, bits, type, fix, rw, protected) # # //////////////////////////////////////// # // SENF_PARSER_BITFIELD_I diff --git a/Packets/VariantParser.hh b/Packets/VariantParser.hh index 17b0ca4..24f0097 100644 --- a/Packets/VariantParser.hh +++ b/Packets/VariantParser.hh @@ -252,7 +252,7 @@ namespace senf { \ingroup packetparsermacros */ # define SENF_PARSER_PRIVATE_VARIANT(name, chooser, types) \ - SENF_PARSER_VARIANT_I(private, name, chooser, types) + SENF_PARSER_VARIANT_I(protected, name, chooser, types) } ///////////////////////////////hh.e//////////////////////////////////////// diff --git a/Packets/VectorParser.hh b/Packets/VectorParser.hh index db9e0de..12c599b 100644 --- a/Packets/VectorParser.hh +++ b/Packets/VectorParser.hh @@ -304,7 +304,7 @@ namespace senf { \ingroup packetparsermacros */ # define SENF_PARSER_PRIVATE_VECTOR(name, size, elt_type) \ - SENF_PARSER_VECTOR_I(private, name, size, elt_type) + SENF_PARSER_VECTOR_I(protected, name, size, elt_type) } ///////////////////////////////hh.e////////////////////////////////////////