On Tue, Aug 10, 2010 at 9:38 PM, Jason Baron <[email protected]> wrote:
> Hi,
>
> I was playing around with the language bindings mentioned in: Subject:
> [Libcg-devel] [hack] Language bindings for libcgroup
>
> I was just trying to figure out how to call the
> "cgroup_read_stats_begin()" function from python. The third argument
> takes a 'void **'. How can I call this function in python?
>
> I've posted my full test script (building on the one you posted) below.
> The error I'm currently getting is:
>
> Traceback (most recent call last):
>  File "./tester.py", line 20, in <module>
>    cgroup_read_stats_begin("cpu", "/cgroup/test", byref(handle), cg_stat)
> TypeError: in method 'cgroup_read_stats_begin', argument 3 of type 'void **'
>

I i read your script corectly, you are passing a void * as opposed to
a void **. Not sure hwo to fix it in python though.

Dhaval

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to