test_connman.h 1.35 KB
Newer Older
Slava Monich's avatar
Slava Monich committed
1
/*
2 3
 * Copyright (C) 2013-2017 Jolla Ltd.
 * Contact: Slava Monich <slava.monich@jolla.com>
Slava Monich's avatar
Slava Monich committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * 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.
 */

#ifndef TEST_CONNMAN_H
#define TEST_CONNMAN_H

#include "mms_connman.h"

Slava Monich's avatar
Slava Monich committed
20 21 22 23 24
typedef
void
(*mms_connman_test_connect_fn)(
    void* param);

Slava Monich's avatar
Slava Monich committed
25 26 27
MMSConnMan*
mms_connman_test_new(void);

28 29 30 31 32 33
void
mms_connman_test_set_proxy(
    MMSConnMan* cm,
    const char* proxy,
    unsigned short port);

Slava Monich's avatar
Slava Monich committed
34 35 36
void
mms_connman_test_set_port(
    MMSConnMan* cm,
Slava Monich's avatar
Slava Monich committed
37 38
    unsigned short port,
    gboolean proxy);
Slava Monich's avatar
Slava Monich committed
39

40 41 42 43 44
void
mms_connman_test_set_offline(
    MMSConnMan* cm,
    gboolean offline);

45 46 47 48 49
void
mms_connman_test_set_default_imsi(
    MMSConnMan* cm,
    const char* imsi);

Slava Monich's avatar
Slava Monich committed
50 51 52 53 54 55
void
mms_connman_test_set_connect_callback(
    MMSConnMan* cm,
    mms_connman_test_connect_fn fn,
    void* param);

Slava Monich's avatar
Slava Monich committed
56 57 58 59 60 61 62 63 64 65 66 67 68
void
mms_connman_test_close_connection(
    MMSConnMan* cm);

#endif /* TEST_CONNMAN_H */

/*
 * Local Variables:
 * mode: C
 * c-basic-offset: 4
 * indent-tabs-mode: nil
 * End:
 */