PipeWire  0.3.34
bluez-autoswitch.c File Reference

Data Structures

struct  impl
 
struct  node
 
struct  find_data
 

Macros

#define NAME   "bluez-autoswitch"
 
#define SESSION_KEY   "bluez-autoswitch"
 
#define RESTORE_DELAY_SEC   3
 
#define DEFAULT_AUDIO_SINK_KEY   "default.audio.sink"
 

Functions

const char * get_saved_profile (struct impl *impl, const char *dev_name)
 
void set_saved_profile (struct impl *impl, const char *dev_name, const char *profile_name)
 
bool get_pending_save (struct impl *impl, const char *dev_name)
 
void set_pending_save (struct impl *impl, const char *dev_name, bool pending)
 
const char * get_saved_headset_profile (struct impl *impl, const char *dev_name)
 
void set_saved_headset_profile (struct impl *impl, const char *dev_name, const char *profile_name)
 
int sm_bluez5_autoswitch_start (struct sm_media_session *session)
 

Macro Definition Documentation

◆ DEFAULT_AUDIO_SINK_KEY

#define DEFAULT_AUDIO_SINK_KEY   "default.audio.sink"

◆ NAME

#define NAME   "bluez-autoswitch"

◆ RESTORE_DELAY_SEC

#define RESTORE_DELAY_SEC   3

◆ SESSION_KEY

#define SESSION_KEY   "bluez-autoswitch"

Function Documentation

◆ get_pending_save()

bool get_pending_save ( struct impl impl,
const char *  dev_name 
)

◆ get_saved_headset_profile()

const char* get_saved_headset_profile ( struct impl impl,
const char *  dev_name 
)

◆ get_saved_profile()

const char* get_saved_profile ( struct impl impl,
const char *  dev_name 
)

◆ set_pending_save()

void set_pending_save ( struct impl impl,
const char *  dev_name,
bool  pending 
)

◆ set_saved_headset_profile()

void set_saved_headset_profile ( struct impl impl,
const char *  dev_name,
const char *  profile_name 
)

◆ set_saved_profile()

void set_saved_profile ( struct impl impl,
const char *  dev_name,
const char *  profile_name 
)

◆ sm_bluez5_autoswitch_start()