lighttpd 1.4.x https://www.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. #ifndef _KEY_VALUE_H_
  2. #define _KEY_VALUE_H_
  3. #include "first.h"
  4. #include "base_decls.h"
  5. #include "buffer.h"
  6. struct burl_parts_t; /* declaration */
  7. struct cond_match_t; /* declaration */
  8. struct pcre_keyvalue; /* declaration */
  9. typedef struct pcre_keyvalue_ctx {
  10. struct cond_match_t *cache;
  11. struct burl_parts_t *burl;
  12. int cond_match_count;
  13. int m;
  14. } pcre_keyvalue_ctx;
  15. typedef struct {
  16. struct pcre_keyvalue *kv;
  17. uint32_t used;
  18. uint16_t x0;
  19. uint16_t x1;
  20. } pcre_keyvalue_buffer;
  21. __attribute_cold__
  22. pcre_keyvalue_buffer *pcre_keyvalue_buffer_init(void);
  23. __attribute_cold__
  24. int pcre_keyvalue_buffer_append(log_error_st *errh, pcre_keyvalue_buffer *kvb, const buffer *key, const buffer *value);
  25. __attribute_cold__
  26. void pcre_keyvalue_buffer_free(pcre_keyvalue_buffer *kvb);
  27. handler_t pcre_keyvalue_buffer_process(const pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, const buffer *input, buffer *result);
  28. __attribute_cold__
  29. void pcre_keyvalue_burl_normalize_key(buffer *k, buffer *t);
  30. __attribute_cold__
  31. void pcre_keyvalue_burl_normalize_value(buffer *v, buffer *t);
  32. #endif