board/sg-reader.c: Push down aimeio.dll calls

This is kind of a layer break but the alternative is way too much
boilerplate to deal with.
This commit is contained in:
Tau
2019-03-16 11:42:36 -04:00
parent 458bf5b3de
commit 27663b4b19
4 changed files with 83 additions and 108 deletions

View File

@ -2,6 +2,7 @@
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include "board/sg-led.h"
@ -18,11 +19,10 @@ struct sg_reader {
struct sg_led led;
};
void sg_reader_init(
HRESULT sg_reader_init(
struct sg_reader *reader,
unsigned int port_no,
const struct sg_nfc_ops *nfc_ops,
const struct sg_led_ops *led_ops,
void *ops_ctx);
unsigned int port_no);
bool sg_reader_match_irp(const struct sg_reader *reader, const struct irp *irp);
HRESULT sg_reader_handle_irp(struct sg_reader *reader, struct irp *irp);