i3
yajl_utils.h
Go to the documentation of this file.
1/*
2 * vim:ts=4:sw=4:expandtab
3 *
4 * i3 - an improved tiling window manager
5 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
6 *
7 * yajl_utils.h
8 *
9 */
10#pragma once
11
12#include <config.h>
13
14#include <yajl/yajl_gen.h>
15#include <yajl/yajl_parse.h>
16#include <yajl/yajl_version.h>
17
18/* Shorter names for all those yajl_gen_* functions */
19#define y(x, ...) yajl_gen_##x(gen, ##__VA_ARGS__)
20#define ystr(str) yajl_gen_string(gen, (unsigned char *)str, strlen(str))
21
22#define ygenalloc() yajl_gen_alloc(NULL)
23#define yalloc(callbacks, client) yajl_alloc(callbacks, NULL, client)
24typedef size_t ylength;
size_t ylength
Definition yajl_utils.h:24