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

Demo: Usage of the configuration functions #31

Open
orontee opened this issue Aug 5, 2023 · 1 comment
Open

Demo: Usage of the configuration functions #31

orontee opened this issue Aug 5, 2023 · 1 comment

Comments

@orontee
Copy link

orontee commented Aug 5, 2023

inkview.h advertise for many functions related to "configuration":

iconfig * OpenConfig(const char *path, iconfigedit *ce);
int RefreshConfig(iconfig **cfg); //update memory copy config from his file
int SaveConfig(iconfig *cfg);
void CloseConfig(iconfig *cfg);
void CloseConfigNoSave(iconfig *cfg);

int ReadInt(iconfig *cfg, const char *name, int deflt);
long long ReadLongLong(iconfig *cfg, const char *name, long long deflt);
const char *ReadString(iconfig *cfg, const char *name, const char *deflt);
const char *ReadSecret(iconfig *cfg, const char *name, const char *deflt);
...

It would be interesting to have a demo dedicated to those functions. I could not find any public repository using this part of the SDK.

@orontee
Copy link
Author

orontee commented Aug 5, 2023

I finally found one application using those functions: https://github.com/JuanJakobo/Pocketbook-Read-offline/tree/main
... and successfully used most of the config related stuff there: https://github.com/orontee/taranis/blob/v1.4.0-rc0/src/config.cc

@orontee orontee changed the title Demo: Usage of the configuration facilities Demo: Usage of the configuration functions Aug 5, 2023
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

No branches or pull requests

1 participant