Skip to content

Instantly share code, notes, and snippets.

View mdodkins's full-sized avatar
🎯
Focusing

mdodkins

🎯
Focusing
View GitHub Profile
@alexandruc
alexandruc / sd_card_detect_libudev.cpp
Created June 8, 2012 13:08
Detect SD card and get SD card notifications using libudev
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <errno.h>
#include <sys/time.h> //debug -> remove me
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>