cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] Compile with latest nghttp2

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Tue, 26 Aug 2014 17:00:42 +0200

"Tatsuhiro Tsujikawa" <tatsuhiro.t_at_gmail.com> wrote:

> totally agree with you. Should I include this change to the patch?

Some other trouble I'm fighting with. In include/nghttp2/nghttp2.h the
comment says:

 * Callback functions for :type:`nghttp2_session`. The details of
 * this structure are intentionally hidden from the public API.
 */
typedef struct nghttp2_session_callbacks nghttp2_session_callbacks;

But then in libcurl's http2.c:

static const nghttp2_session_callbacks callbacks = {
  send_callback, /* nghttp2_send_callback */
  NULL, /* nghttp2_recv_callback */
  ...

-----------

libcurl uses the public API of Nghttp2. So how can this layout be
"intentionally hidden from the public API." ?

--gv

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-26