summaryrefslogtreecommitdiff
path: root/config.h
AgeCommit message (Collapse)Author
2022-08-05keyword: Add `get_keyword_cb`, and add `get_callback` to `struct keyword`mrb0nk500
This will be used for creating a getter callback for keywords. I also renamed `keyword_cb` to `set_keyword_cb`, aswell as renamed `callback` to `set_callback` in `struct keyword`.
2022-07-28config: Make use of `keyword` for parsing config filesmrb0nk500
This get's rid of the old `config_opt` parser, which was way too specific for parsing config files.
2021-06-11Change `port` from an int to a string, and move themrb0nk500
valid port check into the config parser.
2021-06-10Added the `cleanup()`, and `cleanup_config()`mrb0nk500
functions.
2021-06-08Remove the `b` member from the `config_val` union.mrb0nk500
We can use the `i` member instead.
2021-06-08Removed unnecessary comment in `config_opts`.mrb0nk500
2021-06-07Fixed a typo, and replaced a `NULL` in the offset ofmrb0nk500
the null entry with -1 in `config_opts`.
2021-06-07Added the `config` struct.mrb0nk500
This data structure holds all of the variables set by the config file options.
2021-06-07Replace `func` in config_opt with `offset`.mrb0nk500
`offset` is the offset of the member of the config option in the `config` struct. This was done in order to allow for setting any member of the config struct with just a single function.
2021-06-06Moved `TYPE_NONE` to the start of `config_type`, andmrb0nk500
added `TYPE_COUNT` at the end of `config_type`. This is to allow for any iterators that need to count upto the total number of types to just to count up to `TYPE_COUNT`.
2021-06-06Added a NULL entry to the end of `config_opts`.mrb0nk500
2021-06-06Added a new union called `config_val`.mrb0nk500
This is so that I don't have to cast the variable as a `void *`, and make it easier to read. I also added `TYPE_NONE` to the `config_type` enum for denoting that the config option doesn't take a value.
2021-06-05Move the config option stuff into `config.h`.mrb0nk500