From: Michael R. <re...@eu...> - 2006-04-17 08:30:16
|
Hi Roland, > I have added 2 functions in plugin_imon.c. The first returns the amount > of Bytes Up/Downloading from the connected imond in kb/mb. The second > function returns the uptime from the connected imond in seconds or > user-defined format. > > The uptime function uses 2 functions from plugin_uptime (itoa, > struptime). At the moment I had declared these functions at the > beginning of the plugin. But if the user compile without plugin_uptime > it doesn't work anymore. Shall I put these function under different > names into the plugin or is it better to put these functions into a > .h-file? I'm not sure how to resolve this. Sharing code between plugins is a bad idea, as you've correctly stated. Just send me a patch, I'l have a look at it and think about it. bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |