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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro-common/include/compat/msvc/stdint.h | null | null | null | null | null | null | C | 2026-05-04T18:31:23.899803 | /* ISO C9x compliant stdint.h for Microsoft Visual Studio
* Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
*
* Copyright (c) 2006-2008 Alexander Chemeris
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro/blipper.c | null | null | null | null | null | null | C | 2026-05-04T18:31:24.193908 | /*
* Copyright (C) 2013 - Hans-Kristian Arntzen
*
* 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, mod... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro/blipper.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.218629 | /*
* Copyright (C) 2013 - Hans-Kristian Arntzen
*
* 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, mod... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro/gbcpalettes.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.443958 | /***************************************************************************
* Copyright (C) 2007 by Sindre Aamås *
* sinamas@users.sourceforge.net *
* *
* Thi... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro-common/include/streams/file_stream.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.467300 | /* Copyright (C) 2010-2017 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (file_stream.h).
* ---------------------------------------------------------------------------------------
*
* Perm... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro/libretro.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.488553 | /* Copyright (C) 2010-2016 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this libretro API header (libretro.h).
* ---------------------------------------------------------------------------------------... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro/net_serial.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.489777 | #ifndef _NET_SERIAL_H
#define _NET_SERIAL_H
#include <gambatte.h>
#include <time.h>
class NetSerial : public gambatte::SerialIO
{
public:
NetSerial();
~NetSerial();
bool start(bool is_server, int port, const std::string& hostname);
void stop();
virtual bool check(unsigned char out, unsigned char& in, boo... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro/cc_resampler.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.515099 | /*
* Convoluted Cosine Resampler
* Copyright (C) 2014 - Bouhlel Ali ( aliaspider@gmail.com )
*
* licence: GPLv3
*/
#ifndef CC_RESAMPLER_H
#define CC_RESAMPLER_H
#ifdef CC_RESAMPLER
#ifdef __cplusplus
extern "C" {
#endif
typedef struct audio_frame
{
int16_t l;
int16_t r;
}audio_frame_t;
#define CC_DECIMA... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/bootloader.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.570127 | #ifndef BOOTLOADER_H
#define BOOTLOADER_H
#include <stdint.h>
#include <string>
namespace gambatte {
class Bootloader {
private:
uint8_t bootromswapspace[0x900];
uint8_t rombackup[0x900];
void* addrspace_start;
unsigned int bootloadersize;
bool has_called_FF50;
//Set this to NULL or return ... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/include/inputgetter.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.601759 | /***************************************************************************
* Copyright (C) 2007 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/libretro-common/streams/file_stream.c | null | null | null | null | null | null | C | 2026-05-04T18:31:24.754998 | /* Copyright (C) 2010-2017 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (file_stream.c).
* ---------------------------------------------------------------------------------------
*
* Perm... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/counterdef.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.868263 | #ifndef COUNTERDEF_H
#define COUNTERDEF_H
namespace gambatte {
enum { disabled_time = 0xfffffffful };
}
#endif
|
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/cpu.h | null | null | null | null | null | null | C | 2026-05-04T18:31:24.893309 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/gambatte-memory.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.086676 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/interrupter.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.121902 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/initstate.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.123397 | /***************************************************************************
* Copyright (C) 2008 by Sindre Aam�s *
* aamas@stud.ntnu.no *
* *
* This pr... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/interruptrequester.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.188372 | //
// Copyright (C) 2010 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/mem/cartridge.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.234898 | /***************************************************************************
* Copyright (C) 2007-2010 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/mem/memptrs.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.236145 | /***************************************************************************
* Copyright (C) 2007-2010 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/insertion_sort.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.299704 | /***************************************************************************
* Copyright (C) 2007 by Sindre Aamĺs *
* aamas@stud.ntnu.no *
* *
* Thi... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/mem/rtc.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.390793 | /***************************************************************************
* Copyright (C) 2007 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/minkeeper.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.505482 | /***************************************************************************
* Copyright (C) 2009 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/savestate.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.563043 | //
// Copyright (C) 2008 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.753168 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/serial_io.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.753712 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/channel1.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.866433 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/channel4.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.896828 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/duty_unit.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.943765 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/channel3.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.950548 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/channel2.h | null | null | null | null | null | null | C | 2026-05-04T18:31:25.982133 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/envelope_unit.h | null | null | null | null | null | null | C | 2026-05-04T18:31:26.010712 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/length_counter.h | null | null | null | null | null | null | C | 2026-05-04T18:31:26.099003 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/master_disabler.h | null | null | null | null | null | null | C | 2026-05-04T18:31:26.136700 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
openai/retro | https://github.com/openai/retro | null | null | null | null | 3,586 | null | null | mit | null | null | null | null | null | null | null | cores/gb/libgambatte/src/sound/sound_unit.h | null | null | null | null | null | null | C | 2026-05-04T18:31:26.612523 | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/hint.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.172832 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "warpd.h"
struct hint *hints;
struct hint matched[MAX_HINTS];
static size_t nr_hints;
static size_t nr_matched;
char last_selected_hint[32];
static void filter(screen_t scr, const char *s)
{
size_t i;
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/daemon.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.193532 | #include "warpd.h"
static const char *activation_keys[] = {
"activation_key",
"hint_activation_key",
"grid_activation_key",
"hint_oneshot_key",
"screen_activation_key",
"hint2_activation_key",
"hint2_oneshot_key",
"history_activation_key",
};
static struct input_event activation_events[sizeof activation_keys /... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/config.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.194143 | #include "warpd.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
struct config_entry *config = NULL;
static struct {
char *key;
char *val;
const char *description;
enum option_type type;
} options[] = {
{ "hint_activation_key", "A-M-x", "Activates hint mode.", OPT_KEY },
{ "hin... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/mode-loop.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.207905 | #include "warpd.h"
int mode_loop(int initial_mode, int oneshot, int record_history)
{
int mode = initial_mode;
int rc = 0;
struct input_event *ev = NULL;
while (1) {
int btn = 0;
config_input_whitelist(NULL, 0);
switch (mode) {
case MODE_HISTORY:
if (history_hint_mode() < 0)
goto exit;
ev = NU... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/histfile.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.208419 | #include "warpd.h"
static struct {
int sz;
struct histfile_ent ents[MAX_HIST_ENTS];
} hist;
static void read_hist(const char *path)
{
int fd = open(path, O_RDWR|O_CREAT, 0600);
if (fd < 0) {
perror("open");
exit(-1);
}
hist.sz = 0;
read(fd, &hist, sizeof(hist));
close(fd);
}
size_t histfile_read(struct ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/history.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.210412 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include <stdlib.h>
#include "warpd.h"
/*
* Local history intended to be updated within a given session.
* Captures all macroscopic movement unlike the more conservative
* histfile which only tracks clicks.
*/
#... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/grid.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.229372 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "warpd.h"
static int grid_width;
static int grid_height;
static screen_t scr;
static void draw_grid(screen_t scr,
const char *color, int sz,
int nc, int nr,
int x, int y, int w, int ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/mouse.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.257653 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "warpd.h"
#include <time.h>
/* constants */
static double v0, vf, vd, a, a0, a1;
static int inc = 0;
static int sw, sh;
/* state */
static int left = 0;
static int right = 0;
static int up = 0;
static int... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/input.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.286380 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "warpd.h"
static uint8_t cached_mods[256];
int input_parse_string(struct input_event *ev, const char *s)
{
if (!s || s[0] == ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/normal.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.795004 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "warpd.h"
static void redraw(screen_t scr, int x, int y, int hide_cursor)
{
int sw, sh;
platform->screen_get_dimensions(scr, &sw, &sh);
const int gap = 10;
const int indicator_size = (config_get_int("i... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/X/X.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.864663 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "X.h"
Display *dpy = NULL;
struct monitored_file monitored_files[32];
size_t nr_monitored_files = 0;
int hex_to_rgba(const char *str, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a)
{
#define X2B(c) ((c >=... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/X/hint.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.886488 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "X.h"
static int border_radius;
static const char *font_family;
static const char *fgcolor;
static const char *bgcolor;
static XftColor parse_xft_color(const char *s)
{
uint8_t r, g, b, a;
XftColor color;... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/X/screen.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.895711 | #include "X.h"
struct screen xscreens[32];
size_t nr_xscreens = 0;
static void window_set_color(Window w, const char *color)
{
uint32_t col = parse_xcolor(color, NULL);
XSetWindowAttributes attr = {0};
attr.background_pixel = col;
XChangeWindowAttributes(dpy,w,CWBackPixel,&attr);
XClearWindow(dpy, w);
}
void ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/X/input.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.897073 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "X.h"
static int nr_grabbed_device_ids = 0;
static int grabbed_device_ids[64];
uint8_t x_active_mods = 0;
/* clear the X keyboard state. */
static void reset_keyboard()
{
size_t i;
char keymap[32];
XQ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/X/X.h | null | null | null | null | null | null | C | 2026-05-04T18:31:29.907845 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#ifndef X_PLATFORM_H
#define X_PLATFORM_H
#include "../../../platform.h"
#include "../../../warpd.h"
#include <X11/Xatom.h>
#include <X11/Xft/Xft.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensi... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/linux.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.908789 | #include <stdio.h>
#include <stdlib.h>
#include "../../platform.h"
void x_init();
void wayland_init();
#ifndef WARPD_X
void x_init()
{
fprintf(stderr, "ERROR: warpd compiled without X support\n");
exit(-1);
}
#endif
#ifndef WARPD_WAYLAND
void wayland_init()
{
fprintf(stderr, "ERROR: warpd compiled without wayland... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/X/mouse.c | null | null | null | null | null | null | C | 2026-05-04T18:31:29.941910 | #include "X.h"
static int hidden = 0;
void x_mouse_up(int btn)
{
XTestFakeButtonEvent(dpy, btn, False, CurrentTime);
XSync(dpy, False);
}
void x_mouse_down(int btn)
{
XTestFakeButtonEvent(dpy, btn, True, CurrentTime);
XSync(dpy, False);
}
void x_mouse_click(int btn)
{
if (x_active_mods & PLATFORM_MOD_SHIFT)
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/hint.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.000062 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#include "wayland.h"
static char bgcolor[16];
static char fgcolor[16];
static const char *font_family;
static int calculate_font_size(cairo_t *cr, int w, int h)
{
cairo_text_extents_t extents;
size_t sz = 100;
cairo_select_fo... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform.h | null | null | null | null | null | null | C | 2026-05-04T18:31:30.015409 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#ifndef PLATFORM_H
#define PLATFORM_H
#include <stdint.h>
#include <stdlib.h>
#define PLATFORM_MOD_CONTROL 1
#define PLATFORM_MOD_SHIFT 2
#define PLATFORM_MOD_META 4
#define PLATFORM_MOD_ALT 8
#define SCROLL_DOWN 1... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/input.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.483720 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#include "wayland.h"
static struct input_event input_queue[32];
static size_t input_queue_sz;
static uint8_t x_active_mods = 0;
static void noop() {}
struct keymap_entry keymap[256] = {0};
static void update_mods(uint8_t code, ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/surface.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.496760 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#include "wayland.h"
static void noop() {}
/* TODO: add support for fractional scaling (requires xdg-output?). */
/* A 'surface' in the local context can be thought of as a viewport into a
* rectangular region of the screen's b... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/util.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.511427 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#include "wayland.h"
int way_hex_to_rgba(const char *str, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a)
{
#define X2B(c) ((c >= '0' && c <= '9') ? (c & 0xF) : (((c | 0x20) - 'a') + 10))
if (str == NULL)
return 0;
str = (*st... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/screen.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.512671 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#include "wayland.h"
static void noop() {}
static void xdg_output_handle_logical_position(void *data,
struct zxdg_output_v1
*zxdg_output_v1, int32_t x,
int32_t y)
{
struct screen *scr = data;
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/wayland.h | null | null | null | null | null | null | C | 2026-05-04T18:31:30.557976 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#ifndef WAYLAND_H
#define WAYLAND_H
#include <stdio.h>
#include <stdlib.h>
#include <poll.h>
#include <assert.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <s... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/wayland.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.558634 | /*
* keyd - A key remapping daemon.
*
* © 2019 Raheman Vaiya (see also: LICENSE).
*/
#include <limits.h>
#include "wayland.h"
#define UNIMPLEMENTED { \
fprintf(stderr, "FATAL: wayland: %s unimplemented\n", __func__); \
exit(-1); \
}
static uint8_t btn_state[3] = {0};
static struct {
const char *name;
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/linux/wayland/wl.c | null | null | null | null | null | null | C | 2026-05-04T18:31:30.606279 | #include "wayland.h"
struct screen screens[MAX_SCREENS];
size_t nr_screens;
struct wl wl;
static void handle_global(void *data,
struct wl_registry *registry, uint32_t name,
const char *interface, uint32_t version)
{
if (!strcmp(interface, "zwlr_virtual_pointer_manager_v1")) {
struct zwlr_virtual_pointer... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/windows/filemon.c | null | null | null | null | null | null | C | 2026-05-04T18:31:31.640299 | #include "windows.h"
struct mon_thread_args {
char path[1024];
DWORD ptid;
};
static const char *dirname(const char *path)
{
static char dir[1024];
char *c = dir;
char *sep = NULL;
strcpy(dir, path);
while (*c) {
if (*c == '\\')
sep = c;
c++;
}
if (sep)
*sep = 0;
return dir;
}
static uint64_t m... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/macos/input.h | null | null | null | null | null | null | C | 2026-05-04T18:31:31.670376 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#ifndef MACOS_INPUT_H
#define MACOS_INPUT_H
/*
* Massaged from:
* https://opensource.apple.com/source/ApplePS2Keyboard/ApplePS2Keyboard-9/ApplePS2ToADBMap.h
*/
/*
* TODO: make sure names are consistent with the ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/windows/windows.h | null | null | null | null | null | null | C | 2026-05-04T18:31:31.814056 | #ifndef _WINDOWS_H
#define _WINDOWS_H
#include <windows.h>
#include <stdio.h>
#include <assert.h>
#include "../../platform.h"
#define WM_CONFIG_UPDATE WM_USER
#define WM_KEY_EVENT (WM_USER+1)
#define WM_FILE_UPDATED (WM_USER+2)
struct screen;
void wn_init_screen();
void wn_screen_redraw(struct screen *scr);
void wn... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/screen.c | null | null | null | null | null | null | C | 2026-05-04T18:31:32.119612 | #include "warpd.h"
void screen_selection_mode()
{
size_t i;
size_t n;
screen_t screens[MAX_SCREENS];
struct input_event *ev;
const char *screen_chars = config_get("screen_chars");
platform->screen_list(screens, &n);
assert(strlen(screen_chars) >= n);
for (i = 0; i < n; i++) {
struct hint hint;
int w, h;
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/windows/winscreen.c | null | null | null | null | null | null | C | 2026-05-04T18:31:32.136819 | #include "windows.h"
#define TRANSPARENT_COLOR RGB(0,0,1)
#define AcquireMutex(mtx) assert(WaitForSingleObject(mtx, INFINITE) == WAIT_OBJECT_0)
static DWORD ui_thread_id;
static HANDLE mtx;
struct box {
RECT rect;
COLORREF color;
};
struct screen {
/* Position in the virtual screen space */
int x;
int y;
int ... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/scroll.c | null | null | null | null | null | null | C | 2026-05-04T18:31:32.137478 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "warpd.h"
#ifdef __APPLE__
#define factor 1
#else
#define factor 50
#endif
#define fling_velocity (2000.0 / factor);
/* terminal velocity */
#define vt ((float)config_get_int("scroll_max_speed") / factor)
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/warpd.c | null | null | null | null | null | null | C | 2026-05-04T18:31:32.288995 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "warpd.h"
struct platform *platform = NULL;
static const char *config_path;
uint64_t get_time_us()
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return ts.tv_nsec / 1E3 + ts.tv_sec * 1E6;
... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/warpd.h | null | null | null | null | null | null | C | 2026-05-04T18:31:32.370362 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
/*
* DISCLAIMER: This was a small one off c file that ballooned into a small
* project, I did not originally plan to publish it. Consequently the code is
* ugly/will eat your face.
*
* I have subsequently tried t... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/windows/main.c | null | null | null | null | null | null | C | 2026-05-04T18:31:32.397835 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#include "../warpd.h"
#include <assert.h>
#include <direct.h>
#include <stdio.h>
#include <windows.h>
#include <winuser.h>
static HWND icon_wnd;
static HMENU icon_menu;
static char config_path[1024];
static char con... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/windows/stubs.c | null | null | null | null | null | null | C | 2026-05-04T18:31:32.482663 | #include <windows.h>
#include <stdio.h>
const char *get_data_path(const char *file)
{
static char path[1024];
sprintf(path, "%s\\warpd\\%s", getenv("APPDATA"), file);
return path;
}
|
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/macos/macos.h | null | null | null | null | null | null | C | 2026-05-04T18:31:37.493887 | /*
* warpd - A modal keyboard-driven pointing system.
*
* © 2019 Raheman Vaiya (see: LICENSE).
*/
#ifndef EVLOOP_H
#define EVLOOP_H
#include "../../platform.h"
#include <ApplicationServices/ApplicationServices.h>
#include <Cocoa/Cocoa.h>
#include <Carbon/Carbon.h>
#include <stdint.h>
#include <pthread.h>
/*
* N... |
rvaiya/warpd | https://github.com/rvaiya/warpd | null | null | null | null | 3,531 | null | null | mit | null | null | null | null | null | null | null | src/platform/windows/windows.c | null | null | null | null | null | null | C | 2026-05-04T18:31:37.524009 |
#define UNICODE 1
#include "windows.h"
static int keyboard_grabbed = 0;
static struct input_event *grab_events;
static size_t ngrab_events;
static int is_grabbed_key(uint8_t code, uint8_t mods)
{
size_t i;
for (i = 0; i < ngrab_events; i++)
if (grab_events[i].code == code && grab_events[i].mods == mods)
retu... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfsvc/svc_common.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.478896 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
// pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing featur... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfsvc/resource.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.481224 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#define EBPF_FILE_DESCRIPTION "eBPF For Windows Service"
#define EBPF_FILE_NAME "ebpfsvc.exe"
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfcore/resource.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.482218 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#define EBPF_FILE_DESCRIPTION "eBPF For Windows Execution Context"
#define EBPF_FILE_NAME "ebpfcore.sys"
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfsvc/rpc_util.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.489702 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "svc_common.h"
unsigned long
initialize_rpc_server();
void
shutdown_rpc_server();
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfcore/ebpf_drv.c | null | null | null | null | null | null | C | 2026-05-04T18:31:40.490834 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
/**
* @file
* WDF based driver that does the following:
* 1. Initializes the eBPF execution context.
* 2. Opens an IOCTL surface that forwards commands to ebpf_core.
*/
#include "ebpf_core.h"
#include "ebpf_error.h"
#include "ebpf_tra... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfapi/resource.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.505189 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#define EBPF_FILE_DESCRIPTION "eBPF For Windows User API"
#define EBPF_FILE_NAME "ebpfapi.dll"
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfcore/usersim/resource.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.507366 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#define EBPF_FILE_DESCRIPTION "eBPF For Windows Execution Context"
#define EBPF_FILE_NAME "ebpfcore.sys"
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | ebpfcore/usersim/ntddk.h | null | null | null | null | null | null | C | 2026-05-04T18:31:40.508354 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
// The system headers generate lots of warnings, so disable those around the ntddk.h inclusion.
// TODO(https://github.com/microsoft/usersim/issues/79): move this file to usersim
#pragma warning(push)
#pragma warning(disable : 6387)
#pragma... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/asm/types.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.173987 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include <stdint.h>
typedef uint16_t __u16;
typedef uint32_t __u32;
typedef uint64_t __u64;
typedef int16_t __s16;
typedef int32_t __s32;
typedef int64_t __s64;
#define __SIZEOF_LONG_LONG__ 8 /* only x64 is supported */
#define ... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf/bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.179223 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#ifdef __doxygen
/**
* @name Link-related functions
* @{
*/
/**
* @brief Detach a link.
*
* @param[in] link_fd File descriptor of link to detach.
*
* @retval 0 The operation was successful.
* @retval <0 An error occurred, and err... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf/libbpf.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.183282 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#ifdef __doxygen
/**
* @name Link-related functions
* @{
*/
/** @brief Clean up a link.
*
* @details Unless bpf_link__disconnect was called first,
* this API detaches the link. Either way, it then closes
* the link fd and frees th... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf/bpf_legacy.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.200664 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "libbpf.h"
#pragma warning(push)
#pragma warning(disable : 4201) // nonstandard extension used: nameless struct/union
/**
* @name Map-related functions
* @{
*/
struct bpf_create_map_attr
{
const char* name;
... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf/hashmap.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.202024 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#pragma warning(push)
#include "../external/bpftool/libbpf/src/hashmap.h"
#pragma warning(pop)
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf/libbpf_legacy.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.213471 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
/**
* @name Link-related functions
* @{
*/
/**
* @brief Attach an XDP program to a given interface.
*
* @param[in] ifindex The interface index to attach to, or -1 to detach.
* @param[in] fd File descriptor of program to... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf_conformance/bpf_conformance.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.214867 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
// Forwarding header to expose bpf_conformance to consumers via the project include path.
#pragma once
#include "../../external/ebpf-verifier/external/bpf_conformance/include/bpf_conformance.h"
|
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf2c.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.216146 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "ebpf_structs.h"
#if defined(NO_CRT)
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned ... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf_endian.h | null | null | null | null | null | null | C | 2026-05-04T18:31:41.242026 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include <stdint.h>
// copied from linux kernel v6.1 tools/lib/bpf/bpf_endian.h
// https://github.com/torvalds/linux/blob/v6.1/tools/lib/bpf/bpf_endian.h
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/*
* Isolate by... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_extension_uuids.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.295338 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "ebpf_windows.h"
#ifdef __cplusplus
extern "C"
{
#endif
/** @brief NPI ID for eBPF program information extension.
*/
/* 2934ad50-2154-44b6-9622-6c528c068411 */
__declspec(selectany) GUID EBPF_PROGRAM_... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_execution_type.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.297043 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum _ebpf_execution_type
{
EBPF_EXECUTION_ANY, ///< Execute in JIT-compiled or interpreted mode, per system policy.
EBPF_EXECUTION_JIT, ///< ... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf_helpers.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.298492 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
// Include platform-specific definitions.
#include "bpf_helpers_platform.h"
#include "ebpf_structs.h"
#if !defined(_MSVC_VER)
// BTF macros recreated from Linux kernel docs and dumping the BTF of the
// compiled ELF files.
//... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_error.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.299453 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "ebpf_result.h"
typedef _Return_type_success_(return >= 0) LONG NTSTATUS;
// If status values are already defined, do not include ntstatus.h.
// This avoids macro redefinitions errors when ebpf_error.h is included i... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_api.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.300746 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "ebpf_core_structs.h"
#include "ebpf_execution_type.h"
#include "ebpf_program_attach_type_guids.h"
#include "ebpf_result.h"
#include <specstrings.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#ifde... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/bpf_helpers_platform.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.318197 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
/**
* @file
* @brief This file contains platform specific defines used by eBPF programs.
*/
#include <stdbool.h>
#include <stdint.h>
// For eBPF programs, struct bpf_map means struct _ebpf_map_definition_in_file,
// since ... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_core_structs.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.319278 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
/**
* @file
* @brief This file contains eBPF definitions common to eBPF core libraries as well as
* the eBPF API library.
*/
#include "ebpf_structs.h"
#include <sal.h>
#define EBPF_MAX_PIN_PATH_LENGTH 256
/**
* @brief ... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_extension.h | null | null | null | null | null | null | C | 2026-05-04T18:31:42.320630 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "ebpf_result.h"
#include "ebpf_structs.h"
#include "ebpf_windows.h"
#define EBPF_MAP_OPERATION_HELPER \
0x01 ... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_result.h | null | null | null | null | null | null | C | 2026-05-04T18:31:43.260569 | /*
* Copyright (c) eBPF for Windows contributors
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <sal.h>
#ifdef __cplusplus
extern "C"
{
#endif
#pragma warning(disable : 26812) // Prefer enum class
typedef _Return_type_success_(return == EBPF_SUCCESS) enum ebpf_result {
/// The operation wa... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/ebpf_store_helper.h | null | null | null | null | null | null | C | 2026-05-04T18:31:43.289411 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
#include "ebpf_program_types.h"
#include "ebpf_utilities.h"
#include "ebpf_windows.h"
#define GUID_STRING_LENGTH 38 // not including the null terminator.
#ifdef __cplusplus
extern "C"
{
#endif
typedef HKEY ebpf_store_ke... |
microsoft/ebpf-for-windows | https://github.com/microsoft/ebpf-for-windows | null | null | null | null | 3,483 | null | null | mit | null | null | null | null | null | null | null | include/linux/bpf.h | null | null | null | null | null | null | C | 2026-05-04T18:31:43.295957 | // Copyright (c) eBPF for Windows contributors
// SPDX-License-Identifier: MIT
#pragma once
//! @file linux/bpf.h
//! This file should be thought of as platform/bpf.h not Linux-specific per se.
//! It is needed under this path though since the Libbpf bpf.h includes it as such.
#include "ebpf_structs.h"
#include <std... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.