You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json_util.h 1.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * $Id: json_util.h,v 1.2 2005/06/14 22:41:51 mclark Exp $
  3. *
  4. * Copyright Metaparadigm Pte. Ltd. 2004.
  5. * Michael Clark <michael@metaparadigm.com>
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public (LGPL)
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details: http://www.gnu.org/
  16. *
  17. */
  18. #ifndef _json_util_h_
  19. #define _json_util_h_
  20. #include "config.h"
  21. #ifdef WIN32
  22. # define WIN32_LEAN_AND_MEAN
  23. # include <windows.h>
  24. # include <io.h>
  25. #endif
  26. #include "json_object.h"
  27. #if !HAVE_OPEN && defined(WIN32)
  28. # define open _open
  29. #endif
  30. #define JSON_FILE_BUF_SIZE 4096
  31. /* utlitiy functions */
  32. extern struct json_object* json_object_from_file(char *filename);
  33. extern int json_object_to_file(char *filename, struct json_object *obj);
  34. #endif

No Description

Contributors (1)