2013-05-09 14:49:30 +00:00
|
|
|
.. default-domain:: cpp
|
2013-05-18 07:35:50 +00:00
|
|
|
.. highlight:: cpp
|
2013-05-09 14:49:30 +00:00
|
|
|
|
|
|
|
libaria2: C++ library interface to aria2
|
|
|
|
========================================
|
|
|
|
|
2013-05-18 07:27:13 +00:00
|
|
|
.. Warning::
|
|
|
|
|
|
|
|
The API has not been frozen yet. It will be changed on the course of
|
|
|
|
the development.
|
|
|
|
|
|
|
|
The libaria2 is a C++ library and offers the core functionality of
|
|
|
|
aria2. The library takes care of all networking and downloading stuff,
|
|
|
|
so its usage is very straight forward right now. See *libaria2ex.cc*
|
|
|
|
in *examples* directory to see how to use API.
|
|
|
|
|
2013-05-09 14:49:30 +00:00
|
|
|
API Reference
|
|
|
|
-------------
|
|
|
|
|
2013-05-18 07:35:50 +00:00
|
|
|
To use the API function, include ``aria2/aria2.h``::
|
|
|
|
|
|
|
|
#include <aria2/aria2.h>
|
|
|
|
|
|
|
|
All enums, types and functions are under ``aria2`` namespace. To link
|
|
|
|
with libaria2, use linker flag ``-laria2``.
|
|
|
|
|
2013-05-09 14:59:50 +00:00
|
|
|
|
2013-05-09 14:49:30 +00:00
|
|
|
.. include:: libaria2api
|