Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
NetworkManager
NetworkManager
Commits
b582b4e3
Commit
b582b4e3
authored
Jul 12, 2009
by
Dan Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: clarify UUID property, document NMSettingCdma
parent
1bb49293
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
libnm-util/nm-setting-cdma.c
libnm-util/nm-setting-cdma.c
+64
-0
libnm-util/nm-setting-connection.c
libnm-util/nm-setting-connection.c
+5
-0
No files found.
libnm-util/nm-setting-cdma.c
View file @
b582b4e3
...
...
@@ -26,6 +26,23 @@
#include "nm-setting-serial.h"
#include "nm-utils.h"
/**
* SECTION:nm-setting-cdma
* @short_description: Describes CDMA-based mobile broadband properties
* @include: nm-setting-cdma.h
*
* The #NMSettingCdma object is a #NMSetting subclass that describes
* properties that allow connections to IS-95-based mobile broadband
* networks, including those using CDMA2000/EVDO technology.
*/
/**
* nm_setting_cdma_error_quark:
*
* Registers an error quark for #NMSettingCdma if necessary.
*
* Returns: the error quark used for #NMSettingCdma errors.
**/
GQuark
nm_setting_cdma_error_quark
(
void
)
{
...
...
@@ -81,12 +98,25 @@ enum {
LAST_PROP
};
/**
* nm_setting_cdma_new:
*
* Creates a new #NMSettingCdma object with default values.
*
* Returns: the new empty #NMSettingCdma object
**/
NMSetting
*
nm_setting_cdma_new
(
void
)
{
return
(
NMSetting
*
)
g_object_new
(
NM_TYPE_SETTING_CDMA
,
NULL
);
}
/**
* nm_setting_cdma_get_number:
* @setting: the #NMSettingCdma
*
* Returns: the #NMSettingCdma:number property of the setting
**/
const
char
*
nm_setting_cdma_get_number
(
NMSettingCdma
*
setting
)
{
...
...
@@ -95,6 +125,12 @@ nm_setting_cdma_get_number (NMSettingCdma *setting)
return
NM_SETTING_CDMA_GET_PRIVATE
(
setting
)
->
number
;
}
/**
* nm_setting_cdma_get_username:
* @setting: the #NMSettingCdma
*
* Returns: the #NMSettingCdma:username property of the setting
**/
const
char
*
nm_setting_cdma_get_username
(
NMSettingCdma
*
setting
)
{
...
...
@@ -103,6 +139,12 @@ nm_setting_cdma_get_username (NMSettingCdma *setting)
return
NM_SETTING_CDMA_GET_PRIVATE
(
setting
)
->
username
;
}
/**
* nm_setting_cdma_get_password:
* @setting: the #NMSettingCdma
*
* Returns: the #NMSettingCdma:password property of the setting
**/
const
char
*
nm_setting_cdma_get_password
(
NMSettingCdma
*
setting
)
{
...
...
@@ -266,6 +308,14 @@ nm_setting_cdma_class_init (NMSettingCdmaClass *setting_class)
parent_class
->
need_secrets
=
need_secrets
;
/* Properties */
/**
* NMSettingCdma:number:
*
* The number to dial to establish the connection to the CDMA-based mobile
* broadband network, if any. If not specified, the default number (#777)
* is used when required.
**/
g_object_class_install_property
(
object_class
,
PROP_NUMBER
,
g_param_spec_string
(
NM_SETTING_CDMA_NUMBER
,
...
...
@@ -274,6 +324,13 @@ nm_setting_cdma_class_init (NMSettingCdmaClass *setting_class)
NULL
,
G_PARAM_READWRITE
|
NM_SETTING_PARAM_SERIALIZE
));
/**
* NMSettingCdma:username:
*
* The username used to authenticate with the network, if required. Many
* providers do not require a username, or accept any username. But if a
* username is required, it is specified here.
**/
g_object_class_install_property
(
object_class
,
PROP_USERNAME
,
g_param_spec_string
(
NM_SETTING_CDMA_USERNAME
,
...
...
@@ -282,6 +339,13 @@ nm_setting_cdma_class_init (NMSettingCdmaClass *setting_class)
NULL
,
G_PARAM_READWRITE
|
NM_SETTING_PARAM_SERIALIZE
));
/**
* NMSettingCdma:password:
*
* The password used to authenticate with the network, if required. Many
* providers do not require a password, or accept any password. But if a
* password is required, it is specified here.
**/
g_object_class_install_property
(
object_class
,
PROP_PASSWORD
,
g_param_spec_string
(
NM_SETTING_CDMA_PASSWORD
,
...
...
libnm-util/nm-setting-connection.c
View file @
b582b4e3
...
...
@@ -417,6 +417,11 @@ nm_setting_connection_class_init (NMSettingConnectionClass *setting_class)
* #NMSettingConnection:id or #NMSettingIP4Config changes, but might need
* to be re-created when the WiFi SSID, mobile broadband network provider,
* or #NMSettingConnection:type changes.
*
* The UUID must be in the format '2815492f-7e56-435e-b2e9-246bd7cdc664'
* (ie, contains only hexadecimal characters and '-'). A suitable UUID may
* be generated by nm_utils_uuid_generate() or
* nm_utils_uuid_generate_from_string().
**/
g_object_class_install_property
(
object_class
,
PROP_UUID
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment