From: Doug M. <do...@hy...> - 2010-12-21 00:14:18
|
Here's an old/simple example I had sitting around: https://gist.github.com/749262 You do need to use sigar_proc_env_t and the 'data' member is a pointer to your own data, passed as the first param to the callback. The idea is you'd use that to store the key/val pairs in your data structure of choice. There's more examples in the master branch if you look at the other language bindings. |