nghttp2_priority_spec.h 597 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2015-2018 Alibaba Group Holding Limited
  3. */
  4. #ifndef NGHTTP2_PRIORITY_SPEC_H
  5. #define NGHTTP2_PRIORITY_SPEC_H
  6. #ifdef HAVE_CONFIG_H
  7. #include <config.h>
  8. #endif /* HAVE_CONFIG_H */
  9. #include "nghttp2.h"
  10. /*
  11. * This function normalizes pri_spec->weight if it is out of range.
  12. * If pri_spec->weight is less than NGHTTP2_MIN_WEIGHT, it is set to
  13. * NGHTTP2_MIN_WEIGHT. If pri_spec->weight is larger than
  14. * NGHTTP2_MAX_WEIGHT, it is set to NGHTTP2_MAX_WEIGHT.
  15. */
  16. void nghttp2_priority_spec_normalize_weight(nghttp2_priority_spec *pri_spec);
  17. #endif /* NGHTTP2_PRIORITY_SPEC_H */