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.

ced_c.h 693B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef RSPAMD_CED_C_H
  2. #define RSPAMD_CED_C_H
  3. #include <stdbool.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. enum CedTextCorpusType {
  8. CED_WEB_CORPUS,
  9. CED_XML_CORPUS,
  10. CED_QUERY_CORPUS,
  11. CED_EMAIL_CORPUS,
  12. CED_NUM_CORPA,
  13. };
  14. /*
  15. * XXX: Rspamd addition: it actually returns Mime format of the encoding
  16. */
  17. const char *ced_encoding_detect (const char *text, int text_length,
  18. const char *url_hint,
  19. const char *http_charset_hint,
  20. const char *meta_charset_hint,
  21. const int encoding_hint,
  22. enum CedTextCorpusType corpus_type,
  23. bool ignore_7bit_mail_encodings,
  24. int *bytes_consumed, bool *is_reliable);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif