~ubuntu-branches/ubuntu/precise/transmission/precise

« back to all changes in this revision

Viewing changes to libtransmission/list.c

  • Committer: Bazaar Package Importer
  • Author(s): Leo Costela
  • Date: 2009-07-25 20:20:23 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (2.1.19 sid)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20090725202023-9xmfycsfotr430nv
* debian/rules: patch before configure
* debian/patches: add patch to not build libevent, regardless of
  linking (really, really closes: #537868)
* debian/changelog: fix dates

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: list.c 7788 2009-01-24 02:33:25Z charles $
 
10
 * $Id: list.c 8762 2009-06-30 16:40:34Z charles $
11
11
 */
12
12
 
13
13
#include "transmission.h"
165
165
 * insert/remove operations
166
166
 */
167
167
 
168
 
void
169
 
__tr_list_init( struct __tr_list * head )
170
 
{
171
 
    head->next = head;
172
 
    head->prev = head;
173
 
}
174
168
 
175
169
void
176
170
__tr_list_insert( struct __tr_list * list,
193
187
 
194
188
 
195
189
void
196
 
__tr_list_append( struct __tr_list * head,
197
 
                  struct __tr_list * list)
198
 
{
199
 
    __tr_list_insert( list, head->prev, head );
200
 
}
201
 
 
202
 
void
203
190
__tr_list_remove( struct __tr_list * head )
204
191
{
205
192
    __tr_list_splice( head->prev, head->next );