muteki
Loading...
Searching...
No Matches
ini.h
Go to the documentation of this file.
1/*
2 * Copyright 2024-present dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
15#ifndef __MUTEKI_INI_H__
16#define __MUTEKI_INI_H__
17
18#include <muteki/common.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
33extern unsigned int _GetPrivateProfileInt(const char *section, const char *key, int default_value, const char *path);
34
53extern unsigned int _GetPrivateProfileString(
54 const char *section,
55 const char *key,
56 const char *default_value,
57 char *out,
58 size_t outsize,
59 const char *path
60);
61
74extern bool _WritePrivateProfileString(const char *section, const char *key, const char *value, const char *path);
75
76#ifdef __cplusplus
77} // extern "C"
78#endif
79
80#endif // __MUTEKI_INI_H__
Common include file for all muteki-shims headers.
unsigned int _GetPrivateProfileInt(const char *section, const char *key, int default_value, const char *path)
Read a value from an INI file and parse it as an integer.
unsigned int _GetPrivateProfileString(const char *section, const char *key, const char *default_value, char *out, size_t outsize, const char *path)
Read a value from an INI file.
bool _WritePrivateProfileString(const char *section, const char *key, const char *value, const char *path)
Write a value to an INI file.