Skip to content

refactor(host): name the image handle type and its special values - #8

Merged
hzqst merged 1 commit into
mainfrom
refactor/image-id
Nov 24, 2026
Merged

hzqst merged 1 commit into
mainfrom
refactor/image-id

Conversation

@hzqst

@hzqst hzqst commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • typedef int32_t SteamBridgeImageId; for the image handles of SteamBridge_FriendsGetAvatar, SteamBridge_UtilsGetImageSize and SteamBridge_UtilsGetImageRGBA.
  • SB_IMAGE_NONE (0, the user has no avatar) and SB_IMAGE_LOADING (-1, Steam is still loading it) replace the bare values in the header comment, the implementation and the tests. The mock runtime keeps Steam's raw values, since it stands for steam_api.
  • The handle stays an int32_t: exported symbols and the ABI are unchanged.

Verification

Source-only change (type name and constants), so compile only:

  • Windows x64 / x86 Release: build passes.
  • Linux x64 / x86 Release (WSL Ubuntu 24.04, GCC): build passes.
  • format-check: 14 files, 0 with differences.

🤖 Generated with Claude Code

SteamBridgeImageId names the image handles of SteamBridge_FriendsGetAvatar and
SteamBridge_UtilsGetImage*, and SB_IMAGE_NONE / SB_IMAGE_LOADING replace the
bare 0 and -1. The handle stays an int32_t, so the ABI does not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hzqst
hzqst merged commit 0750fc7 into main Nov 24, 2026
2 checks passed
@hzqst
hzqst deleted the refactor/image-id branch November 24, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant