summaryrefslogtreecommitdiff
path: root/src/context.h
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-10-18 22:51:10 +0200
committerRan Benita <ran234@gmail.com>2012-10-18 22:51:10 +0200
commit714e95e1445ab0d37b3970bebdd9af09d7eaf923 (patch)
treef00bcc5e57c1494ecfe7062ca98bd04c01717972 /src/context.h
parenteb748ab643ea1f35952e398fb1194d8a8fd41ec7 (diff)
downloadxorg-lib-libxkbcommon-714e95e1445ab0d37b3970bebdd9af09d7eaf923.tar.gz
Contextualize GetBuffer()
Instead storing the buffer in a non-thread-safe static array, we move it to the context. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
index fb3150a..16bd321 100644
--- a/src/context.h
+++ b/src/context.h
@@ -63,6 +63,9 @@ xkb_atom_strdup(struct xkb_context *ctx, xkb_atom_t atom);
const char *
xkb_atom_text(struct xkb_context *ctx, xkb_atom_t atom);
+char *
+xkb_context_get_buffer(struct xkb_context *ctx, size_t size);
+
ATTR_PRINTF(3, 4) void
xkb_log(struct xkb_context *ctx, enum xkb_log_level level,
const char *fmt, ...);