2 $Id: bstradd.h,v 1.1.2.1 2010-02-01 10:56:08 franklahm Exp $
3 Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
18 * Additional functions for bstrlib.
21 #ifndef ATALK_BSTRADD_H
22 #define ATALK_BSTRADD_H
28 #include <atalk/bstrlib.h>
30 #define cfrombstring(b) ((char *)((b)->data))
32 typedef struct tagbstring static_bstring;
34 extern bstring brefcstr(const char *str);
35 extern int bunrefcstr(bstring b);
37 extern struct bstrList *bstListCreateMin(int min);
38 extern int bstrListPush(struct bstrList *sl, bstring bs);
39 extern bstring bstrListPop(struct bstrList *sl);
40 extern bstring bjoinInv(const struct bstrList * bl, const_bstring sep);
41 #endif /* ATALK_BSTRADD_H */