Re: mib2c best configuration mode to access global functions

2013-01-07 Thread Nuno Magalhães
Thanks Dave, You made my day :-) static will do just fine. Regards, Nuno Magalhães. On 06-01-2013 18:47, Dave Shield wrote: > On 5 January 2013 18:10, Nuno Magalhães wrote: >> Here it goes. > Thanks for that. > >> In windows embedded code full compilation it doesn't happen. >> In linux debian d

Re: mib2c best configuration mode to access global functions

2013-01-06 Thread Dave Shield
On 5 January 2013 18:10, Nuno Magalhães wrote: > Here it goes. Thanks for that. > In windows embedded code full compilation it doesn't happen. > In linux debian dlmod (obu.so) I must declared it inline to proc_status not > return always zero. I'm not currently set up for compiling dynamically l

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 12:14, Nuno Magalhães wrote: > It seems that normal global functions are not called since I put snmp logs > all over the global function and invoke it in the function handler and > nothing gets logged. > If I use the 'inline' keywork in the global function definition it gets > lo

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Nuno Magalhães
Hi Dave, It seems that normal global functions are not called since I put snmp logs all over the global function and invoke it in the function handler and nothing gets logged. If I use the 'inline' keywork in the global function definition it gets logged. As you're certainly more experienced in

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 09:05, Nuno Magalhães wrote: > But why must it be declared as inline? Why must what be declared inline? What has that got to do with using global functions/variables? > Is there any limitation in global variables and function calls? > Otherwise the global function will return

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Nuno Magalhães
Hi Dave, But why must it be declared as inline? Is there any limitation in global variables and function calls? Otherwise the global function will return always 0 no matter what values is returned. Have you ever experienced the same? Regards, Nuno Magalhães. Em 04-01-2013 21:44, Dave Shield esc

Re: mib2c best configuration mode to access global functions

2013-01-04 Thread Dave Shield
On 4 January 2013 19:34, Nuno Magalhães wrote: > What's the configuration I should use, with the mib2c tool, to access > global functions. > For example for invoking unix shell commands with popen or system and > retrieving a value. There's no special configuration required for mib2c - just take

mib2c best configuration mode to access global functions

2013-01-04 Thread Nuno Magalhães
Hi, What's the configuration I should use, with the mib2c tool, to access global functions. For example for invoking unix shell commands with popen or system and retrieving a value. Can someone point me sample code. Thanks, Nuno Magalhães. --