*/
static uint16_t gtk_event_get_fd_flags(struct fd_event *fde)
{
- if (!fde) return 0;
-
return fde->flags;
}
struct gtk_fd_event);
GIOCondition condition = 0;
- if (!fde) return;
-
if (fde->flags == flags) return;
if (flags & EVENT_FD_READ)
*/
uint16_t event_get_fd_flags(struct fd_event *fde)
{
+ if (!fde) return 0;
return fde->event_ctx->ops->get_fd_flags(fde);
}
*/
void event_set_fd_flags(struct fd_event *fde, uint16_t flags)
{
+ if (!fde) return;
fde->event_ctx->ops->set_fd_flags(fde, flags);
}
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* NOTE: this code compiles fine, but is completly *UNTESTED*
+/*
+NOTE: this code compiles fine, but is completly *UNTESTED*
and is only commited as example
*/
#include <oop.h>
+/*
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+ NOTE: this code compiles fine, but is completly *UNTESTED*
+ and is only commited as example
+
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+*/
+
static int oop_event_context_destructor(void *ptr)
{
struct event_context *ev = talloc_get_type(ptr, struct event_context);
*/
static uint16_t oop_event_get_fd_flags(struct fd_event *fde)
{
- if (!fde) return 0;
-
return fde->flags;
}
oop_source_sys *oop_sys;
oop_source *oop;
- if (!fde) return;
-
oop_sys = fde->event_ctx->additional_data;
oop = oop_sys_source(oop_sys);
*/
static uint16_t std_event_get_fd_flags(struct fd_event *fde)
{
- return fde?fde->flags:0;
+ return fde->flags;
}
/*
#if WITH_EPOLL
struct event_context *ev;
struct std_event_context *std_ev;
- if (fde == NULL ||
- fde->flags == flags) {
+ if (fde->flags == flags) {
return;
}
ev = fde->event_ctx;
}
}
#endif
- if (fde) {
- fde->flags = flags;
- }
+ fde->flags = flags;
}
/*