~ubuntu-branches/ubuntu/lucid/transmission/lucid

« back to all changes in this revision

Viewing changes to libtransmission/session.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda, Krzysztof Klimonda, Chris Coulson
  • Date: 2010-03-03 02:55:26 UTC
  • mfrom: (1.1.34 upstream) (2.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100303025526-qcjmpnlvk9jv3y5o
Tags: 1.92-0ubuntu1
[ Krzysztof Klimonda ]
* New upstream release (LP: #538034), rebased on debian testing.
  Remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
      Can be removed in lucid+1
    + Added liblaunchpad-integration-dev and lsb-release to Build-Depends
  - debian/rules:
    + create a po template during package build.
  - debian/patches/01_lpi.patch:
    + integrate transmission with launchpad
  - debian/patches/20_add_x-ubuntu-gettext-domain.diff:
    + add x-ubuntu-gettext-domain to .desktop file.
  - debian/transmission-daemon.default:
    - remove --auth from OPTIONS
  - debian/control, debian/rules:
    + build transmission gtk+ client with both gconf and libcanberra support.
  - debian/patches/dont_build_libevent.patch:
    + disable libevent in configure.ac and Makefile.am because we use autotools
      to regenerate build files.
  - lucid/debian/patches/updateminiupnpcstrings_double_escape_slash.patch:
    + Deleted as the bug is fixed upstream
* Fixes bugs:
  - Fix directory selection error in GTK+ 2.19 (LP: #518692)
  - Transmission "Set Location" - dialog doesn't disappear (LP: #529037)
  - The "Torrent Options" dialog's Torrent Priority row gets too much
    vertical stretch (LP: #527299)
  - "Open Folder" behavior can be confusing for single-file torrents
    (LP: #505861)
* Refreshed 99_autoreconf.patch

[ Chris Coulson ]
* debian/patches/disable_web_ui.patch:
  - Disable the web UI by default again (LP: #542194)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: session.h 10093 2010-02-04 23:39:50Z charles $
 
10
 * $Id: session.h 10276 2010-02-23 07:20:57Z charles $
11
11
 */
12
12
 
13
13
#ifndef __TRANSMISSION__
185
185
 
186
186
    struct tr_bindinfo         * public_ipv4;
187
187
    struct tr_bindinfo         * public_ipv6;
 
188
 
 
189
    /* a page-aligned buffer for use by the libtransmission thread.
 
190
     * @see SESSION_BUFFER_SIZE */
 
191
    void * buffer;
 
192
 
 
193
    tr_bool bufferInUse;
188
194
};
189
195
 
190
196
tr_bool      tr_sessionAllowsDHT( const tr_session * session );
211
217
 
212
218
enum
213
219
{
214
 
    SESSION_MAGIC_NUMBER = 3845
 
220
    SESSION_MAGIC_NUMBER = 3845,
 
221
 
 
222
    /* @see tr_session.buffer */
 
223
    SESSION_BUFFER_SIZE = (16*1024)
215
224
};
216
225
 
 
226
void* tr_sessionGetBuffer( tr_session * session );
 
227
 
 
228
void tr_sessionReleaseBuffer( tr_session * session );
 
229
 
217
230
static inline tr_bool tr_isSession( const tr_session * session )
218
231
{
219
232
    return ( session != NULL ) && ( session->magicNumber == SESSION_MAGIC_NUMBER );