1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | /* |
3 | * Copyright (C) 2011 - 2012 Red Hat, Inc. |
4 | * Copyright (C) 2008 Novell, Inc. |
5 | */ |
6 | |
7 | #ifndef __NM_DEVICE_MODEM_H__ |
8 | #define __NM_DEVICE_MODEM_H__ |
9 | |
10 | #if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION) |
11 | #error "Only <NetworkManager.h> can be included directly." |
12 | #endif |
13 | |
14 | #include "nm-device.h" |
15 | |
16 | G_BEGIN_DECLS |
17 | |
18 | #define NM_TYPE_DEVICE_MODEM (nm_device_modem_get_type()) |
19 | #define NM_DEVICE_MODEM(obj) \ |
20 | (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DEVICE_MODEM, NMDeviceModem)) |
21 | #define NM_DEVICE_MODEM_CLASS(klass) \ |
22 | (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DEVICE_MODEM, NMDeviceModemClass)) |
23 | #define NM_IS_DEVICE_MODEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DEVICE_MODEM)) |
24 | #define NM_IS_DEVICE_MODEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DEVICE_MODEM)) |
25 | #define NM_DEVICE_MODEM_GET_CLASS(obj) \ |
26 | (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_DEVICE_MODEM, NMDeviceModemClass)) |
27 | |
28 | #define NM_DEVICE_MODEM_MODEM_CAPABILITIES "modem-capabilities" |
29 | #define NM_DEVICE_MODEM_CURRENT_CAPABILITIES "current-capabilities" |
30 | #define NM_DEVICE_MODEM_DEVICE_ID "device-id" |
31 | #define NM_DEVICE_MODEM_OPERATOR_CODE "operator-code" |
32 | #define NM_DEVICE_MODEM_APN "apn" |
33 | |
34 | /** |
35 | * NMDeviceModem: |
36 | */ |
37 | typedef struct _NMDeviceModemClass NMDeviceModemClass; |
38 | |
39 | GType nm_device_modem_get_type(void); |
40 | |
41 | NMDeviceModemCapabilities nm_device_modem_get_modem_capabilities(NMDeviceModem *self); |
42 | NMDeviceModemCapabilities nm_device_modem_get_current_capabilities(NMDeviceModem *self); |
43 | |
44 | NM_AVAILABLE_IN_1_20 |
45 | const char *nm_device_modem_get_device_id(NMDeviceModem *self); |
46 | |
47 | NM_AVAILABLE_IN_1_20 |
48 | const char *nm_device_modem_get_operator_code(NMDeviceModem *self); |
49 | |
50 | NM_AVAILABLE_IN_1_20 |
51 | const char *nm_device_modem_get_apn(NMDeviceModem *self); |
52 | |
53 | G_END_DECLS |
54 | |
55 | #endif /* __NM_DEVICE_MODEM_H__ */ |
56 | |