Skip to content

vquic: add Curl_ prefix to some global functions - #22254

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/vquic-prefix
Closed

vquic: add Curl_ prefix to some global functions#22254
bagder wants to merge 3 commits into
masterfrom
bagder/vquic-prefix

Conversation

@bagder

@bagder bagder commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@bagder bagder added the tidy-up label Jul 3, 2026
@github-actions github-actions Bot added the HTTP/3 h3 or quic related label Jul 3, 2026
@bagder
bagder marked this pull request as ready for review July 3, 2026 07:45
@bagder
bagder requested a review from Copilot July 3, 2026 07:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes internal vquic (HTTP/3/QUIC) helper symbols by adding the Curl_ prefix to a set of previously unprefixed global functions/types, reducing the chance of global symbol collisions and aligning with libcurl internal naming patterns.

Changes:

  • Renamed several vquic_* global helper functions to Curl_vquic_* in the vquic implementation and internal header.
  • Updated vquic callers across the quiche and ngtcp2 backends to use the new names.
  • Renamed the packet-receive callback typedef and the HTTP/3 error-to-string helper to use the Curl_ prefix.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/vquic/vquic.c Renames vquic global helpers to Curl_vquic_* and updates internal call sites.
lib/vquic/vquic_int.h Updates internal declarations/macros/typedefs to match the new Curl_vquic_* names.
lib/vquic/cf-quiche.c Updates quiche backend to call renamed vquic helpers.
lib/vquic/cf-ngtcp2.c Updates ngtcp2 backend to call renamed vquic helpers.
lib/vquic/cf-ngtcp2-proxy.c Updates proxy code path to use renamed HTTP/3 error string helper.
lib/vquic/cf-ngtcp2-cmn.c Updates common ngtcp2 code to call renamed vquic helpers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/vquic/vquic.c
@bagder bagder closed this in 2d38f44 Jul 3, 2026
@bagder
bagder deleted the bagder/vquic-prefix branch July 3, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTTP/3 h3 or quic related tidy-up

Development

Successfully merging this pull request may close these issues.

2 participants