2 |
#define EMUL_H |
#define EMUL_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2004-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2004-2007 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.39 2006/09/05 06:13:27 debug Exp $ |
* $Id: emul.h,v 1.41 2006/12/30 13:31:00 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include "misc.h" |
#include "misc.h" |
42 |
|
|
43 |
char *name; |
char *name; |
44 |
|
|
45 |
|
char *path; /* e.g. "emul[0]" */ |
46 |
|
|
47 |
int next_serial_nr; |
int next_serial_nr; |
48 |
struct net *net; |
struct net *net; |
49 |
|
|
58 |
|
|
59 |
|
|
60 |
/* emul.c: */ |
/* emul.c: */ |
61 |
struct emul *emul_new(char *name); |
struct emul *emul_new(char *name, int id); |
62 |
void emul_destroy(struct emul *emul); |
void emul_destroy(struct emul *emul); |
63 |
|
|
64 |
struct machine *emul_add_machine(struct emul *e, char *name); |
struct machine *emul_add_machine(struct emul *e, char *name); |
66 |
int n_devices, char **device_names); |
int n_devices, char **device_names); |
67 |
void emul_dumpinfo(struct emul *e); |
void emul_dumpinfo(struct emul *e); |
68 |
void emul_simple_init(struct emul *emul); |
void emul_simple_init(struct emul *emul); |
69 |
struct emul *emul_create_from_configfile(char *fname); |
struct emul *emul_create_from_configfile(char *fname, int id); |
70 |
void emul_run(struct emul **emuls, int n_emuls); |
void emul_run(struct emul **emuls, int n_emuls); |
71 |
|
|
72 |
|
|