aboutsummaryrefslogtreecommitdiff
path: root/include/kpl.h
blob: 15933ee923efed056fa34cd75bf7fdcb5e044a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#pragma once

// All headers in one file for including

#include "kpl/macro.h"
#include "kpl/io.h"
#include "kpl/thread.h"
#include "kpl/memory.h"

typedef struct {
    int32_t argc, main_module_arg_index;
    const char **argv, *module_extension;
    kpl_config_io io;
    kpl_config_thread thread;
    kpl_config_memory memory;
} kpl_config;

void kpl_config_init(kpl_config *config);

bool kpl_config_valid_module_exension(kpl_config *config, const char *module_name);

int32_t kpl_config_parse_args(kpl_config *config, const int32_t argc, const char *argv[]);