In the patch:

+       // handle special cases
+       switch( field->type )
+       {
+       case PNMFC_RECORDID:
+               MessageRecordId = field->u.min1900; // not really time, but we
+need easy access to an int
+               return begin;
+       }


Don't be afraid to add fields or structs to protostructs.h if you need
to, instead of reusing fields that don't quite have the right meaning.
I added a uint32 field to the CommonFieldData union, to avoid overlap.

Currently, protostructs.h is the closest thing we have to protocol
documentation, and any effort to enhance that or make it clearer
or make it more robust is a good thing. :-)  And you are definitely
working in the protocol side of things, so you are free to build on
protostructs.h as appropriate.

- Chris


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to