Fixed bugs that were preventing NVR and Flash files from behind saved;

A lot of clean ups from waltje;
Start of a directory structure for the code, thanks to waltje.
This commit is contained in:
OBattler
2017-05-06 17:48:33 +02:00
parent e2a717deae
commit f6612fb33b
344 changed files with 2011 additions and 1870 deletions

31
src/network.h Normal file
View File

@@ -0,0 +1,31 @@
/* Copyright holders: Sarah Walker, Tenshi
see COPYING for more details
*/
#ifndef NETWORK_H
# define NETWORK_H
# include <stdint.h>
#define NE2000 1
#define RTL8029AS 2
extern int network_card_current;
extern void network_init(void);
extern void network_reset(void);
extern void network_add_handler(void (*poller)(void *p), void *p);
extern int network_card_available(int card);
extern char *network_card_getname(int card);
extern int network_card_has_config(int card);
extern char *network_card_get_internal_name(int card);
extern int network_card_get_from_internal_name(char *s);
extern struct device_t *network_card_getdevice(int card);
extern void initpcap(void);
extern void closepcap(void);
#endif /*NETWORK_H*/