IOSTAT: plot LOAD y-axis in number of I/O not number of I/O times 1000
[metze/wireshark/wip.git] / capture-pcap-util-int.h
index ccdd54dfdbfc4c6347ff42f4f1f5a9823246503e..2ba3097fe2eb7d3c2d35af34029826b562b1842e 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef __PCAP_UTIL_INT_H__
 #define __PCAP_UTIL_INT_H__
 
-#ifdef HAVE_LIBPCAP
-#ifdef HAVE_PCAP_REMOTE
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-#include <pcap.h>
-#endif
-
-extern if_info_t *if_info_new(char *name, char *description);
+extern if_info_t *if_info_new(const char *name, const char *description,
+       gboolean loopback);
 extern void if_info_add_address(if_info_t *if_info, struct sockaddr *addr);
 #ifdef HAVE_PCAP_FINDALLDEVS
 #ifdef HAVE_PCAP_REMOTE
 extern GList *get_interface_list_findalldevs_ex(const char *source,
         struct pcap_rmtauth *auth, int *err, char **err_str);
-#else
+#endif /* HAVE_PCAP_REMOTE */
 extern GList *get_interface_list_findalldevs(int *err, char **err_str);
-#endif
-#endif
+#endif /* HAVE_PCAP_FINDALLDEVS */
 
 /*
  * Get an error message string for a CANT_GET_INTERFACE_LIST error from
@@ -51,6 +43,4 @@ extern GList *get_interface_list_findalldevs(int *err, char **err_str);
  */
 extern gchar *cant_get_if_list_error_message(const char *err_str);
 
-#endif /* HAVE_LIBPCAP */
-
 #endif /* __PCAP_UTIL_INT_H__ */