From 7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 3 Nov 2018 10:51:23 +1000 Subject: For all source files update integer types to the new gI8 etc type names --- src/gdriver/gdriver.c | 6 +++--- src/gdriver/gdriver.h | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gdriver') diff --git a/src/gdriver/gdriver.c b/src/gdriver/gdriver.c index b9cd05a9..95a1e03e 100644 --- a/src/gdriver/gdriver.c +++ b/src/gdriver/gdriver.c @@ -95,7 +95,7 @@ void gdriverUnRegister(GDriver *driver) { gfxFree(driver); } -GDriver *gdriverGetInstance(uint16_t type, unsigned instance) { +GDriver *gdriverGetInstance(gU16 type, unsigned instance) { GDriver *pd; unsigned sinstance; @@ -111,7 +111,7 @@ GDriver *gdriverGetInstance(uint16_t type, unsigned instance) { return 0; } -unsigned gdriverInstanceCount(uint16_t type) { +unsigned gdriverInstanceCount(gU16 type) { GDriver *pd; unsigned sinstance; @@ -124,7 +124,7 @@ unsigned gdriverInstanceCount(uint16_t type) { return sinstance; } -GDriver *gdriverGetNext(uint16_t type, GDriver *driver) { +GDriver *gdriverGetNext(gU16 type, GDriver *driver) { driver = driver ? driver->driverchain : dhead; while(driver && driver->vmt->type != type) diff --git a/src/gdriver/gdriver.h b/src/gdriver/gdriver.h index 540e604e..2b3ef7da 100644 --- a/src/gdriver/gdriver.h +++ b/src/gdriver/gdriver.h @@ -64,9 +64,9 @@ typedef struct GDriver { * @brief All driver VMT's start with this structure. */ typedef struct GDriverVMT { - uint16_t type; // @< What type of driver this is - uint16_t flags; // @< Flags for the driver. Meaning is specific to each driver type. - uint32_t objsize; // @< How big the runtime driver structure is + gU16 type; // @< What type of driver this is + gU16 flags; // @< Flags for the driver. Meaning is specific to each driver type. + gU32 objsize; // @< How big the runtime driver structure is gBool (*init)(GDriver *driver, void *param, unsigned driverinstance, unsigned systeminstance); // @< Initialise the driver. Returns gTrue if OK. // driverinstance is the instance 0..n of this driver. // systeminstance is the instance 0..n of this type of device. @@ -120,7 +120,7 @@ extern "C" { * @param[in] type The type of driver to find * @param[in] instance The instance (0..n) to find */ - GDriver *gdriverGetInstance(uint16_t type, unsigned instance); + GDriver *gdriverGetInstance(gU16 type, unsigned instance); /** * @brief Get the count of instances of a type of device @@ -130,7 +130,7 @@ extern "C" { * * @param[in] type The type of driver to find */ - unsigned gdriverInstanceCount(uint16_t type); + unsigned gdriverInstanceCount(gU16 type); /** * @brief Get the instance number for a device @@ -147,7 +147,7 @@ extern "C" { * @param[in] type The type of driver to find * @param[in] driver The last driver returned or NULL to start again */ - GDriver *gdriverGetNext(uint16_t type, GDriver *driver); + GDriver *gdriverGetNext(gU16 type, GDriver *driver); #ifdef __cplusplus } -- cgit v1.2.3