documentation was wrong
[sdlhildon] / sdlhim / src / ds.h
1 /* This file is part of SDL_him - SDL Hildon Input Method addon
2  * Copyright (C) 2010 Javier S. Pedro
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 3 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA or see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef DS_H_
21 #define DS_H_
22
23 /* A very simple dynamic string library, used internally for holding the
24  * preedit buffer.
25  */
26
27 #pragma GCC visibility push(hidden)
28
29 typedef struct dstring
30 {
31         unsigned long len;
32         unsigned long capacity;
33         char * str;
34 } dstring_t;
35
36 void ds_clear(dstring_t *ds);
37 void ds_set(dstring_t *ds, const char *str);
38 void ds_append(dstring_t *ds, const char *str);
39
40 #pragma GCC visibility pop
41
42 #endif