aboutsummaryrefslogtreecommitdiff
path: root/src/deviceinfo-flashlight.c
blob: e31c1ffd42ed7d1c4a35f1345c6c0d637382c69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <deviceinfo_c_api.h>

char* flashlight_path()
{
        struct DeviceInfo* di = deviceinfo_new();
        return deviceinfo_get(di, "FlashlightSysfsPath", "");
}

char* flashlight_switch_path()
{
        struct DeviceInfo* di = deviceinfo_new();
        return deviceinfo_get(di, "FlashlightSwitchPath", "");
}