libmsrpc for Samba 3

Gerald (Jerry) Carter jerry at
Wed Jul 20 16:53:19 GMT 2005

Hash: SHA1

Chris Nicholls wrote:
| I considered something like that but it seems to me
| like using an  initialize_operation() function is adding
| to complexity, there is a  function just to prepare values
| for the second function call. Also, if something like
| this were used I would prefer a function like
| get_some_control_block() that would also allocate
| memory for such a  structure and return it.  I guess in
| my mind that just seems like it accomplishes more.

That's pretty much what the make_q_XXX() functions do
in Samba 3.  The one thing to remember in this discussion
is that user's will work with char* and somewhere that
string must getting converted to wire format (UNISTR[234]).
Samba 4 autogenerates the code to do this.  We do not in
the 3 branch.

So you would have to design another layer of application
structures on top of include/rpc_*.h  This is really the
crux of the library work (that and actually creating the
*.so file).

cheers, jerry
Alleviating the pain of Windows(tm)      -------
GnuPG Key                -----
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -


More information about the samba-technical mailing list