ngui: get rid of the ambiguous ui header file
functions declared in ui.h were actually used by ui.c, the opposite of what such a header is expected to contain. these functions are defined in zig code and declarations are better off in the same ui.c file. this is just a quick clean up before porting some C code to zig.pull/20/head
parent
cb229d5a26
commit
c73867ea4d
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef NM_UI_H
|
||||||
|
#define NM_UI_H
|
||||||
|
|
||||||
|
/**
|
||||||
|
* this file exists to satisfy LV_TICK_CUSTOM_INCLUDE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns elapsed time since program start, in ms.
|
||||||
|
* rolls over when overflow occurs.
|
||||||
|
*/
|
||||||
|
uint32_t nm_get_curr_tick();
|
||||||
|
|
||||||
|
#endif
|
@ -1,28 +0,0 @@
|
|||||||
#ifndef NM_UI_H
|
|
||||||
#define NM_UI_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* returns elapsed time since program start, in ms.
|
|
||||||
* rolls over when overflow occurs.
|
|
||||||
*/
|
|
||||||
uint32_t nm_get_curr_tick();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* initiates system shutdown leading to poweroff.
|
|
||||||
*/
|
|
||||||
void nm_sys_shutdown();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* invoken when the UI is switched to the network settings tab.
|
|
||||||
*/
|
|
||||||
void nm_tab_settings_active();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* initiate connection to a wifi network with the given SSID and a password.
|
|
||||||
* connection, if successful, is persisted in wpa_supplicant config.
|
|
||||||
*/
|
|
||||||
int nm_wifi_start_connect(const char *ssid, const char *password);
|
|
||||||
|
|
||||||
#endif
|
|
Reference in New Issue