libmsrpc for Samba 3

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


-----BEGIN PGP SIGNED MESSAGE-----
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)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC3oF/IR7qMdg1EfYRAq1gAJ0aP9c7oytP7PtywNaumYn266fA5gCfclwf
F3JtoidJeDKytKRBol+Cn40=
=k10C
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list