Ready to start C++ifying a virtual base...
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
This commit is contained in:
@ -51,7 +51,7 @@ struct CacheEntry_t
|
|||||||
~CacheEntry_t();
|
~CacheEntry_t();
|
||||||
|
|
||||||
std::unique_ptr< const DilloUrl > Url; /**< Cached Url. Url is used as a primary Key */
|
std::unique_ptr< const DilloUrl > Url; /**< Cached Url. Url is used as a primary Key */
|
||||||
std::string TypeDet; /**< MIME type string (detected from data) */
|
std::string TypeDet; /**< MIME type string (detected from data) */
|
||||||
char *TypeHdr; /**< MIME type string as from the HTTP Header */
|
char *TypeHdr; /**< MIME type string as from the HTTP Header */
|
||||||
char *TypeMeta; /**< MIME type string from META HTTP-EQUIV */
|
char *TypeMeta; /**< MIME type string from META HTTP-EQUIV */
|
||||||
char *TypeNorm; /**< MIME type string normalized */
|
char *TypeNorm; /**< MIME type string normalized */
|
||||||
|
@ -7,22 +7,22 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
typedef struct Decode {
|
struct Decode {
|
||||||
char *buffer;
|
char *buffer;
|
||||||
Dstr *leftover;
|
Dstr *leftover;
|
||||||
void *state;
|
void *state;
|
||||||
Dstr *(*decode) (struct Decode *dc, const char *instr, int inlen);
|
Dstr *(*decode) (struct Decode *dc, const char *instr, int inlen);
|
||||||
void (*free) (struct Decode *dc);
|
void (*free) (struct Decode *dc);
|
||||||
} Decode;
|
};
|
||||||
|
|
||||||
/* I'm not going to shoehorn the decoders into the same form anymore. They
|
/* I'm not going to shoehorn the decoders into the same form anymore. They
|
||||||
* can evolve independently.
|
* can evolve independently.
|
||||||
*/
|
*/
|
||||||
typedef struct DecodeTransfer {
|
struct DecodeTransfer {
|
||||||
Dstr *leftover;
|
Dstr *leftover;
|
||||||
void *state;
|
void *state;
|
||||||
bool_t finished; /**< has the terminating chunk been seen? */
|
bool_t finished; /**< has the terminating chunk been seen? */
|
||||||
} DecodeTransfer;
|
};
|
||||||
|
|
||||||
DecodeTransfer *a_Decode_transfer_init(const char *format);
|
DecodeTransfer *a_Decode_transfer_init(const char *format);
|
||||||
Dstr *a_Decode_transfer_process(DecodeTransfer *dc, const char *instr,
|
Dstr *a_Decode_transfer_process(DecodeTransfer *dc, const char *instr,
|
||||||
|
Reference in New Issue
Block a user