source: trunk/libtransmission/transmission.h @ 2319

Last change on this file since 2319 was 2319, checked in by charles, 15 years ago

fix dnd-setting bug created while splitting DND and priorities into two separate entities

  • Property svn:keywords set to Date Rev Author Id
File size: 25.5 KB
Line 
1/******************************************************************************
2 * $Id: transmission.h 2319 2007-07-10 03:41:16Z charles $
3 *
4 * Copyright (c) 2005-2007 Transmission authors and contributors
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *****************************************************************************/
24
25#ifndef TR_TRANSMISSION_H
26#define TR_TRANSMISSION_H 1
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include "version.h"
33
34#include <inttypes.h>
35#ifndef PRId64
36# define PRId64 "lld"
37#endif
38#ifndef PRIu64
39# define PRIu64 "llu"
40#endif
41#include <time.h>
42
43#define SHA_DIGEST_LENGTH 20
44#ifdef __BEOS__
45# include <StorageDefs.h>
46# define MAX_PATH_LENGTH  B_FILE_NAME_LENGTH
47#else
48# define MAX_PATH_LENGTH  1024
49#endif
50
51#ifndef INET_ADDRSTRLEN
52#define INET_ADDRSTRLEN 16
53#endif
54
55#if defined(__MINGW__)
56#define TR_PATH_DELIMITER '\\'
57#define TR_PATH_DELIMITER_STR "\\"
58#else
59#define TR_PATH_DELIMITER '/'
60#define TR_PATH_DELIMITER_STR "/"
61#endif
62
63#define TR_DEFAULT_PORT   9090
64
65#define TR_PEER_FROM__MAX       4
66#define TR_PEER_FROM_INCOMING   0 /* connections made to the listening port */
67#define TR_PEER_FROM_TRACKER    1 /* peers received from a tracker */
68#define TR_PEER_FROM_CACHE      2 /* peers read from the peer cache */
69#define TR_PEER_FROM_PEX        3 /* peers discovered via PEX */
70
71/***********************************************************************
72 * Error codes
73 **********************************************************************/
74/* General errors */
75#define TR_OK                       0x00000000
76#define TR_ERROR                    0x81000000
77#define TR_ERROR_ASSERT             0x82000000
78/* I/O errors */
79#define TR_ERROR_IO_MASK            0x000000FF
80#define TR_ERROR_IO_PARENT          ((1<<31) | (1<<0))
81#define TR_ERROR_IO_PERMISSIONS     ((1<<31) | (1<<1))
82#define TR_ERROR_IO_SPACE           ((1<<31) | (1<<2))
83#define TR_ERROR_IO_FILE_TOO_BIG    ((1<<31) | (1<<3))
84#define TR_ERROR_IO_OPEN_FILES      ((1<<31) | (1<<4))
85#define TR_ERROR_IO_DUP_DOWNLOAD    ((1<<31) | (1<<5))
86#define TR_ERROR_IO_OTHER           ((1<<31) | (1<<6))
87/* Misc */
88#define TR_ERROR_TC_MASK            0x00000F00
89#define TR_ERROR_TC_ERROR           0x80000100
90#define TR_ERROR_TC_WARNING         0x80000200
91
92#define TR_ERROR_ISSET( num, code ) ( (code) == ( (code) & (num) ) )
93
94/***********************************************************************
95 * tr_init
96 ***********************************************************************
97 * Initializes a libtransmission instance. Returns a obscure handle to
98 * be passed to all functions below. The tag argument is a short string
99 * unique to the program invoking tr_init(), it is currently used as
100 * part of saved torrent files' names to prevent one frontend from
101 * deleting a torrent used by another. The following tags are used:
102 *   beos cli daemon gtk macosx
103 **********************************************************************/
104typedef struct tr_handle_s tr_handle_t;
105tr_handle_t * tr_init( const char * tag );
106
107typedef struct tr_tracker_info_s tr_tracker_info_t;
108
109/***********************************************************************
110 * tr_setMessageLevel
111 ***********************************************************************
112 * Set the level of messages to be output or queued
113 **********************************************************************/
114#define TR_MSG_ERR 1
115#define TR_MSG_INF 2
116#define TR_MSG_DBG 3
117void tr_setMessageLevel( int );
118int tr_getMessageLevel( void );
119
120/***********************************************************************
121 * tr_setMessageQueuing
122 ***********************************************************************
123 * Enable or disable message queuing
124 **********************************************************************/
125typedef struct tr_msg_list_s tr_msg_list_t;
126void tr_setMessageQueuing( int );
127
128/***********************************************************************
129 * tr_getQueuedMessages
130 ***********************************************************************
131 * Return a list of queued messages
132 **********************************************************************/
133tr_msg_list_t * tr_getQueuedMessages( void );
134void tr_freeMessageList( tr_msg_list_t * list );
135
136/***********************************************************************
137 * tr_getPrefsDirectory
138 ***********************************************************************
139 * Returns the full path to a directory which can be used to store
140 * preferences. The string belongs to libtransmission, do not free it.
141 **********************************************************************/
142const char * tr_getPrefsDirectory( void );
143
144/***********************************************************************
145 * tr_setBindPort
146 ***********************************************************************
147 * Sets the port to listen for incoming peer connections.
148 * This can be safely called even with active torrents.
149 **********************************************************************/
150void tr_setBindPort( tr_handle_t *, int );
151
152/***********************************************************************
153 * tr_natTraversalEnable
154 * tr_natTraversalDisable
155 ***********************************************************************
156 * Enable or disable NAT traversal using NAT-PMP or UPnP IGD.
157 **********************************************************************/
158void tr_natTraversalEnable( tr_handle_t *, int enable );
159
160/***********************************************************************
161 * tr_handleStatus
162 ***********************************************************************
163 * Returns some status info for the given handle.
164 **********************************************************************/
165typedef struct tr_handle_status_s tr_handle_status_t;
166tr_handle_status_t * tr_handleStatus( tr_handle_t * );
167
168/***********************************************************************
169 * tr_setGlobalUploadLimit
170 ***********************************************************************
171 * Sets the total upload rate limit in KB/s
172 **********************************************************************/
173void tr_setGlobalUploadLimit( tr_handle_t *, int );
174
175/***********************************************************************
176 * tr_setGlobalDownloadLimit
177 ***********************************************************************
178 * Sets the total download rate limit in KB/s
179 **********************************************************************/
180void tr_setGlobalDownloadLimit( tr_handle_t *, int );
181
182/***********************************************************************
183 * tr_torrentCount
184 ***********************************************************************
185 * Returns the count of open torrents
186 **********************************************************************/
187int tr_torrentCount( tr_handle_t * h );
188
189
190/***********************************************************************
191 * tr_torrentIterate
192 ***********************************************************************
193 * Iterates on open torrents
194 **********************************************************************/
195typedef struct tr_torrent_s tr_torrent_t;
196typedef void (*tr_callback_t) ( tr_torrent_t *, void * );
197void tr_torrentIterate( tr_handle_t *, tr_callback_t, void * );
198
199void tr_setUseCustomLimit( tr_torrent_t * tor, int limit );
200void tr_setUploadLimit( tr_torrent_t * tor, int limit );
201void tr_setDownloadLimit( tr_torrent_t * tor, int limit );
202
203/***********************************************************************
204 * Torrent Priorities
205 **********************************************************************/
206
207enum
208{
209    TR_PRI_LOW    = -1,
210    TR_PRI_NORMAL =  0, /* since NORMAL is 0, memset initializes nicely */
211    TR_PRI_HIGH   =  1
212};
213
214typedef int8_t tr_priority_t;
215
216/* priorities should be an array of tor->info.fileCount bytes,
217 * each holding a value of TR_PRI_NORMAL, _HIGH, or _LOW */
218void tr_torrentSetFilePriorities ( tr_torrent_t *, const tr_priority_t * priorities );
219
220/* single-file form of tr_torrentPrioritizeFiles.
221 * priority must be one of TR_PRI_NORMAL, _HIGH, or _LOW */
222void tr_torrentSetFilePriority( tr_torrent_t *, int file, tr_priority_t priority );
223
224/* returns a malloc()ed array of tor->info.fileCount items,
225 * each holding a value of TR_PRI_NORMAL, _HIGH, or _LOW.
226   free the array when done. */
227tr_priority_t* tr_torrentGetFilePriorities( const tr_torrent_t * );
228
229/* single-file form of tr_torrentGetFilePriorities.
230 * returns one of TR_PRI_NORMAL, _HIGH, or _LOW. */
231tr_priority_t tr_torrentGetFilePriority( const tr_torrent_t *, int file );
232
233/* returns true if the file's `download' flag is set */
234int tr_torrentGetFileDL( const tr_torrent_t *, int file );
235
236/* enabled should be an array of tor->info.fileCount bytes,
237 * each holding a nonzero value if the file is to be downloaded */
238void tr_torrentSetFileDLs ( tr_torrent_t *, const uint8_t * enabled );
239
240/* single-file form of tr_torrentSetFileDLs */
241void tr_torrentSetFileDL( tr_torrent_t *, int file, int do_download );
242
243
244/***********************************************************************
245 * tr_torrentRates
246 ***********************************************************************
247 * Gets the total download and upload rates
248 **********************************************************************/
249void tr_torrentRates( tr_handle_t *, float *, float * );
250
251/***********************************************************************
252 * tr_close
253 ***********************************************************************
254 * Frees memory allocated by tr_init.
255 **********************************************************************/
256void tr_close( tr_handle_t * );
257
258/***********************************************************************
259 * tr_torrentInit
260 ***********************************************************************
261 * Opens and parses torrent file at 'path'. If the file exists and is
262 * a valid torrent file, returns an handle and adds it to the list of
263 * torrents (but doesn't start it). Returns NULL and sets *error
264 * otherwise. If hash is not NULL and the torrent is already loaded
265 * then it's 20-byte hash will be copied in. If the TR_FLAG_SAVE flag
266 * is passed then a copy of the torrent file will be saved.
267 **********************************************************************/
268#define TR_EINVALID     1
269#define TR_EUNSUPPORTED 2
270#define TR_EDUPLICATE   3
271#define TR_EOTHER       666
272tr_torrent_t * tr_torrentInit( tr_handle_t  * handle,
273                               const char   * metainfo_filename,
274                               const char   * destination,
275                               int            flags,
276                               int          * setme_error );
277
278typedef struct tr_info_s tr_info_t;
279
280/**
281 * Parses the specified metainfo file.
282 *
283 * Returns TR_OK if it parsed and can be added to Transmission.
284 * Returns TR_INVALID if it couldn't be parsed.
285 * Returns TR_EDUPLICATE if it parsed but can't be added.
286 *
287 * "destination" can be NULL if you don't need to know whether
288 * or not the torrent can be added.
289 *
290 " "setme_info" can be NULL if you don't need the information.
291 * If the metainfo can be parsed and setme_info is non-NULL,
292 * it will be filled with the metadata's info.  You'll need to
293 * call tr_metainfoFree( setme_info ) when done with it.
294 */
295int tr_torrentParse( const tr_handle_t  * handle,
296                     const char         * metainfo_filename,
297                     const char         * destination,
298                     tr_info_t          * setme_info );
299
300/**
301 * Parses the cached metainfo file that matches the given hash string.
302 * See tr_torrentParse() for a description of the arguments
303 */
304int
305tr_torrentParseHash( const tr_handle_t  * h,
306                     const char         * hashStr,
307                     const char         * destination,
308                     tr_info_t          * setme_info );
309
310
311/***********************************************************************
312 * tr_torrentInitData
313 ***********************************************************************
314 * Like tr_torrentInit, except the actual torrent data is passed in
315 * instead of the filename.
316 **********************************************************************/
317tr_torrent_t * tr_torrentInitData( tr_handle_t *,
318                                   const uint8_t * data, size_t size,
319                                   const char * destination,
320                                   int flags, int * error );
321
322/***********************************************************************
323 * tr_torrentInitSaved
324 ***********************************************************************
325 * Opens and parses a torrent file as with tr_torrentInit, only taking
326 * the hash string of a saved torrent file instead of a filename. There
327 * are currently no valid flags for this function.
328 **********************************************************************/
329tr_torrent_t * tr_torrentInitSaved( tr_handle_t *,
330                                    const char * hashStr,
331                                    const char * destination,
332                                    int flags, int * error );
333
334/***********************************************************************
335 * tr_torrentDisablePex
336 ***********************************************************************
337 * Disable or enable peer exchange for this torrent. Peer exchange is
338 * enabled by default, except for private torrents where pex is
339 * disabled and cannot be enabled.
340 **********************************************************************/
341void tr_torrentDisablePex( tr_torrent_t *, int disable );
342
343/***********************************************************************
344 * tr_torrentScrape
345 ***********************************************************************
346 * Return torrent metainfo.
347 **********************************************************************/
348const tr_info_t * tr_torrentInfo( const tr_torrent_t * );
349
350/***********************************************************************
351 * tr_torrentScrape
352 ***********************************************************************
353 * Asks the tracker for the count of seeders and leechers. Returns 0
354 * and fills 's' and 'l' if successful. Otherwise returns 1 if the
355 * tracker doesn't support the scrape protocol, is unreachable or
356 * replied with some error. tr_torrentScrape may block up to 20 seconds
357 * before returning.
358 **********************************************************************/
359int tr_torrentScrape( tr_torrent_t *, int * s, int * l, int * d );
360
361void   tr_torrentSetFolder( tr_torrent_t *, const char * );
362const char * tr_torrentGetFolder( const tr_torrent_t * );
363
364/***********************************************************************
365 * tr_torrentStart
366 ***********************************************************************
367 * Starts downloading. The download is launched in a seperate thread,
368 * therefore tr_torrentStart returns immediately.
369 **********************************************************************/
370void   tr_torrentStart( tr_torrent_t * );
371
372/***********************************************************************
373 * tr_torrentStop
374 ***********************************************************************
375 * Stops downloading and notices the tracker that we are leaving. The
376 * thread keeps running while doing so.
377 * The thread will eventually be joined, either:
378 * - by tr_torrentStat when the tracker has been successfully noticed,
379 * - by tr_torrentStat if the tracker could not be noticed within 60s,
380 * - by tr_torrentClose if you choose to remove the torrent without
381 *   waiting any further.
382 **********************************************************************/
383void tr_torrentStop( tr_torrent_t * );
384
385/***********************************************************************
386 * tr_getComplete, tr_getIncomplete and tr_getPartial
387 ***********************************************************************
388 * The first call after a torrent changed state returns 1. Returns 0
389 * in other cases.
390 **********************************************************************/
391int tr_getIncomplete( tr_torrent_t * tor );
392int tr_getDone( tr_torrent_t * tor );
393int tr_getComplete( tr_torrent_t * tor );
394
395
396/***********************************************************************
397 * tr_manualUpdate
398 ***********************************************************************
399 * Reannounce to tracker regardless of wait interval
400 **********************************************************************/
401void tr_manualUpdate( tr_torrent_t * );
402
403/***********************************************************************
404 * tr_torrentStat
405 ***********************************************************************
406 * Returns a pointer to an tr_stat_t structure with updated information
407 * on the torrent. The structure belongs to libtransmission (do not
408 * free it) and is guaranteed to be unchanged until the next call to
409 * tr_torrentStat.
410 * The interface should call this function every second or so in order
411 * to update itself.
412 **********************************************************************/
413typedef struct tr_stat_s tr_stat_t;
414tr_stat_t * tr_torrentStat( tr_torrent_t * );
415
416/***********************************************************************
417 * tr_torrentPeers
418 ***********************************************************************/
419typedef struct tr_peer_stat_s tr_peer_stat_t;
420tr_peer_stat_t * tr_torrentPeers( const tr_torrent_t *, int * peerCount );
421void tr_torrentPeersFree( tr_peer_stat_t *, int peerCount );
422
423/***********************************************************************
424 * tr_torrentAvailability
425 ***********************************************************************
426 * Use this to draw an advanced progress bar which is 'size' pixels
427 * wide. Fills 'tab' which you must have allocated: each byte is set
428 * to either -1 if we have the piece, otherwise it is set to the number
429 * of connected peers who have the piece.
430 **********************************************************************/
431void tr_torrentAvailability( const tr_torrent_t *, int8_t * tab, int size );
432
433void tr_torrentAmountFinished( const tr_torrent_t * tor, float * tab, int size );
434
435/***********************************************************************
436 * tr_torrentCompletion
437 ***********************************************************************
438 * Returns the completion progress for each file in the torrent as an
439 * array of floats the same size and order as in tr_info_t. Free the
440 * array when done.
441 **********************************************************************/
442float * tr_torrentCompletion( const tr_torrent_t * );
443
444float tr_torrentFileCompletion( const tr_torrent_t *, int fileIndex );
445
446uint64_t tr_torrentFileBytesCompleted( const tr_torrent_t *, int fileIndex ); 
447
448
449/***********************************************************************
450 * tr_torrentRemoveSaved
451 ***********************************************************************
452 * Removes the saved copy of a torrent file for torrents which the
453 * TR_FLAG_SAVE flag is set.
454 **********************************************************************/
455void tr_torrentRemoveSaved( tr_torrent_t * );
456
457void tr_torrentRecheck( tr_torrent_t * );
458
459/***********************************************************************
460 * tr_torrentClose
461 ***********************************************************************
462 * Frees memory allocated by tr_torrentInit. If the torrent was running,
463 * it is stopped first.
464 **********************************************************************/
465void tr_torrentClose( tr_torrent_t * );
466
467/***********************************************************************
468 * tr_info_s
469 **********************************************************************/
470
471typedef struct tr_file_s
472{
473    uint64_t length;                /* Length of the file, in bytes */
474    char     name[MAX_PATH_LENGTH]; /* Path to the file */
475    int8_t   priority;              /* TR_PRI_HIGH, _NORMAL, or _LOW */
476    int8_t   dnd;                   /* nonzero if the file shouldn't be downloaded */
477    int      firstPiece;            /* We need pieces [firstPiece... */
478    int      lastPiece;             /* ...lastPiece] to dl this file */
479    uint64_t offset;                /* file begins at the torrent's nth byte */
480}
481tr_file_t;
482
483typedef struct tr_piece_s
484{
485    uint8_t  hash[SHA_DIGEST_LENGTH];  /* pieces hash */
486    int8_t   priority;                 /* TR_PRI_HIGH, _NORMAL, or _LOW */
487    int8_t   dnd;                      /*  nonzero if the piece shouldn't be downloaded */
488}
489tr_piece_t;
490   
491struct tr_info_s
492{
493    /* Path to torrent */
494    char                 torrent[MAX_PATH_LENGTH];
495
496    /* General info */
497    uint8_t              hash[SHA_DIGEST_LENGTH];
498    char                 hashString[2*SHA_DIGEST_LENGTH+1];
499    char                 name[MAX_PATH_LENGTH];
500
501    /* Flags */
502#define TR_FLAG_SAVE    0x01 /* save a copy of the torrent file */
503#define TR_FLAG_PRIVATE 0x02 /* do not share information for this torrent */
504#define TR_FLAG_PAUSED  0x04 /* don't start the torrent when adding it */
505    int                  flags;
506
507    /* Tracker info */
508    struct
509    {
510        tr_tracker_info_t * list;
511        int                 count;
512    }                  * trackerList;
513    int                  trackerTiers;
514
515    /* Torrent info */
516    char                 comment[MAX_PATH_LENGTH];
517    char                 creator[MAX_PATH_LENGTH];
518    int                  dateCreated;
519
520    /* Pieces info */
521    int                  pieceSize;
522    int                  pieceCount;
523    uint64_t             totalSize;
524    tr_piece_t         * pieces;
525
526    /* Files info */
527    int                  multifile;
528    int                  fileCount;
529    tr_file_t          * files;
530};
531
532typedef enum
533{
534    TR_CP_INCOMPLETE,   /* doesn't have all the desired pieces */
535    TR_CP_DONE,         /* has all the pieces but the DND ones */
536    TR_CP_COMPLETE      /* has every piece */
537}
538cp_status_t;
539
540typedef enum
541{
542    TR_STATUS_CHECK_WAIT   = (1<<0), /* Waiting in queue to check files */
543    TR_STATUS_CHECK        = (1<<1), /* Checking files */
544    TR_STATUS_DOWNLOAD     = (1<<2), /* Downloading */
545    TR_STATUS_DONE         = (1<<3), /* not at 100% so can't tell the tracker
546                                        we're a seeder, but due to DND files
547                                        there's nothing we want right now */
548    TR_STATUS_SEED         = (1<<4), /* Seeding */
549    TR_STATUS_STOPPING     = (1<<5), /* Stopping -- closing connections, etc. */
550    TR_STATUS_STOPPED      = (1<<6)  /* Torrent is stopped */
551}
552torrent_status_t;
553
554#define TR_STATUS_ACTIVE \
555    (TR_STATUS_CHECK_WAIT|TR_STATUS_CHECK|TR_STATUS_DOWNLOAD|TR_STATUS_DONE|TR_STATUS_SEED)
556#define TR_STATUS_INACTIVE \
557    (TR_STATUS_STOPPING|TR_STATUS_STOPPED)
558
559/***********************************************************************
560 * tr_stat_s
561 **********************************************************************/
562struct tr_stat_s
563{
564    torrent_status_t    status;
565    cp_status_t         cpStatus;
566
567    int                 error;
568    char                errorString[128];
569    int                 cannotConnect;
570
571    tr_tracker_info_t * tracker;
572
573    float               percentComplete;
574    float               percentDone;
575    float               rateDownload;
576    float               rateUpload;
577    int                 eta;
578    int                 peersTotal;
579    int                 peersFrom[TR_PEER_FROM__MAX];
580    int                 peersUploading;
581    int                 peersDownloading;
582    int                 seeders;
583    int                 leechers;
584    int                 completedFromTracker;
585
586    uint64_t            left;
587    uint64_t            downloaded;
588    uint64_t            downloadedValid;
589    uint64_t            uploaded;
590    float               swarmspeed;
591
592#define TR_RATIO_NA  -1
593    float               ratio;
594   
595    uint64_t            startDate;
596    uint64_t            activityDate;
597};
598
599struct tr_peer_stat_s
600{
601    char    addr[INET_ADDRSTRLEN];
602    const char * client;
603   
604    int     isConnected;
605    int     from;
606    float   progress;
607    int     port;
608   
609    int     isDownloading;
610    int     isUploading;
611    float   downloadFromRate;
612    float   uploadToRate;
613};
614
615struct tr_msg_list_s
616{
617    int                    level;
618    time_t                 when;
619    char                 * message;
620    struct tr_msg_list_s * next;
621};
622
623struct tr_tracker_info_s
624{
625    char * address;
626    int    port;
627    char * announce;
628    char * scrape;
629};
630
631struct tr_handle_status_s
632{
633#define TR_NAT_TRAVERSAL_MAPPING        1
634#define TR_NAT_TRAVERSAL_MAPPED         2
635#define TR_NAT_TRAVERSAL_NOTFOUND       3
636#define TR_NAT_TRAVERSAL_ERROR          4
637#define TR_NAT_TRAVERSAL_UNMAPPING      5
638#define TR_NAT_TRAVERSAL_DISABLED       6
639#define TR_NAT_TRAVERSAL_IS_DISABLED( st ) \
640  ( TR_NAT_TRAVERSAL_DISABLED == (st) || TR_NAT_TRAVERSAL_UNMAPPING == (st) )
641    int natTraversalStatus;
642    int publicPort;
643};
644
645#ifdef __TRANSMISSION__
646#  include "internal.h"
647#endif
648
649#ifdef __cplusplus
650}
651#endif
652
653#endif
Note: See TracBrowser for help on using the repository browser.