~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to docs/make_torrent.rst

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-05-13 12:08:59 UTC
  • mfrom: (3.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090513120859-b5qqlwi43aai3pq3
Tags: 0.14.3-1
* New Upstream Version
  - new package libtorrent-rasterbar3 (bump up library soname).
* debian/control:
  - add Vcs-* stuff (switch to git-buildpackage) and bump up
    Standards-Version to 3.8.1 (no changes required);
  - build-depends on debhelper (>= 7.0.50) and use override_dh_command;
  - move -dbg package to the new 'debug' section;
  - build-depends on autotools-dev and overwrite config.{sub,guess} with a
    recent version in debian/rules.
  - build-depends on quilt and python-docutils:
    + debian/patches/fix_html_docs.patch: fix html documentation for offline
      browsing and add another missing doc file;
    + rebuild docs at build time in debian/rules;
* debian/example.makefile: install a simple makefile for example programs
  included in -doc package.
* debian/rules, debian/python-libtorrent.install: don't rely on hardcoded
  python version, use --install-layout=deb when building python bindings,
  and install to '*-packages' instead of 'site-packages' (this should
  prepare for python2.6 and minimize Ubuntu diff).

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                template <class Fun>
86
86
                void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p, Fun f);
87
87
 
 
88
                template <class Fun>
 
89
                void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p, Fun f, error_code& ec);
 
90
 
88
91
                void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p);
89
92
 
 
93
                void set_piece_hashes(create_torrent& t, boost::filesystem::path const& p, error_code& ec);
 
94
 
90
95
This function will assume that the files added to the torrent file exists at path
91
96
``p``, read those files and hash the content and set the hashes in the ``create_torrent``
92
97
object. The optional function ``f`` is called in between every hash that is set. ``f``
94
99
 
95
100
        void Fun(int);
96
101
 
 
102
The overloads that don't take an ``error_code&`` may throw an exception in case of a
 
103
file error, the other overloads sets the error code to reflect the error, if any.
 
104
 
97
105
file_storage
98
106
============
99
107