LCOV - code coverage report
Current view: top level - src - yajl_gen_w.c (source / functions) Hit Total Coverage
Test: burp-coverage-clean.info Lines: 0 20 0.0 %
Date: 2015-10-31 Functions: 0 8 0.0 %

          Line data    Source code
       1             : #include "burp.h"
       2             : #include "yajl_gen_w.h"
       3             : 
       4             : yajl_gen yajl=NULL;
       5             : 
       6           0 : int yajl_map_open_w(void)
       7             : {
       8           0 :         return yajl_gen_map_open(yajl)!=yajl_gen_status_ok;
       9             : }
      10             : 
      11           0 : int yajl_map_close_w(void)
      12             : {
      13           0 :         return yajl_gen_map_close(yajl)!=yajl_gen_status_ok;
      14             : }
      15             : 
      16           0 : int yajl_array_open_w(void)
      17             : {
      18           0 :         return yajl_gen_array_open(yajl)!=yajl_gen_status_ok;
      19             : }
      20             : 
      21           0 : int yajl_array_close_w(void)
      22             : {
      23           0 :         return yajl_gen_array_close(yajl)!=yajl_gen_status_ok;
      24             : }
      25             : 
      26           0 : int yajl_gen_str_w(const char *str)
      27             : {
      28             :         return yajl_gen_string(yajl,
      29           0 :                 (const unsigned char *)str, strlen(str))!=yajl_gen_status_ok;
      30             : }
      31             : 
      32           0 : int yajl_gen_int_w(long long num)
      33             : {
      34           0 :         return yajl_gen_integer(yajl, num)!=yajl_gen_status_ok;
      35             : }
      36             : 
      37           0 : int yajl_gen_str_pair_w(const char *field, const char *value)
      38             : {
      39           0 :         if(yajl_gen_str_w(field) || yajl_gen_str_w(value))
      40           0 :                 return -1;
      41           0 :         return 0;
      42             : }
      43             : 
      44           0 : int yajl_gen_int_pair_w(const char *field, long long value)
      45             : {
      46           0 :         if(yajl_gen_str_w(field) || yajl_gen_int_w(value))
      47           0 :                 return -1;
      48           0 :         return 0;
      49             : }

Generated by: LCOV version 1.10