File: json-tg.h

package info (click to toggle)
telegram-cli 1.3.1%2Bgit20160323.6547c0b21-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 1,292 kB
  • sloc: ansic: 10,549; sh: 256; perl: 154; makefile: 75; python: 48
file content (14 lines) | stat: -rw-r--r-- 402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __JSON_TG_H__
#define __JSON_TG_H__
#include "config.h"
#ifdef USE_JSON
#include <jansson.h>
#include <tgl/tgl.h>
#include <tgl/tgl-layout.h>
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);
json_t *json_pack_read (struct tgl_message *M);
json_t *json_pack_user_status (struct tgl_user *U);
#endif
#endif