repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/spiffs.h | null | null | null | null | null | null | C | 2026-05-04T18:21:15.862211 | /*
* spiffs.h
*
* Created on: May 26, 2013
* Author: petera
*/
#ifndef SPIFFS_H_
#define SPIFFS_H_
#if defined(__cplusplus)
extern "C" {
#endif
#include "spiffs_config.h"
#define SPIFFS_OK 0
#define SPIFFS_ERR_NOT_MOUNTED -10000
#define SPIFFS_ERR_FULL -10001... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | py/python_ops.c | null | null | null | null | null | null | C | 2026-05-04T18:21:15.870764 | #include <stdlib.h>
#include <stdio.h>
#include "spiffs.h"
void *my_spiffs_mount(int phys_size,
int phys_addr,
int phys_erase_block,
int log_page_size,
int log_block_size,
s32_t (read_cb)(u32_t addr, u32_t si... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/spiffs_gc.c | null | null | null | null | null | null | C | 2026-05-04T18:21:15.872007 | #include "spiffs.h"
#include "spiffs_nucleus.h"
#if !SPIFFS_READ_ONLY
// Erases a logical block and updates the erase counter.
// If cache is enabled, all pages that might be cached in this block
// is dropped.
static s32_t spiffs_gc_erase_block(
spiffs *fs,
spiffs_block_ix bix) {
s32_t res;
SPIFFS_GC_DB... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/spiffs_nucleus.h | null | null | null | null | null | null | C | 2026-05-04T18:21:15.873641 | /*
* spiffs_nucleus.h
*
* Created on: Jun 15, 2013
* Author: petera
*/
/* SPIFFS layout
*
* spiffs is designed for following spi flash characteristics:
* - only big areas of data (blocks) can be erased
* - erasing resets all bits in a block to ones
* - writing pulls ones to zeroes
* - zeroes c... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/spiffs_cache.c | null | null | null | null | null | null | C | 2026-05-04T18:21:15.896567 | /*
* spiffs_cache.c
*
* Created on: Jun 23, 2013
* Author: petera
*/
#include "spiffs.h"
#include "spiffs_nucleus.h"
#if SPIFFS_CACHE
// returns cached page for give page index, or null if no such cached page
static spiffs_cache_page *spiffs_cache_page_get(spiffs *fs, spiffs_page_ix pix) {
spiffs_cache ... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/spiffs_nucleus.c | null | null | null | null | null | null | C | 2026-05-04T18:21:15.927817 | #include "spiffs.h"
#include "spiffs_nucleus.h"
static s32_t spiffs_page_data_check(spiffs *fs, spiffs_fd *fd, spiffs_page_ix pix, spiffs_span_ix spix) {
s32_t res = SPIFFS_OK;
if (pix == (spiffs_page_ix)-1) {
// referring to page 0xffff...., bad object index
return SPIFFS_ERR_INDEX_REF_FREE;
}
if (pix... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/test_bugreports.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.437649 | /*
* test_bugreports.c
*
* Created on: Mar 8, 2015
* Author: petera
*/
#include "testrunner.h"
#include "test_spiffs.h"
#include "spiffs_nucleus.h"
#include "spiffs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
/* The follow defines control det... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/test_check.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.457046 | /*
* test_dev.c
*
* Created on: Jul 14, 2013
* Author: petera
*/
#include "testrunner.h"
#include "test_spiffs.h"
#include "spiffs_nucleus.h"
#include "spiffs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
SUITE(check_tests)
static void setup() ... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/main.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.487642 | #include <stdlib.h>
#ifndef NO_TEST
#include "testrunner.h"
#endif
int main(int argc, char **args) {
#ifndef NO_TEST
run_tests(argc, args);
#endif
exit(EXIT_SUCCESS);
}
|
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/test_spiffs.h | null | null | null | null | null | null | C | 2026-05-04T18:21:16.512868 | /*
* test_spiffs.h
*
* Created on: Jun 19, 2013
* Author: petera
*/
#ifndef TEST_SPIFFS_H_
#define TEST_SPIFFS_H_
#include "spiffs.h"
#define FS &__fs
extern spiffs __fs;
#define CHECK(r) if (!(r)) return -1;
#define CHECK_RES(r) if (r < 0) return -1;
#define FS_PURE_DATA_PAGES(fs) \
(SPIFFS_CFG_PH... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/params_test.h | null | null | null | null | null | null | C | 2026-05-04T18:21:16.522518 | /*
* params_test.h
*
* Created on: May 26, 2013
* Author: petera
*/
#ifndef PARAMS_TEST_H_
#define PARAMS_TEST_H_
//////////////// TEST PARAMS ////////////////
// default test total emulated spi flash size
#define PHYS_FLASH_SIZE (16*1024*1024)
// default test spiffs file system size
#define SPIFFS_... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/test_spiffs.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.523233 | /*
* test_spiffs.c
*
* Created on: Jun 19, 2013
* Author: petera
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "params_test.h"
#include "spiffs.h"
#include "spiffs_nucleus.h"
#include "testrunner.h"
#include "test_spiffs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include ... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/test_dev.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.550962 | /*
* test_dev.c
*
* Created on: Jul 14, 2013
* Author: petera
*/
#include "testrunner.h"
#include "test_spiffs.h"
#include "spiffs_nucleus.h"
#include "spiffs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
SUITE(dev_tests)
static void setup() {
... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/testrunner.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.551500 | /*
* testrunner.c
*
* Created on: Jun 18, 2013
* Author: petera
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include "testrunner.h"
static struct {
test *tests;
test *_last_test;... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/test_hydrogen.c | null | null | null | null | null | null | C | 2026-05-04T18:21:16.557898 | /*
* test_suites.c
*
* Created on: Jun 19, 2013
* Author: petera
*/
#include "testrunner.h"
#include "test_spiffs.h"
#include "spiffs_nucleus.h"
#include "spiffs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
SUITE(hydrogen_tests)
static void set... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/testrunner.h | null | null | null | null | null | null | C | 2026-05-04T18:21:16.601296 | /*
* testrunner.h
*
* Created on: Jun 19, 2013
* Author: petera
*/
/*
file mysuite.c:
SUITE(mysuite)
static void setup(test *t) {}
static void teardown(test *t) {}
TEST(mytest) {
printf("mytest runs now..\n");
return 0;
} TEST_END
SUITE_TESTS(mysuite)
ADD_TEST(mytest)
SUITE_END(mysuite)
file ... |
pellepl/spiffs | https://github.com/pellepl/spiffs | null | null | null | null | 1,613 | null | null | mit | null | null | null | null | null | null | null | src/test/testsuites.c | null | null | null | null | null | null | C | 2026-05-04T18:21:18.709214 | /*
* testsuites.c
*
* Created on: Jun 19, 2013
* Author: petera
*/
#include "testrunner.h"
void add_suites(void) {
//ADD_SUITE(dev_tests);
ADD_SUITE(check_tests);
ADD_SUITE(hydrogen_tests);
ADD_SUITE(bug_tests);
}
|
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/disasm-security-audit/legacy_tests/C/after_x86.c | null | null | null | null | null | null | C | 2026-05-04T18:21:23.443140 |
#include <windows.h>
#include <defs.h>
//-------------------------------------------------------------------------
// Function declarations
void sub_401000();
int __cdecl sub_40100D(int a1);
BOOL sub_401097();
int __cdecl sub_4010EF(int a1, int a2);
void *__cdecl sub_4012BF(signed int a1);
BOOL __cdecl sub_401511(H... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/disasm-security-audit/legacy_tests/C/before_x86.c | null | null | null | null | null | null | C | 2026-05-04T18:21:23.465348 |
#include <defs.h>
//-------------------------------------------------------------------------
// Function declarations
int sub_401000();
void __noreturn start(); // weak
// int __usercall sub_4011E0@<eax>(int a1@<ebp>);
// int __usercall sub_4011E4@<eax>(int a1@<ebp>);
int __cdecl sub_401225(_DWORD *a1, char a2);
/... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | experiments/obfus-gcc-by-CyberForgeEx.h | null | null | null | null | null | null | C | 2026-05-04T18:21:23.472299 | /*
[Same operations on obfus.h with gcc compatibility]
~ Compile with: gcc -O2 -masm=intel your_file.c -o output.exe -w
*/
#ifndef OBFH
#define OBFH
#if !__TINYC__ && !__GNUC__ && !__MINGW32__
#define __attribute__(...)
#endif
// if virtualization disabled
#if NO_OBF == 1 || VIRT != 1
#define VM_ADD(num1, num2) ((nu... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | include/obfus.h | null | null | null | null | null | null | C | 2026-05-04T18:21:23.480129 | /*
██████╗ ██████╗ ███████╗██╗ ██╗███████╗ ██╗
██╔═══██╗██╔══██╗██╔════╝██║ ██║██╔════╝ ██║
██║ ██║██████╔╝█████╗ ██║ ██║███████╗ ███████║
██║ ██║██╔══██╗██╔══╝ ██║ ██║╚════██║ ██╔══██║
╚██████╔╝██████╔╝██║ ╚██████╔╝███████║ ██╗ ██║ ██║
... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/disasm-security-audit/legacy_tests/C/after_x64.c | null | null | null | null | null | null | C | 2026-05-04T18:21:23.481271 |
#include <windows.h>
#include <defs.h>
#include <stdarg.h>
//-------------------------------------------------------------------------
// Function declarations
void sub_401000();
__int64 __fastcall sub_401028(int a1);
double __fastcall sub_401085(double a1);
_BOOL8 __fastcall sub_4010D2();
__int64 __fastcall sub_4... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/disasm-security-audit/legacy_tests/C/before_x64.c | null | null | null | null | null | null | C | 2026-05-04T18:21:23.556047 |
#include <defs.h>
//-------------------------------------------------------------------------
// Function declarations
int sub_401000();
void __noreturn start();
int __fastcall sub_4011C3(__int64 a1, __int64 a2);
// void *__cdecl malloc(size_t Size);
// char *__cdecl strcpy(char *Destination, const char *Source);
/... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/disasm-security-audit/legacy_tests/example.c | null | null | null | null | null | null | C | 2026-05-04T18:21:23.556617 |
#include <stdio.h>
// #define no_cflow 1
// #define no_antidebug 1
#include "../../include/obfus.h"
#include "example.h" // test header import
void main() {
int i = 0;
for (i = 0; i < 5; i++) {
char *out = malloc(256);
strcpy(out, teststr);
sprintf(out, out, (i + 1));
... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/fib.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.105853 | #include <stdio.h>
#include <stdlib.h> // For atoi()
#include "../include/obfus.h"
/**
* Computes the nth Fibonacci number recursively.
* For n <= 2, returns 1.
* For n > 2, returns fib(n-1) + fib(n-2).
*
* @param n The position in the Fibonacci sequence (must be >= 1).
* @return The nth Fibonacci number.
*/
... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/virtualmachine.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.183050 | #include <stdio.h>
#include <string.h>
#include <windows.h>
#define VIRT 1
#include "../include/obfus.h"
void main() {
// VM_***(N1, N2) == RESULT == CORRECT
printf("VM_ADD(15, 15) == %d == 30\n", VM_ADD(15, 15));
printf("VM_SUB(30, 15) == %d == 15\n", VM_SUB(30, 15));
printf("VM_MUL(5, 6) == %d ... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/virtualmachine_unit.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.183857 | // Unit testing is very helpful in fixing virtualization bugs, but fixing them is still always a big headache!
#include <stdio.h>
#include <assert.h>
#define VIRT 1
#include "../include/obfus.h"
void test_int_operations() {
// Test integer operations
assert(VM_ADD(15, 15) == 30);
assert(VM_SUB(30, 15) ==... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/hello_dll.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.184373 | //-----------------------------------------------------------------------------
// HELLO_DLL.C - Windows DLL example - Main Application Entry Point
//-----------------------------------------------------------------------------
#include <windows.h>
#include "../include/obfus.h"
// Function prototype for DLL function... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/sorter.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.198072 | #include <stdio.h>
#include "../include/obfus.h"
void main() {
int arr[] = {
1524, 5772, 9906, 9432, 5306, 5762, 4371, 9723, 9262, 9163, 548, 3736, 3436, 7444,
9943, 811, 4215, 4729, 2628, 4105, 4037, 4083, 5397, 8664, 9460, 1784, 3785, 3067,
9358, 7312, 8307, 1937, 4282, 3470, 5392, 9720,... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/dll.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.198684 | //+---------------------------------------------------------------------------
//
// dll.c - Windows DLL example - dynamically linked part
//
#include <windows.h>
#include "../include/obfus.h"
// Exported data
__declspec(dllexport) const char *hello_data = "(not set)";
// Exported function
__declspec(dllexport) voi... |
DosX-dev/obfus.h | https://github.com/DosX-dev/obfus.h | null | null | null | null | 1,611 | null | null | mit | null | null | null | null | null | null | null | tests/hello_win.c | null | null | null | null | null | null | C | 2026-05-04T18:21:24.219181 | //+---------------------------------------------------------------------------
//
// HELLO_WIN.C - Windows GUI 'Hello World!' Example
//
//+---------------------------------------------------------------------------
#include <windows.h>
#include "../include/obfus.h"
#define APPNAME "Turn around"
char szAppName[] = ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example03_StatelessProgrammableSwitch/my_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.091574 | /*
* my_accessory.c
* Define the accessory in C language using the Macro in characteristics.h
*
* Created on: 2020-05-16
* Author: Mixiaoxiao (Wang Bin)
*/
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
void my_accessory_identify(homekit_value_t _value) {
printf("accessory identify\n")... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example02_Switch/my_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.093128 | /*
* my_accessory.c
* Define the accessory in C language using the Macro in characteristics.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
void my_accessory_identify(homekit_value_t _value) {
printf("accessory identify\n")... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example03_StatelessProgrammableSwitch/ESPButton.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.094386 | /*
* ESPButton.h
* Ticker-scan based Button Handler with debounce.
* Default scan interval is 16ms (60FPS).
* All added Buttons are scanned by a global Ticker (by os timer).
*
* Usage:
* in setup():
* pinMode(pin, INPUT_PULLUP / INPUT /... );
* ESPButton.add(id, pin, pin_down_digital);
* ESPButton.setCallback... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example04_MultipleAccessories/my_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.110357 | /*
* my_accessory.c
* Define the accessory in C language using the Macro in characteristics.h
*
* Created on: 2020-05-16
* Author: Mixiaoxiao (Wang Bin)
*/
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
void my_accessory_identify(homekit_value_t _value) {
printf("accessory identify\n")... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example01_TemperatureSensor/wifi_info.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.113307 | /*
* wifi_info.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#ifndef WIFI_INFO_H_
#define WIFI_INFO_H_
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
const char *ssid = "your-ssid";
const char *password = "your-password";
void wifi_connect() ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example05_WS2812_Neopixel/my_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.114547 | /*
* my_accessory.c
* Define the accessory in C language using the Macro in characteristics.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
void my_accessory_identify(homekit_value_t _value) {
printf("accessory identify\n")... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example01_TemperatureSensor/my_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.116029 | /*
* my_accessory.c
* Define the accessory in C language using the Macro in characteristics.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
// Called to identify this accessory. See HAP section 6.7.6 Identify Routine
// Gene... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example02_Switch/wifi_info.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.158054 | /*
* wifi_info.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#ifndef WIFI_INFO_H_
#define WIFI_INFO_H_
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
const char *ssid = "your-ssid";
const char *password = "your-password";
void wifi_connect() ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example03_StatelessProgrammableSwitch/wifi_info.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.159253 | /*
* wifi_info.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#ifndef WIFI_INFO_H_
#define WIFI_INFO_H_
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
const char *ssid = "your-ssid";
const char *password = "your-password";
void wifi_connect() ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example04_MultipleAccessories/wifi_info.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.200538 | /*
* wifi_info.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#ifndef WIFI_INFO_H_
#define WIFI_INFO_H_
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
const char *ssid = "your-ssid";
const char *password = "your-password";
void wifi_connect() ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example05_WS2812_Neopixel/wifi_info.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.703464 | /*
* wifi_info.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#ifndef WIFI_INFO_H_
#define WIFI_INFO_H_
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
const char *ssid = "your-ssid";
const char *password = "your-password";
void wifi_connect() ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/legacy/simple_led/ButtonHandler.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.799656 | #pragma once
#ifndef BUTTONHANDLER_H_
#define BUTTONHANDLER_H_
#include <Arduino.h>
#include <functional>
#include <FunctionalInterrupt.h>
enum button_event {
BUTTON_EVENT_SINGLECLICK = 0,
BUTTON_EVENT_DOUBLECLICK,
BUTTON_EVENT_LONGCLICK
};
/**
* ButtonHandler
* WangBin 2019.12.26
* Example:
* ButtonHandler ha... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/legacy/simple_led/simple_led_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.822920 | /*
* simple_led_accessory.c
* Define the accessory in pure C language using the Macro in characteristics.h
*
* Created on: 2020-02-08
* Author: Mixiaoxiao (Wang Bin)
*/
#include <Arduino.h>
#include <homekit/types.h>
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
#include <stdio.h>
#incl... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFi.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.824638 | /*
ESP8266WiFi.h - esp8266 Wifi support.
Based on WiFi.h from Arduino WiFi shield library.
Copyright (c) 2011-2014 Arduino. All right reserved.
Modified by Ivan Grokhotkov, December 2014
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/legacy/simple_led/ButtonDebounce.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.836535 | #pragma once
#ifndef BUTTON_DEBOUNCE_H_
#define BUTTON_DEBOUNCE_H_
#include <Arduino.h>
#include <functional>
#include <FunctionalInterrupt.h> //attachInterrupt可以传function
//Ref debounce_time = 35 , dbTime=25
//https://github.com/evert-arias/EasyButton/blob/master/src/EasyButton.h
//https://github.com/JChristensen/JC... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example06_makesmart_lock/wifi_info.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.837547 | /*
* wifi_info.h
*
* Created on: 2020-05-15
* Author: Mixiaoxiao (Wang Bin)
*/
#ifndef WIFI_INFO_H_
#define WIFI_INFO_H_
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#endif
const char *ssid = "your-ssid";
const char *password = "your-password";
void wifi_connect() ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/Example06_makesmart_lock/my_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.838415 | /*
* my_accessory.c
* Define the accessory in C language using the Macro in characteristics.h
*
* Created on: 2021-02-05
* Author: cooper @ makesmart.net
* Thank you for this great library!
*
*/
#include <homekit/homekit.h>
#include <homekit/characteristics.h>
void my_accessory_identify(homek... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | examples/legacy/simplest_led/simplest_led_accessory.c | null | null | null | null | null | null | C | 2026-05-04T18:21:31.870603 | /*
* simple_led_accessory.c
* Define the accessory in pure C language using the Macro in characteristics.h
*
* Created on: 2020-02-08
* Author: Mixiaoxiao (Wang Bin)
* Edited on: 2020-03-01
* Edited by: euler271 (Jonas Linn)
*/
#include <Arduino.h>
#include <homekit/types.h>
#include <homekit/homek... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFiGeneric.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.871868 | /*
ESP8266WiFiGeneric.h - esp8266 Wifi support.
Based on WiFi.h from Ardiono WiFi shield library.
Copyright (c) 2011-2014 Arduino. All right reserved.
Modified by Ivan Grokhotkov, December 2014
Reworked by Markus Sattler, December 2015
This library is free software; you can redistribute it and/or
modify it und... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFiAP.h | null | null | null | null | null | null | C | 2026-05-04T18:21:31.935690 | /*
ESP8266WiFiAP.h - esp8266 Wifi support.
Based on WiFi.h from Arduino WiFi shield library.
Copyright (c) 2011-2014 Arduino. All right reserved.
Modified by Ivan Grokhotkov, December 2014
Reworked by Markus Sattler, December 2015
This library is free software; you can redistribute it and/or
modify it under th... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFiMulti.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.331178 | /**
*
* @file ESP8266WiFiMulti.h
* @date 16.05.2015
* @author Markus Sattler
*
* Copyright (c) 2015 Markus Sattler. All rights reserved.
* This file is part of the esp8266 core for Arduino environment.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Les... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFiScan.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.504706 | /*
ESP8266WiFiScan.h - esp8266 Wifi support.
Based on WiFi.h from Ardiono WiFi shield library.
Copyright (c) 2011-2014 Arduino. All right reserved.
Modified by Ivan Grokhotkov, December 2014
Reworked by Markus Sattler, December 2015
This library is free software; you can redistribute it and/or
modify it under ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/WiFiServer.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.517217 | /*
WiFiServer.h - Library for Arduino Wifi shield.
Copyright (c) 2011-2014 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of t... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFiType.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.518759 | /*
ESP8266WiFiType.h - esp8266 Wifi support.
Copyright (c) 2011-2014 Arduino. All right reserved.
Modified by Ivan Grokhotkov, December 2014
Reworked by Markus Sattler, December 2015
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/WiFiUdp.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.535937 | /*
WiFiUdp.h - Library for Arduino Wifi shield.
Copyright (c) 2011-2014 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/ESP8266WiFiSTA.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.537451 | /*
ESP8266WiFiSTA.h - esp8266 Wifi support.
Based on WiFi.h from Ardiono WiFi shield library.
Copyright (c) 2011-2014 Arduino. All right reserved.
Modified by Ivan Grokhotkov, December 2014
Reworked by Markus Sattler, December 2015
This library is free software; you can redistribute it and/or
modify it under t... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/WiFiClient.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.538702 | /*
WiFiClient.h - Library for Arduino Wifi shield.
Copyright (c) 2011-2014 Arduino. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the L... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/DataSource.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.575645 | /* DataSource.h - a read-only object similar to Stream, but with less methods
* Copyright (c) 2016 Ivan Grokhotkov. All rights reserved.
* This file is distributed under MIT license.
*/
#ifndef DATASOURCE_H
#define DATASOURCE_H
#include <assert.h>
class DataSource {
public:
virtual ~DataSource() {}
virtual... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/SSLContext.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.576928 | /*
SSLContext.h - Used by WiFiClientAxTLS
Copyright (c) 2015 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/ClientContext.h | null | null | null | null | null | null | C | 2026-05-04T18:21:32.622424 | /*
ClientContext.h - TCP connection handling on top of lwIP
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/UdpContext.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.024165 | /*
UdpContext.h - UDP connection handling on top of lwIP
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/arduino_homekit_server.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.243039 | #ifndef ARDUINO_HOMEKIT_SERVER_H_
#define ARDUINO_HOMEKIT_SERVER_H_
#include <WiFiServer.h>
#include <WiFiClient.h>
#include <string.h> //size_t
#ifdef __cplusplus
extern "C" {
#endif
#include "constants.h"
#include "base64.h"
#include "crypto.h"
#include "pairing.h"
#include "storage.h"
#include "query_params.h"
#... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/base64.c | null | null | null | null | null | null | C | 2026-05-04T18:21:33.243567 | #include "base64.h"
static unsigned char base64_chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
unsigned char base64_encode_char(unsigned char c) {
return base64_chars[c];
}
unsigned char base64_decode_char(unsigned char c) {
if (c >= 'A' && c <= 'Z')
return c - 'A';
if (c >= ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/ssl.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.245544 | /*
* Copyright (c) 2007-2016, Cameron Rich
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of ... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/slist.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.279486 | #ifndef SLIST_H
#define SLIST_H
template<typename T>
class SList {
public:
SList() : _next(0) { }
protected:
static void _add(T* self) {
T* tmp = _s_first;
_s_first = self;
self->_next = tmp;
}
static void _remove(T* self) {
if (_s_first == self) {
_s_first = self->_next;
self->_... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/base64.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.280558 | #pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
size_t base64_encoded_size(const unsigned char* data, size_t size);
size_t base64_decoded_size(const unsigned char* encoded_data, size_t encoded_size);
//multiple definition of `base64_decode';
int base64_encode_(const unsigned char* data, size... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/WiFiState.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.281161 |
#ifndef WIFISTATE_H_
#define WIFISTATE_H_
#include <user_interface.h>
#include <ESP8266WiFiType.h>
struct WiFiState
{
uint32_t crc;
struct
{
station_config fwconfig;
ip_info ip;
ip_addr_t dns[2];
ip_addr_t ntp[2];
WiFiMode_t mode;
uint8_t channel;
b... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | extras/ESP8266WiFi_nossl_noleak/src/include/wl_definitions.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.314458 | /*
wl_definitions.h - Library for Arduino Wifi shield.
Copyright (c) 2011-2014 Arduino. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of t... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/cJSON.c | null | null | null | null | null | null | C | 2026-05-04T18:21:33.348688 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/accessories.c | null | null | null | null | null | null | C | 2026-05-04T18:21:33.356393 | #include <stdlib.h>
#include <string.h>
#include <homekit/types.h>
bool homekit_value_equal(homekit_value_t *a, homekit_value_t *b) {
if (a->is_null != b->is_null)
return false;
if (a->format != b->format)
return false;
switch (a->format) {
case homekit_format_bool:
re... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/cJSON.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.661685 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/cQueue.c | null | null | null | null | null | null | C | 2026-05-04T18:21:33.886479 | /*!\file cQueue.c
** \author SMFSW
** \copyright BSD 3-Clause License (c) 2017-2019, SMFSW
** \brief Queue handling library (designed in c on STM32)
** \details Queue handling library (designed in c on STM32)
**/
/****************************************************************/
#include <string.h>
#include <stdlib.h>
... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/cQueue.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.924046 | /*!\file cQueue.h
** \author SMFSW
** \copyright BSD 3-Clause License (c) 2017-2019, SMFSW
** \brief Queue handling library (designed in c on STM32)
** \details Queue handling library (designed in c on STM32)
**/
/****************************************************************/
#ifndef __CQUEUE_H
#define __CQUEUE_H
... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/crypto.c | null | null | null | null | null | null | C | 2026-05-04T18:21:33.936100 | #include <string.h>
#include "user_settings.h"
#include <wolfssl/wolfcrypt/hmac.h>
#include <wolfssl/wolfcrypt/ed25519.h>
#include <wolfssl/wolfcrypt/curve25519.h>
#include <wolfssl/wolfcrypt/sha512.h>
#include <wolfssl/wolfcrypt/chacha20_poly1305.h>
#include <wolfssl/wolfcrypt/srp.h>
#include <wolfssl/wolfcrypt/error... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/homekit/characteristics.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.966670 | #ifndef __HOMEKIT_CHARACTERISTICS__
#define __HOMEKIT_CHARACTERISTICS__
#include <homekit/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#define HOMEKIT_SHORT_APPLE_UUIDS
// MARK: - Apple UUID
#ifdef HOMEKIT_SHORT_APPLE_UUIDS
#define HOMEKIT_APPLE_UUID8(value) (value)
#define HOMEKIT_APPLE_UUID7(value) (v... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/homekit/tlv.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.981399 | #ifndef __TLV_H__
#define __TLV_H__
#define __need_size_t
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef unsigned char byte;
typedef struct _tlv {
struct _tlv *next;
byte type;
byte *value;
size_t size;
} tlv_t;
typede... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/esp_xpgm.h | null | null | null | null | null | null | C | 2026-05-04T18:21:33.982038 | /*
* xpgm.h
*
* Created on: 2020-03-08
* Author: Wang Bin
*/
#ifndef ESP_XPGM_H_
#define ESP_XPGM_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <pgmspace.h>
#include <stdint.h>
#include <string.h>
//see "osapi.h"
/*
This function works only after Serial.setDebugOutput(true); ?
otherwise Serial pri... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/crypto.h | null | null | null | null | null | null | C | 2026-05-04T18:21:34.004097 | #ifndef __CRYPTO_H__
#define __CRYPTO_H__
#ifdef __cplusplus
extern "C" {
#endif
//wolfssl-3.13.0-stable
#include <stdlib.h>
#include <wolfssl/wolfcrypt/ed25519.h>
#include <wolfssl/wolfcrypt/curve25519.h>
#include <wolfssl/wolfcrypt/settings.h>
//#include "wolfcrypt/hmac.h"
//#include "wolfcrypt/ed25519.h"
//#inc... |
Mixiaoxiao/Arduino-HomeKit-ESP8266 | https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266 | null | null | null | null | 1,607 | null | null | mit | null | null | null | null | null | null | null | src/homekit/homekit.h | null | null | null | null | null | null | C | 2026-05-04T18:21:34.034210 | #ifndef __HOMEKIT_H__
#define __HOMEKIT_H__
#include <homekit/types.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void *homekit_client_id_t;
typedef enum {
HOMEKIT_EVENT_SERVER_INITIALIZED,
// Just accepted client connection
HOMEKIT_EVENT_CLIENT_CONNECTED,
// Pairing verification completed and ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mali_base_kernel.h | null | null | null | null | null | null | C | 2026-05-04T18:21:36.947203 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2010-2022 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | Fuzzing/GStreamer/labeler/fourcc.h | null | null | null | null | null | null | C | 2026-05-04T18:21:36.961151 | #pragma once
#include <stdint.h>
/* FOURCC data copied from GStreamer project (https://gstreamer.freedesktop.org/) */
#define guint32 uint32_t
#define GST_MAKE_FOURCC(a,b,c,d) \
( (guint32)(a) | ((guint32) (b)) << 8 | ((guint32) (c)) << 16 | ((guint32) (d)) << 24 )
#define FOURCC_2vuy GST_MAKE_FOURCC('2','... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/firmware_offsets.h | null | null | null | null | null | null | C | 2026-05-04T18:21:36.975492 | #ifndef FIRMWARE_OFFSETS_H
#define FIRMWARE_OFFSETS_H
#define AVC_DENY_2411 0x839c60
#define SEL_READ_ENFORCE_2411 0x84bf40
#define INIT_CRED_2411 0x280c948
#define COMMIT_CREDS_2411 0x174f38
#define ADD_COMMIT_2411 0x913ce108 //add x8, x8, #0xf38
#define ADD_INIT_2411 0x91252000 //add x0, x0, #0x948
#endif
|
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mali_base_common_kernel.h | null | null | null | null | null | null | C | 2026-05-04T18:21:36.977426 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2022 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of th... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/log_utils.h | null | null | null | null | null | null | C | 2026-05-04T18:21:36.978301 | #ifndef LOG_UTILS_H
#define LOG_UTILS_H
#ifdef SHELL
#define LOG(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
#include <android/log.h>
#define LOG(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, "exploit", fmt, ##__VA_ARGS__)
#endif
#endif
|
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | Fuzzing/GStreamer/aux.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.004888 | #pragma once
#include <random>
#include <filesystem>
#include <fstream>
inline uint32_t rand_uint32(uint32_t min_value, uint32_t max_value) {
static std::random_device rd;
static std::mt19937 gen(rd());
uint32_t rand_number;
std::uniform_int_distribution<> dist(min_value, max_value);
rand_numb... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | Fuzzing/GStreamer/labeler/MP4.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.005940 | #pragma once
#include <string>
#include <iostream>
#include <tree.h>
#include "fourcc.h"
#include "labeler.h"
class MP4_labeler : public Labeler{
private:
RandomTree *tree;
std::string traverse(Node &node);
public:
MP4_labeler(RandomTree *in_tree);
std:... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | Fuzzing/GStreamer/tree.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.074417 | #pragma once
#include <string>
#include <vector>
#include <stdint.h>
class Node{
friend class RandomTree;
private:
int32_t id = -1;
int32_t parent_id = -1;
std::vector<int32_t> prv_children = {};
int32_t depth = -1;
std::string label;
public:
Node(uint32_t in_id, int32_t in... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mali_base_csf_kernel.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.114679 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2020-2023 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mali_kbase_ioctl.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.599526 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2017-2022 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mem_read_write.c | null | null | null | null | null | null | C | 2026-05-04T18:21:37.610778 | #include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "stdbool.h"
#include "mem_read_write.h"
#include "mempool_utils.h"
#include "firmware_offsets.h"
#define ADR... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mem_read_write.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.632326 | #ifndef MEM_READ_WRITE_H
#define MEM_READ_WRITE_H
#include "CL/cl.h"
#include "mali_kbase_ioctl.h"
#include "mali_base_csf_kernel.h"
#include "mali_base_kernel.h"
#define KERNEL_BASE 0x80000000
#define PAGE_SHIFT 12
#define OVERWRITE_INDEX 256
struct rw_mem_kernel {
cl_mem va;
cl_mem in_out;
cl_mem flag;
c... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mempool_utils.c | null | null | null | null | null | null | C | 2026-05-04T18:21:37.652463 | #include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "stdbool.h"
#include <sys/syscall.h>
#include "mempool_utils.h"
#define POOL_SIZE 16384
void mem_alloc(int fd, union kbase_ioct... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE_2022_20186/mali.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.656765 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mali_userio.c | null | null | null | null | null | null | C | 2026-05-04T18:21:37.711607 | #include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "stdbool.h"
#include <sys/syscall.h>
#include <pthread.h>
//From https://github.com/KhronosGroup/OpenCL-Heade... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mali_kbase_csf_ioctl.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.713242 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE_2022_20186/mali_alias.c | null | null | null | null | null | null | C | 2026-05-04T18:21:37.766360 | #include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/system_properties.h>
#include "stdbool.h"
#include "mali.h"
#include "mali_base_j... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE_2022_20186/mali_base_jm_kernel.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.804787 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
* (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you ... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE-2025-0072/mempool_utils.h | null | null | null | null | null | null | C | 2026-05-04T18:21:37.827529 | #ifndef MEMPOOL_UTILS_H
#define MEMPOOL_UTILS_H
#include <unistd.h>
#include "mali_kbase_ioctl.h"
#include "mali_base_csf_kernel.h"
#include "mali_base_kernel.h"
#include "log_utils.h"
void mem_alloc(int fd, union kbase_ioctl_mem_alloc* alloc);
void reserve_pages(int mali_fd, int pages, int nents, uint64_t* reserved... |
github/securitylab | https://github.com/github/securitylab | null | null | null | null | 1,605 | null | null | mit | null | null | null | null | null | null | null | SecurityExploits/Android/Mali/CVE_2022_38181/hello-jni2.c | null | null | null | null | null | null | C | 2026-05-04T18:21:38.198728 | #include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "stdbool.h"
#include <sys/system_properties.h>
#include <sys/syscall.h>
#include "mali.h"
#include "mali_base... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.