/[projects]/misc/downloadd/dblayer.h
ViewVC logotype

Annotation of /misc/downloadd/dblayer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (hide annotations) (download)
Wed Sep 16 20:13:41 2009 UTC (14 years, 8 months ago) by torben
File MIME type: text/plain
File size: 1872 byte(s)
Added some old code for storage/ reference


1 torben 328 /***************************************************************************
2     * Copyright (C) 2006 by Torben H. Nielsen *
3     * torben@t-hoerup.dk *
4     * *
5     * This program is free software; you can redistribute it and/or modify *
6     * it under the terms of the GNU General Public License as published by *
7     * the Free Software Foundation; either version 2 of the License, or *
8     * (at your option) any later version. *
9     * *
10     * This program is distributed in the hope that it will be useful, *
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13     * GNU General Public License for more details. *
14     * *
15     * You should have received a copy of the GNU General Public License *
16     * along with this program; if not, write to the *
17     * Free Software Foundation, Inc., *
18     * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19     ***************************************************************************/
20    
21     #ifndef DBLAYER_H
22     #define DBLAYER_H
23    
24     typedef struct {
25     int id;
26     char URL[200];
27     char filename[60];
28     } dlrecord;
29    
30     int nextdownload(dlrecord *dl);
31     int sql_worker(dlrecord *dl, char *sql);
32     int sql_update_bytecount(dlrecord *record, long long bytes);
33     int sql_start_download(dlrecord *record);
34     int sql_abort_download(dlrecord *record, char *message);
35     int sql_stop_download(dlrecord *record);
36    
37     #endif //DBLAYER_H

  ViewVC Help
Powered by ViewVC 1.1.20