}
GList *
-get_pcap_linktype_list(char *devname, char **err_str)
+get_pcap_linktype_list(const char *devname, char **err_str)
{
GList *linktype_list = NULL;
pcap_t *pch;
char *description; /* descriptive name from wiretap e.g. "Ethernet", NULL if unknown */
} data_link_info_t;
-GList *get_pcap_linktype_list(char *devname, char **err_str);
+GList *get_pcap_linktype_list(const char *devname, char **err_str);
void free_pcap_linktype_list(GList *linktype_list);
/* get/set the link type of an interface */
/* XXX - We parse simple text output to get our interface list. Should
* we use "real" data serialization instead, e.g. via XML? */
GList *
-capture_pcap_linktype_list(gchar *ifname, char **err_str)
+capture_pcap_linktype_list(const gchar *ifname, char **err_str)
{
GList *linktype_list = NULL;
int err, i;
/**
* Fetch the linktype list for the specified interface from a child process.
*/
-extern GList *capture_pcap_linktype_list(char *devname, char **err_str);
+extern GList *capture_pcap_linktype_list(const char *devname, char **err_str);
struct if_stat_cache_s;
* exit value. In either case, msg must be freed with g_free().
*/
int
-sync_linktype_list_open(gchar *ifname, gchar **msg) {
+sync_linktype_list_open(const gchar *ifname, gchar **msg) {
int argc;
const char **argv;
/** Get a linktype list using dumpcap */
extern int
-sync_linktype_list_open(gchar *ifname, gchar **msg);
+sync_linktype_list_open(const gchar *ifname, gchar **msg);
/** Start getting interface statistics using dumpcap. */
extern int