summaryrefslogtreecommitdiffstats
path: root/common/mem.h
Commit message (Collapse)AuthorAgeFilesLines
* common: mem.h add alloca definitionMarc-André Lureau2011-05-031-0/+30
| | | | | We don't support the autoconf ALLOCA/C_ALLOC fallback. If one day, someone cares for a weird platform, he can fix it.
* common: add extern "C" guards to headersChristophe Fergeau2011-05-021-0/+7
| | | | | | Since some spice C++ code is using code from common/, the C functions need to be marked as such for the C++ compiler, otherwise we'll get linkage issues.
* common: add SpiceBuffer - based on qemu-vnc BufferMarc-André Lureau2011-02-281-0/+17
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=34795
* Move SpiceChunks to mem.hAlexander Larsson2010-07-081-1/+17
|
* Move in spice/draw.h from spice-protocol to common/Alexander Larsson2010-07-081-1/+1
|
* Add spice_chunks_* helpersAlexander Larsson2010-07-071-0/+5
|
* Add spice_strnlenAlexander Larsson2010-06-171-0/+2
|
* Fix spelling errors in comments and stringsAlexander Larsson2010-05-211-2/+2
|
* Relicense everything from GPL to LGPL 2.1+Alexander Larsson2010-04-131-9/+9
|
* Add spice_strndupAlexander Larsson2010-03-241-0/+1
| | | | Also, make str(n)dup handle NULL correctly
* New memory allocators that exit on OOM and handle multiplication overflowAlexander Larsson2010-03-111-0/+82
Every place that does a regular malloc/calloc and aborts on failure should use spice_malloc/spice_mallo0 instead, which is leaner and cleaner. Allocations of dynamically sized arrays can use g_malloc_n or g_new etc which correctly handle multiplication overflow if some of the arguments are not trusted.