summaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/includes
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/aria2/aria2.h31
1 files changed, 10 insertions, 21 deletions
diff --git a/src/includes/aria2/aria2.h b/src/includes/aria2/aria2.h
index c263a417..dbfbe8ae 100644
--- a/src/includes/aria2/aria2.h
+++ b/src/includes/aria2/aria2.h
@@ -95,7 +95,7 @@ typedef uint64_t A2Gid;
*
* The type of Key/Value pairs.
*/
-typedef std::vector<std::pair<std::string, std::string> > KeyVals;
+typedef std::vector<std::pair<std::string, std::string>> KeyVals;
/**
* @enum
@@ -291,11 +291,8 @@ bool isNull(A2Gid gid);
* the queue, it is appended at the end of the queue. This function
* returns 0 if it succeeds, or negative error code.
*/
-int addUri(Session* session,
- A2Gid* gid,
- const std::vector<std::string>& uris,
- const KeyVals& options,
- int position = -1);
+int addUri(Session* session, A2Gid* gid, const std::vector<std::string>& uris,
+ const KeyVals& options, int position = -1);
/**
* @function
@@ -311,10 +308,8 @@ int addUri(Session* session,
* the queue, it is appended at the end of the queue. This function
* returns 0 if it succeeds, or negative error code.
*/
-int addMetalink(Session* session,
- std::vector<A2Gid>* gids,
- const std::string& metalinkFile,
- const KeyVals& options,
+int addMetalink(Session* session, std::vector<A2Gid>* gids,
+ const std::string& metalinkFile, const KeyVals& options,
int position = -1);
/**
@@ -339,12 +334,9 @@ int addMetalink(Session* session,
* This function returns 0 if it succeeds, or negative error code.
*
*/
-int addTorrent(Session* session,
- A2Gid* gid,
- const std::string& torrentFile,
+int addTorrent(Session* session, A2Gid* gid, const std::string& torrentFile,
const std::vector<std::string>& webSeedUris,
- const KeyVals& options,
- int position = -1);
+ const KeyVals& options, int position = -1);
/**
* @function
@@ -352,11 +344,8 @@ int addTorrent(Session* session,
* Same as :func:`addTorrent()` with an empty vector as the
* |webSeedUris|.
*/
-int addTorrent(Session* session,
- A2Gid* gid,
- const std::string& torrentFile,
- const KeyVals& options,
- int position = -1);
+int addTorrent(Session* session, A2Gid* gid, const std::string& torrentFile,
+ const KeyVals& options, int position = -1);
/**
* @function
@@ -691,7 +680,7 @@ struct BtMetaInfoData {
* ``announce`` and no ``announce-list``, ``announce`` is converted
* to ``announce-list`` format.
*/
- std::vector<std::vector<std::string> > announceList;
+ std::vector<std::vector<std::string>> announceList;
/**
* ``comment`` for the torrent. ``comment.utf-8`` is used if
* available.