OLD | NEW |
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 /* | 2 /* |
3 * This program is free software; you can redistribute it and/or modify | 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 | 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 | 5 * the Free Software Foundation; either version 2 of the License, or |
6 * (at your option) any later version. | 6 * (at your option) any later version. |
7 * | 7 * |
8 * This program is distributed in the hope that it will be useful, | 8 * This program is distributed in the hope that it will be useful, |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 | 62 |
63 const char * | 63 const char * |
64 mm_port_type_to_name (MMPortType ptype) | 64 mm_port_type_to_name (MMPortType ptype) |
65 { | 65 { |
66 switch (ptype) { | 66 switch (ptype) { |
67 case MM_PORT_TYPE_PRIMARY: | 67 case MM_PORT_TYPE_PRIMARY: |
68 return "primary"; | 68 return "primary"; |
69 case MM_PORT_TYPE_SECONDARY: | 69 case MM_PORT_TYPE_SECONDARY: |
70 return "secondary"; | 70 return "secondary"; |
| 71 case MM_PORT_TYPE_ECM: |
| 72 return "ECM"; |
71 case MM_PORT_TYPE_IGNORED: | 73 case MM_PORT_TYPE_IGNORED: |
72 return "ignored"; | 74 return "ignored"; |
73 case MM_PORT_TYPE_QCDM: | 75 case MM_PORT_TYPE_QCDM: |
74 return "QCDM"; | 76 return "QCDM"; |
75 default: | 77 default: |
76 break; | 78 break; |
77 } | 79 } |
78 return "(unknown)"; | 80 return "(unknown)"; |
79 } | 81 } |
80 | 82 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); | 310 G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); |
309 | 311 |
310 g_object_class_install_property | 312 g_object_class_install_property |
311 (object_class, PROP_CONNECTED, | 313 (object_class, PROP_CONNECTED, |
312 g_param_spec_boolean (MM_PORT_CONNECTED, | 314 g_param_spec_boolean (MM_PORT_CONNECTED, |
313 "Connected", | 315 "Connected", |
314 "Is connected for data and not usable for control
", | 316 "Is connected for data and not usable for control
", |
315 FALSE, | 317 FALSE, |
316 G_PARAM_READWRITE)); | 318 G_PARAM_READWRITE)); |
317 } | 319 } |
OLD | NEW |