version.h

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: include/ntapi/version.h File Reference
version.h File Reference

Detailed Description

This is the header file of the NTAPI_VERSION define.

Definition in file version.h.

Go to the source code of this file.

Macros

#define NTAPI_VERSION   (2)
 
#define NTAPI_LEVEL   (6)
 

Macro Definition Documentation

#define NTAPI_VERSION   (2)

This define is used to ensure that applications can control what API version should be supported by the NTAPI library. The NTAPI library will via NT_Init, check if backward compatibility to NTAPI_VERSION can be ensured and convert all return structures to this version if possible. If it is not possible, NT_Init() will fail.

Examples:
bypass/config/bypass_config_example.c, bypass/info/bypass_info_example.c, bypass/watchdog/bypass_watchdog_example.c, config/config_example.c, event/event_example.c, eventMonitor_example.c, flowmatch/flowmatch_example_main.cpp, info/info_example.c, net/analysis/analysis_example.c, net/capture/capture_example.c, net/checksum/checksum_example.cpp, net/inline/inline_example.c, net/ipfdemo/ipfdemo_example.c, net/netflow/netflow_example.c, net/numa/numa_example.c, net/readcapfile/readcapfile_example.c, net/replay/replay_example.c, net/replay4GA/replay4ga_example.c, net/replayGS/replayGS_example.c, net/streamidstatistics/streamidstatistics_example.c, net/timestamp_inject/timestamp_inject_example.cpp, net/transmit_multifunction/transmit_multifunction_example.c, net/transmit_on_timestamp/transmit_on_timestamp_example.c, net/transmit_on_timestamp_setclock/transmit_on_timestamp_setclock_example.c, net/transmit_packet/transmit_packet_example.c, net/transmit_pcap/transmit_pcap_example.c, net/transmit_segment/transmit_segment_example.c, net/transmit_segment_dyn_descr/transmit_segment_dyn_descr_example.cpp, net/vlandemo/vlandemo_example.c, pps/pps_example.c, sensor/sensor_example.c, stat/stat_example.c, and statUsage/statUsage_example.c.

Definition at line 47 of file version.h.

Referenced by main().

#define NTAPI_LEVEL   (6)

Defines the NTAPI level With introduction of new NTAPI functions the NTAPI level will change. This is mostly used for internal documentation purposes.

Definition at line 54 of file version.h.