From: Roland H. <ro...@gm...> - 2006-04-12 22:06:06
|
Hi! 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? -- greets Roland |