/[dynamips]/trunk/rommon_var.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/rommon_var.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Sat Oct 6 16:45:40 2007 UTC (16 years, 5 months ago) by dpavlin
File MIME type: text/plain
File size: 898 byte(s)
make working copy

1 /*
2 * Cisco router simulation platform.
3 * Copyright (c) 2007 Christophe Fillot (cf@utc.fr)
4 *
5 * ROMMON Environment Variables.
6 */
7
8 #ifndef __ROMMON_VAR_H__
9 #define __ROMMON_VAR_H__
10
11 /* ROMMON variable */
12 struct rommon_var {
13 struct rommon_var *next;
14 char *name;
15 char *value;
16 };
17
18 /* List of ROMMON variables */
19 struct rommon_var_list {
20 char *filename;
21 struct rommon_var *var_list;
22 };
23
24 /* Load file containing ROMMON variables */
25 int rommon_load_file(struct rommon_var_list *rvl);
26
27 /* Add a new variable */
28 int rommon_var_add(struct rommon_var_list *rvl,char *name,char *value);
29
30 /*
31 * Add a new variable, specified at the format: var=value.
32 * The string is modified.
33 */
34 int rommon_var_add_str(struct rommon_var_list *rvl,char *str);
35
36 /* Get the specified variable */
37 int rommon_var_get(struct rommon_var_list *rvl,char *name,
38 char *buffer,size_t len);
39
40 #endif
41

  ViewVC Help
Powered by ViewVC 1.1.26