-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapi.h
27 lines (19 loc) · 780 Bytes
/
api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _API_H
#define _API_H
#include "api_data.h"
#include "log_levels.h"
#include "structs.h"
static int curl_get(const char *, char **);
static int curl_put(const char *, const char *);
void init_api(const char *url, const char *tok, const char *qs);
int api_job_statistics(const char *);
int api_jobs_logs(const char *, const char *);
int api_jobs_shift(char **);
int api_jobs_feedback(const char *);
int api_jobs_status(const char *);
extern size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata);
extern size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream);
extern void log_printf(unsigned int level, const char *message, ...);
extern char *alloc_sprintf(const char *message, ...);
extern void *xmalloc(size_t size);
#endif