]> arthur.barton.de Git - netatalk.git/blob - include/atalk/bstradd.h
Merge from branch-2-1
[netatalk.git] / include / atalk / bstradd.h
1 /*
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>
4
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.
9  
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.
14 */
15
16 /*!
17  * @file
18  * Additional functions for bstrlib.
19  */
20
21 #ifndef ATALK_BSTRADD_H
22 #define ATALK_BSTRADD_H
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #include <atalk/bstrlib.h>
29
30 #define cfrombstring(b) ((char *)((b)->data))
31
32 typedef struct tagbstring static_bstring;
33
34 extern bstring brefcstr(const char *str);
35 extern int bunrefcstr(bstring b);
36
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 */