Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Highlevel-API Improvements #2315

Merged
merged 4 commits into from
Jan 19, 2019
Merged

Conversation

kodebach
Copy link
Member

These are further improvements to the highlevel-API as requested in #2293.

@markus2330 please review my pull request

@@ -253,7 +253,7 @@ void elektraFatalError (Elektra * elektra, ElektraError * fatalError);
*
**************************************/

const char * elektraGetValue (Elektra * elektra, const char * name);
const char * elektraGetRawString (Elektra * elektra, const char * name);
Copy link
Member Author

Choose a reason for hiding this comment

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

@markus2330 I didn't remove this function, because elektraSetRawString (previously elektraSetValue) is actually needed for code-generation and having a public setter without the corresponding getter seemed weird. I think RawString describes better what the function actually does.

Also I thought it might be useful to have this function, if a user wants to extend the API with a custom type (e.g. something like BigInteger from Java). Users could write their own functions that check the type with elektraGetType and the use elektraGetRawString followed by some custom conversion.

@markus2330 markus2330 merged commit 68ae37c into ElektraInitiative:master Jan 19, 2019
@markus2330
Copy link
Contributor

Thank you, great work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants