From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 1/8] gprs-provision: add driver API header
Date: Tue, 18 Jan 2011 15:48:35 +0100 [thread overview]
Message-ID: <1295362115.3873.190.camel@aeonflux> (raw)
In-Reply-To: <1295338172-12773-2-git-send-email-jukka.saunamaki@nokia.com>
[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]
Hi Jukka,
<snip>
> +/*
> + * Callback from provisioning plugin.
> + * settings: list of struct ofono_gprs_provision_data
> + *
> + * It is responsibility of callback function to free settings-list
> + * settings-list elements must be freed with ofono_gprs_provision_data_free()
> + */
> +typedef void (*ofono_gprs_provision_cb_t)(GSList *settings, void *userdata);
so our general rule is no GLib types in oFono public APIs.
> +struct ofono_gprs_provision_driver {
> + const char *name;
> + int priority;
> + int (*probe)(struct ofono_gprs_provision_context *context);
> + void (*remove)(struct ofono_gprs_provision_context *context);
> + void (*get_settings) (struct ofono_gprs_provision_context *context,
No space between (get_settings) and (struct please.
> + ofono_gprs_provision_cb_t cb,
> + void *user_data);
> +};
> +
> +/* For provisioning drivers/plugins */
> +int ofono_gprs_provision_driver_register(
> + const struct ofono_gprs_provision_driver *driver);
> +void ofono_gprs_provision_driver_unregister(
> + const struct ofono_gprs_provision_driver *driver);
> +
> +/* For gprs */
> +void ofono_gprs_provision_data_free(struct ofono_gprs_provision_data *data);
This sounds more like an __ofono_* internal API kind of thing.
Regards
Marcel
next prev parent reply other threads:[~2011-01-18 14:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 8:09 [gprs-provision PATCHv4 0/8] plugin API for provisioning of GPRS context settings Jukka Saunamaki
2011-01-18 8:09 ` [PATCH 1/8] gprs-provision: add driver API header Jukka Saunamaki
2011-01-18 14:48 ` Marcel Holtmann [this message]
2011-01-19 5:58 ` Jukka Saunamaki
2011-01-18 8:09 ` [PATCH 2/8] gprs-provision: add new atom type Jukka Saunamaki
2011-01-18 8:09 ` [PATCH 3/8] gprs-provision: add driver API sources Jukka Saunamaki
2011-01-18 14:55 ` Marcel Holtmann
2011-01-18 8:09 ` [PATCH 4/8] gprs-provision: probe gprs_provision drivers Jukka Saunamaki
2011-01-18 8:09 ` [PATCH 5/8] gprs: add gprs context provisioning Jukka Saunamaki
2011-01-18 8:09 ` [PATCH 6/8] sim: getters for mcc and mnc definition Jukka Saunamaki
2011-01-18 8:09 ` [PATCH 7/8] sim: getters for mcc and mnc implementation Jukka Saunamaki
2011-01-18 14:44 ` Marcel Holtmann
2011-01-18 8:09 ` [PATCH 8/8] gprs-provision: add example context provisioning driver Jukka Saunamaki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1295362115.3873.190.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.