ng_parse.h (f0184ff8e3b84a1c7273492d8854cfaa012060b5) ng_parse.h (e20480bfb6869d99d93891ec878221122b4d3478)
1
2/*
3 * ng_parse.h
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 26 unchanged lines hidden (view full) ---

35 * OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@freebsd.org>
38 *
39 * $Whistle: ng_parse.h,v 1.2 1999/11/29 01:43:48 archie Exp $
40 * $FreeBSD$
41 */
42
1
2/*
3 * ng_parse.h
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 26 unchanged lines hidden (view full) ---

35 * OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@freebsd.org>
38 *
39 * $Whistle: ng_parse.h,v 1.2 1999/11/29 01:43:48 archie Exp $
40 * $FreeBSD$
41 */
42
43#ifndef _NETGRAPH_PARSE_H_
44#define _NETGRAPH_PARSE_H_
43#ifndef _NETGRAPH_NG_PARSE_H_
44#define _NETGRAPH_NG_PARSE_H_
45
46/*
47
48 This defines a library of routines for converting between various C
49 language types in binary form and ASCII strings. Types are user
50 definable. Several pre-defined types are supplied, for some common
51 C types: structures, variable and fixed length arrays, integer types,
52 variable and fixed length strings, IP addresses, etc.

--- 469 unchanged lines hidden (view full) ---

522/*
523 * Convert a raw string into a doubly-quoted string including any
524 * necessary backslash escapes. Caller must free the result.
525 * Returns NULL if ENOMEM. Normally "slen" should equal strlen(s)
526 * unless you want to encode NUL bytes.
527 */
528extern char *ng_encode_string(const char *s, int slen);
529
45
46/*
47
48 This defines a library of routines for converting between various C
49 language types in binary form and ASCII strings. Types are user
50 definable. Several pre-defined types are supplied, for some common
51 C types: structures, variable and fixed length arrays, integer types,
52 variable and fixed length strings, IP addresses, etc.

--- 469 unchanged lines hidden (view full) ---

522/*
523 * Convert a raw string into a doubly-quoted string including any
524 * necessary backslash escapes. Caller must free the result.
525 * Returns NULL if ENOMEM. Normally "slen" should equal strlen(s)
526 * unless you want to encode NUL bytes.
527 */
528extern char *ng_encode_string(const char *s, int slen);
529
530#endif /* _NETGRAPH_PARSE_H_ */
530#endif /* _NETGRAPH_NG_PARSE_H_ */
531
531