Skip to content

Commit f146a4f

Browse files
authored
Pocketbook: Add missing frontlight cdecls (koreader#1185)
1 parent ccdb28d commit f146a4f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ffi-cdecl/inkview_decl.c

+3
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,10 @@ cdecl_func(hw_is_frontlight_auto_supported)
910910
cdecl_func(hw_set_frontlight_auto_enabled)
911911

912912
cdecl_func(GetFrontlightVersion)
913+
cdecl_func(GetFrontlightState)
913914
cdecl_func(SetFrontlightState)
915+
cdecl_func(GetFrontlightEnabled)
916+
cdecl_func(SetFrontlightEnabled)
914917
cdecl_func(SetFrontlightStateEx)
915918
cdecl_func(OpenFrontLightConfig)
916919
cdecl_func(SwitchFrontlightState)

ffi/inkview_h.lua

+3
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,10 @@ int hw_is_frontlight_auto(void);
14371437
int hw_is_frontlight_auto_supported(void);
14381438
void hw_set_frontlight_auto_enabled(int);
14391439
int GetFrontlightVersion(void);
1440+
int GetFrontlightState(void);
14401441
void SetFrontlightState(int);
1442+
int GetFrontlightEnabled();
1443+
void SetFrontlightEnabled(int);
14411444
void SetFrontlightStateEx(int, int);
14421445
void OpenFrontLightConfig();
14431446
void SwitchFrontlightState();

0 commit comments

Comments
 (0)