[PATCH 1/1] Create network registration driver for hfpmodem
Naveen Verma
ernaveenverma at gmail.com
Mon Oct 26 02:01:06 PDT 2009
> @@ -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?
-Br
Naveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20091026/d59e7e03/attachment.html>
More information about the ofono
mailing list