#ifndef RPROXY_PATCH_H
|
|
#define RPROXY_PATCH_H
|
|
|
|
#include "types.h"
|
|
|
|
typedef struct {
|
|
int should_block;
|
|
size_t output_len;
|
|
long size_delta;
|
|
} patch_result_t;
|
|
|
|
patch_result_t patch_apply(
|
|
const patch_config_t *config,
|
|
const char *input,
|
|
size_t input_len,
|
|
char *output,
|
|
size_t output_capacity
|
|
);
|
|
|
|
int patch_check_for_block(
|
|
const patch_config_t *config,
|
|
const char *data,
|
|
size_t len
|
|
);
|
|
|
|
int patch_has_rules(const patch_config_t *config);
|
|
|
|
#endif
|