Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • W wireplumber
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 143
    • Issues 143
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PipeWirePipeWire
  • wireplumber
  • Merge requests
  • !158
The source project of this merge request has been removed.

Export all functions and variables in the gir file

Merged Ghost User requested to merge (removed):gir-fixes into master Jun 02, 2021
  • Overview 5
  • Pipelines 0
  • Changes 28

Summary:

  • Added brief descriptions for all public functions
  • Added wp.h to the list of introspected sources
  • Added a somewhat hacky solution to get the scanner to notice static const variables like WP_OBJECT_FEATURES_ALL as constant definitions. The scanner only considers #define statements to be constants, and ignores global variables, so I did some trickery by adding a #define/#undef pair to wp-gtkdoc.h for these variables. It would probably be nicer if g-ir-scanner was able to recognize constant variables at some point...

I was testing by installing the gir and typelib and then looking at the output from this type of gjs call to verify the symbols were there:

gjs -c 'print(Object.keys(imports.gi.Wp))'
gjs -c 'print(Object.keys(imports.gi.Wp.Core.prototype))'
gjs -c 'print(Object.keys(imports.gi.Wp.Object.prototype))'
gjs -c 'print(Object.keys(imports.gi.Wp.Iterator.prototype))'
......

Fixes #31 (closed)

Edited Jun 02, 2021 by Ghost User
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gir-fixes