4 Commits

Author SHA1 Message Date
Armin Ronacher 786dd8a677 feat: Expose envelopes to C and change refcounting semantics (#71)
This exposes the envelopes to the C layer and changes the way we handle memory on
the C layer.

The tests showed we used memory management already incorrectly around our own
API and from the user's perspective it's nicer for lookups in structures to return
borrowed values instead of owned ones. This now removes sentry_value_free and
instead adds sentry_value_incref and senty_value_decref.

I removed free so that people upgrading are more likely to run into memory
management issues. They were already required to call free so all they need to
do now is to remove that call most likely and potentially call incref if they keep the
value around.
2019-10-24 13:32:08 +02:00
Armin Ronacher a716c90a4a feat: Expose more list manipulation functions 2019-09-01 22:09:34 +02:00
Armin Ronacher db8b3c2dff test: added msgpack tests 2019-09-01 21:24:51 +02:00
Armin Ronacher eca3fd19ba test: Added basic JSON value test and fixed a bug in JSON encoding 2019-09-01 18:57:37 +02:00