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)
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.
31 #ifndef GSMD_MODEM_INTERNAL_H
32 #define GSMD_MODEM_INTERNAL_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"
46 typedef struct _Modem Modem
;
48 gboolean
gsmd_modem_assign_device_indices(ModemInterface
*modem
, int *indices
);
50 ModemInterface
* gsmd_modem_open (gchar
**devices
,
52 const gchar
* serial_plugin
,
56 int *interface_devices
);
58 void gsmd_modem_free (ModemInterface
* modem
);
61 AtCommandContext
* gsmd_modem_get_current_at_command(ModemInterface
*modem
,
64 void gsmd_modem_send_command_force_next (Modem
*modem
, AtCommandContext
*at
,
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*/