1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#ifndef _cdcc_h_
#define _cdcc_h_
/*
* Routines for Cdcc
*
* $Id: cdcc.h,v 1.2 2001-07-01 09:11:31 f Exp $
*/
#define CDCC_VERSION "1.8"
/* This Mess, is the struct lists for cdcc.c */
/* My Holding List for sending Files */
typedef struct FilesStru
{
struct FilesStru *next; /* Pointer to next File */
char *path; /* Store the Path */
char *file; /* Store Filename */
float size; /* Store size of file */
} Files;
/* Your Linked List of Offer Packs */
typedef struct PacksStru
{
struct PacksStru *next; /* Pointer to next Pack */
char *description; /* Description of Pack */
int totalfiles; /* Total Files in Pack */
float totalbytes; /* Total Bytes in Pack */
int gets; /* How many people have requested Pack */
float minspeed; /* Minimum DCC speed in kB/s */
Files *files; /* Pointer to List of Files in Pack */
} Packs;
/* Send Queue */
typedef struct QueueStru
{
struct QueueStru *next;
char *file;
char *nick;
int flag; /* 1=send, 2=resend */
int server;
} FileQueue;
typedef struct CdccCommandStr
{
char *command; /* Cdcc command name */
void (*function)(); /* Corresponding function */
} CdccCom;
#endif /* _cdcc_h_ */
|