qlog_event_helpers.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2023-2024 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OSSL_QLOG_EVENT_HELPERS_H
  10. # define OSSL_QLOG_EVENT_HELPERS_H
  11. # include <openssl/ssl.h>
  12. # include "internal/qlog.h"
  13. # include "internal/quic_types.h"
  14. # include "internal/quic_channel.h"
  15. # include "internal/quic_txpim.h"
  16. # include "internal/quic_record_tx.h"
  17. # include "internal/quic_wire_pkt.h"
  18. /* connectivity:connection_started */
  19. void ossl_qlog_event_connectivity_connection_started(QLOG *qlog,
  20. const QUIC_CONN_ID *init_dcid);
  21. /* connectivity:connection_state_updated */
  22. void ossl_qlog_event_connectivity_connection_state_updated(QLOG *qlog,
  23. uint32_t old_state,
  24. uint32_t new_state,
  25. int handshake_complete,
  26. int handshake_confirmed);
  27. /* connectivity:connection_closed */
  28. void ossl_qlog_event_connectivity_connection_closed(QLOG *qlog,
  29. const QUIC_TERMINATE_CAUSE *tcause);
  30. /* recovery:packet_lost */
  31. void ossl_qlog_event_recovery_packet_lost(QLOG *qlog,
  32. const QUIC_TXPIM_PKT *tpkt);
  33. /* transport:packet_sent */
  34. void ossl_qlog_event_transport_packet_sent(QLOG *qlog,
  35. const QUIC_PKT_HDR *hdr,
  36. QUIC_PN pn,
  37. const OSSL_QTX_IOVEC *iovec,
  38. size_t numn_iovec,
  39. uint64_t datagram_id);
  40. /* transport:packet_received */
  41. void ossl_qlog_event_transport_packet_received(QLOG *qlog,
  42. const QUIC_PKT_HDR *hdr,
  43. QUIC_PN pn,
  44. const OSSL_QTX_IOVEC *iovec,
  45. size_t numn_iovec,
  46. uint64_t datagram_id);
  47. #endif