cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: passing state in write callbacks

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Sep 2011 23:12:56 +0200 (CEST)

On Thu, 15 Sep 2011, Alex Loukissas wrote:

> My question is whether libcurl supports/will support a different kind
> of signature for the callback function, one with an extra (void *)
> argument, where we can pass in some state (and thus make it a truer
> sort-of-speak callback).

Why can't you just use the existing void * argument?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-15