17 行
236 B
C
17 行
236 B
C
|
#ifndef _API_H_
|
||
|
#define _API_H_
|
||
|
|
||
|
typedef struct {
|
||
|
const char *url;
|
||
|
const char *token;
|
||
|
} ApiRequest;
|
||
|
|
||
|
typedef struct {
|
||
|
CURLcode result;
|
||
|
cJSON *data;
|
||
|
} ApiResponse;
|
||
|
|
||
|
ApiResponse makeApiRequest (const ApiRequest *request);
|
||
|
|
||
|
#endif
|