]> xenbits.xensource.com Git - libvirt.git/commit
virstring: Introduce VIR_STRDUP and VIR_STRNDUP
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Apr 2013 12:51:20 +0000 (14:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sun, 5 May 2013 10:08:54 +0000 (12:08 +0200)
commitc3abb5c45988a0d7583f059974513722d82e2c2b
tree366577b16e98c0e805058c8edae8d69dedc6579a
parentb1434b36b14daa9e410cd8293afd386c84ed315d
virstring: Introduce VIR_STRDUP and VIR_STRNDUP

The code adaptation is not done right now, but in subsequent patches.
Hence I am not implementing syntax-check rule as it would break
compilation. Developers are strongly advised to use these new macros.
They are similar to VIR_ALLOC() logic: VIR_STRDUP(dst, src) returns zero
on success, -1 otherwise. In case you don't want to report OOM error,
use the _QUIET variant of a macro.
HACKING
docs/hacking.html.in
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h