On 29/01/2008, Isaac Eliassi <[EMAIL PROTECTED]> wrote:
> At the README file (ver 5.4.1)

I presume you are referring to the file AGENT.txt,
rather than any of the README files themselves.


> I think that there is a minor error,

>     int
>     header_generic(vp, name, length, exact, var_len, write_method)

> int
> header_generic(struct variable *vp,
>                oid * name,
>                size_t * length,
>                int exact, size_t * var_len, WriteMethod ** write_method)


Strictly speaking - yes, you are correct.

However the main aim of this document (which is now showing its age!),
was primarily to provide an *explanation* of how the agent worked,
rather than as a cookbook of code.   So with both this fragment, and
the framework of the 'var_system' call immediately above it - in both
cases I deliberately omitted the types of the function parameters,
in order to emphasise that the list of parameters passed into the
"var_system" call were immediately passed to the "header_generic"
routine, exactly as is.

I felt (rightly or wrongly) that including the full function prototypes
would obscure this behaviour, so opted for the simpler layout.


Time has now passed this document by, and we really need something
similar that describes the newer V5 handler-based MIB module API.


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to