wireshark/epan/nghttp2
Pascal Quantin 6baa1b544c Remove Nmake build system
Change-Id: I3bd474f3cda9667dec66426b5729449953df3e61
Reviewed-on: https://code.wireshark.org/review/15777
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
2016-06-15 19:21:57 +00:00
..
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
Makefile.am Remove Nmake build system 2016-06-15 19:21:57 +00:00
Makefile.common Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
README.nghttp2 Pick up some updates from Jeff Morris' abandoned change. 2016-06-01 00:42:31 +00:00
nghttp2.h Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_buf.c NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_buf.h Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_hd.c Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_hd.h Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_hd_huffman.c Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_hd_huffman.h NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_hd_huffman_data.c HTTP2: Update nghttp2 lib (0.6.7) 2014-12-15 07:58:36 +00:00
nghttp2_helper.c Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_helper.h NGHTTP2: Update to 1.5.0 2015-11-27 05:32:19 +00:00
nghttp2_int.h HTTP2: Update to libnghttp2 0.7.13 2015-04-30 20:02:43 +00:00
nghttp2_mem.c Squelch a compiler warning. 2016-05-31 23:43:07 +00:00
nghttp2_mem.h Change the declaration of nghttp2_mem_free2() to match the definition. 2016-06-01 00:48:46 +00:00
nghttp2_rcbuf.c Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2_rcbuf.h Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00
nghttp2ver.h Update to nghttp2 1.11.1 2016-05-31 07:18:25 +00:00

README.nghttp2

Code from nghttp2 library ( https://github.com/tatsuhiro-t/nghttp2)
Thanks for Tatsuhiro Tsujikawa for permission to use nghttp2 lib.

Update library from source

download (clone) last release of nghttp2
and in folder epan/nghttp2 copy following file

cp ../../../nghttp2/lib/nghttp2_buf.[ch] .
cp ../../../nghttp2/lib/nghttp2_hd*.[ch] .
cp ../../../nghttp2/lib/nghttp2_helper.[ch] .
cp ../../../nghttp2/lib/nghttp2_int.h .
cp ../../../nghttp2/lib/nghttp2_mem.[ch] .
cp ../../../nghttp2/lib/nghttp2_rcbuf.[ch] .
cp ../../../nghttp2/lib/includes/nghttp2/nghttp2.h .
cp ../../../nghttp2/lib/includes/nghttp2/nghttp2ver.h .

Change path to nghttp2.h
find . -name "nghttp2*" -type f -exec sed -i 's/<nghttp2\/nghttp2.h>/<nghttp2.h>/g'  {} \;

Change path to nghttp2ver.h
find . -name "nghttp2*" -type f -exec sed -i 's/<nghttp2\/nghttp2ver.h>/"nghttp2ver.h"/g'  {} \;

Change ntoh[ls], hton[ls] to use g_ntoh[ls], g_hton[ls] from glib
find . -name "nghttp2*" -type f -exec sed -i 's/ntoh/g_ntoh/g'  {} \;
find . -name "nghttp2*" -type f -exec sed -i 's/hton/g_hton/g'  {} \;

Use glib.h and not nghttp2_net.h for ntoh/hton
find . -name "nghttp2*" -type f -exec sed -i 's/"nghttp2_net.h"/<glib.h>/g'  {} \;

Fix c++-compat error and documentation (struct => typedef) error

Rename free function to free_func in nghttp2_mem.[ch] to avoid shadowing
standard C free() function from stdlib.h

In nghttp2/nghttp2.h

Add on the top
#include <config.h>

After
#define NGHTTP2_EXTERN
 #endif /* !defined(WIN32) */

Add
/*
 * When we're building this as part of Wireshark, we want to treat
 * all these routines as internal to libwireshark.
 */

#include "ws_symbol_export.h"

#undef NGHTTP2_EXTERN
#define NGHTTP2_EXTERN WS_DLL_LOCAL