[RFC PATCH 4/6] SetProperty for UseDeliveryReports.
Denis Kenzior
denkenz at gmail.com
Fri Jun 4 10:08:35 PDT 2010
Hi Pasi,
> ---
> src/sms.c | 34 +++++++++++++++++++++++++++++++++-
> src/smsutil.c | 5 +++--
> src/smsutil.h | 3 ++-
> test/send-sms | 7 ++++++-
> unit/test-sms.c | 10 +++++-----
Please break this up into a series of 4 patches:
1. smsutil changes
2. unit test changes
3. sms core atom changes
4. unit test changes.
> --- a/src/sms.c
> +++ b/src/sms.c
> @@ -67,6 +67,7 @@ struct ofono_sms {
> const struct ofono_sms_driver *driver;
> void *driver_data;
> struct ofono_atom *atom;
> + gboolean use_delivery_reports;
Use ofono_bool_t as the type here
> };
>
> + if (!strcmp(property, "UseDeliveryReports")) {
> + const char *path = __ofono_atom_get_path(sms->atom);
> + gboolean value;
use dbus_bool_t as the type as it is more type-correct.
> GSList *sms_text_prepare(const char *utf8, guint16 ref,
> - gboolean use_16bit, int *ref_offset)
> + gboolean use_16bit, int *ref_offset,
> + const gboolean use_delivery_reports)
For basic integer types, no need to declare them const.
Regards,
-Denis
More information about the ofono
mailing list