mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
33 lines
781 B
C
33 lines
781 B
C
/**
|
|
* @file swkbd.h
|
|
* @brief Wrapper for using the swkbd LibraryApplet.
|
|
* @author yellows8
|
|
* @copyright libnx Authors
|
|
*/
|
|
#pragma once
|
|
#include "../types.h"
|
|
#include "../services/applet.h"
|
|
|
|
typedef struct {
|
|
u8 data[0x3E0];//TODO: Fill this in.
|
|
} SwkbdArg;
|
|
|
|
typedef struct {
|
|
SwkbdArg arg;
|
|
} SwkbdConfig;
|
|
|
|
/**
|
|
* @brief Creates a SwkbdConfig struct.
|
|
* @param c SwkbdConfig struct.
|
|
*/
|
|
void swkbdCreate(SwkbdConfig* c);
|
|
|
|
/**
|
|
* @brief Launch swkbd with the specified config. This will return once swkbd is finished running.
|
|
* @param c SwkbdConfig struct.
|
|
* @param out_string UTF-8 Output string buffer.
|
|
* @param out_string_size UTF-8 Output string buffer size, including NUL-terminator.
|
|
*/
|
|
Result swkbdShow(SwkbdConfig* c, char* out_string, size_t out_string_size);
|
|
|