Delta Chat Core C-API
src
dc_oauth2.h
1
#ifndef __DC_OAUTH2_H__
2
#define __DC_OAUTH2_H__
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
7
8
#define DC_REGENERATE 0x01
9
10
11
// the following function may block due http-requests;
12
// must not be called from the main thread or by the ui!
13
char
* dc_get_oauth2_access_token(
dc_context_t
*,
const
char
* addr,
const
char
* code,
int
flags);
14
char
* dc_get_oauth2_addr (
dc_context_t
*,
const
char
* addr,
const
char
* code);
15
16
17
#ifdef __cplusplus
18
}
/* /extern "C" */
19
#endif
20
#endif
/* __DC_OAUTH2_H__ */
dc_context_t
Generated by
1.8.17