Future and plans for libnet? Why 'all the way with ejs'?
Alexander Bokovoy
ab at samba.org
Sat Jul 9 11:48:48 GMT 2005
On Sat, Jul 09, 2005 at 01:28:08PM +0200, Henrik Nordstrom wrote:
> Would in Perl look like
>
> /*
> return information about a user
> */
> sub samrQueryUserInfo($$$)
> {
> my (conn, user_handle, level) = @_;
> my io = $irpcObj->new(user_handle => $user_handle, level => $level);
> status = dcerpc_samr_QueryUserInfo($conn, $io);
> check_status_ok($status);
> return $io->output->info->info3;
> }
>
> The last thee lines can also be improved significantly, but since I don't
> know the object relationship too well I don't dare to make a suggestion.
Main reason it is done like it is because of keeping it close to C API
helps developers to be on the same ground whether they extend Samba via js
or at the core. Learning path is shorter.
--
/ Alexander Bokovoy
Samba Team http://www.samba.org/
ALT Linux Team http://www.altlinux.org/
Midgard Project Ry http://www.midgard-project.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20050709/f95a3543/attachment.bin
More information about the samba-technical
mailing list