18 lines
543 B
C
18 lines
543 B
C
#ifndef _HDF_JSON_H
|
|
#define _HDF_JSON_H
|
|
|
|
#include <json/json.h>
|
|
#include <ClearSilver/ClearSilver.h>
|
|
|
|
/* NOTE: I'm accessing the HDF structure directly, rather than using the
|
|
* accessor methods defined in the ClearSilver API.
|
|
*
|
|
* This is because the set of accessor methods is incomplete, and poorly
|
|
* documented. At some point, this should be changed but it'll do for now.
|
|
*/
|
|
|
|
/* Convert a HDF node to a JSON node and add it to the parent. */
|
|
struct json_object* hdf_obj_to_json( struct json_object* parent,
|
|
HDF* hdf_obj );
|
|
#endif
|