]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add sentinel attribute for NULL terminated arg lists
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Nov 2009 09:39:13 +0000 (10:39 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 6 Nov 2009 09:39:13 +0000 (10:39 +0100)
commit649bcd72fec9f93253201126f498982028c487c0
tree8e8b4a9283eb3d83a282ab26beea21ce2399efc8
parent4fbad2e04989b866fc5c7615de807546fc69884c
Add sentinel attribute for NULL terminated arg lists

* src/internal.h (ATTRIBUTE_SENTINEL): New, it's a ggc feature and
  protected as such
* src/util/buf.c (virBufferStrcat): Use it.
* src/util/ebtables.c (ebtablesAddRemoveRule): Use it.
* src/util/iptables.c (iptableAddRemoveRule: Use it.
* src/util/qparams.h (new_qparam_set, append_qparams): Use it.
* docs/apibuild.py: avoid breaking the API generator with that new
  internal keyword macro
docs/apibuild.py
src/internal.h
src/util/buf.h
src/util/ebtables.c
src/util/iptables.c
src/util/qparams.h