/**
* Append one directory to the context's include path.
*/
-_X_EXPORT int
+XKB_EXPORT int
xkb_context_include_path_append(struct xkb_context *ctx, const char *path)
{
struct stat stat_buf;
/**
* Append the default include directories to the context.
*/
-_X_EXPORT int
+XKB_EXPORT int
xkb_context_include_path_append_default(struct xkb_context *ctx)
{
const char *home;
/**
* Remove all entries in the context's include path.
*/
-_X_EXPORT void
+XKB_EXPORT void
xkb_context_include_path_clear(struct xkb_context *ctx)
{
char **path;
/**
* xkb_context_include_path_clear() + xkb_context_include_path_append_default()
*/
-_X_EXPORT int
+XKB_EXPORT int
xkb_context_include_path_reset_defaults(struct xkb_context *ctx)
{
xkb_context_include_path_clear(ctx);
/**
* Returns the number of entries in the context's include path.
*/
-_X_EXPORT unsigned int
+XKB_EXPORT unsigned int
xkb_context_num_include_paths(struct xkb_context *ctx)
{
return darray_size(ctx->includes);
* Returns the given entry in the context's include path, or NULL if an
* invalid index is passed.
*/
-_X_EXPORT const char *
+XKB_EXPORT const char *
xkb_context_include_path_get(struct xkb_context *ctx, unsigned int idx)
{
if (idx >= xkb_context_num_include_paths(ctx))
/**
* Take a new reference on the context.
*/
-_X_EXPORT struct xkb_context *
+XKB_EXPORT struct xkb_context *
xkb_context_ref(struct xkb_context *ctx)
{
ctx->refcnt++;
* Drop an existing reference on the context, and free it if the refcnt is
* now 0.
*/
-_X_EXPORT void
+XKB_EXPORT void
xkb_context_unref(struct xkb_context *ctx)
{
if (--ctx->refcnt > 0)
/**
* Create a new context.
*/
-_X_EXPORT struct xkb_context *
+XKB_EXPORT struct xkb_context *
xkb_context_new(enum xkb_context_flags flags)
{
struct xkb_context *ctx = calloc(1, sizeof(*ctx));