Delta Chat Core C-API
src
dc_token.h
1
#ifndef __DC_TOKEN_H__
2
#define __DC_TOKEN_H__
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
7
8
// Token namespaces
9
typedef
enum
{
10
DC_TOKEN_INVITENUMBER = 100,
11
DC_TOKEN_AUTH = 110
12
} dc_tokennamespc_t;
13
14
15
// Functions to read/write token from/to the database. A token is any string associated with a key.
16
void
dc_token_save (
dc_context_t
*, dc_tokennamespc_t, uint32_t foreign_id,
const
char
* token);
17
char
* dc_token_lookup (
dc_context_t
*, dc_tokennamespc_t, uint32_t foreign_id);
18
int
dc_token_exists (
dc_context_t
*, dc_tokennamespc_t,
const
char
* token);
19
20
21
#ifdef __cplusplus
22
}
/* /extern "C" */
23
#endif
24
#endif
/* __DC_TOKEN_H__ */
25
dc_context_t
An object representing a single account.
Generated by
1.8.13