blob: 53c0bc73265dc243de804195e0326d4b5f9c9f90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef MATRIX_CURL_SESSION_H
#define MATRIX_CURL_SESSION_H
#include <curl/curl.h>
typedef struct
{
CURL *curl;
char *url;
char *servername;
char *mxid;
char *token;
char *dev_id;
} matrix_session;
char *matrix_whoami(matrix_session *sess);
matrix_session* matrix_access_token(const char *url, const char *token);
matrix_session* matrix_login_pass(const char *url,
const char *user, const char *passwd,
const char *devname);
void matrix_session_free(matrix_session *sess);
#endif
|