summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-03-17 14:25:50 +0100
committerStef Walter <stefw@gnome.org>2012-03-17 14:25:50 +0100
commit823f8e61fda18e557749f7ad128cb9ed832079af (patch)
tree34215cfd55d81c1c47b8135536d16de820b7ff87
parent7439fcb68e191ca0ca3e08334e07ac66093aa406 (diff)
downloadlibsecret-823f8e61fda18e557749f7ad128cb9ed832079af.tar.gz
Round up the documentation
-rw-r--r--.gitignore1
-rw-r--r--docs/reference/libsecret/libsecret-docs.sgml1
-rw-r--r--docs/reference/libsecret/libsecret-sections.txt23
-rw-r--r--library/secret-collection.c2
-rw-r--r--library/secret-item.c2
-rw-r--r--library/secret-prompt.c2
-rw-r--r--library/secret-schema.c29
-rw-r--r--library/secret-service.c11
8 files changed, 52 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore
index ce462df..cfe5cd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,6 +51,7 @@ stamp*
/docs/reference/libsecret/libsecret-unused.txt
/docs/reference/libsecret/libsecret.args
/docs/reference/libsecret/libsecret.hierarchy
+/docs/reference/libsecret/libsecret.interfaces
/docs/reference/libsecret/libsecret.prerequisites
/docs/reference/libsecret/libsecret.signals
/docs/reference/libsecret/tmpl
diff --git a/docs/reference/libsecret/libsecret-docs.sgml b/docs/reference/libsecret/libsecret-docs.sgml
index cd8a762..067f151 100644
--- a/docs/reference/libsecret/libsecret-docs.sgml
+++ b/docs/reference/libsecret/libsecret-docs.sgml
@@ -16,6 +16,7 @@
<part id="simple">
<title>Simple API</title>
<xi:include href="xml/secret-password.xml"/>
+ <xi:include href="xml/secret-schema.xml"/>
</part>
<part id="complete">
diff --git a/docs/reference/libsecret/libsecret-sections.txt b/docs/reference/libsecret/libsecret-sections.txt
index eaaf7d4..c68850c 100644
--- a/docs/reference/libsecret/libsecret-sections.txt
+++ b/docs/reference/libsecret/libsecret-sections.txt
@@ -86,6 +86,8 @@ secret_error_get_type
<SECTION>
<FILE>secret-password</FILE>
+SECRET_COLLECTION_DEFAULT
+SECRET_COLLECTION_SESSION
secret_password_store
secret_password_storev
secret_password_store_finish
@@ -94,29 +96,42 @@ secret_password_storev_sync
secret_password_lookup
secret_password_lookupv
secret_password_lookup_finish
+secret_password_lookup_nonpageable_finish
secret_password_lookup_sync
+secret_password_lookup_nonpageable_sync
secret_password_lookupv_sync
+secret_password_lookupv_nonpageable_sync
secret_password_remove
secret_password_removev
secret_password_remove_finish
secret_password_remove_sync
secret_password_removev_sync
secret_password_free
+
</SECTION>
<SECTION>
<FILE>secret-schema</FILE>
SecretSchema
+SECRET_SCHEMA_IDENTIFIER_GENERIC
+SECRET_SCHEMA_IDENTIFIER_NETWORK
+SECRET_SCHEMA_IDENTIFIER_NOTE
+SECRET_SCHEMA_GENERIC
+SECRET_SCHEMA_NETWORK
+SECRET_SCHEMA_NOTE
+SecretSchemaFlags
SecretSchemaAttribute
-SecretAttributeType
+SecretSchemaAttributeType
secret_schema_new
secret_schema_ref
secret_schema_unref
<SUBSECTION Standard>
-SECRET_TYPE_SCHEMA
secret_schema_get_type
-SECRET_TYPE_ATTRIBUTE_TYPE
-secret_attribute_type_get_type
+secret_schema_attribute_get_type
+secret_schema_attribute_type_get_type
+secret_schema_flags_get_type
+SECRET_TYPE_SCHEMA_FLAGS
+SECRET_TYPE_SCHEMA_ATTRIBUTE_TYPE
</SECTION>
<SECTION>
diff --git a/library/secret-collection.c b/library/secret-collection.c
index dbebc25..2fc51f3 100644
--- a/library/secret-collection.c
+++ b/library/secret-collection.c
@@ -32,7 +32,7 @@
* A collection can be in a locked or unlocked state. Use secret_service_lock()
* or secret_service_unlock() to lock or unlock the collection.
*
- * Use the SecretCollection::items property or secret_service_get_items() to
+ * Use the SecretCollection::items property or secret_collection_get_items() to
* lookup the items in the collection. There may not be any items exposed when
* the collection is locked.
*/
diff --git a/library/secret-item.c b/library/secret-item.c
index 3ef790c..5099678 100644
--- a/library/secret-item.c
+++ b/library/secret-item.c
@@ -30,7 +30,7 @@
* #SecretItem represents a secret item stored in the Secret Service.
*
* Each item has a value, represented by a #SecretValue, which can be
- * retrieved by secret_service_get_secret() or set by secret_service_set_secret().
+ * retrieved by secret_item_get_secret() or set by secret_item_set_secret().
* The item is only available when the item is not locked.
*
* Items can be locked or unlocked using the secret_service_lock() or
diff --git a/library/secret-prompt.c b/library/secret-prompt.c
index 5cb4ee3..4f3e0bb 100644
--- a/library/secret-prompt.c
+++ b/library/secret-prompt.c
@@ -29,7 +29,7 @@
* Certain actions on the Secret Service require user prompting to complete,
* such as creating a collection, or unlocking a collection. When such a prompt
* is necessary, then a #SecretPrompt object is created by this library, and
- * passed to the secret_service_prompt_async() method. In this way it is handled
+ * passed to the secret_service_prompt() method. In this way it is handled
* automatically.
*
* In order to customize prompt handling, override the
diff --git a/library/secret-schema.c b/library/secret-schema.c
index 9772e08..d95b715 100644
--- a/library/secret-schema.c
+++ b/library/secret-schema.c
@@ -32,12 +32,14 @@
*
* Additional schemas can be defined via the %SecretSchema structure like this:
*
- * xxxx
+ * If the schema flags contain the %SECRET_SCHEMA_ALLOW_UNDEFINED flag, then
+ * undefined attributes are permitted.
*/
/**
* SecretSchema:
* @identifier: the dotted identifer of the schema
+ * @flags: flags for the schema
* @attributes: the attribute names and types of those attributes
*
* Represents a set of attributes that are stored with an item. These schemas
@@ -49,6 +51,17 @@
*
* Attributes are stored as strings in the Secret Service, and the attribute
* types simply define standard ways to store integer and boolean values as strings.
+ *
+ * If @flags contains the %SECRET_SCHEMA_ALLOW_UNDEFINED flag, then attributes
+ * not listed in @attributes are permitted.
+ */
+
+/**
+ * SecretSchemaFlags:
+ * @SECRET_SCHEMA_NONE: no flags for the schema
+ * @SECRET_SCHEMA_ALLOW_UNDEFINED: allow undefined attributes
+ *
+ * Flags for a #SecretSchema definition.
*/
/**
@@ -60,10 +73,10 @@
*/
/**
- * SecretAttributeType:
- * @SECRET_ATTRIBUTE_BOOLEAN: a boolean attribute, stored as 'true' or 'false'
- * @SECRET_ATTRIBUTE_INTEGER: an integer attribute, stored as a decimal
- * @SECRET_ATTRIBUTE_STRING: a utf-8 string attribute
+ * SecretSchemaAttributeType:
+ * @SECRET_SCHEMA_ATTRIBUTE_BOOLEAN: a boolean attribute, stored as 'true' or 'false'
+ * @SECRET_SCHEMA_ATTRIBUTE_INTEGER: an integer attribute, stored as a decimal
+ * @SECRET_SCHEMA_ATTRIBUTE_STRING: a utf-8 string attribute
*
* The type of an attribute in a #SecretSchema. Attributes are stored as strings
* in the Secret Service, and the attribute types simply define standard ways
@@ -131,6 +144,7 @@ G_DEFINE_BOXED_TYPE (SecretSchemaAttribute, secret_schema_attribute,
/**
* secret_schema_new:
* @identifier: the dotted identifier of the schema
+ * @flags: the flags for the schema
* @attributes: (element-type utf8 Secret.SchemaAttributeType): the attribute names and types of those attributes
*
* Using this function is not normally necessary from C code. This is useful
@@ -145,9 +159,12 @@ G_DEFINE_BOXED_TYPE (SecretSchemaAttribute, secret_schema_attribute,
* those attributes.
*
* Each key in the @attributes table should be a attribute name strings, and
- * the values in the table should be integers from the #SecretAttributeType
+ * the values in the table should be integers from the #SecretSchemaAttributeType
* enumeration, representing the attribute type for each attribute name.
*
+ * If @flags contains the %SECRET_SCHEMA_ALLOW_UNDEFINED flag, then attributes
+ * not listed in @attributes are permitted.
+ *
* Returns: (transfer full): the new schema, which should be unreferenced with
* secret_schema_unref() when done
*/
diff --git a/library/secret-service.c b/library/secret-service.c
index 04fd47d..31a4edc 100644
--- a/library/secret-service.c
+++ b/library/secret-service.c
@@ -57,12 +57,11 @@
* Certain actions on the Secret Service require user prompting to complete,
* such as creating a collection, or unlocking a collection. When such a prompt
* is necessary, then a #SecretPrompt object is created by this library, and
- * passed to the secret_service_prompt_async() method. In this way it is handled
+ * passed to the secret_service_prompt() method. In this way it is handled
* automatically.
*
- * In order to customize prompt handling, override the
- * SecretServiceClass::prompt_async and SecretServiceClass::prompt_finish
- * virtual methods of the #SecretService class.
+ * In order to customize prompt handling, override the <literal>prompt_async</literal>
+ * and <literal>prompt_finish</literal> virtual methods of the #SecretService class.
*/
/**
@@ -1410,7 +1409,7 @@ secret_service_ensure_collections_sync (SecretService *self,
* This function is called by other parts of this library to handle prompts
* for the various actions that can require prompting.
*
- * Override the #SecretServiceClass::prompt_sync() virtual method
+ * Override the #SecretServiceClass <literal>prompt_sync</literal> virtual method
* to change the behavior of the propmting. The default behavior is to simply
* run secret_prompt_perform_sync() on the prompt.
*
@@ -1448,7 +1447,7 @@ secret_service_prompt_sync (SecretService *self,
* This function is called by other parts of this library to handle prompts
* for the various actions that can require prompting.
*
- * Override the #SecretService <literal>prompt_async()</literal> virtual method
+ * Override the #SecretServiceClass <literal>prompt_async</literal> virtual method
* to change the behavior of the propmting. The default behavior is to simply
* run secret_prompt_perform() on the prompt.
*/