From 9869efade73c877fe17c38e8db87d27d7ccb89f8 Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Sun, 20 Oct 2024 16:07:41 +0200 Subject: [PATCH] Add new native C func --- keydive/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keydive/constants.py b/keydive/constants.py index aa286a9..4b272c6 100644 --- a/keydive/constants.py +++ b/keydive/constants.py @@ -1,11 +1,12 @@ from keydive.vendor import Vendor +# https://developer.android.com/ndk/guides/cpp-support NATIVE_C_API = { # STDIO 'fclose', 'fflush', 'fgetc', 'fgetpos', 'fgets', 'fopen', 'fprintf', 'fputc', 'fputs', 'fread', 'freopen', 'fscanf', 'fseek', 'fsetpos', 'ftell', 'fwrite', 'getc', 'getchar', 'gets', 'perror', 'printf', 'putc', 'putchar', 'puts', 'remove', 'rename', 'rewind', 'scanf', 'setbuf', 'setvbuf', 'sprintf', 'sscanf', 'tmpfile', - 'tmpnam', 'ungetc', 'vfprintf', 'vprintf', 'vsprintf', 'fileno', 'feof', 'ferror', + 'tmpnam', 'ungetc', 'vfprintf', 'vprintf', 'vsprintf', 'fileno', 'feof', 'ferror', 'snprintf', # STDLIB 'abort', 'abs', 'atexit', 'atof', 'atoi', 'atol', 'bsearch', 'calloc', 'div', 'exit', 'free', 'getenv', 'labs', 'ldiv', 'malloc', 'mblen', 'mbstowcs', 'mbtowc', 'qsort', 'rand', 'realloc', 'srand', 'strtod', 'strtol',