]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4618 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Fri, 14 Sep 2012 12:38:03 +0000 (07:38 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 14 Sep 2012 12:38:03 +0000 (07:38 -0500)
libs/esl/src/esl_json.c
src/switch_json.c

index 3de776b3a8103f7d24bf75ff90b17a711cfbf68a..767c29da026640144298f01d175b03d022ff21ea 100644 (file)
@@ -275,8 +275,8 @@ ESL_DECLARE(cJSON *)cJSON_Parse(const char *value)
 }
 
 /* Render a cJSON item/entity/structure to text. */
-char *cJSON_Print(cJSON *item)                         {return print_value(item,0,1);}
-char *cJSON_PrintUnformatted(cJSON *item)      {return print_value(item,0,0);}
+ESL_DECLARE(char *) cJSON_Print(cJSON *item)                           {return print_value(item,0,1);}
+ESL_DECLARE(char *) cJSON_PrintUnformatted(cJSON *item)        {return print_value(item,0,0);}
 
 /* Parser core - when encountering text, process appropriately. */
 static const char *parse_value(cJSON *item,const char *value)
index 005b32fd34fe4eab65fa5bee1ade49eab042da40..c68e678ebf9dadd6faf0305ea5a682882c2be9aa 100644 (file)
 #include <stdio.h>
 #include <math.h>
 #include <stdlib.h>
-#include <float.h>
 #include <limits.h>
 #include <ctype.h>
-#include "switch_json.h"
 #include "switch.h"
+#include "switch_json.h"
+#include <float.h>
 
 static const char *ep;
 
@@ -275,8 +275,8 @@ SWITCH_DECLARE(cJSON *)cJSON_Parse(const char *value)
 }
 
 /* Render a cJSON item/entity/structure to text. */
-char *cJSON_Print(cJSON *item)                         {return print_value(item,0,1);}
-char *cJSON_PrintUnformatted(cJSON *item)      {return print_value(item,0,0);}
+SWITCH_DECLARE(char *)cJSON_Print(cJSON *item)                         {return print_value(item,0,1);}
+SWITCH_DECLARE(char *)cJSON_PrintUnformatted(cJSON *item)      {return print_value(item,0,0);}
 
 /* Parser core - when encountering text, process appropriately. */
 static const char *parse_value(cJSON *item,const char *value)