mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 22:58:30 +00:00
Add missing files
This commit is contained in:
parent
bcf24850a8
commit
a079b04ac8
25
include/ext_sysfs.h
Normal file
25
include/ext_sysfs.h
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Author......: See docs/credits.txt
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#ifndef _EXT_SYSFS_H
|
||||
#define _EXT_SYSFS_H
|
||||
|
||||
static const char SYS_BUS_PCI_DEVICES[] = "/sys/bus/pci/devices";
|
||||
|
||||
typedef int HM_ADAPTER_SYSFS;
|
||||
|
||||
typedef void *SYSFS_LIB;
|
||||
|
||||
typedef struct hm_sysfs_lib
|
||||
{
|
||||
// currently not using libudev, because it can only read values, not set them, so using /sys instead
|
||||
|
||||
SYSFS_LIB lib;
|
||||
|
||||
} hm_sysfs_lib_t;
|
||||
|
||||
typedef hm_sysfs_lib_t SYSFS_PTR;
|
||||
|
||||
#endif // _EXT_SYSFS_H
|
7
src/ext_sysfs.c
Normal file
7
src/ext_sysfs.c
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Author......: See docs/credits.txt
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
#include "ext_sysfs.h"
|
Loading…
Reference in New Issue
Block a user