using uint32_t instead of unsigned for GEVENT source listener flags
This commit is contained in:
parent
5bead36045
commit
922b19d91e
2 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ void geventListenerInit(GListener *pl) {
|
||||||
pl->flags = 0;
|
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;
|
GSourceListener *psl, *pslfree;
|
||||||
|
|
||||||
// Safety first
|
// Safety first
|
||||||
|
|
|
@ -69,8 +69,8 @@ typedef struct GSource_t GSource, *GSourceHandle;
|
||||||
typedef struct GSourceListener_t {
|
typedef struct GSourceListener_t {
|
||||||
GListener *pListener; // The listener
|
GListener *pListener; // The listener
|
||||||
GSource *pSource; // The source
|
GSource *pSource; // The source
|
||||||
unsigned listenflags; // The flags the listener passed when the source was assigned to it.
|
uint32_t 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 srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment.
|
||||||
} GSourceListener;
|
} GSourceListener;
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -130,7 +130,7 @@ void geventListenerInit(GListener *pl);
|
||||||
*
|
*
|
||||||
* @return TRUE if succeeded, FALSE otherwise
|
* @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
|
* @brief Detach a source from a listener
|
||||||
|
|
Loading…
Add table
Reference in a new issue