Skip to content

Should prima_get_rc_string be exposed in the C public API? #188

Open

Description

@zaikunzhang

Hi @nbelakovski ,

Why do we need prima_get_rc_string in the C public API? Shouldn't it be hidden from the users? We expect the users to get the string from result.message, no?

// Function to get the message string corresponding to a return code
PRIMAC_API
const char *prima_get_rc_string(const prima_rc_t rc);

Thank you for taking a look.

Best regards,
Zaikun

Activity

  1. added
    c
    on Apr 9, 2024
  2. jschueller commented on Sep 4, 2024

    @jschueller
    Collaborator

    I think the point was to hide the implementation of the result struct which could be an opaque struct at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions