On Wed, Dec 15, 2010 at 11:39 AM, Mario Gartner
<[email protected]>wrote:
>
> My question is related to the Windows DLL version of Net-SNMP.
> I found that not all API functions are really exported since they're not
> mentioned in the .def file.
>
> I'm mainly interested in agent handler API (agent_handler.h):
> http://www.net-snmp.org/docs/man/netsnmp_handler.html
>
> Is there a reason why those functions are not exported in the DLL?
> (They are in Linux .so libs ...)
>
> Any concerns about just adding them to win32/libagent/libagent.def?
>
There is no particular reason why not all of the Net-SNMP API is exported
via the DLL.
Instead of modifying the .def file, you should add NETSNMP_IMPORT in the
appropriate header file. The .def file is going to be dropped some day
because it is troublesome to maintain - some function definitions can be
ifdef'ed out (e.g. IPv6) and the .def file must only contain names of
defined functions.
Bart.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders