/[axel]/branches/3.x-broken/src/axel.c
ViewVC logotype

Diff of /branches/3.x-broken/src/axel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 73 by phihag-guest, Mon Dec 29 11:55:56 2008 UTC revision 79 by phihag-guest, Tue Dec 30 20:13:35 2008 UTC
# Line 30  static void axel_teardown(axel_t* axel); Line 30  static void axel_teardown(axel_t* axel);
30  static void axel_save_state(axel_t* axel);  static void axel_save_state(axel_t* axel);
31  static void axel_set_state(axel_t* axel, int state);  static void axel_set_state(axel_t* axel, int state);
32  static void axel_update_display(const axel_t* axel);  static void axel_update_display(const axel_t* axel);
33    static void axel_startthread(conn_t* conn);
34    
35  /**  /**
36  * Add a URL. urlstr is a pointer to a string specified by the user  * Add a URL. urlstr is a pointer to a string specified by the user
# Line 211  static void axel_set_state(axel_t* axel, Line 212  static void axel_set_state(axel_t* axel,
212          axel_update_display();          axel_update_display();
213  }  }
214    
215    // Start a new thread that immediately executes afterwards.
216    _Bool axel_startthread(conn_t* c) {
217            if (pthread_create(conn->thread, NULL, conn_threadstart, c) != 0) {
218                    axel_message(conn->axel, critical, _("Thread creation failed"));
219                    return false;
220            }
221    
222            return true;
223    }
224    
225    
226    

Legend:
Removed from v.73  
changed lines
  Added in v.79

  ViewVC Help
Powered by ViewVC 1.1.5