r3/include/r3_json.h

25 lines
585 B
C
Raw Permalink Normal View History

2014-06-03 09:47:52 -04:00
/*
* r3_json.h
2014-06-27 01:24:40 -04:00
* Copyright (C) 2014 c9s <yoanlin93@gmail.com>
2014-06-03 09:47:52 -04:00
*
* Distributed under terms of the MIT license.
*/
#ifndef R3_JSON_H
#define R3_JSON_H
#include <json-c/json.h>
#include "r3.h"
2015-11-18 01:27:28 -05:00
json_object * r3_edge_to_json_object(const R3Edge * e);
json_object * r3_node_to_json_object(const R3Node * n);
json_object * r3_route_to_json_object(const R3Route * r);
2014-06-03 09:47:52 -04:00
2015-11-18 01:27:28 -05:00
const char * r3_node_to_json_string_ext(const R3Node * n, int options);
const char * r3_node_to_json_pretty_string(const R3Node * n);
const char * r3_node_to_json_string(const R3Node * n);
2014-06-03 09:47:52 -04:00
#endif /* !R3_JSON_H */