libyadisk/src/yadisk_shared.h

26 lines
415 B
C
Raw Normal View History

//
// Created by maxim on 27.11.23.
//
#ifndef YADISK_YADISK_SHARED_H
#define YADISK_YADISK_SHARED_H
#include <stddef.h>
#include <curl/curl.h>
#include <json.h>
typedef enum {
YADISK_OK = 0,
2023-11-29 13:57:30 +03:00
YADISK_FAILED_PARSE_JSON = 1,
YADISK_FAILED_HTTP_REQUEST = 2
} yadisk_code;
2023-11-28 22:13:58 +03:00
typedef struct {
char* token;
} yadisk_api_client;
2023-11-29 13:57:30 +03:00
int yadisk_init();
void yadisk_cleanup();
#endif //YADISK_YADISK_SHARED_H