diff options
Diffstat (limited to 'drivers/atmodem/atmodem.c')
-rw-r--r-- | drivers/atmodem/atmodem.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/drivers/atmodem/atmodem.c b/drivers/atmodem/atmodem.c index d6ae3919..64ac9052 100644 --- a/drivers/atmodem/atmodem.c +++ b/drivers/atmodem/atmodem.c @@ -23,39 +23,14 @@ #include <config.h> #endif -#include <string.h> #include <glib.h> -#include <gdbus.h> #include <gatchat.h> -#include <stdlib.h> #define OFONO_API_SUBJECT_TO_CHANGE #include <ofono/plugin.h> -#include <ofono/log.h> -#include <ofono/modem.h> -#include "at.h" - -void dump_response(const char *func, gboolean ok, GAtResult *result) -{ - GSList *l; +#include <ofono/types.h> - ofono_debug("%s got result: %d", func, ok); - ofono_debug("Final response: %s", result->final_or_pdu); - - for (l = result->lines; l; l = l->next) - ofono_debug("Response line: %s", (char *) l->data); -} - -void decode_at_error(struct ofono_error *error, const char *final) -{ - if (!strcmp(final, "OK")) { - error->type = OFONO_ERROR_TYPE_NO_ERROR; - error->error = 0; - } else { - error->type = OFONO_ERROR_TYPE_FAILURE; - error->error = 0; - } -} +#include "at.h" static int atmodem_init(void) { |