context: add object store

Add method to set and get typed objects from the context. This can
be used to pass around context objects between modules without having
to register them.
This commit is contained in:
Wim Taymans 2019-12-16 10:28:18 +01:00
parent 6cf6af6620
commit 1bca1b15ea
5 changed files with 62 additions and 0 deletions

View file

@ -32,6 +32,8 @@
extern "C" {
#endif
#define SM_TYPE_MEDIA_SESSION PW_TYPE_INFO_OBJECT_BASE "SessionManager"
struct sm_media_session;
struct sm_object_events {