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

« back to all changes in this revision

Viewing changes to bindings/python/src/big_number.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2008-07-02 10:46:21 UTC
  • Revision ID: james.westby@ubuntu.com-20080702104621-jzx3pfke9lkcxfxn
Tags: upstream-0.13.1
ImportĀ upstreamĀ versionĀ 0.13.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright Daniel Wallin 2006. Use, modification and distribution is
 
2
// subject to the Boost Software License, Version 1.0. (See accompanying
 
3
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
4
 
 
5
#include <libtorrent/peer_id.hpp>
 
6
#include <boost/python.hpp>
 
7
 
 
8
void bind_big_number()
 
9
{
 
10
    using namespace boost::python;
 
11
    using namespace libtorrent;
 
12
 
 
13
    class_<big_number>("big_number")
 
14
        .def(self == self)
 
15
        .def(self != self)
 
16
        .def(self < self)
 
17
        .def(self_ns::str(self))
 
18
        ;
 
19
}
 
20