Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / rp-l2tp / handlers / dstring.h
blobf82a7ea678e8a58d08780c2f518c26096e22a103
1 /***********************************************************************
3 * l2tp/handlers/dstring.h
5 * Declares simple buffer which grows to accomodate accumulated string
6 * data
8 * Copyright (C) 2002 by Roaring Penguin Software Inc.
10 * LIC: GPL
12 ***********************************************************************/
14 #include <stdlib.h>
16 typedef struct {
17 size_t alloc_size;
18 size_t actual_size;
19 char *data;
20 } dynstring;
22 int dynstring_init(dynstring *str);
23 void dynstring_free(dynstring *str);
24 int dynstring_append(dynstring *str, char const *s2);
25 int dynstring_append_len(dynstring *str, char const *s2, size_t len);
26 char const *dynstring_data(dynstring *str);