mirror of git://git.sysmocom.de/ofono
Cleanup: Do not expose DBus details to drivers
This commit is contained in:
parent
f5e24369ca
commit
d76f674794
|
@ -40,19 +40,15 @@ struct ofono_call_volume_driver {
|
|||
void *data);
|
||||
void (*remove)(struct ofono_call_volume *cv);
|
||||
void (*speaker_volume)(struct ofono_call_volume *cv,
|
||||
unsigned char percent,
|
||||
ofono_call_volume_cb_t cb, void *data);
|
||||
unsigned char percent,
|
||||
ofono_call_volume_cb_t cb, void *data);
|
||||
void (*microphone_volume)(struct ofono_call_volume *cv,
|
||||
unsigned char percent,
|
||||
ofono_call_volume_cb_t cb, void *data);
|
||||
unsigned char percent,
|
||||
ofono_call_volume_cb_t cb, void *data);
|
||||
};
|
||||
|
||||
void ofono_call_volume_notify(struct ofono_call_volume *cv,
|
||||
const char *property, unsigned char percent);
|
||||
DBusMessage *ofono_set_call_volume(DBusMessage *msg,
|
||||
struct ofono_call_volume *cv,
|
||||
const char *property,
|
||||
unsigned char percent);
|
||||
|
||||
int ofono_call_volume_driver_register(const struct ofono_call_volume_driver *d);
|
||||
void ofono_call_volume_driver_unregister(
|
||||
|
|
|
@ -157,10 +157,10 @@ static void mv_set_callback(const struct ofono_error *error, void *data)
|
|||
generic_callback(error, data);
|
||||
}
|
||||
|
||||
DBusMessage *ofono_set_call_volume(DBusMessage *msg,
|
||||
struct ofono_call_volume *cv,
|
||||
const char *property,
|
||||
unsigned char percent)
|
||||
static DBusMessage *ofono_set_call_volume(DBusMessage *msg,
|
||||
struct ofono_call_volume *cv,
|
||||
const char *property,
|
||||
unsigned char percent)
|
||||
{
|
||||
if (percent > 100)
|
||||
return __ofono_error_invalid_format(msg);
|
||||
|
|
Loading…
Reference in New Issue