Added tox-weechat-json.{h,c}.

This commit is contained in:
Håvard Pettersson 2014-09-18 17:57:02 +02:00
parent d9480552bf
commit 48991d38b1
2 changed files with 121 additions and 0 deletions

27
src/tox-weechat-json.h Normal file
View file

@ -0,0 +1,27 @@
#ifndef TOX_WEECHAT_JSON_H
#define TOX_WEECHAT_JSON_H
#include <jansson.h>
#include "tox-weechat-identities.h"
extern json_t *tox_weechat_json_config;
extern const char *tox_weechat_json_key_friend_requests;
extern const char *tox_weechat_json_friend_request_key_client_id;
extern const char *tox_weechat_json_friend_request_key_message;
void
tox_weechat_json_init();
int
tox_weechat_json_save();
json_t *
tox_weechat_json_get_identity_object(struct t_tox_weechat_identity *identity);
int
tox_weechat_json_set_identity_object(struct t_tox_weechat_identity *identity,
json_t *object);
#endif // TOX_WEECHAT_JSON_H