Logo Search packages:      
Sourcecode: yajl version File versions  Download package

Classes | Typedefs | Enumerations | Functions

yajl_gen.h File Reference

#include <yajl/yajl_common.h>
Include dependency graph for yajl_gen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yajl_gen_config

Typedefs

typedef struct yajl_gen_tyajl_gen
typedef void(* yajl_print_t )(void *ctx, const char *str, unsigned int len)

Enumerations

enum  yajl_gen_status {
  yajl_gen_status_ok = 0, yajl_gen_keys_must_be_strings, yajl_max_depth_exceeded, yajl_gen_in_error_state,
  yajl_gen_generation_complete, yajl_gen_invalid_number, yajl_gen_no_buf
}

Functions

YAJL_API yajl_gen yajl_gen_alloc (const yajl_gen_config *config, const yajl_alloc_funcs *allocFuncs)
YAJL_API yajl_gen yajl_gen_alloc2 (const yajl_print_t callback, const yajl_gen_config *config, const yajl_alloc_funcs *allocFuncs, void *ctx)
YAJL_API yajl_gen_status yajl_gen_array_close (yajl_gen hand)
YAJL_API yajl_gen_status yajl_gen_array_open (yajl_gen hand)
YAJL_API yajl_gen_status yajl_gen_bool (yajl_gen hand, int boolean)
YAJL_API void yajl_gen_clear (yajl_gen hand)
YAJL_API yajl_gen_status yajl_gen_double (yajl_gen hand, double number)
YAJL_API void yajl_gen_free (yajl_gen handle)
YAJL_API yajl_gen_status yajl_gen_get_buf (yajl_gen hand, const unsigned char **buf, unsigned int *len)
YAJL_API yajl_gen_status yajl_gen_integer (yajl_gen hand, long int number)
YAJL_API yajl_gen_status yajl_gen_map_close (yajl_gen hand)
YAJL_API yajl_gen_status yajl_gen_map_open (yajl_gen hand)
YAJL_API yajl_gen_status yajl_gen_null (yajl_gen hand)
YAJL_API yajl_gen_status yajl_gen_number (yajl_gen hand, const char *num, unsigned int len)
YAJL_API yajl_gen_status yajl_gen_string (yajl_gen hand, const unsigned char *str, unsigned int len)

Detailed Description

Interface to YAJL's JSON generation facilities.

Definition in file yajl_gen.h.


Generated by  Doxygen 1.6.0   Back to index