<commit_before>//..............................................................................
//
//  This file is part of the Jancy toolkit.
//
//  Jancy is distributed under the MIT license.
//  For details see accompanying license.txt file,
//  the public copy of which is also available at:
//  http://tibbo.com/downloads/archive/jancy/license.txt
//
//..............................................................................

#include "pch.h"
#include "jnc_io_PcapLib.h"
#include "jnc_io_Pcap.h"
#include "jnc_io_PcapFilter.h"

namespace jnc {
namespace io {

//..............................................................................

JNC_DEFINE_LIB(
	PcapLib,
	g_pcapLibGuid,
	"PcapLib",
	"Jancy libPcap wrapper extension library"
	)

JNC_BEGIN_LIB_SOURCE_FILE_TABLE(PcapLib)
	JNC_LIB_IMPORT("io_Pcap.jnc")
JNC_END_LIB_SOURCE_FILE_TABLE()

JNC_BEGIN_LIB_OPAQUE_CLASS_TYPE_TABLE(PcapLib)
	JNC_LIB_OPAQUE_CLASS_TYPE_TABLE_ENTRY(Pcap)
	JNC_LIB_OPAQUE_CLASS_TYPE_TABLE_ENTRY(PcapFilter)
JNC_END_LIB_OPAQUE_CLASS_TYPE_TABLE()

JNC_BEGIN_LIB_FUNCTION_MAP(PcapLib)
	JNC_MAP_TYPE(Pcap)
	JNC_MAP_FUNCTION("io.createPcapDeviceDescList", &createPcapDeviceDescList)
JNC_END_LIB_FUNCTION_MAP()

//..............................................................................

} // namespace io
} // namespace jnc

jnc_DynamicExtensionLibHost* jnc_g_dynamicExtensionLibHost;

JNC_EXTERN_C
JNC_EXPORT<commit_msg>[jnc_io_pcap] fix: PcapFilter was not mapped<commit_after>//..............................................................................
//
//  This file is part of the Jancy toolkit.
//
//  Jancy is distributed under the MIT license.
//  For details see accompanying license.txt file,
//  the public copy of which is also available at:
//  http://tibbo.com/downloads/archive/jancy/license.txt
//
//..............................................................................

#include "pch.h"
#include "jnc_io_PcapLib.h"
#include "jnc_io_Pcap.h"
#include "jnc_io_PcapFilter.h"

namespace jnc {
namespace io {

//..............................................................................

JNC_DEFINE_LIB(
	PcapLib,
	g_pcapLibGuid,
	"PcapLib",
	"Jancy libPcap wrapper extension library"
	)

JNC_BEGIN_LIB_SOURCE_FILE_TABLE(PcapLib)
	JNC_LIB_IMPORT("io_Pcap.jnc")
JNC_END_LIB_SOURCE_FILE_TABLE()

JNC_BEGIN_LIB_OPAQUE_CLASS_TYPE_TABLE(PcapLib)
	JNC_LIB_OPAQUE_CLASS_TYPE_TABLE_ENTRY(Pcap)
	JNC_LIB_OPAQUE_CLASS_TYPE_TABLE_ENTRY(PcapFilter)
JNC_END_LIB_OPAQUE_CLASS_TYPE_TABLE()

JNC_BEGIN_LIB_FUNCTION_MAP(PcapLib)
	JNC_MAP_TYPE(Pcap)
	JNC_MAP_TYPE(PcapFilter)
	JNC_MAP_FUNCTION("io.createPcapDeviceDescList", &createPcapDeviceDescList)
JNC_END_LIB_FUNCTION_MAP()

//..............................................................................

} // namespace io
} // namespace jnc

jnc_DynamicExtensionLibHost* jnc_g_dynamicExtensionLibHost;

JNC_EXTERN_C
JNC_EXPORT
{'fraction_non_alphanumeric': 0.29070169374351884, 'fraction_numerical': 0.0, 'mean_word_length': 2.0335429769392035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1203659', 'n_tokens_mistral': 958, 'n_tokens_neox': 948, 'n_words': 151}