Skip to content

Commit

Permalink
Compatibility with new netservices
Browse files Browse the repository at this point in the history
  • Loading branch information
JadedCtrl authored and pulkomandy committed Mar 15, 2021
1 parent 8d1fb63 commit 1508bd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -88,7 +88,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 shared localestub sqlite3 bnetapi network $(STDCPPLIBS)
LIBS = be tracker shared localestub sqlite3 bnetapi network netservices $(STDCPPLIBS)

# Specify additional paths to directories following the standard libXXX.so
# or libXXX.a naming scheme. You can specify full paths or paths relative
Expand All @@ -101,8 +101,9 @@ LIBPATHS =
# "#include <header>". 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/interface) \
$(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/netservices) \
$(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/shared) \
$(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY private/support)

# Additional paths paths to look for local headers. These use the form
Expand Down
4 changes: 3 additions & 1 deletion src/plugin/GoogleCalendar/Requests.h
Expand Up @@ -17,6 +17,8 @@
#include <Json.h>


using namespace BPrivate::Network;

class ProtocolListener : public BUrlProtocolListener {
public:
ProtocolListener(bool traceLogging)
Expand Down Expand Up @@ -93,7 +95,7 @@ class Requests {
{
ProtocolListener listener(true);
BUrl link(url);
BUrlRequest* request = BUrlProtocolRoster::MakeRequest( link, &listener );
BUrlRequest* request = BUrlProtocolRoster::MakeRequest( link, NULL, &listener );
BHttpRequest* hRequest = dynamic_cast<BHttpRequest *>(request);

hRequest->SetMethod(method);
Expand Down

0 comments on commit 1508bd5

Please sign in to comment.