2015-05-11 07:20:34 -04:00
|
|
|
#ifndef __JSON_TG_H__
|
|
|
|
#define __JSON_TG_H__
|
|
|
|
#include "config.h"
|
|
|
|
#ifdef USE_JSON
|
|
|
|
#include <jansson.h>
|
2015-05-19 18:13:39 -04:00
|
|
|
#include <tgl/tgl.h>
|
|
|
|
#include <tgl/tgl-layout.h>
|
2015-05-11 07:20:34 -04:00
|
|
|
json_t *json_pack_message (struct tgl_message *M);
|
|
|
|
json_t *json_pack_updates (unsigned flags);
|
|
|
|
json_t *json_pack_peer (tgl_peer_id_t id, tgl_peer_t *P);
|
2015-05-15 07:53:57 -04:00
|
|
|
json_t *json_pack_read (struct tgl_message *M);
|
2015-05-19 18:33:10 -04:00
|
|
|
json_t *json_pack_user_status (struct tgl_user *U);
|
2015-05-11 07:20:34 -04:00
|
|
|
#endif
|
|
|
|
#endif
|