source: trunk/libtransmission/transmission.h @ 2356

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

split tr_stat_t's peersTotal into peersTotal and peersConnected

  • Property svn:keywords set to Date Rev Author Id
File size: 25.8 KB
Line 
1/******************************************************************************
2 * $Id: transmission.h 2356 2007-07-15 17:19:07Z 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/* set a batch of files to a particular priority. */
217void tr_torrentSetFilePriorities( tr_torrent_t        * tor,
218                                  int                 * files,
219                                  int                   fileCount,
220                                  tr_priority_t         priority );
221
222
223/* single-file form of tr_torrentPrioritizeFiles.
224 * priority must be one of TR_PRI_NORMAL, _HIGH, or _LOW */
225void tr_torrentSetFilePriority( tr_torrent_t *, int file, tr_priority_t priority );
226
227/* returns a malloc()ed array of tor->info.fileCount items,
228 * each holding a value of TR_PRI_NORMAL, _HIGH, or _LOW.
229   free the array when done. */
230tr_priority_t* tr_torrentGetFilePriorities( const tr_torrent_t * );
231
232/* single-file form of tr_torrentGetFilePriorities.
233 * returns one of TR_PRI_NORMAL, _HIGH, or _LOW. */
234tr_priority_t tr_torrentGetFilePriority( const tr_torrent_t *, int file );
235
236/* returns true if the file's `download' flag is set */
237int tr_torrentGetFileDL( const tr_torrent_t *, int file );
238
239/* set a batch of files to be downloaded or not. */
240void tr_torrentSetFileDLs ( tr_torrent_t   * tor,
241                            int            * files,
242                            int              fileCount,
243                            int              do_download );
244
245/* single-file form of tr_torrentSetFileDLs */
246void tr_torrentSetFileDL( tr_torrent_t *, int file, int do_download );
247
248
249typedef enum
250{
251    TR_CP_INCOMPLETE,   /* doesn't have all the desired pieces */
252    TR_CP_DONE,         /* has all the pieces but the DND ones */
253    TR_CP_COMPLETE      /* has every piece */
254}
255cp_status_t;
256
257cp_status_t tr_torrentGetFileStatus( const tr_torrent_t  * tor,
258                                     int                   fileIndex );
259
260
261/***********************************************************************
262 * tr_torrentRates
263 ***********************************************************************
264 * Gets the total download and upload rates
265 **********************************************************************/
266void tr_torrentRates( tr_handle_t *, float *, float * );
267
268/***********************************************************************
269 * tr_close
270 ***********************************************************************
271 * Frees memory allocated by tr_init.
272 **********************************************************************/
273void tr_close( tr_handle_t * );
274
275/***********************************************************************
276 * tr_torrentInit
277 ***********************************************************************
278 * Opens and parses torrent file at 'path'. If the file exists and is
279 * a valid torrent file, returns an handle and adds it to the list of
280 * torrents (but doesn't start it). Returns NULL and sets *error
281 * otherwise. If hash is not NULL and the torrent is already loaded
282 * then it's 20-byte hash will be copied in. If the TR_FLAG_SAVE flag
283 * is passed then a copy of the torrent file will be saved.
284 **********************************************************************/
285#define TR_EINVALID     1
286#define TR_EUNSUPPORTED 2
287#define TR_EDUPLICATE   3
288#define TR_EOTHER       666
289tr_torrent_t * tr_torrentInit( tr_handle_t  * handle,
290                               const char   * metainfo_filename,
291                               const char   * destination,
292                               int            flags,
293                               int          * setme_error );
294
295typedef struct tr_info_s tr_info_t;
296
297/**
298 * Parses the specified metainfo file.
299 *
300 * Returns TR_OK if it parsed and can be added to Transmission.
301 * Returns TR_INVALID if it couldn't be parsed.
302 * Returns TR_EDUPLICATE if it parsed but can't be added.
303 *
304 * "destination" can be NULL if you don't need to know whether
305 * or not the torrent can be added.
306 *
307 " "setme_info" can be NULL if you don't need the information.
308 * If the metainfo can be parsed and setme_info is non-NULL,
309 * it will be filled with the metadata's info.  You'll need to
310 * call tr_metainfoFree( setme_info ) when done with it.
311 */
312int tr_torrentParse( const tr_handle_t  * handle,
313                     const char         * metainfo_filename,
314                     const char         * destination,
315                     tr_info_t          * setme_info );
316
317/**
318 * Parses the cached metainfo file that matches the given hash string.
319 * See tr_torrentParse() for a description of the arguments
320 */
321int
322tr_torrentParseHash( const tr_handle_t  * h,
323                     const char         * hashStr,
324                     const char         * destination,
325                     tr_info_t          * setme_info );
326
327
328/***********************************************************************
329 * tr_torrentInitData
330 ***********************************************************************
331 * Like tr_torrentInit, except the actual torrent data is passed in
332 * instead of the filename.
333 **********************************************************************/
334tr_torrent_t * tr_torrentInitData( tr_handle_t *,
335                                   const uint8_t * data, size_t size,
336                                   const char * destination,
337                                   int flags, int * error );
338
339/***********************************************************************
340 * tr_torrentInitSaved
341 ***********************************************************************
342 * Opens and parses a torrent file as with tr_torrentInit, only taking
343 * the hash string of a saved torrent file instead of a filename. There
344 * are currently no valid flags for this function.
345 **********************************************************************/
346tr_torrent_t * tr_torrentInitSaved( tr_handle_t *,
347                                    const char * hashStr,
348                                    const char * destination,
349                                    int flags, int * error );
350
351/***********************************************************************
352 * tr_torrentDisablePex
353 ***********************************************************************
354 * Disable or enable peer exchange for this torrent. Peer exchange is
355 * enabled by default, except for private torrents where pex is
356 * disabled and cannot be enabled.
357 **********************************************************************/
358void tr_torrentDisablePex( tr_torrent_t *, int disable );
359
360/***********************************************************************
361 * tr_torrentScrape
362 ***********************************************************************
363 * Return torrent metainfo.
364 **********************************************************************/
365const tr_info_t * tr_torrentInfo( const tr_torrent_t * );
366
367/***********************************************************************
368 * tr_torrentScrape
369 ***********************************************************************
370 * Asks the tracker for the count of seeders and leechers. Returns 0
371 * and fills 's' and 'l' if successful. Otherwise returns 1 if the
372 * tracker doesn't support the scrape protocol, is unreachable or
373 * replied with some error. tr_torrentScrape may block up to 20 seconds
374 * before returning.
375 **********************************************************************/
376int tr_torrentScrape( tr_torrent_t *, int * s, int * l, int * d );
377
378void   tr_torrentSetFolder( tr_torrent_t *, const char * );
379const char * tr_torrentGetFolder( const tr_torrent_t * );
380
381/***********************************************************************
382 * tr_torrentStart
383 ***********************************************************************
384 * Starts downloading. The download is launched in a seperate thread,
385 * therefore tr_torrentStart returns immediately.
386 **********************************************************************/
387void   tr_torrentStart( tr_torrent_t * );
388
389/***********************************************************************
390 * tr_torrentStop
391 ***********************************************************************
392 * Stops downloading and notices the tracker that we are leaving. The
393 * thread keeps running while doing so.
394 * The thread will eventually be joined, either:
395 * - by tr_torrentStat when the tracker has been successfully noticed,
396 * - by tr_torrentStat if the tracker could not be noticed within 60s,
397 * - by tr_torrentClose if you choose to remove the torrent without
398 *   waiting any further.
399 **********************************************************************/
400void tr_torrentStop( tr_torrent_t * );
401
402/***********************************************************************
403 * tr_getComplete, tr_getIncomplete and tr_getPartial
404 ***********************************************************************
405 * The first call after a torrent changed state returns 1. Returns 0
406 * in other cases.
407 **********************************************************************/
408int tr_getIncomplete( tr_torrent_t * tor );
409int tr_getDone( tr_torrent_t * tor );
410int tr_getComplete( tr_torrent_t * tor );
411
412
413/***********************************************************************
414 * tr_manualUpdate
415 ***********************************************************************
416 * Reannounce to tracker regardless of wait interval
417 **********************************************************************/
418void tr_manualUpdate( tr_torrent_t * );
419
420/***********************************************************************
421 * tr_torrentStat
422 ***********************************************************************
423 * Returns a pointer to an tr_stat_t structure with updated information
424 * on the torrent. The structure belongs to libtransmission (do not
425 * free it) and is guaranteed to be unchanged until the next call to
426 * tr_torrentStat.
427 * The interface should call this function every second or so in order
428 * to update itself.
429 **********************************************************************/
430typedef struct tr_stat_s tr_stat_t;
431tr_stat_t * tr_torrentStat( tr_torrent_t * );
432
433/***********************************************************************
434 * tr_torrentPeers
435 ***********************************************************************/
436typedef struct tr_peer_stat_s tr_peer_stat_t;
437tr_peer_stat_t * tr_torrentPeers( const tr_torrent_t *, int * peerCount );
438void tr_torrentPeersFree( tr_peer_stat_t *, int peerCount );
439
440/***********************************************************************
441 * tr_torrentAvailability
442 ***********************************************************************
443 * Use this to draw an advanced progress bar which is 'size' pixels
444 * wide. Fills 'tab' which you must have allocated: each byte is set
445 * to either -1 if we have the piece, otherwise it is set to the number
446 * of connected peers who have the piece.
447 **********************************************************************/
448void tr_torrentAvailability( const tr_torrent_t *, int8_t * tab, int size );
449
450void tr_torrentAmountFinished( const tr_torrent_t * tor, float * tab, int size );
451
452/***********************************************************************
453 * tr_torrentCompletion
454 ***********************************************************************
455 * Returns the completion progress for each file in the torrent as an
456 * array of floats the same size and order as in tr_info_t. Free the
457 * array when done.
458 **********************************************************************/
459float * tr_torrentCompletion( const tr_torrent_t * );
460
461float tr_torrentFileCompletion( const tr_torrent_t *, int fileIndex );
462
463uint64_t tr_torrentFileBytesCompleted( const tr_torrent_t *, int fileIndex ); 
464
465
466/***********************************************************************
467 * tr_torrentRemoveSaved
468 ***********************************************************************
469 * Removes the saved copy of a torrent file for torrents which the
470 * TR_FLAG_SAVE flag is set.
471 **********************************************************************/
472void tr_torrentRemoveSaved( tr_torrent_t * );
473
474void tr_torrentRecheck( tr_torrent_t * );
475
476/***********************************************************************
477 * tr_torrentClose
478 ***********************************************************************
479 * Frees memory allocated by tr_torrentInit. If the torrent was running,
480 * it is stopped first.
481 **********************************************************************/
482void tr_torrentClose( tr_torrent_t * );
483
484/***********************************************************************
485 * tr_info_s
486 **********************************************************************/
487
488typedef struct tr_file_s
489{
490    uint64_t length;                /* Length of the file, in bytes */
491    char     name[MAX_PATH_LENGTH]; /* Path to the file */
492    int8_t   priority;              /* TR_PRI_HIGH, _NORMAL, or _LOW */
493    int8_t   dnd;                   /* nonzero if the file shouldn't be downloaded */
494    int      firstPiece;            /* We need pieces [firstPiece... */
495    int      lastPiece;             /* ...lastPiece] to dl this file */
496    uint64_t offset;                /* file begins at the torrent's nth byte */
497}
498tr_file_t;
499
500typedef struct tr_piece_s
501{
502    uint8_t  hash[SHA_DIGEST_LENGTH];  /* pieces hash */
503    int8_t   priority;                 /* TR_PRI_HIGH, _NORMAL, or _LOW */
504    int8_t   dnd;                      /*  nonzero if the piece shouldn't be downloaded */
505}
506tr_piece_t;
507   
508struct tr_info_s
509{
510    /* Path to torrent */
511    char                 torrent[MAX_PATH_LENGTH];
512
513    /* General info */
514    uint8_t              hash[SHA_DIGEST_LENGTH];
515    char                 hashString[2*SHA_DIGEST_LENGTH+1];
516    char                 name[MAX_PATH_LENGTH];
517
518    /* Flags */
519#define TR_FLAG_SAVE    0x01 /* save a copy of the torrent file */
520#define TR_FLAG_PRIVATE 0x02 /* do not share information for this torrent */
521#define TR_FLAG_PAUSED  0x04 /* don't start the torrent when adding it */
522    int                  flags;
523
524    /* Tracker info */
525    struct
526    {
527        tr_tracker_info_t * list;
528        int                 count;
529    }                  * trackerList;
530    int                  trackerTiers;
531
532    /* Torrent info */
533    char                 comment[MAX_PATH_LENGTH];
534    char                 creator[MAX_PATH_LENGTH];
535    int                  dateCreated;
536
537    /* Pieces info */
538    int                  pieceSize;
539    int                  pieceCount;
540    uint64_t             totalSize;
541    tr_piece_t         * pieces;
542
543    /* Files info */
544    int                  multifile;
545    int                  fileCount;
546    tr_file_t          * files;
547};
548
549typedef enum
550{
551    TR_STATUS_CHECK_WAIT   = (1<<0), /* Waiting in queue to check files */
552    TR_STATUS_CHECK        = (1<<1), /* Checking files */
553    TR_STATUS_DOWNLOAD     = (1<<2), /* Downloading */
554    TR_STATUS_DONE         = (1<<3), /* not at 100% so can't tell the tracker
555                                        we're a seeder, but due to DND files
556                                        there's nothing we want right now */
557    TR_STATUS_SEED         = (1<<4), /* Seeding */
558    TR_STATUS_STOPPING     = (1<<5), /* Stopping -- closing connections, etc. */
559    TR_STATUS_STOPPED      = (1<<6)  /* Torrent is stopped */
560}
561torrent_status_t;
562
563#define TR_STATUS_ACTIVE \
564    (TR_STATUS_CHECK_WAIT|TR_STATUS_CHECK|TR_STATUS_DOWNLOAD|TR_STATUS_DONE|TR_STATUS_SEED)
565#define TR_STATUS_INACTIVE \
566    (TR_STATUS_STOPPING|TR_STATUS_STOPPED)
567
568/***********************************************************************
569 * tr_stat_s
570 **********************************************************************/
571struct tr_stat_s
572{
573    torrent_status_t    status;
574    cp_status_t         cpStatus;
575
576    int                 error;
577    char                errorString[128];
578    int                 cannotConnect;
579
580    const tr_tracker_info_t * tracker;
581
582    float               percentComplete;
583    float               percentDone;
584    float               rateDownload;
585    float               rateUpload;
586    int                 eta;
587    int                 peersTotal;
588    int                 peersConnected;
589    int                 peersFrom[TR_PEER_FROM__MAX];
590    int                 peersUploading;
591    int                 peersDownloading;
592    int                 seeders;
593    int                 leechers;
594    int                 completedFromTracker;
595
596    uint64_t            left;
597    uint64_t            downloaded;
598    uint64_t            downloadedValid;
599    uint64_t            uploaded;
600    float               swarmspeed;
601
602#define TR_RATIO_NA  -1
603    float               ratio;
604   
605    uint64_t            startDate;
606    uint64_t            activityDate;
607};
608
609struct tr_peer_stat_s
610{
611    char    addr[INET_ADDRSTRLEN];
612    const char * client;
613   
614    int     isConnected;
615    int     from;
616    float   progress;
617    int     port;
618   
619    int     isDownloading;
620    int     isUploading;
621    float   downloadFromRate;
622    float   uploadToRate;
623};
624
625struct tr_msg_list_s
626{
627    int                    level;
628    time_t                 when;
629    char                 * message;
630    struct tr_msg_list_s * next;
631};
632
633struct tr_tracker_info_s
634{
635    char * address;
636    int    port;
637    char * announce;
638    char * scrape;
639};
640
641struct tr_handle_status_s
642{
643#define TR_NAT_TRAVERSAL_MAPPING        1
644#define TR_NAT_TRAVERSAL_MAPPED         2
645#define TR_NAT_TRAVERSAL_NOTFOUND       3
646#define TR_NAT_TRAVERSAL_ERROR          4
647#define TR_NAT_TRAVERSAL_UNMAPPING      5
648#define TR_NAT_TRAVERSAL_DISABLED       6
649#define TR_NAT_TRAVERSAL_IS_DISABLED( st ) \
650  ( TR_NAT_TRAVERSAL_DISABLED == (st) || TR_NAT_TRAVERSAL_UNMAPPING == (st) )
651    int natTraversalStatus;
652    int publicPort;
653};
654
655#ifdef __TRANSMISSION__
656#  include "internal.h"
657#endif
658
659#ifdef __cplusplus
660}
661#endif
662
663#endif
Note: See TracBrowser for help on using the repository browser.