~ubuntu-branches/ubuntu/trusty/keepalived/trusty

« back to all changes in this revision

Viewing changes to lib/parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2005-04-29 23:22:40 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050429232240-a8m3jtpi3cvuyyy2
Tags: 1.1.11-3
Added a warning about sarge kernels to README.Debian and 
the package description 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * 
6
6
 * Part:        cfreader.c include file.
7
7
 *  
8
 
 * Version:     $Id: parser.h,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
 
8
 * Version:     $Id: parser.h,v 1.1.11 2005/03/01 01:22:13 acassen Exp $
9
9
 *
10
10
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
11
11
 *
19
19
 *              as published by the Free Software Foundation; either version
20
20
 *              2 of the License, or (at your option) any later version.
21
21
 *
22
 
 * Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
 
22
 * Copyright (C) 2001-2005 Alexandre Cassen, <acassen@linux-vs.org>
23
23
 */
24
24
 
25
25
#ifndef _PARSER_H
53
53
#define UNSET_RELOAD    (reload = 0)
54
54
#define RELOAD_DELAY    5
55
55
 
56
 
/* global var exported */
57
 
vector keywords;
58
 
FILE *stream;
 
56
/* global vars exported */
 
57
extern vector keywords;
 
58
extern FILE *stream;
 
59
extern int reload;
59
60
 
60
61
/* Prototypes */
61
 
extern void keyword_alloc(vector keywords, char *string, void (*handler) (vector));
 
62
extern void keyword_alloc(vector keywords_vec, char *string, void (*handler) (vector));
 
63
extern void keyword_alloc_sub(vector keywords_vec, char *string, void (*handler) (vector));
62
64
extern void install_keyword_root(char *string, void (*handler) (vector));
63
65
extern void install_sublevel(void);
64
66
extern void install_sublevel_end(void);
65
67
extern void install_keyword(char *string, void (*handler) (vector));
66
68
extern void dump_keywords(vector keydump, int level);
67
 
extern void free_keywords(vector keywords);
 
69
extern void free_keywords(vector keywords_vec);
68
70
extern vector alloc_strvec(char *string);
69
71
extern int read_line(char *buf, int size);
70
72
extern vector read_value_block(void);
71
73
extern void alloc_value_block(vector strvec, void (*alloc_func) (vector));
72
74
extern void *set_value(vector strvec);
73
 
extern void process_stream(vector keywords);
 
75
extern void process_stream(vector keywords_vec);
74
76
extern void init_data(char *conf_file, vector (*init_keywords) (void));
75
77
 
76
78
#endif