Doxygen annotations.
[tools/librpm-tizen.git] / lib / stringbuf.h
1 #ifndef _STRINGBUF_H_
2 #define _STRINGBUF_H_
3
4 /** \file lib/stringbuf.h
5  *
6  */
7
8 typedef /*@abstract@*/ struct StringBufRec *StringBuf;
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /*@only@*/ StringBuf newStringBuf(void);
15 void freeStringBuf( /*@only@*/ StringBuf sb);
16 void truncStringBuf(StringBuf sb);
17 /*@observer@*/ char *getStringBuf(StringBuf sb);
18 void stripTrailingBlanksStringBuf(StringBuf sb);
19
20 #define appendStringBuf(sb, s)     appendStringBufAux(sb, s, 0)
21 #define appendLineStringBuf(sb, s) appendStringBufAux(sb, s, 1)
22
23 void appendStringBufAux(StringBuf sb, const char *s, int nl);
24
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #endif  /* _STRINGBUF_H_ */