diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-29 15:42:53 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-29 15:42:53 +0000 |
commit | 4f5776a8fac840619f01a61a3655a4608e04d9fd (patch) | |
tree | b9bb0b6ce0eb39118ed5646f66687a616890248a /src/htscore.h | |
parent | 8adeadbdb63e1cb8e4d62fe400ffefada9122d86 (diff) |
Big cleanup: introducing cleaner lien_adrfilsave and lien_adrfil structures holding address/uri or address/uri/filename rather than passing opaque char* of unknown size.
Diffstat (limited to 'src/htscore.h')
-rw-r--r-- | src/htscore.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/htscore.h b/src/htscore.h index 35593d1..774b1d7 100644 --- a/src/htscore.h +++ b/src/htscore.h @@ -152,6 +152,26 @@ struct lien_url { int testmode; // mode test uniquement, envoyer juste un head! }; +// adr, fil +#ifndef HTS_DEF_FWSTRUCT_lien_adrfil +#define HTS_DEF_FWSTRUCT_lien_adrfil +typedef struct lien_adrfil lien_adrfil; +#endif +struct lien_adrfil { + char adr[HTS_URLMAXSIZE * 2]; // adresse + char fil[HTS_URLMAXSIZE * 2]; // nom du fichier distant +}; + +// adr, fil, save +#ifndef HTS_DEF_FWSTRUCT_lien_adrfilsave +#define HTS_DEF_FWSTRUCT_lien_adrfilsave +typedef struct lien_adrfilsave lien_adrfilsave; +#endif +struct lien_adrfilsave { + lien_adrfil af; + char save[HTS_URLMAXSIZE * 2]; // nom à sauver sur disque (avec chemin éventuel) +}; + // chargement de fichiers en 'arrière plan' #ifndef HTS_DEF_FWSTRUCT_lien_back #define HTS_DEF_FWSTRUCT_lien_back @@ -398,7 +418,6 @@ int htsAddLink(htsmoduleStruct * str, char *link); // Void void voidf(void); - #define HTS_TOPINDEX "TOP_INDEX_HTTRACK" #endif |