aboutsummaryrefslogtreecommitdiffstats
path: root/src/gevent
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
commit7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch)
tree95cf152ef65ff19c7b2515b427bbe86b92b611d0 /src/gevent
parent8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff)
downloaduGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.gz
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.bz2
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.zip
For all source files update integer types to the new gI8 etc type names
Diffstat (limited to 'src/gevent')
-rw-r--r--src/gevent/gevent.c2
-rw-r--r--src/gevent/gevent.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c
index c092394b..472fb25c 100644
--- a/src/gevent/gevent.c
+++ b/src/gevent/gevent.c
@@ -68,7 +68,7 @@ void geventListenerInit(GListener *pl) {
pl->flags = 0;
}
-gBool geventAttachSource(GListener *pl, GSourceHandle gsh, uint32_t flags) {
+gBool geventAttachSource(GListener *pl, GSourceHandle gsh, gU32 flags) {
GSourceListener *psl, *pslfree;
// Safety first
diff --git a/src/gevent/gevent.h b/src/gevent/gevent.h
index dd5b86a4..4e8dacec 100644
--- a/src/gevent/gevent.h
+++ b/src/gevent/gevent.h
@@ -30,7 +30,7 @@
/* Type definitions */
/*===========================================================================*/
-typedef uint16_t GEventType;
+typedef gU16 GEventType;
#define GEVENT_NULL 0x0000 // Null Event - Do nothing
#define GEVENT_EXIT 0x0001 // The listener is being forced to exit (someone is destroying the listener)
@@ -56,7 +56,7 @@ typedef void (*GEventCallbackFn)(void *param, GEvent *pe);
// The Listener Object
typedef struct GListener {
gfxSem waitqueue; // Private: Semaphore for the listener to wait on.
- uint16_t flags; // Private: Flags for operation
+ gU16 flags; // Private: Flags for operation
GEventCallbackFn callback; // Private: Call back Function
void *param; // Private: Parameter for the callback function.
GEvent event; // Public: The event object into which the event information is stored.
@@ -69,8 +69,8 @@ typedef struct GSource_t GSource, *GSourceHandle;
typedef struct GSourceListener_t {
GListener *pListener; // The listener
GSource *pSource; // The source
- uint32_t listenflags; // The flags the listener passed when the source was assigned to it.
- uint32_t srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment.
+ gU32 listenflags; // The flags the listener passed when the source was assigned to it.
+ gU32 srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment.
} GSourceListener;
/*===========================================================================*/
@@ -126,7 +126,7 @@ void geventListenerInit(GListener *pl);
*
* @return gTrue if succeeded, gFalse otherwise
*/
-gBool geventAttachSource(GListener *pl, GSourceHandle gsh, uint32_t flags);
+gBool geventAttachSource(GListener *pl, GSourceHandle gsh, gU32 flags);
/**
* @brief Detach a source from a listener