Packets: Make PRIVATE packet fields protected instead of private
g0dil [Fri, 10 Jul 2009 13:51:12 +0000 (13:51 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1268 270642c3-0616-0410-b53a-bc976706d245

Packets/ListParser.hh
Packets/ParseHelpers.ih
Packets/VariantParser.hh
Packets/VectorParser.hh

index 8807578..7986f36 100644 (file)
@@ -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)
 
 }
 
index a4d1cd9..4053ba3 100644 (file)
@@ -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:                                                                                       \
       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
index 17b0ca4..24f0097 100644 (file)
@@ -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////////////////////////////////////////
index db9e0de..12c599b 100644 (file)
@@ -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////////////////////////////////////////