2019-06-03 16:48:01 +02:00
|
|
|
/* Simple Plugin API
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2019 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 SPA_UTILS_KEYS_H
|
|
|
|
|
#define SPA_UTILS_KEYS_H
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** for objects */
|
|
|
|
|
#define SPA_KEY_MEDIA_CLASS "media.class" /**< Media class
|
|
|
|
|
* Ex. "Audio/Device",
|
|
|
|
|
* "Video/Source",... */
|
|
|
|
|
#define SPA_KEY_MEDIA_ROLE "media.role" /**< Role: Movie, Music, Camera,
|
|
|
|
|
* Screen, Communication, Game,
|
|
|
|
|
* Notification, DSP, Production,
|
|
|
|
|
* Accessibility, Test */
|
|
|
|
|
/** keys for alsa api */
|
|
|
|
|
#define SPA_KEY_API_ALSA "api.alsa" /**< key for the alsa api */
|
|
|
|
|
#define SPA_KEY_API_ALSA_PATH "api.alsa.path" /**< alsa device path as can be
|
|
|
|
|
* used in snd_pcm_open() and
|
|
|
|
|
* snd_ctl_open(). */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD "api.alsa.card" /**< alsa card number */
|
|
|
|
|
|
|
|
|
|
/** info from alsa card_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD_ID "api.alsa.card.id" /**< id from card_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD_COMPONENTS \
|
|
|
|
|
"api.alsa.card.components" /**< components from card_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD_DRIVER "api.alsa.card.driver" /**< driver from card_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD_NAME "api.alsa.card.name" /**< name from card_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD_LONGNAME "api.alsa.card.longname" /**< longname from card_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_CARD_MIXERNAME "api.alsa.card.mixername" /**< mixername from card_info */
|
|
|
|
|
|
|
|
|
|
/** info from alsa pcm_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_PCM_ID "api.alsa.pcm.id" /**< id from pcm_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_PCM_NAME "api.alsa.pcm.name" /**< name from pcm_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_PCM_SUBNAME "api.alsa.pcm.subname" /**< subdevice_name from pcm_info */
|
|
|
|
|
#define SPA_KEY_API_ALSA_PCM_CLASS "api.alsa.pcm.class" /**< class from pcm_info as string */
|
|
|
|
|
#define SPA_KEY_API_ALSA_PCM_SUBCLASS "api.alsa.pcm.subclass" /**< subclass from pcm_info as string */
|
2019-09-05 13:18:56 +02:00
|
|
|
#define SPA_KEY_API_ALSA_PCM_SYNC_ID "api.alsa.pcm.sync-id" /**< sync id */
|
2019-06-03 16:48:01 +02:00
|
|
|
|
|
|
|
|
/** keys for v4l2 api */
|
|
|
|
|
#define SPA_KEY_API_V4L2 "api.v4l2" /**< key for the v4l2 api */
|
|
|
|
|
#define SPA_KEY_API_V4L2_PATH "api.v4l2.path" /**< v4l2 device path as can be
|
|
|
|
|
* used in open() */
|
|
|
|
|
|
|
|
|
|
/** info from v4l2_capability */
|
|
|
|
|
#define SPA_KEY_API_V4L2_CAP_DRIVER "api.v4l2.cap.driver" /**< driver from capbility */
|
|
|
|
|
#define SPA_KEY_API_V4L2_CAP_CARD "api.v4l2.cap.card" /**< caps from capability */
|
|
|
|
|
#define SPA_KEY_API_V4L2_CAP_BUS_INFO "api.v4l2.cap.bus_info" /**< bus_info from capability */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** keys for bluez5 api */
|
|
|
|
|
#define SPA_KEY_API_BLUEZ5 "api.bluez5" /**< key for the bluez5 api */
|
|
|
|
|
#define SPA_KEY_API_BLUEZ5_PATH "api.bluez5.path" /**< a bluez5 path */
|
|
|
|
|
#define SPA_KEY_API_BLUEZ5_DEVICE "api.bluez5.device" /**< an internal bluez5 device */
|
|
|
|
|
#define SPA_KEY_API_BLUEZ5_TRANSPORT "api.bluez5.transport" /**< an internal bluez5 transport */
|
|
|
|
|
#define SPA_KEY_API_BLUEZ5_ADDRESS "api.bluez5.address" /**< a bluetooth address */
|
|
|
|
|
|
2019-08-20 20:35:41 +02:00
|
|
|
/** keys for jack api */
|
|
|
|
|
#define SPA_KEY_API_JACK "api.jack" /**< key for the JACK api */
|
|
|
|
|
#define SPA_KEY_API_JACK_SERVER "api.jack.server" /**< a jack server name */
|
|
|
|
|
#define SPA_KEY_API_JACK_CLIENT "api.jack.client" /**< an internal jack client */
|
2019-06-03 16:48:01 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* SPA_UTILS_KEYS_H */
|