]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap/pcap.h
Merge branch 'master' into pcap-options
[libpcap] / pcap / pcap.h
index a4e20f6012f793ea3ba5a29d91c069acd14fb60e..13ebfdbded186dc9d802825bc19f68f94cbf26cd 100644 (file)
@@ -1265,6 +1265,23 @@ PCAP_API int     pcap_remoteact_close(const char *host, char *errbuf);
 PCAP_AVAILABLE_1_9
 PCAP_API void  pcap_remoteact_cleanup(void);
 
+enum pcap_option_name {  /* never renumber this */
+                      PON_TSTAMP_PRECISION = 1,  /* int */
+                      PON_IO_READ_PLUGIN   = 2,  /* char * */
+                      PON_IO_WRITE_PLUGIN  = 3,  /* char * */
+};
+typedef struct pcap_options pcap_options;
+PCAP_API pcap_options *pcap_alloc_option(void);
+PCAP_API void pcap_free_option(pcap_options *po);
+PCAP_API int pcap_set_option_string(pcap_options *po,
+                                   enum pcap_option_name pon, const char *value);
+PCAP_API int pcap_set_option_int(pcap_options *po,
+                                enum pcap_option_name pon, const int value);
+PCAP_API const char *pcap_get_option_string(pcap_options *po, enum pcap_option_name pon);
+PCAP_API int pcap_get_option_int(pcap_options *po, enum pcap_option_name pon);
+
+
+
 #ifdef __cplusplus
 }
 #endif