Export tvb_free_chain() so that tvbtest can use it.

As on Windows with MSVC, and as with reassemble_test, link tvbtest with
libwireshark and the libraries it requires.

svn path=/trunk/; revision=50575
This commit is contained in:
Guy Harris 2013-07-14 10:30:49 +00:00
parent f99694bb11
commit 1f32615d99
2 changed files with 6 additions and 4 deletions

View File

@ -155,14 +155,16 @@ libwireshark_la_DEPENDENCIES = \
${top_builddir}/wsutil/libwsutil.la \
${top_builddir}/wiretap/libwiretap.la
EXTRA_PROGRAMS = reassemble_test
EXTRA_PROGRAMS = reassemble_test tvbtest
reassemble_test_LDADD = \
libwireshark.la \
$(GLIB_LIBS) \
-lz
tvbtest: tvbtest.o tvbuff.o tvbuff_real.o tvbuff_subset.o except.o to_str.o strutil.o emem.o charsets.o
$(LINK) $^ $(GLIB_LIBS) -lz
tvbtest_LDADD = \
libwireshark.la \
$(GLIB_LIBS) \
-lz
exntest: exntest.o except.o
$(LINK) $^ $(GLIB_LIBS)

View File

@ -135,7 +135,7 @@ WS_DLL_PUBLIC void tvb_free(tvbuff_t*);
* must not be in a chain.
* If specified, a callback to free the tvbuff data will be invoked
* for each tvbuff free'd */
void tvb_free_chain(tvbuff_t*);
WS_DLL_PUBLIC void tvb_free_chain(tvbuff_t*);
/** Set a callback function to call when a tvbuff is actually freed
* One argument is passed to that callback --- a void* that points