some 'const' specifications, putting the code to determine the default device

in its own file
This commit is contained in:
Arnout Engelen
2011-07-12 21:53:54 +00:00
parent a50b249438
commit ff8151fe96
9 changed files with 37 additions and 24 deletions

View File

@@ -40,7 +40,7 @@ struct dp_handle {
/* functions to set up a handle (which is basically just a pcap handle) */
struct dp_handle * dp_open_live(char * device, int snaplen, int promisc, int to_ms, char * ebuf);
struct dp_handle * dp_open_live(const char * device, int snaplen, int promisc, int to_ms, const char * ebuf);
struct dp_handle * dp_open_offline(char * fname, char * ebuf);
/* functions to add callbacks */