/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * 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: * * Copyright (C) 2011 Aleksander Morgado */ #ifndef MM_BASE_MODEM_AT_H #define MM_BASE_MODEM_AT_H #include #include "mm-base-modem.h" #include "mm-at-serial-port.h" /* * The expected result depends on the specific operation, so the GVariant * created by the response processor needs to match the one expected in * finish(). * * TRUE must be returned when the operation is to be considered successful, * and a result may be given. * * FALSE must be returned when: * - A GError is propagated into result_error, which will be treated as a * critical error and therefore the operation will be aborted. * - When no result_error is given, to instruct the operation to go on with * the next scheduled command. * * This setup, therefore allows: * - Running a single command and processing its result. * - Running a set of N commands, providing a global result after all have * been executed. * - Running a set of N commands out of M (N