pidl decode/encode from/to buffer
Martin Vogt
mvogt1 at googlemail.com
Sat Jan 1 13:08:15 MST 2011
Hello,
On Fri, Dec 31, 2010 at 11:11 PM, Brad Hards <bradh at frogmouth.net> wrote:
> 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.
Ok. From the pidl source and the example I could not figure out how it
could be done.
> 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
>
Thanks, I will look at the mapistore_indexing_db example and will try
to do the same.
regards,
Martin
More information about the samba-technical
mailing list