json_encode.h 1.1 KB

123456789101112131415161718192021222324252627
  1. /* ympd
  2. (c) 2013-2014 Andrew Karpow <andy@ndyk.de>
  3. This project's homepage is: http://www.ympd.org
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; version 2 of the License.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License along
  12. with this program; if not, write to the Free Software Foundation, Inc.,
  13. Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  14. */
  15. #ifndef __JSON_ENCODE_H__
  16. #define __JSON_ENCODE_H__
  17. int json_emit_int(char *buf, int buf_len, long int value);
  18. int json_emit_double(char *buf, int buf_len, double value);
  19. int json_emit_quoted_str(char *buf, int buf_len, const char *str);
  20. int json_emit_raw_str(char *buf, int buf_len, const char *str);
  21. #endif