Skip to content
Snippets Groups Projects

qt: pass char * to go functions from cpp helpers

Merged jkito requested to merge jkito/bitmask-vpn:issue-845 into main

instead of converting QString to GoString struct which is error prone, this changes SetTransport and SetLable in backend.go to receive a char* as arg. which is then converted to Go string using the C.GoString helper

this fixes a bug on macOS where changing preference options did not have any effect as the conversion of string was not working and empty values were passed to Go functions

fixes #845 (closed) and potentially #860 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading