From a2374f8fa03912d12fdab6fc6b6410ca1c0b8b46 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Mon, 15 Feb 2021 18:31:09 -0600 Subject: [PATCH] Use new netservices --- Makefile | 4 ++-- src/ProtocolListener.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 250549a..3fd0ee0 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ RSRCS = \ # - if your library does not follow the standard library naming scheme, # you need to specify the path to the library and it's name. # (e.g. for mylib.a, specify "mylib.a" or "path/mylib.a") -LIBS = be tracker bnetapi network shared tinyxml2 $(STDCPPLIBS) +LIBS = be tracker bnetapi network netservices shared tinyxml2 $(STDCPPLIBS) # Specify additional paths to directories following the standard libXXX.so # or libXXX.a naming scheme. You can specify full paths or paths relative @@ -91,7 +91,7 @@ LIBPATHS = # "#include
". Directories that contain the files in SRCS are # NOT auto-included here. SYSTEM_INCLUDE_PATHS = \ -# $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/shared) \ + $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/netservices) \ # $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/interface) \ # $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/support) diff --git a/src/ProtocolListener.h b/src/ProtocolListener.h index 0234362..4be0eda 100644 --- a/src/ProtocolListener.h +++ b/src/ProtocolListener.h @@ -10,6 +10,11 @@ #include +#ifndef LIBNETAPI_DEPRECATED +using namespace BPrivate::Network; +#endif + + class ProtocolListener : public BUrlProtocolListener { public: