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 756 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * $Id: json_util.h,v 1.3 2006/01/26 02:16:28 mclark Exp $
  3. *
  4. * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
  5. * Michael Clark <michael@metaparadigm.com>
  6. *
  7. * This library is free software; you can redistribute it and/or modify
  8. * it under the terms of the MIT license. See COPYING for details.
  9. *
  10. */
  11. #ifndef _json_util_h_
  12. #define _json_util_h_
  13. #include "config.h"
  14. #ifdef WIN32
  15. # define WIN32_LEAN_AND_MEAN
  16. # include <windows.h>
  17. # include <io.h>
  18. #endif
  19. #include "json_object.h"
  20. #if !HAVE_OPEN && defined(WIN32)
  21. # define open _open
  22. #endif
  23. #define JSON_FILE_BUF_SIZE 4096
  24. /* utlitiy functions */
  25. extern struct json_object* json_object_from_file(char *filename);
  26. extern int json_object_to_file(char *filename, struct json_object *obj);
  27. #endif

No Description

Contributors (1)