2 |
#define EMUL_H |
#define EMUL_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2004-2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2004-2006 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: emul.h,v 1.37 2006/02/04 11:10:59 debug Exp $ |
* $Id: emul.h,v 1.39 2006/09/05 06:13:27 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
35 |
|
|
36 |
struct machine; |
struct machine; |
37 |
struct net; |
struct net; |
38 |
|
struct settings; |
39 |
|
|
40 |
struct emul { |
struct emul { |
41 |
|
struct settings *settings; |
42 |
|
|
43 |
char *name; |
char *name; |
44 |
|
|
45 |
int next_serial_nr; |
int next_serial_nr; |
57 |
|
|
58 |
/* emul.c: */ |
/* emul.c: */ |
59 |
struct emul *emul_new(char *name); |
struct emul *emul_new(char *name); |
60 |
|
void emul_destroy(struct emul *emul); |
61 |
|
|
62 |
struct machine *emul_add_machine(struct emul *e, char *name); |
struct machine *emul_add_machine(struct emul *e, char *name); |
63 |
void emul_machine_setup(struct machine *machine, int n_load, char **load_names, |
void emul_machine_setup(struct machine *machine, int n_load, char **load_names, |
64 |
int n_devices, char **device_names); |
int n_devices, char **device_names); |
69 |
|
|
70 |
|
|
71 |
/* emul_parse.c: */ |
/* emul_parse.c: */ |
72 |
void emul_parse_config(struct emul *e, FILE *f); |
void emul_parse_config(struct emul *e, char *fname); |
73 |
|
|
74 |
|
|
75 |
#endif /* EMUL_H */ |
#endif /* EMUL_H */ |