Fixed typo in error message.
[gsmd2.git] / src / modem_internal.h
blob288799a64b09ef4361907cde537e4599254dce8e
1 /*
2 * modem_internal.h
4 * Copyright(C) 2007,2008 Ixonos Plc
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Boston, MA 02111.
22 * Written by
23 * Jukka Honkela
24 * Yi Zheng
25 * Matti Katila
26 * Vesa Pikki
27 * Heikki Paajanen
31 #ifndef GSMD_MODEM_INTERNAL_H
32 #define GSMD_MODEM_INTERNAL_H
34 #include <glib.h>
35 #include "serial.h"
36 #include "call_interface.h"
37 #include "sim_interface.h"
38 #include "sms_interface.h"
39 #include "pdp_interface.h"
40 #include "network_interface.h"
41 #include "device_interface.h"
44 #include "modem.h"
46 typedef struct _Modem Modem;
48 gboolean gsmd_modem_assign_device_indices(ModemInterface *modem, int *indices);
50 ModemInterface* gsmd_modem_open (gchar **devices,
51 const gchar *vendor,
52 const gchar* serial_plugin,
53 gboolean no_cache,
54 GKeyFile *conf,
55 IPCInit ipc_init,
56 int *interface_devices);
58 void gsmd_modem_free (ModemInterface* modem);
61 AtCommandContext* gsmd_modem_get_current_at_command(ModemInterface *modem,
62 guint device_index);
64 void gsmd_modem_send_command_force_next (Modem *modem, AtCommandContext *at,
65 guint device_index);
67 gboolean gsmd_modem_add_command ( ModemInterface* modem, AtCommandContext *at);
72 /* gboolean gsmd_modem_send_command ( Modem* modem, AtCommandContext *atcmd ); */
76 gboolean gsmd_modem_check_end_token (GScanner* scanner);
79 GString* gsmd_modem_wrapper_command (const gchar* str_cmd);
84 void gsmd_at_command_context_free (AtCommandContext* at);
86 void gsmd_modem_retry_current_command (Modem* modem, guint device_index);
91 void gsmd_modem_data_in (GString *buffer, gpointer data );
93 guint gsmd_modem_get_interface_device_index(ModemInterface *modem,
94 InterfaceType interface);
96 #endif /* GSMD_MODEM_INTERNAL_H*/