Questions about dfb_events_dispatch in DGK DirectFB backend



I currently try to understand the directfb GDK backend code for event
handling.

Can anybody tell me why the dfb_events_io_func is used to call
dfb_events_dispatch ?

In the win32 backend and the old linux-fb backend there is the dispatch
function registered as follws:

static GSourceFuncs xxx_events_funcs = {
  xxx_events_prepare,
  xxx_events_check,
  xxx_events_dispatch,
  NULL
};

...

void 
_gdk_events_init (void)
{
  GSource *source;

  source = g_source_new (&xxx_events_funcs, sizeof (GSource));
  ...
  g_source_attach (source, NULL);
}

...

Why using the detour with g_io_channel_unix_new(...) ?

BTW, is the dfb_events_io_func correctly attached with
g_source_set_callback(..) in _gdk_events_init(..) ?
Should we use g_io_add_watch(...) instead ?



-------------------------------------------------------------
 Mit freundlichen Grüßen
 Carsten Behling                                
                                                            
 Eppendorf Instrumente GmbH
 Barkhausenweg 1
 22339 Hamburg

Tel.: +49 40 / 53997 726
Fax: +49 40 / 53997 792


---------------------------------------------------------------------------------------
This email including its attachments is intended for the person or
entity only to which it is addressed. It may contain confidential and/or
privileged material. Any review, forwarding, dissemination, other use
of, or taking of any action in reliance upon this information by persons
or entities other than the intended recipient is prohibited.
If you received this email in error, please contact the sender and 
delete the material from any computer system. 
---------------------------------------------------------------------------------------

Eppendorf AG, Hamburg, Barkhausenweg 1, 22339 Hamburg,
Amtsgericht Hamburg HRB 76249
Vors. des Aufsichtsrats: Dipl.-Ing. Adrian Déteindre
Vorstand: Klaus Fink (Vorsitzender), Detmar Ammermann,
Dr. Heinz G. Koehn, Dr. Michael Schroeder

Eppendorf Instrumente GmbH, Hamburg, Amtsgericht Hamburg, HRB 69077
Geschäftsführer: Rainer Treptow

Eppendorf Biochip Systems GmbH, Hamburg, Amtsgericht Hamburg, HRB 96641
Geschäftsführer: Dr. Sven Buelow

Eppendorf Liquid Handling GmbH, Hamburg, Amtsgericht Hamburg, HRB 92250
Geschäftsführer: Boris von Beichmann


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]