* [PATCH 2/4] plugin: Interface for using plugins that find the MNC lenght from the IMSI
@ 2013-10-24 11:02 Alfonso Sanchez-Beato
2013-10-24 16:37 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: Alfonso Sanchez-Beato @ 2013-10-24 11:02 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]
---
include/sim-mnclength.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 include/sim-mnclength.h
diff --git a/include/sim-mnclength.h b/include/sim-mnclength.h
new file mode 100644
index 0000000..67769f2
--- /dev/null
+++ b/include/sim-mnclength.h
@@ -0,0 +1,45 @@
+/*
+ *
+ * oFono - Open Telephony stack for Linux
+ *
+ * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifndef OFONO_SIM_MNCLENGTH_H
+#define OFONO_SIM_MNCLENGTH_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+struct ofono_sim_mnclength_driver {
+ const char *name;
+ int (*get_mnclength)(const char *imsi);
+};
+
+int ofono_sim_mnclength_driver_register(
+ struct ofono_sim_mnclength_driver *driver);
+void ofono_sim_mnclength_driver_unregister(
+ const struct ofono_sim_mnclength_driver *driver);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* OFONO_SIM_MNCLENGTH_H */
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 2/4] plugin: Interface for using plugins that find the MNC lenght from the IMSI
2013-10-24 11:02 [PATCH 2/4] plugin: Interface for using plugins that find the MNC lenght from the IMSI Alfonso Sanchez-Beato
@ 2013-10-24 16:37 ` Denis Kenzior
2013-10-25 11:20 ` Jarko Poutiainen
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2013-10-24 16:37 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2153 bytes --]
Hi Alfonso,
On 10/24/2013 06:02 AM, Alfonso Sanchez-Beato wrote:
> ---
> include/sim-mnclength.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 45 insertions(+)
> create mode 100644 include/sim-mnclength.h
>
> diff --git a/include/sim-mnclength.h b/include/sim-mnclength.h
> new file mode 100644
> index 0000000..67769f2
> --- /dev/null
> +++ b/include/sim-mnclength.h
> @@ -0,0 +1,45 @@
> +/*
> + *
> + * oFono - Open Telephony stack for Linux
> + *
> + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
Copy-pasting?
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> + *
> + */
> +
> +#ifndef OFONO_SIM_MNCLENGTH_H
> +#define OFONO_SIM_MNCLENGTH_H
> +
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> +
> +struct ofono_sim_mnclength_driver {
> + const char *name;
> + int (*get_mnclength)(const char *imsi);
> +};
> +
> +int ofono_sim_mnclength_driver_register(
> + struct ofono_sim_mnclength_driver *driver);
> +void ofono_sim_mnclength_driver_unregister(
> + const struct ofono_sim_mnclength_driver *driver);
> +
I'd actually like to keep this out of the core API for now. Can you
make this plugin a 'utility' plugin similar to plugins/mbpi.[ch]?
Feel free to extend provisioning API with a IMSI method for cases where
EFad is not specifying the length.
> +
> +#ifdef __cplusplus
> +}
> +#endif
> +
> +#endif /* OFONO_SIM_MNCLENGTH_H */
>
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 2/4] plugin: Interface for using plugins that find the MNC lenght from the IMSI
2013-10-24 16:37 ` Denis Kenzior
@ 2013-10-25 11:20 ` Jarko Poutiainen
0 siblings, 0 replies; 3+ messages in thread
From: Jarko Poutiainen @ 2013-10-25 11:20 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2931 bytes --]
Hi Denis and Alfonso,
On 24 October 2013 19:37, Denis Kenzior <denkenz@gmail.com> wrote:
> Hi Alfonso,
>
>
> On 10/24/2013 06:02 AM, Alfonso Sanchez-Beato wrote:
>
>> ---
>> include/sim-mnclength.h | 45 ++++++++++++++++++++++++++++++**
>> +++++++++++++++
>> 1 file changed, 45 insertions(+)
>> create mode 100644 include/sim-mnclength.h
>>
>> diff --git a/include/sim-mnclength.h b/include/sim-mnclength.h
>> new file mode 100644
>> index 0000000..67769f2
>> --- /dev/null
>> +++ b/include/sim-mnclength.h
>> @@ -0,0 +1,45 @@
>> +/*
>> + *
>> + * oFono - Open Telephony stack for Linux
>> + *
>> + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
>>
>
> Copy-pasting?
>
>
> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>> 02110-1301 USA
>> + *
>> + */
>> +
>> +#ifndef OFONO_SIM_MNCLENGTH_H
>> +#define OFONO_SIM_MNCLENGTH_H
>> +
>> +#ifdef __cplusplus
>> +extern "C" {
>> +#endif
>> +
>> +
>> +struct ofono_sim_mnclength_driver {
>> + const char *name;
>> + int (*get_mnclength)(const char *imsi);
>> +};
>> +
>> +int ofono_sim_mnclength_driver_**register(
>> + struct ofono_sim_mnclength_driver *driver);
>> +void ofono_sim_mnclength_driver_**unregister(
>> + const struct ofono_sim_mnclength_driver *driver);
>> +
>>
>
> I'd actually like to keep this out of the core API for now. Can you make
> this plugin a 'utility' plugin similar to plugins/mbpi.[ch]?
>
> Feel free to extend provisioning API with a IMSI method for cases where
> EFad is not specifying the length.
Hopefully I'm not interfering too much but could the call to mnc plugin be
made from __ofono_gprs_provision_get_settings in gprs-provisioning.c as
there is a check for missing mnc and adding new interface to
gprs-provision.h? Would that do the trick or was this actually what you
mean?
>
>
> +
>> +#ifdef __cplusplus
>> +}
>> +#endif
>> +
>> +#endif /* OFONO_SIM_MNCLENGTH_H */
>>
>>
> Regards,
> -Denis
>
> ______________________________**_________________
> ofono mailing list
> ofono(a)ofono.org
> https://lists.ofono.org/**mailman/listinfo/ofono<https://lists.ofono.org/mailman/listinfo/ofono>
>
Br,
Jarko
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4298 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-25 11:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24 11:02 [PATCH 2/4] plugin: Interface for using plugins that find the MNC lenght from the IMSI Alfonso Sanchez-Beato
2013-10-24 16:37 ` Denis Kenzior
2013-10-25 11:20 ` Jarko Poutiainen
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.