[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: dbus_message_demarshal() and partial messages
From: "Avery Pennarun" <apenwarr () gmail ! com>
Date: 2007-08-15 0:51:51
Message-ID: 32541b130708141751l435d1182ia0db555beb105521 () mail ! gmail ! com
[Download RAW message or body]
On 14/08/07, Thiago Macieira <thiago@kde.org> wrote:
> I'd rather not return DBUS_MINIMUM_HEADER_SIZE because it could indicate
> that that's EXACTLY the number of bytes wanted when it clearly isn't.
>
> But, seeing that that symbol is public, we can probably say that if you
> don't have DBUS_MINIMUM_HEADER_SIZE bytes available, you shouldn't be
> calling the bytes_needed function. So I'd return -1 and make that an
> error (probably one of those assertions "you're not using this function
> properly").
That works for me, as long as DBUS_MINIMUM_HEADER_SIZE remains public.
Have fun,
Avery
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic