Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add basics os&cpu information to C interface and example #1072

Merged
merged 7 commits into from
Sep 26, 2023

Conversation

TigerLau1985
Copy link
Contributor

  • fixed: build c interface failed on Windows
  • add: some functions to get basics OS&CPU information

src/c_interface.rs Outdated Show resolved Hide resolved
src/c_interface.rs Outdated Show resolved Hide resolved
src/c_interface.rs Outdated Show resolved Hide resolved
src/c_interface.rs Outdated Show resolved Hide resolved
src/sysinfo.h Outdated
void sysinfo_rstring_free(RString str);

Copy link
Owner

Choose a reason for hiding this comment

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

Please remove this extra line.

Copy link
Owner

Choose a reason for hiding this comment

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

This is not resolved.

src/sysinfo.h Outdated Show resolved Hide resolved
examples/simple.c Outdated Show resolved Hide resolved
@GuillaumeGomez
Copy link
Owner

Thanks for the add! Code style to be improved a bit but otherwise looks good.

src/c_interface.rs Outdated Show resolved Hide resolved
src/c_interface.rs Outdated Show resolved Hide resolved
src/c_interface.rs Outdated Show resolved Hide resolved
src/sysinfo.h Outdated Show resolved Hide resolved
@GuillaumeGomez
Copy link
Owner

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 68a25cc into GuillaumeGomez:master Sep 26, 2023
67 checks passed
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.

2 participants