pidl decode/encode from/to buffer

Brad Hards bradh at frogmouth.net
Fri Dec 31 15:11:45 MST 2010


On Saturday, January 01, 2011 07:48:52 am Andrew Bartlett wrote:
> Yes.  Samba4's libndr should do what you want, and you should be able to
> handle it with the ndr_pull_struct_blob() and ndr_push_struct_blob()
> macros around the generated ndr_pull_xxx and ndr_push_xxx functions.
Here is an example of ndr_push_struct_blob(), from openchange, where we use 
this idea for versioning of the database format, based on a suggestion from 
metze:
http://tracker.openchange.org/projects/openchange/repository/entry/branches/mapistore_v2/mapiproxy/libmapistore/indexing/mapistore_indexing.c
http://tracker.openchange.org/projects/openchange/repository/entry/branches/mapistore_v2/mapiproxy/libmapistore/indexing/mapistore_indexing_db.idl

HTH

Brad


More information about the samba-technical mailing list