Files
libstrophe-gh/tests
Stephen Paul Weber f3fa9f557b Allow serializing SM state
It is useful in some applications to get a snapshot of the stream
management state for storage outside the process, in order to recover
from crashes and other things.  The get_sm_state already present is not
suitable for this because it returns a live object tied in to the
current context and such, and containing much unneeded internal-api
data.

Introduce xmpp_sm_state_set_callback which is called every time the
state changes with a serialized state, and a dual xmpp_sm_state_restore
which takes in this serialized state and sets up a new sm_state based on
that.

The serialization is considered opaque from the PoV of the API, but is
based on CBOR to facilitate easy debugging.
2024-11-19 16:26:49 +01:00
..
2023-08-09 15:51:50 +02:00
2023-08-09 15:51:50 +02:00
2023-08-25 18:08:42 +02:00
2023-08-09 15:51:50 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2022-03-09 12:08:15 +01:00
2022-03-09 12:08:15 +01:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-11-01 01:40:45 +01:00
2024-11-19 16:26:49 +01:00
2020-03-31 17:37:12 +03:00
2020-04-30 12:03:57 +02:00
2020-03-31 17:37:12 +03:00
2023-08-25 18:08:42 +02:00
2024-02-12 17:47:24 +01:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-11-01 01:40:45 +01:00