prima icon indicating copy to clipboard operation
prima copied to clipboard

Should `prima_get_rc_string` be exposed in the C public API?

Open zaikunzhang opened this issue 1 year ago • 1 comments

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?

https://github.com/libprima/prima/blob/da25bfdd47e9c98b7c7f21336a49cfce16f9e038/c/include/prima/prima.h#L77-L79

Thank you for taking a look.

Best regards, Zaikun

zaikunzhang avatar Apr 09 '24 04:04 zaikunzhang

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

jschueller avatar Sep 04 '24 08:09 jschueller