/* PipeWire * * Copyright © 2018 Wim Taymans * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #ifndef PIPEWIRE_H #define PIPEWIRE_H #ifdef __cplusplus extern "C" { #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /** \defgroup pw_pipewire Initialization * Initializing PipeWire and loading SPA modules. */ /** * \addtogroup pw_pipewire * \{ */ void pw_init(int *argc, char **argv[]); void pw_deinit(void); bool pw_debug_is_category_enabled(const char *name); const char * pw_get_application_name(void); const char * pw_get_prgname(void); const char * pw_get_user_name(void); const char * pw_get_host_name(void); const char * pw_get_client_name(void); bool pw_in_valgrind(void); bool pw_check_option(const char *option, const char *value); enum pw_direction pw_direction_reverse(enum pw_direction direction); int pw_set_domain(const char *domain); const char *pw_get_domain(void); uint32_t pw_get_support(struct spa_support *support, uint32_t max_support); struct spa_handle *pw_load_spa_handle(const char *lib, const char *factory_name, const struct spa_dict *info, uint32_t n_support, const struct spa_support support[]); int pw_unload_spa_handle(struct spa_handle *handle); /** * \} */ #ifdef __cplusplus } #endif #endif /* PIPEWIRE_H */