~ubuntu-branches/ubuntu/oneiric/network-manager/oneiric

« back to all changes in this revision

Viewing changes to libnm-util/nm-setting-ppp.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-07-25 20:01:12 UTC
  • mfrom: (1.1.48 upstream)
  • Revision ID: james.westby@ubuntu.com-20110725200112-iwxhtsy6hko0ffkt
Tags: 0.8.9997+git.20110721t045648.36db194-0ubuntu1
* upstream snapshot 2011-07-21 04:56:48 (GMT)
  + 36db194ae95e35cc7b8f431ab984780dea24656d
  - libnm-util: default to allowing v6 connections to fail (set to optional)
* debian/patches/ipv6-dont-block-ipv4.patch: don't block waiting for IPv6 to
  apply IPv4 connection settings.
* debian/libnm-glib4.symbols: add new nm_client_get_device_by_iface symbol.
* debian/libnm-util2.symbols: add new symbols:
  - nm_setting_wired_get_mac_address_blacklist
  - nm_setting_wireless_get_mac_address_blacklist

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "nm-setting-ppp.h"
27
27
 
 
28
/**
 
29
 * SECTION:nm-setting-ppp
 
30
 * @short_description: Describes connection properties for devices/networks
 
31
 * that require PPP to deliver IP capability
 
32
 * @include: nm-setting-ppp.h
 
33
 *
 
34
 * The #NMSettingPPP object is a #NMSetting subclass that describes properties
 
35
 * necessary for connection to networks that require PPP transport, like PPPoE
 
36
 * cable and DSL modems and some mobile broadband devices.
 
37
 **/
 
38
 
 
39
/**
 
40
 * nm_setting_ppp_error_quark:
 
41
 *
 
42
 * Registers an error quark for #NMSettingPPP if necessary.
 
43
 *
 
44
 * Returns: the error quark used for #NMSettingPPP errors.
 
45
 **/
28
46
GQuark
29
47
nm_setting_ppp_error_quark (void)
30
48
{
110
128
        LAST_PROP
111
129
};
112
130
 
 
131
/**
 
132
 * nm_setting_ppp_new:
 
133
 *
 
134
 * Creates a new #NMSettingPPP object with default values.
 
135
 *
 
136
 * Returns: (transfer full): the new empty #NMSettingPPP object
 
137
 **/
113
138
NMSetting *
114
139
nm_setting_ppp_new (void)
115
140
{
116
141
        return (NMSetting *) g_object_new (NM_TYPE_SETTING_PPP, NULL);
117
142
}
118
143
 
 
144
/**
 
145
 * nm_setting_wired_get_noauth:
 
146
 * @setting: the #NMSettingPPP
 
147
 *
 
148
 * Returns: the #NMSettingPPP:noauth property of the setting
 
149
 **/
119
150
gboolean
120
151
nm_setting_ppp_get_noauth (NMSettingPPP *setting)
121
152
{
124
155
        return NM_SETTING_PPP_GET_PRIVATE (setting)->noauth;
125
156
}
126
157
 
 
158
/**
 
159
 * nm_setting_wired_get_refuse_eap:
 
160
 * @setting: the #NMSettingPPP
 
161
 *
 
162
 * Returns: the #NMSettingPPP:refuse-eap property of the setting
 
163
 **/
127
164
gboolean
128
165
nm_setting_ppp_get_refuse_eap (NMSettingPPP *setting)
129
166
{
132
169
        return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_eap;
133
170
}
134
171
 
 
172
/**
 
173
 * nm_setting_wired_get_refuse_pap:
 
174
 * @setting: the #NMSettingPPP
 
175
 *
 
176
 * Returns: the #NMSettingPPP:refuse-pap property of the setting
 
177
 **/
135
178
gboolean
136
179
nm_setting_ppp_get_refuse_pap (NMSettingPPP *setting)
137
180
{
140
183
        return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_pap;
141
184
}
142
185
 
 
186
/**
 
187
 * nm_setting_wired_get_refuse_chap:
 
188
 * @setting: the #NMSettingPPP
 
189
 *
 
190
 * Returns: the #NMSettingPPP:refuse-chap property of the setting
 
191
 **/
143
192
gboolean
144
193
nm_setting_ppp_get_refuse_chap (NMSettingPPP *setting)
145
194
{
148
197
        return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_chap;
149
198
}
150
199
 
 
200
/**
 
201
 * nm_setting_wired_get_refuse_mschap:
 
202
 * @setting: the #NMSettingPPP
 
203
 *
 
204
 * Returns: the #NMSettingPPP:refuse-mschap property of the setting
 
205
 **/
151
206
gboolean
152
207
nm_setting_ppp_get_refuse_mschap (NMSettingPPP *setting)
153
208
{
156
211
        return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_mschap;
157
212
}
158
213
 
 
214
/**
 
215
 * nm_setting_wired_get_refuse_mschapv2:
 
216
 * @setting: the #NMSettingPPP
 
217
 *
 
218
 * Returns: the #NMSettingPPP:refuse-mschapv2 property of the setting
 
219
 **/
159
220
gboolean
160
221
nm_setting_ppp_get_refuse_mschapv2 (NMSettingPPP *setting)
161
222
{
164
225
        return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_mschapv2;
165
226
}
166
227
 
 
228
/**
 
229
 * nm_setting_wired_get_nobsdcomp:
 
230
 * @setting: the #NMSettingPPP
 
231
 *
 
232
 * Returns: the #NMSettingPPP:nobsdcomp property of the setting
 
233
 **/
167
234
gboolean
168
235
nm_setting_ppp_get_nobsdcomp (NMSettingPPP *setting)
169
236
{
172
239
        return NM_SETTING_PPP_GET_PRIVATE (setting)->nobsdcomp;
173
240
}
174
241
 
 
242
/**
 
243
 * nm_setting_wired_get_nodeflate:
 
244
 * @setting: the #NMSettingPPP
 
245
 *
 
246
 * Returns: the #NMSettingPPP:nodeflate property of the setting
 
247
 **/
175
248
gboolean
176
249
nm_setting_ppp_get_nodeflate (NMSettingPPP *setting)
177
250
{
180
253
        return NM_SETTING_PPP_GET_PRIVATE (setting)->nodeflate;
181
254
}
182
255
 
 
256
/**
 
257
 * nm_setting_wired_get_no_vj_comp:
 
258
 * @setting: the #NMSettingPPP
 
259
 *
 
260
 * Returns: the #NMSettingPPP:no-vj-comp property of the setting
 
261
 **/
183
262
gboolean
184
263
nm_setting_ppp_get_no_vj_comp (NMSettingPPP *setting)
185
264
{
188
267
        return NM_SETTING_PPP_GET_PRIVATE (setting)->no_vj_comp;
189
268
}
190
269
 
 
270
/**
 
271
 * nm_setting_wired_get_require_mppe:
 
272
 * @setting: the #NMSettingPPP
 
273
 *
 
274
 * Returns: the #NMSettingPPP:require-mppe property of the setting
 
275
 **/
191
276
gboolean
192
277
nm_setting_ppp_get_require_mppe (NMSettingPPP *setting)
193
278
{
196
281
        return NM_SETTING_PPP_GET_PRIVATE (setting)->require_mppe;
197
282
}
198
283
 
 
284
/**
 
285
 * nm_setting_wired_get_require_mppe_128:
 
286
 * @setting: the #NMSettingPPP
 
287
 *
 
288
 * Returns: the #NMSettingPPP:require-mppe-128 property of the setting
 
289
 **/
199
290
gboolean
200
291
nm_setting_ppp_get_require_mppe_128 (NMSettingPPP *setting)
201
292
{
204
295
        return NM_SETTING_PPP_GET_PRIVATE (setting)->require_mppe_128;
205
296
}
206
297
 
 
298
/**
 
299
 * nm_setting_wired_get_mppe_stateful:
 
300
 * @setting: the #NMSettingPPP
 
301
 *
 
302
 * Returns: the #NMSettingPPP:mppe-stateful property of the setting
 
303
 **/
207
304
gboolean
208
305
nm_setting_ppp_get_mppe_stateful (NMSettingPPP *setting)
209
306
{
212
309
        return NM_SETTING_PPP_GET_PRIVATE (setting)->mppe_stateful;
213
310
}
214
311
 
 
312
/**
 
313
 * nm_setting_wired_get_crtscts:
 
314
 * @setting: the #NMSettingPPP
 
315
 *
 
316
 * Returns: the #NMSettingPPP:crtscts property of the setting
 
317
 **/
215
318
gboolean
216
319
nm_setting_ppp_get_crtscts (NMSettingPPP *setting)
217
320
{
220
323
        return NM_SETTING_PPP_GET_PRIVATE (setting)->crtscts;
221
324
}
222
325
 
 
326
/**
 
327
 * nm_setting_wired_get_baud:
 
328
 * @setting: the #NMSettingPPP
 
329
 *
 
330
 * Returns: the #NMSettingPPP:baud property of the setting
 
331
 **/
223
332
guint32
224
333
nm_setting_ppp_get_baud (NMSettingPPP *setting)
225
334
{
228
337
        return NM_SETTING_PPP_GET_PRIVATE (setting)->baud;
229
338
}
230
339
 
 
340
/**
 
341
 * nm_setting_wired_get_mru:
 
342
 * @setting: the #NMSettingPPP
 
343
 *
 
344
 * Returns: the #NMSettingPPP:mru property of the setting
 
345
 **/
231
346
guint32
232
347
nm_setting_ppp_get_mru (NMSettingPPP *setting)
233
348
{
236
351
        return NM_SETTING_PPP_GET_PRIVATE (setting)->mru;
237
352
}
238
353
 
 
354
/**
 
355
 * nm_setting_wired_get_mtu:
 
356
 * @setting: the #NMSettingPPP
 
357
 *
 
358
 * Returns: the #NMSettingPPP:mtu property of the setting
 
359
 **/
239
360
guint32
240
361
nm_setting_ppp_get_mtu (NMSettingPPP *setting)
241
362
{
244
365
        return NM_SETTING_PPP_GET_PRIVATE (setting)->mtu;
245
366
}
246
367
 
 
368
/**
 
369
 * nm_setting_wired_get_lcp_echo_failure:
 
370
 * @setting: the #NMSettingPPP
 
371
 *
 
372
 * Returns: the #NMSettingPPP:lcp-echo-failure property of the setting
 
373
 **/
247
374
guint32
248
375
nm_setting_ppp_get_lcp_echo_failure (NMSettingPPP *setting)
249
376
{
252
379
        return NM_SETTING_PPP_GET_PRIVATE (setting)->lcp_echo_failure;
253
380
}
254
381
 
 
382
/**
 
383
 * nm_setting_wired_get_lcp_echo_interval:
 
384
 * @setting: the #NMSettingPPP
 
385
 *
 
386
 * Returns: the #NMSettingPPP:lcp-echo-interval property of the setting
 
387
 **/
255
388
guint32
256
389
nm_setting_ppp_get_lcp_echo_interval (NMSettingPPP *setting)
257
390
{