On Thu, Jul 19, 2007 at 01:03:44PM -0400, Ben Combee wrote:
> On 7/19/07, M. Dietrich <[EMAIL PROTECTED]> wrote:
>> On Fri, Jun 22, 2007 at 12:22:43PM +0200, M. Dietrich wrote:
>> > - can i use directfb's event mechanism for custom events like
>> > timers or d-bus messages? i found UserEvent but no further docs
>> > about how to use these.
>> i am about to implement a d-bus integration with DirectFB now. my idea
>> is that d-bus signals are received the DirectFB way as Events. i would
>> like to start using DFBUserEvent for that but did not find any way to
>> use those. can anyone help with some sample source here?
>
> I like this idea a lot, but I'd actually suggest added a new event
> type to DirectFB instead of using DFBUserEvent. Some systems may
> already be using user events, and there's no registration method to
> limit clashes with that type.
for now (and for learning :D ) i implemented d-bus receive in
'user-space' / outside of the directfb library. i use
eventbuffer->PostEvent(eventbuffer ... to actually send the message
and direct_thread_create() to create a thread (is there a better way
to create directfb-conform threads? this method seems to be very
internal), thats all i need from directfb.
messages from d-bus seem to have trouble when using in directfb. while
directfb's events has a more or less simple memory-print d-bus
messages have lots of strings with arbritratry length attached. after
processing the event someone has to cleanup / free the attached
memory. am i wrong in that directfb has no event->Release() or similar
mechanism? how can i send such events?
michael
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users