Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotate remaining nullable return types #205

Merged
merged 1 commit into from Oct 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -213,7 +213,7 @@ as_agreement_get_sections (AsAgreement *agreement)
*
* Gets the first section in the agreement.
*
* Returns: (transfer none): agreement section, or %NULL
* Returns: (transfer none) (nullable): agreement section, or %NULL
*
* Since: 0.12.1
**/
@@ -311,7 +311,7 @@ as_metadata_xml_parse_components_node (AsMetadata *metad, AsContext *context, xm
*
* Read an array of #AsComponent from AppStream YAML metadata.
*
* Returns: (transfer container) (element-type AsComponent): An array of #AsComponent or %NULL
* Returns: (transfer container) (element-type AsComponent) (nullable): An array of #AsComponent or %NULL
*/
static GPtrArray*
as_metadata_yaml_parse_collection_doc (AsMetadata *metad, AsContext *context, const gchar *data, GError **error)
@@ -1098,7 +1098,7 @@ as_metadata_add_component (AsMetadata *metad, AsComponent *cpt)
* If the AppStream XML contained multiple components, return the first
* component that has been parsed.
*
* Returns: (transfer none): An #AsComponent or %NULL
* Returns: (transfer none) (nullable): An #AsComponent or %NULL
**/
AsComponent*
as_metadata_get_component (AsMetadata *metad)
@@ -232,7 +232,7 @@ as_release_set_kind (AsRelease *release, AsReleaseKind kind)
*
* Gets the release version.
*
* Returns: string, or %NULL for not set or invalid
* Returns: (nullable): string, or %NULL for not set or invalid
**/
const gchar*
as_release_get_version (AsRelease *release)
@@ -380,7 +380,7 @@ as_release_set_size (AsRelease *release, guint64 size, AsSizeKind kind)
*
* Gets the release description markup for a given locale.
*
* Returns: markup, or %NULL for not set or invalid
* Returns: (nullable): markup, or %NULL for not set or invalid
**/
const gchar*
as_release_get_description (AsRelease *release)
@@ -512,7 +512,7 @@ as_release_get_checksums (AsRelease *release)
*
* Gets the release checksum
*
* Returns: (transfer none): an #AsChecksum, or %NULL for not set or invalid
* Returns: (transfer none) (nullable): an #AsChecksum, or %NULL for not set or invalid
*
* Since: 0.8.2
**/
@@ -247,7 +247,7 @@ as_utils_spdx_license_3to2 (const gchar *license3)
* with "|". Brackets are added as indervidual tokens and other strings are
* appended into single tokens where possible.
*
* Returns: (transfer full): array of strings, or %NULL for invalid
* Returns: (transfer full) (nullable): array of strings, or %NULL for invalid
*
* Since: 0.9.8
**/
@@ -302,7 +302,7 @@ as_spdx_license_tokenize (const gchar *license)
*
* De-tokenizes the SPDX licenses into a string.
*
* Returns: (transfer full): string, or %NULL for invalid
* Returns: (transfer full) (nullable): string, or %NULL for invalid
*
* Since: 0.9.8
**/
@@ -726,7 +726,7 @@ as_utils_locale_to_language (const gchar *locale)
*
* Finds a string in a pointer array.
*
* Returns: the const string, or %NULL if not found
* Returns: (nullable): the const string, or %NULL if not found
**/
const gchar*
as_ptr_array_find_string (GPtrArray *array, const gchar *value)