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 *data);
void (*remove)(struct ofono_call_volume *cv); void (*remove)(struct ofono_call_volume *cv);
void (*speaker_volume)(struct ofono_call_volume *cv, void (*speaker_volume)(struct ofono_call_volume *cv,
unsigned char percent, unsigned char percent,
ofono_call_volume_cb_t cb, void *data); ofono_call_volume_cb_t cb, void *data);
void (*microphone_volume)(struct ofono_call_volume *cv, void (*microphone_volume)(struct ofono_call_volume *cv,
unsigned char percent, unsigned char percent,
ofono_call_volume_cb_t cb, void *data); ofono_call_volume_cb_t cb, void *data);
}; };
void ofono_call_volume_notify(struct ofono_call_volume *cv, void ofono_call_volume_notify(struct ofono_call_volume *cv,
const char *property, unsigned char percent); 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); int ofono_call_volume_driver_register(const struct ofono_call_volume_driver *d);
void ofono_call_volume_driver_unregister( 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); generic_callback(error, data);
} }
DBusMessage *ofono_set_call_volume(DBusMessage *msg, static DBusMessage *ofono_set_call_volume(DBusMessage *msg,
struct ofono_call_volume *cv, struct ofono_call_volume *cv,
const char *property, const char *property,
unsigned char percent) unsigned char percent)
{ {
if (percent > 100) if (percent > 100)
return __ofono_error_invalid_format(msg); return __ofono_error_invalid_format(msg);