formatting
This commit is contained in:
parent
9695fe405d
commit
9aafd0f238
@ -5,7 +5,8 @@
|
||||
#include "yadisk_get_disk.h"
|
||||
#include "yadisk_api_internal.h"
|
||||
|
||||
yadisk_code yadisk_get_disk(yadisk_api_client *client, yadisk_disk_info* info) {
|
||||
yadisk_code yadisk_get_disk(yadisk_api_client* client, yadisk_disk_info* info)
|
||||
{
|
||||
char* output = NULL;
|
||||
int error = api_http_request(client, "GET", "/v1/disk", NULL, 0, &output);
|
||||
json_object* root = json_tokener_parse(output);
|
||||
|
@ -7,11 +7,10 @@
|
||||
|
||||
#include "yadisk_shared.h"
|
||||
|
||||
typedef struct yadisk_disk_info
|
||||
{
|
||||
typedef struct yadisk_disk_info {
|
||||
unsigned long total_space;
|
||||
} yadisk_disk_info;
|
||||
|
||||
yadisk_code yadisk_get_disk(yadisk_api_client *client, yadisk_disk_info* info);
|
||||
yadisk_code yadisk_get_disk(yadisk_api_client* client, yadisk_disk_info* info);
|
||||
|
||||
#endif //YADISK_YADISK_GET_DISK_H
|
||||
|
@ -5,7 +5,8 @@
|
||||
#include "yadisk_api_internal.h"
|
||||
|
||||
yadisk_code
|
||||
yadisk_get_disk_resources(yadisk_api_client *client, const char *path) {
|
||||
char *output;
|
||||
yadisk_get_disk_resources(yadisk_api_client* client, const char* path)
|
||||
{
|
||||
char* output;
|
||||
int error = api_http_request(client, "GET", "/v1/disk", NULL, 0, &output);
|
||||
};
|
@ -14,8 +14,7 @@ typedef enum {
|
||||
YADISK_FAILED_PARSE_JSON = 1
|
||||
} yadisk_code;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char* token;
|
||||
} yadisk_api_client;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user