1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00
wget/src/warc.h

28 lines
1.0 KiB
C
Raw Normal View History

2011-11-04 17:25:00 -04:00
/* Declarations of WARC helper methods. */
#ifndef WARC_H
#define WARC_H
#include "host.h"
2012-05-05 09:24:35 -04:00
void warc_init (void);
void warc_close (void);
2011-11-04 17:25:00 -04:00
void warc_uuid_str (char *id_str);
2014-11-24 04:41:08 -05:00
char * warc_timestamp (char *timestamp, size_t timestamp_size);
2012-05-05 09:24:35 -04:00
FILE * warc_tempfile (void);
2011-11-04 17:25:00 -04:00
2012-05-16 15:39:24 -04:00
bool warc_write_request_record (char *url, char *timestamp_str,
char *concurrent_to_uuid, ip_address *ip, FILE *body, off_t payload_offset);
bool warc_write_response_record (char *url, char *timestamp_str,
char *concurrent_to_uuid, ip_address *ip, FILE *body, off_t payload_offset,
char *mime_type, int response_code, char *redirect_location);
bool warc_write_resource_record (char *resource_uuid, const char *url,
const char *timestamp_str, const char *concurrent_to_uuid, ip_address *ip,
const char *content_type, FILE *body, off_t payload_offset);
bool warc_write_metadata_record (char *record_uuid, const char *url,
const char *timestamp_str, const char *concurrent_to_uuid, ip_address *ip,
const char *content_type, FILE *body, off_t payload_offset);
2011-11-04 17:25:00 -04:00
#endif /* WARC_H */