[API] Make set_user_data() functions take a replace parameter
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 8 Aug 2011 22:43:24 +0000 (00:43 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 8 Aug 2011 22:43:24 +0000 (00:43 +0200)
commit33ccc77902660ed4b49184e5ec99f4fd0ef63175
tree1511e325f029052bf5ba4bca72639921100c6c43
parent944b2ba1ce076385f985212bbdf2df96a8a995f0
[API] Make set_user_data() functions take a replace parameter

We need this to set data on objects safely without worrying that some
other thread unsets it by setting it at the same time.
14 files changed:
src/hb-blob.cc
src/hb-blob.h
src/hb-buffer.cc
src/hb-buffer.h
src/hb-common.cc
src/hb-font.cc
src/hb-font.h
src/hb-object-private.hh
src/hb-private.hh
src/hb-shape.cc
src/hb-unicode.cc
src/hb-unicode.h
src/hb-uniscribe-shape.cc
test/test-object.c