Skip to content
A simple wrapper library for CURL on the Nintendo Switch.
C++ Makefile Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
include Renamed to Swurl. Relicensed under ISC. Apr 16, 2019
source/Swurl Renamed to Swurl. Relicensed under ISC. Apr 16, 2019
.gitignore
LICENSE Renamed to Swurl. Relicensed under ISC. Apr 16, 2019
Makefile Use ccache when available. Jul 21, 2019
PKGBUILD Updated to remove license to prevent conflictions. Apr 18, 2019
README.md Add PKGBUILD script to build pacman package. Apr 18, 2019

README.md

Swurl

A wrapper library for CURL on the Nintendo Switch. The objective is to have a simple library where you can pass it a request and recieve back calls on its progress updates, completion and if it incountered an error. Right now the response object is very basic with the parsed headers, raw headers, raw body, and status code. However I plan on in the future allowing for you to pass the response type through the request and have the body be parsed out. (Ex JSON)

Installation

To install the latest release run the following:

makepkg -si

To build from source run the following:

make
sudo make install

Usage

I've included an example under the example folder. Remember to add -lSwurl -lcurl -lz -lmbedtls -lmbedx509 -lmbedcrypto to LIBS in your makefile. Other than that remember to run SessionManager::initialize(); at the beginning of your app as this initializes sockets and curl, and call SessionManager::dealloc(); when cleaning up your app as this closes sockets and curl.

You can’t perform that action at this time.