/
mms_connman.h
71 lines (60 loc) · 1.61 KB
/
mms_connman.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* Copyright (C) 2013-2014 Jolla Ltd.
*
* 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 JOLLA_MMS_CONNMAN_H
#define JOLLA_MMS_CONNMAN_H
#include "mms_lib_types.h"
/* Instance */
struct mms_connman {
GObject object;
};
/* Class */
typedef struct mms_connman_class {
GObjectClass parent;
char* (*fn_default_imsi)(MMSConnMan* cm);
MMSConnection* (*fn_open_connection)(MMSConnMan* cm, const char* imsi,
gboolean user_request);
} MMSConnManClass;
GType mms_connman_get_type(void);
#define MMS_TYPE_CONNMAN (mms_connman_get_type())
/* Reference counting */
MMSConnMan*
mms_connman_ref(
MMSConnMan* cm);
void
mms_connman_unref(
MMSConnMan* cm);
/**
* Returns default (first available) IMSI or NULL if SIM is not present
* or not configured. Caller must g_free() the returned string.
*/
char*
mms_connman_default_imsi(
MMSConnMan* cm);
/**
* Creates a new connection or returns the reference to an aready active one.
* The caller must release the reference.
*/
MMSConnection*
mms_connman_open_connection(
MMSConnMan* cm,
const char* imsi,
gboolean user_request);
#endif /* JOLLA_MMS_CONNMAN_H */
/*
* Local Variables:
* mode: C
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/