mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
Removed extra newlines, made setsysGetSettingsItemValue buffer size configurable
Signed-off-by: Adubbz <Adubbz@users.noreply.github.com>
This commit is contained in:
parent
635f0401e8
commit
fa4f907d20
@ -79,7 +79,7 @@ Result setsysGetSettingsItemValueSize(const char *name, const char *item_key, u6
|
|||||||
* @brief Gets the value of a settings item value.
|
* @brief Gets the value of a settings item value.
|
||||||
* @param out Pointer to output the value to.
|
* @param out Pointer to output the value to.
|
||||||
*/
|
*/
|
||||||
Result setsysGetSettingsItemValue(const char *name, const char *item_key, u64 *value_out);
|
Result setsysGetSettingsItemValue(const char *name, const char *item_key, void *value_out, size_t value_out_size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the system's serial number.
|
* @brief Gets the system's serial number.
|
||||||
@ -122,5 +122,3 @@ Result setsysGetWirelessLanEnableFlag(bool *out);
|
|||||||
* @param out Pointer to output the status to.
|
* @param out Pointer to output the status to.
|
||||||
*/
|
*/
|
||||||
Result setsysGetBluetoothEnableFlag(bool *out);
|
Result setsysGetBluetoothEnableFlag(bool *out);
|
||||||
|
|
||||||
|
|
||||||
|
@ -348,12 +348,12 @@ Result setsysGetColorSetId(ColorSetId* out)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Result setsysGetSettingsItemValue(const char *name, const char *item_key, u64 *value_out) {
|
Result setsysGetSettingsItemValue(const char *name, const char *item_key, void *value_out, size_t value_out_size) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
ipcAddSendStatic(&c, name, SET_MAX_NAME_SIZE, 0);
|
ipcAddSendStatic(&c, name, SET_MAX_NAME_SIZE, 0);
|
||||||
ipcAddSendStatic(&c, item_key, SET_MAX_NAME_SIZE, 0);
|
ipcAddSendStatic(&c, item_key, SET_MAX_NAME_SIZE, 0);
|
||||||
ipcAddRecvBuffer(&c, value_out, sizeof(u64), 0);
|
ipcAddRecvBuffer(&c, value_out, value_out_size, 0);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
|
Loading…
Reference in New Issue
Block a user