aboutsummaryrefslogtreecommitdiff
path: root/src/html.h
blob: bfa8e085c0674f732c6d5cf469d47d2f6daf3cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef HTML_H
#define HTML_H

#include <stdbool.h>

typedef struct cJSON cJSON;
typedef struct fallback fallback;

typedef struct {
    char *plugin;
    char *title;
    char *link;
    cJSON *json_data;
} TrackedHtml;

/* Modifies @html_config_dir */
int add_html(const char *name, const char *url, char *html_config_dir, char *program_dir, const char *start_after);
int sync_html(TrackedHtml *tracked_html, char *program_dir, const char *download_dir, char *html_config_dir, bool show_error_notifications);

#endif