mirror of
https://github.com/xroche/httrack.git
synced 2026-06-25 03:27:22 +03:00
Compare commits
4 Commits
docs/api-h
...
cleanup/de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76260d5e6e | ||
|
|
5d0913dfce | ||
|
|
9b7601a987 | ||
|
|
4ec38c4e66 |
@@ -369,10 +369,6 @@ char *readfile_or(const char *fil, const char *defaultdata);
|
|||||||
void check_rate(TStamp stat_timestart, int maxrate);
|
void check_rate(TStamp stat_timestart, int maxrate);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// links
|
|
||||||
int liens_record(char *adr, char *fil, char *save, char *former_adr,
|
|
||||||
char *former_fil, char *codebase);
|
|
||||||
|
|
||||||
/* Backing (download-slot) scheduler. Operate on the back[] ring (struct_back).
|
/* Backing (download-slot) scheduler. Operate on the back[] ring (struct_back).
|
||||||
Not thread-safe; call from the single crawl loop. */
|
Not thread-safe; call from the single crawl loop. */
|
||||||
|
|
||||||
|
|||||||
@@ -2580,8 +2580,8 @@ HTSEXT_API TStamp mtime_local(void) {
|
|||||||
assert(! "gettimeofday");
|
assert(! "gettimeofday");
|
||||||
}
|
}
|
||||||
|
|
||||||
return (TStamp) (((TStamp) tv.tv_sec * (TStamp) 1000)
|
return (TStamp) (((TStamp) tv.tv_sec * (TStamp) 1000) +
|
||||||
+ ((TStamp) tv.tv_usec / (TStamp) 1000000));
|
((TStamp) tv.tv_usec / (TStamp) 1000));
|
||||||
#else
|
#else
|
||||||
struct timeb B;
|
struct timeb B;
|
||||||
ftime(&B);
|
ftime(&B);
|
||||||
|
|||||||
@@ -254,15 +254,6 @@ HTSEXT_API int htswrap_add(httrackp * opt, const char *name, void *fct);
|
|||||||
or 0 if none or unknown. */
|
or 0 if none or unknown. */
|
||||||
HTSEXT_API uintptr_t htswrap_read(httrackp * opt, const char *name);
|
HTSEXT_API uintptr_t htswrap_read(httrackp * opt, const char *name);
|
||||||
|
|
||||||
/** @warning No implementation is linked into the library; calling this fails to
|
|
||||||
link. For per-callback user data use the CHAIN_FUNCTION() ARGUMENT and
|
|
||||||
CALLBACKARG_USERDEF() instead. */
|
|
||||||
HTSEXT_API int htswrap_set_userdef(httrackp * opt, void *userdef);
|
|
||||||
|
|
||||||
/** @warning No implementation is linked into the library; calling this fails to
|
|
||||||
link. Read per-callback user data with CALLBACKARG_USERDEF() instead. */
|
|
||||||
HTSEXT_API void *htswrap_get_userdef(httrackp * opt);
|
|
||||||
|
|
||||||
/* Internal library allocators, if a different libc is being used by the client */
|
/* Internal library allocators, if a different libc is being used by the client */
|
||||||
/** strdup() through the library allocator. Returns a heap copy freed with
|
/** strdup() through the library allocator. Returns a heap copy freed with
|
||||||
hts_free(), or NULL on failure. */
|
hts_free(), or NULL on failure. */
|
||||||
@@ -584,12 +575,6 @@ HTSEXT_API char *unescape_http(char *const catbuff, const size_t size, const cha
|
|||||||
space. Returns @p catbuff. */
|
space. Returns @p catbuff. */
|
||||||
HTSEXT_API char *unescape_http_unharm(char *const catbuff, const size_t size, const char *s, const int no_high);
|
HTSEXT_API char *unescape_http_unharm(char *const catbuff, const size_t size, const char *s, const int no_high);
|
||||||
|
|
||||||
/** @warning No implementation is linked into the library; calling this fails to
|
|
||||||
link. */
|
|
||||||
HTSEXT_API char *antislash_unescaped(char *catbuff, const char *s);
|
|
||||||
|
|
||||||
HTSEXT_API void escape_remove_control(char *s);
|
|
||||||
|
|
||||||
/** Determine the MIME type of local file name @p fil into @p s (capacity
|
/** Determine the MIME type of local file name @p fil into @p s (capacity
|
||||||
@p ssize): user --assume rules, then ".html", then the built-in extension
|
@p ssize): user --assume rules, then ".html", then the built-in extension
|
||||||
table. @p flag != 0 forces a fallback type. @return 1 if a type was written,
|
table. @p flag != 0 forces a fallback type. @return 1 if a type was written,
|
||||||
|
|||||||
Reference in New Issue
Block a user