History | View | Annotate | Download (3.1 kB)
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Fix qtypes' licenses
- Change from GPL to LGPL- Add license text when missing- Minor cosmetic changes to make all headers look the same
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QString: Introduce qstring_append_chr()
It appends a C char to a QString.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QString: Introduce qstring_append_int()
QString: Introduce qstring_from_substr()
Note that we can now write qstring_from_str() as a wrapper.
Allow strings to grow in size
This lets us use QString for building larger strings
Shuffle lines to avoid gcc 3 warning about redundant redeclaration
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Introduce QString
QString is a high-level data type that can be used to representC strings.
The following functions are available:
- qstring_from_str() Create a new QString- qstring_get_str() Get a pointer to the stored string
Note that qstring_get_str() is too low-level for a data type like...