Closed Bug 1678583 Opened 4 years ago Closed 3 years ago

Cleanup FOG FFI bridge & IDL layer

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: janerik, Assigned: janerik)

References

Details

(Whiteboard: [telemetry:glean-rs:m6])

Attachments

(4 files)

We don't use the same types consistently, e.g. we should use AUTF8String in the IDL definition and pass through references to some type of nsString to Rust to use them there instead of C-style char* "strings".
Plus some other style cleanups.

Assignee: nobody → jrediger
Blocks: 1677455

This touches multiple parts at once, including:

  • Remove usage of this-> in C++ code
  • Use nsACString across the FFI (no need for ffi-support anymore)
  • Use AUTF8String in the IDL definition, so we can pass it on unmodified.

Depends on D99033

Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0e40c4b34ec7
Use a proper bool type in return. r=chutten
https://hg.mozilla.org/integration/autoland/rev/7346565f35b4
Clean up FFI bridge & IDL layer. r=chutten
https://hg.mozilla.org/integration/autoland/rev/555eb48642be
Apply same cleanup to boolean metric. r=chutten
https://hg.mozilla.org/integration/autoland/rev/1e26d2cecfe7
Provide same optional API on datetime & timespan.  r=chutten
Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d4be67b807b6
Use a proper bool type in return. r=chutten
https://hg.mozilla.org/integration/autoland/rev/20d3051ed77d
Clean up FFI bridge & IDL layer. r=chutten
https://hg.mozilla.org/integration/autoland/rev/6948d67082a3
Apply same cleanup to boolean metric. r=chutten
https://hg.mozilla.org/integration/autoland/rev/8aea353c110c
Provide same optional API on datetime & timespan.  r=chutten
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: