-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_script.h
42 lines (28 loc) · 889 Bytes
/
config_script.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2022 Perets Dmytro
// Author: Perets Dmytro <[email protected]>
//
// Personal usage is allowed only if this comment was not changed or deleted.
// Commercial usage must be agreed with the author of this comment.
#ifndef FILESTORAGE_CONFIG_SCRIPT_H
#define FILESTORAGE_CONFIG_SCRIPT_H
#include <string>
typedef struct
{
int response_code;
std::string page;
} extension_response;
extern void config_initialization_thread();
extern void init_config_script();
extern void refresh_config_script();
extern void close_config_script();
typedef struct
{
std::string login;
uint64_t session_cookie;
bool valid;
std::string name;
std::string argument;
} extension_data;
extern extension_response call_lua_extension(const extension_data& data);
extern bool http_response_is_null(const extension_response& response);
#endif //FILESTORAGE_CONFIG_SCRIPT_H