| 1 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This program is free software; you can redistribute it and/or modify |
| 4 |
* it under the terms of the GNU General Public License as published by |
| 5 |
* the Free Software Foundation; either version 2 of the License, or |
| 6 |
* (at your option) any later version. |
| 7 |
* |
| 8 |
* This program is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
* GNU General Public License for more details: |
| 12 |
* |
| 13 |
* Copyright (C) 2014 Aleksander Morgado <[email protected]> |
| 14 |
* |
| 15 |
* Higly based on the test-port-context setup in ModemManager. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef TEST_PORT_CONTEXT_H |
| 19 |
#define TEST_PORT_CONTEXT_H |
| 20 |
|
| 21 |
#include <glib.h> |
| 22 |
#include <glib-object.h> |
| 23 |
|
| 24 |
typedef struct _TestPortContext TestPortContext; |
| 25 |
|
| 26 |
TestPortContext *test_port_context_new (const gchar *name); |
| 27 |
void test_port_context_start (TestPortContext *ctx); |
| 28 |
void test_port_context_stop (TestPortContext *ctx); |
| 29 |
void test_port_context_free (TestPortContext *ctx); |
| 30 |
void test_port_context_set_command (TestPortContext *ctx, |
| 31 |
const guint8 *command, |
| 32 |
gsize command_size, |
| 33 |
const guint8 *response, |
| 34 |
gsize response_size, |
| 35 |
guint16 transaction_id); |
| 36 |
|
| 37 |
#endif /* TEST_PORT_CONTEXT_H */ |