Browse Source

using uint32_t instead of unsigned for GEVENT source listener flags

remotes/origin_old/ugfx_release_2.6
Joel Bodenmann 7 years ago
parent
commit
922b19d91e
  1. 2
      src/gevent/gevent.c
  2. 6
      src/gevent/gevent.h

2
src/gevent/gevent.c

@ -71,7 +71,7 @@ void geventListenerInit(GListener *pl) {
pl->flags = 0;
}
bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, unsigned flags) {
bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, uint32_t flags) {
GSourceListener *psl, *pslfree;
// Safety first

6
src/gevent/gevent.h

@ -69,8 +69,8 @@ typedef struct GSource_t GSource, *GSourceHandle;
typedef struct GSourceListener_t {
GListener *pListener; // The listener
GSource *pSource; // The source
unsigned listenflags; // The flags the listener passed when the source was assigned to it.
unsigned srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment.
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.
} GSourceListener;
/*===========================================================================*/
@ -130,7 +130,7 @@ void geventListenerInit(GListener *pl);
*
* @return TRUE if succeeded, FALSE otherwise
*/
bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, unsigned flags);
bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, uint32_t flags);
/**
* @brief Detach a source from a listener

Loading…
Cancel
Save