/* Make a new proxy object. The id can be used to bind to a remote object and
* can be retrieved with \ref pw_proxy_get_id . */ struct pw_proxy *
pw_proxy_new(struct pw_proxy *factory, constchar *type, /* interface type */
uint32_t version, /* interface version */
size_t user_data_size /* size of user data */);
/** Add an event listener to proxy */ void pw_proxy_add_listener(struct pw_proxy *proxy, struct spa_hook *listener, conststruct pw_proxy_events *events, void *data);
/** Add a listener for the events received from the remote object. The
* events depend on the type of the remote object type. */ void pw_proxy_add_object_listener(struct pw_proxy *proxy, /**< the proxy */ struct spa_hook *listener, /**< listener */ constvoid *funcs, /**< proxied functions */ void *data /**< data passed to events */);
/** destroy a proxy */ void pw_proxy_destroy(struct pw_proxy *proxy);
/** Get the user_data. The size was given in \ref pw_proxy_new */ void *pw_proxy_get_user_data(struct pw_proxy *proxy);
/** Get the local id of the proxy */
uint32_t pw_proxy_get_id(struct pw_proxy *proxy);
/** Get the type and version of the proxy */ constchar *pw_proxy_get_type(struct pw_proxy *proxy, uint32_t *version);
/** Get the protocol used for the proxy */ struct pw_protocol *pw_proxy_get_protocol(struct pw_proxy *proxy);
/** Generate an sync method for a proxy. This will generate a done event
* with the same seq number of the reply. */ int pw_proxy_sync(struct pw_proxy *proxy, int seq);
/** Set the global id this proxy is bound to. This is usually used internally
* and will also emit the bound event */ int pw_proxy_set_bound_id(struct pw_proxy *proxy, uint32_t global_id); /** Get the global id bound to this proxy of SPA_ID_INVALID when not bound
* to a global */
uint32_t pw_proxy_get_bound_id(struct pw_proxy *proxy);
/** Generate an error for a proxy */ int pw_proxy_error(struct pw_proxy *proxy, int res, constchar *error); int pw_proxy_errorf(struct pw_proxy *proxy, int res, constchar *error, ...) SPA_PRINTF_FUNC(3, 4);
/** Get the listener of proxy */ struct spa_hook_list *pw_proxy_get_object_listeners(struct pw_proxy *proxy);
/** Get the marshal functions for the proxy */ conststruct pw_protocol_marshal *pw_proxy_get_marshal(struct pw_proxy *proxy);
/** Install a marshal function on a proxy */ int pw_proxy_install_marshal(struct pw_proxy *proxy, bool implementor);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.