diff options
author | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2010-05-26 12:49:23 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-28 09:45:56 -0500 |
commit | 2b891029ac3db39c5e370e33a616516a847f688f (patch) | |
tree | 8c6f46edcb474a9ea85b8b494c1e999f728fd602 /src/sms.c | |
parent | 8a4f8d202298a4d4219b7e892f3fdc86226cf1db (diff) | |
download | ofono-2b891029ac3db39c5e370e33a616516a847f688f.tar.bz2 |
sms: Add some documentation
Add doc headers to ofono_sms_{create, register}
Diffstat (limited to 'src/sms.c')
-rw-r--r-- | src/sms.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -906,6 +906,17 @@ static void sms_remove(struct ofono_atom *atom) g_free(sms); } + +/* + * Create a SMS driver + * + * This creates a SMS driver that is hung off a @modem + * object. However, for the driver to be used by the system, it has to + * be registered with the oFono core using ofono_sms_register(). + * + * This is done once the modem driver determines that SMS is properly + * supported by the hardware. + */ struct ofono_sms *ofono_sms_create(struct ofono_modem *modem, unsigned int vendor, const char *driver, @@ -976,6 +987,14 @@ static void sms_load_settings(struct ofono_sms *sms, const char *imsi) } + +/* + * Indicate oFono that a SMS driver is ready for operation + * + * This is called after ofono_sms_create() was done and the modem + * driver determined that a modem supports SMS correctly. Once this + * call succeeds, the D-BUS interface for SMS goes live. + */ void ofono_sms_register(struct ofono_sms *sms) { DBusConnection *conn = ofono_dbus_get_connection(); |