Cleanup: Do not expose DBus details to drivers

This commit is contained in:
Denis Kenzior 2009-09-28 13:36:28 -05:00
parent f5e24369ca
commit d76f674794
2 changed files with 8 additions and 12 deletions

View File

@ -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(

View File

@ -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);