[PATCH 1/1] Create network registration driver for hfpmodem
Gustavo F. Padovan
gustavo at padovan.org
Mon Oct 26 07:27:23 PDT 2009
On Mon, Oct 26, 2009 at 7:01 AM, Naveen Verma <ernaveenverma at gmail.com> wrote:
>
>
>>
>> @@ -0,0 +1,172 @@
>> +/*
>> + *
>> + * oFono - Open Source Telephony
>> + *
>> + * Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
>> + * Copyright (C) 2009 ProFUSION embedded systems. All rights reserved.
>> + *
>> + * 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
>> + *
>> + */
>> +
>> +#ifdef HAVE_CONFIG_H
>> +#include <config.h>
>> +#endif
>> +
>> +#define _GNU_SOURCE
>> +#include <string.h>
>> +#include <stdlib.h>
>> +#include <stdio.h>
>> +
>> +#include <glib.h>
>> +
>> +#include <ofono/log.h>
>> +#include <ofono/modem.h>
>> +#include <ofono/netreg.h>
>> +
>> +#include "gatchat.h"
>> +#include "gatresult.h"
>> +
>> +#include "hfpmodem.h"
>> +
>> +#define OFONO_MAX_HFP_OPERATOR_NAME_LENGTH 16
>> +
>> +static const char *cops_prefix[] = { "+COPS:", NULL };
>> +
>> +struct netreg_data {
>> + GAtChat *chat;
>> + unsigned char cind_pos[HFP_INDICATOR_LAST];
>> + int cind_val[HFP_INDICATOR_LAST];
>> + char operator[16];
>
> -- Should we use above #define for operator name length?
Yes, I missed that. Thanks.
> -Br
> Naveen
>
>
>
> _______________________________________________
> ofono mailing list
> ofono at ofono.org
> http://lists.ofono.org/listinfo/ofono
>
>
--
Gustavo F. Padovan
http://padovan.org
More information about the ofono
mailing list