diff options
Diffstat (limited to 'src/osd/osdnet.h')
-rw-r--r-- | src/osd/osdnet.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/osd/osdnet.h b/src/osd/osdnet.h deleted file mode 100644 index 226ae2319a9..00000000000 --- a/src/osd/osdnet.h +++ /dev/null @@ -1,51 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Carl -#ifndef MAME_OSD_OSDNET_H -#define MAME_OSD_OSDNET_H - -#pragma once - -class osd_netdev; - -#define CREATE_NETDEV(name) class osd_netdev *name(const char *ifname, class device_network_interface *ifdev, int rate) -typedef class osd_netdev *(*create_netdev)(const char *ifname, class device_network_interface *ifdev, int rate); - -class osd_netdev -{ -public: - struct entry_t - { - int id; - char name[256]; - char description[256]; - create_netdev func; - }; - osd_netdev(class device_network_interface *ifdev, int rate); - virtual ~osd_netdev(); - void start(); - void stop(); - - virtual int send(uint8_t *buf, int len); - virtual void set_mac(const char *mac); - virtual void set_promisc(bool promisc); - - const char *get_mac(); - bool get_promisc(); - -protected: - virtual int recv_dev(uint8_t **buf); - -private: - void recv(void *ptr, int param); - - class device_network_interface *m_dev; - emu_timer *m_timer; -}; - -class osd_netdev *open_netdev(int id, class device_network_interface *ifdev, int rate); -void add_netdev(const char *name, const char *description, create_netdev func); -void clear_netdev(); -const std::vector<std::unique_ptr<osd_netdev::entry_t>>& get_netdev_list(); -int netdev_count(); - -#endif // MAME_OSD_OSDNET_H |