[haiku-development] Re: Services Kit Project Setup (was: Beta3 status update)

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 02 Feb 2021 08:57:45 +0000

2 février 2021 09:43 "Andrew Lindesay" <apl@xxxxxxxxxxxxxx> a écrit:

On Tue, 19 Jan 2021, at 22:20, Adrien Destugues wrote:

1. Treat the Network Services API like an experimental/unstable API
within libnetapi.so, giving ourselves the prerogative to break it

...
But that means anticipating it by identifying apps that use libbnetapi and
rebuilding them against the new API, before the beta3 release (so as to not

Hello;

I may have overlooked the conversation above, but seem to be having some 
trouble with the changes.
After updating the source my linux host can still cross-compile HaikuDepot, 
but my x86_64 Haiku
host is having some problems.

The compile of `AbstractServerProcess.cpp` is unable to find the symbols from 
`HttpTime.h` because
it appears to be protected behind a namespace "BPrivate:Network". If 
`LIBNETAPI_DEPRECATED` is not
defined (used in `HttpTime.h`) then it won't find the objects.

Is somebody able to advise on how to best work with this?

The classes have been moved to the BPrivate::Network namespace to clearly mark 
that they are private.
You can add an "using namespace BPrivate::Network;" in the files where you use 
them.

For now, the "new" version of the classes should be similar to the old one. We 
will later merge
some changes to the API. We tried to update the affected code for these changes 
but may have missed
some things?

-- 
Adrien.


Other related posts: