refactor: Entire code base, thread and log usage
Boils down to: - Include headers - Reduce boiler plate with helpers - Swap out explicit usages with core API layer and ensure the right API is configured beforehand
This commit is contained in:
@@ -4,10 +4,11 @@
|
||||
#include <setupapi.h>
|
||||
// clang-format on
|
||||
|
||||
#include "core/log.h"
|
||||
|
||||
#include "ezusb/ezusb.h"
|
||||
#include "ezusb/ezusbsys2.h"
|
||||
|
||||
#include "util/log.h"
|
||||
#include "util/str.h"
|
||||
|
||||
static bool ezusb_reset(HANDLE handle, bool hold)
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "core/log.h"
|
||||
|
||||
#include "ezusb/util.h"
|
||||
|
||||
#include "util/crc.h"
|
||||
#include "util/fs.h"
|
||||
#include "util/log.h"
|
||||
#include "util/mem.h"
|
||||
|
||||
struct ezusb_firmware *ezusb_firmware_load(const char *file)
|
||||
|
||||
Reference in New Issue
Block a user