http_streamer: switch to libnetservices.a
Switch to the experimental services API as the copy in libbnetapi.so is deprecated. Change-Id: I57d76b1d1be5c957221cc2d77d148fadbac2a642 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3668 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
// 10 seconds timeout
|
||||
#define HTTP_TIMEOUT 10000000
|
||||
|
||||
using namespace BPrivate::Network;
|
||||
|
||||
|
||||
class FileListener : public BUrlProtocolListener {
|
||||
public:
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <AdapterIO.h>
|
||||
#include <FileRequest.h>
|
||||
#include <Url.h>
|
||||
#include <UrlContext.h>
|
||||
#include <UrlProtocolAsynchronousListener.h>
|
||||
|
||||
|
||||
@@ -40,7 +39,7 @@ protected:
|
||||
|
||||
friend class FileListener;
|
||||
private:
|
||||
BUrlRequest* fReq;
|
||||
BPrivate::Network::BUrlRequest* fReq;
|
||||
FileListener* fListener;
|
||||
thread_id fReqThread;
|
||||
|
||||
|
||||
@@ -3,16 +3,14 @@ SubDir HAIKU_TOP src add-ons media plugins http_streamer ;
|
||||
UsePrivateHeaders media netservices shared ;
|
||||
UsePrivateHeaders [ FDirName media experimental ] ;
|
||||
|
||||
# Use the deprecated libnetapi.so classes
|
||||
SubDirC++Flags [ FDefines LIBNETAPI_DEPRECATED ] ;
|
||||
|
||||
local architectureObject ;
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
on $(architectureObject) {
|
||||
Addon [ MultiArchDefaultGristFiles http_streamer ] :
|
||||
HTTPStreamerPlugin.cpp
|
||||
HTTPMediaIO.cpp
|
||||
: be media bnetapi shared
|
||||
: [ MultiArchDefaultGristFiles libnetservices.a ]
|
||||
be media bnetapi shared
|
||||
[ TargetLibsupc++ ]
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user