A self-contained minimal library for interacting with Linux hot-plug events

Overview

libue Build Status

Zero dependency minimal library for interacting with Linux hot-plug events.

Installation

Just drop the header file into your C project.

Usage

#include "libue.h"

int main() {
    struct uevent_listener listener;
    struct uevent uev;
    int re;

    re = ue_init_listener(&listener);
    if (re < 0) {
        fprintf(stderr, "Failed to initilize libue listener, err: %d\n", re);
        return -1;
    }

    /* blocking call */
    while ((re = ue_wait_for_event(&listener, &uev)) == 0) {
        switch (uev.action) {
        case UEVENT_ACTION_ADD:
            printf("Device %s added.", uev.devpath);
            break;
        case UEVENT_ACTION_REMOVE:
            printf("Device %s removed.", uev.devpath);
            break;
        }
    }
}
Owner
QP Hou
QP Hou
Self-contained exploit for CVE-2021-4034 - Pkexec Local Privilege Escalation

PwnKit Self-contained exploit for CVE-2021-4034 - Pkexec Local Privilege Escalation Usage Should work out of the box on Linux distributions based on U

Oliver Lyak 503 May 11, 2022
Coverett - C library for interacting with HLAPI devices of the OpenComputers II mod.

Coverett Coverett - C library for interacting with HLAPI devices of the OpenComputers II mod. Warning!!! The library is in alpha stage, so it can cont

Vladislav 8 May 6, 2022
A C# hot reload framework for Unity3D, based on Mono's MONO_AOT_MODE_INTERP mode.

PureScript 一个支持Unity3D的C#热更框架,基于Mono的MONO_AOT_MODE_INTERP模式。 支持在iOS平台Assembly.Load 构建时自动绑定Unity的Il2cpp代码。 支持大部分Unity特性,包括MonoBehaviour、Coroutine。 支持配置

null 257 May 6, 2022
roost low profile ergonomic ortholinear hot-swappable kailh-choc keyboard

Roost keyboard Based off the Sweep v2.1, added 2mm or so horizontal space, added another set of keys and slots for a fat power switch. Moved battery c

Alksdeef 32 May 6, 2022
Thick, girthy, hot, griplling tentacles.

Thick, girthy, hot, griplling tentacles. please go away i did the huge mistake of giving these idiots write access I've come to make an announcement:

null 3 Feb 8, 2022
Tools for interacting with music data in GBA games that use the Engine Software replayer.

A suite of tools for interacting with the XM-like music data found in certain Game Boy Advance games - specifically those that use the Engine Software replayer middleware.

Luna 17 Nov 16, 2021
A simple one header solution to interacting with Windows WMI in C++

?? WinWMI A simple one header solution to interacting with Windows WMI in C++ Usage Just #include "winwmi.hpp" in your code! Initialize To initialize

Konstantin 'cpz' L. 4 Jan 24, 2022
CS202 (2022 Winter) Project: Interacting with "emulated" hardware accelerators

CS202 (2022 Winter) Project: Interacting with "emulated" hardware accelerators Overview Hardware accelerators that implement specialized circuits for

Hung-Wei Tseng 4 Mar 21, 2022
Hide a process,port,self under Linux using the ld_preload

vbackdoor 中文 Hide a process,port,self under Linux using the LD_PRELOAD rootkit. compile the library git clone https://github.com/veo/vbackdoor.git cd

veo 35 Apr 9, 2022
Reactive - Simple, non intrusive reactive programming library for C++. (Events + Observable Properties + Reactive Properties)

Header only reactive C++ library. Thread-safe, memory-safe. Concsists from: Event (C# like Event, but thread-safe, does not block while event occurs,

null 58 Mar 3, 2022
Plua is a superset of Lua for classic PalmOS devices with added support for graphics, UI, networking, events and sound.

Plua2c Plua is a superset of Lua for classic PalmOS devices with added support for graphics, UI, networking, events and sound. This is the source code

Cameron Kaiser 8 May 16, 2022
Wortuhr mit ESP8266 WeMos D1 mini und NeoPixel WS2812B LEDs mit mp3 Sounds, Animationen, Transitions, Events und Spiele

Wortuhr_ESP8266 Wortuhr mit ESP8266 WeMos D1 mini und NeoPixel WS2812B LEDs mit mp3 Sounds, Animationen, Transitions, Events und Spiele, Webzugriff So

null 21 Apr 15, 2022
Realtime Micro Kernel -- Event-driven Run-to-Completion RTOS with Active Objects, Timed Events, Memory Pools, and Message Queues

Realtime Micro Kernel Features Active Objects Message queues Variable sized, custom messages Periodic and single timed events Memory pools Supported P

null 2 Feb 25, 2022
evtest is a tool to print evdev kernel events

evtest is a tool to print evdev kernel events. It reads directly from the kernel device and prints a device description and the events with the value and the symbolic name.

Travis West 4 Jan 27, 2022
OTA Third Party Firmware Flasher for the original Wyze Plug (WLPP1) and Wyze Bulb (WLPA19).

Wyze Plug (and Bulb!) Flasher Use this software to install third party firmware on the original Wyze Plug (model WLPP1) and Wyze Bulb (model WLPA19) o

Elahd Bar-Shai 2 Nov 13, 2021
A package to provide plug-in for Livox Series LiDAR.

Livox Laser Simulation A package to provide plug-in for Livox Series LiDAR. Requirements ROS(=Melodic) Gazebo (= 9.x, http://gazebosim.org/) Ubuntu(=1

livox 61 May 4, 2022
TIDAL - Discord Rich Presence plug-in (UNOFFICIAL)

TIDAL - Discord Rich Presence plug-in (UNOFFICIAL) Unofficial plug in to obtain Discord Rich Presence. Feel free to report any bugs or make suggestion

Rares Sarmasag 2 Nov 12, 2021
A plug which auto turns off when it's Shabbos or Yom Tov.

Melacha Plug A Melacha aware plug which turns off when it's Shabbos or Yom Tov. This project is using ESPHome. Looking to disable a smart doorbell for

Chabad Source 7 Apr 13, 2022