Annotation of cf/rommon_var.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Cisco router simulation platform.
                      3:  * Copyright (c) 2007 Christophe Fillot ([email protected])
                      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: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.