This sounds more complicated than it needs to be. User data is normally
passed using AG_Event arguments. Can you provide some sample code?
What is the error you are getting? The fn argument must be of type
void foo(AG_Event *).

On Thu, Jul 30, 2009 at 12:32:55AM +0000, Krankzinnig wrote:
> Hello, I am using the AG_ButtonNewFn function as a log in button for an
> application I am making. I need it to send a packet when pressed. But in order
> to avoid a certain segmentation error I need to declare that button event
> function in my network class so I can pass the network data. But if I put
> something like objNetwork.Login for the AG_Event fn param I get an error.
> 
> Limitation of agar?
> 
> _______________________________________________
> Agar mailing list
> [email protected]
> http://libagar.org/lists.html
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to