mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
docs: Use ‘look up’ as a verb, rather than the noun ‘lookup’
Another niggle fixed. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -188,7 +188,7 @@ g_dbus_object_manager_get_objects (GDBusObjectManager *manager)
|
||||
/**
|
||||
* g_dbus_object_manager_get_object:
|
||||
* @manager: A #GDBusObjectManager.
|
||||
* @object_path: Object path to lookup.
|
||||
* @object_path: Object path to look up.
|
||||
*
|
||||
* Gets the #GDBusObjectProxy at @object_path, if any.
|
||||
*
|
||||
@@ -209,8 +209,8 @@ g_dbus_object_manager_get_object (GDBusObjectManager *manager,
|
||||
/**
|
||||
* g_dbus_object_manager_get_interface:
|
||||
* @manager: A #GDBusObjectManager.
|
||||
* @object_path: Object path to lookup.
|
||||
* @interface_name: D-Bus interface name to lookup.
|
||||
* @object_path: Object path to look up.
|
||||
* @interface_name: D-Bus interface name to look up.
|
||||
*
|
||||
* Gets the interface proxy for @interface_name at @object_path, if
|
||||
* any.
|
||||
|
@@ -917,7 +917,7 @@ g_file_attribute_info_list_bsearch (GFileAttributeInfoList *list,
|
||||
/**
|
||||
* g_file_attribute_info_list_lookup:
|
||||
* @list: a #GFileAttributeInfoList.
|
||||
* @name: the name of the attribute to lookup.
|
||||
* @name: the name of the attribute to look up.
|
||||
*
|
||||
* Gets the file attribute with the name @name from @list.
|
||||
*
|
||||
|
@@ -715,11 +715,11 @@ typedef enum {
|
||||
|
||||
/**
|
||||
* GResolverRecordType:
|
||||
* @G_RESOLVER_RECORD_SRV: lookup DNS SRV records for a domain
|
||||
* @G_RESOLVER_RECORD_MX: lookup DNS MX records for a domain
|
||||
* @G_RESOLVER_RECORD_TXT: lookup DNS TXT records for a name
|
||||
* @G_RESOLVER_RECORD_SOA: lookup DNS SOA records for a zone
|
||||
* @G_RESOLVER_RECORD_NS: lookup DNS NS records for a domain
|
||||
* @G_RESOLVER_RECORD_SRV: look up DNS SRV records for a domain
|
||||
* @G_RESOLVER_RECORD_MX: look up DNS MX records for a domain
|
||||
* @G_RESOLVER_RECORD_TXT: look up DNS TXT records for a name
|
||||
* @G_RESOLVER_RECORD_SOA: look up DNS SOA records for a zone
|
||||
* @G_RESOLVER_RECORD_NS: look up DNS NS records for a domain
|
||||
*
|
||||
* The type of record that g_resolver_lookup_records() or
|
||||
* g_resolver_lookup_records_async() should retrieve. The records are returned
|
||||
|
@@ -1347,7 +1347,7 @@ g_network_address_address_enumerator_next_async (GSocketAddressEnumerator *enum
|
||||
|
||||
addr_enum->state = RESOLVE_STATE_WAITING_ON_IPV4 | RESOLVE_STATE_WAITING_ON_IPV6;
|
||||
addr_enum->queued_task = g_steal_pointer (&task);
|
||||
/* Lookup in parallel as per RFC 8305 */
|
||||
/* Look up in parallel as per RFC 8305 */
|
||||
g_resolver_lookup_by_name_with_flags_async (resolver,
|
||||
addr->priv->hostname,
|
||||
G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY,
|
||||
|
@@ -52,7 +52,7 @@ g_proxy_default_init (GProxyInterface *iface)
|
||||
* g_proxy_get_default_for_protocol:
|
||||
* @protocol: the proxy protocol name (e.g. http, socks, etc)
|
||||
*
|
||||
* Lookup "gio-proxy" extension point for a proxy implementation that supports
|
||||
* Find the `gio-proxy` extension point for a proxy implementation that supports
|
||||
* specified protocol.
|
||||
*
|
||||
* Returns: (transfer full): return a #GProxy or NULL if protocol
|
||||
|
@@ -1041,8 +1041,8 @@ g_resolver_free_targets (GList *targets)
|
||||
/**
|
||||
* g_resolver_lookup_records:
|
||||
* @resolver: a #GResolver
|
||||
* @rrname: the DNS name to lookup the record for
|
||||
* @record_type: the type of DNS record to lookup
|
||||
* @rrname: the DNS name to look up the record for
|
||||
* @record_type: the type of DNS record to look up
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @error: return location for a #GError, or %NULL
|
||||
*
|
||||
@@ -1086,8 +1086,8 @@ g_resolver_lookup_records (GResolver *resolver,
|
||||
/**
|
||||
* g_resolver_lookup_records_async:
|
||||
* @resolver: a #GResolver
|
||||
* @rrname: the DNS name to lookup the record for
|
||||
* @record_type: the type of DNS record to lookup
|
||||
* @rrname: the DNS name to look up the record for
|
||||
* @record_type: the type of DNS record to look up
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @callback: (scope async): callback to call after resolution completes
|
||||
* @user_data: (closure): data for @callback
|
||||
|
@@ -498,7 +498,7 @@ g_settings_get_mapping (GValue *value,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
g_warning ("Unable to lookup enum nick '%s' via GType", nick);
|
||||
g_warning ("Unable to look up enum nick ‘%s’ via GType", nick);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
@@ -35,7 +35,7 @@
|
||||
* @short_description: TLS database type
|
||||
* @include: gio/gio.h
|
||||
*
|
||||
* #GTlsDatabase is used to lookup certificates and other information
|
||||
* #GTlsDatabase is used to look up certificates and other information
|
||||
* from a certificate or key store. It is an abstract base class which
|
||||
* TLS library specific subtypes override.
|
||||
*
|
||||
@@ -658,7 +658,7 @@ g_tls_database_create_certificate_handle (GTlsDatabase *self,
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @error: (nullable): a #GError, or %NULL
|
||||
*
|
||||
* Lookup a certificate by its handle.
|
||||
* Look up a certificate by its handle.
|
||||
*
|
||||
* The handle should have been created by calling
|
||||
* g_tls_database_create_certificate_handle() on a #GTlsDatabase object of
|
||||
@@ -709,7 +709,7 @@ g_tls_database_lookup_certificate_for_handle (GTlsDatabase *self,
|
||||
* @callback: callback to call when the operation completes
|
||||
* @user_data: the data to pass to the callback function
|
||||
*
|
||||
* Asynchronously lookup a certificate by its handle in the database. See
|
||||
* Asynchronously look up a certificate by its handle in the database. See
|
||||
* g_tls_database_lookup_certificate_for_handle() for more information.
|
||||
*
|
||||
* Since: 2.30
|
||||
@@ -777,7 +777,7 @@ g_tls_database_lookup_certificate_for_handle_finish (GTlsDatabase *se
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @error: (nullable): a #GError, or %NULL
|
||||
*
|
||||
* Lookup the issuer of @certificate in the database.
|
||||
* Look up the issuer of @certificate in the database.
|
||||
*
|
||||
* The #GTlsCertificate:issuer property
|
||||
* of @certificate is not modified, and the two certificates are not hooked
|
||||
@@ -823,7 +823,7 @@ g_tls_database_lookup_certificate_issuer (GTlsDatabase *self,
|
||||
* @callback: callback to call when the operation completes
|
||||
* @user_data: the data to pass to the callback function
|
||||
*
|
||||
* Asynchronously lookup the issuer of @certificate in the database. See
|
||||
* Asynchronously look up the issuer of @certificate in the database. See
|
||||
* g_tls_database_lookup_certificate_issuer() for more information.
|
||||
*
|
||||
* Since: 2.30
|
||||
@@ -889,7 +889,7 @@ g_tls_database_lookup_certificate_issuer_finish (GTlsDatabase *self,
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @error: (nullable): a #GError, or %NULL
|
||||
*
|
||||
* Lookup certificates issued by this issuer in the database.
|
||||
* Look up certificates issued by this issuer in the database.
|
||||
*
|
||||
* This function can block, use g_tls_database_lookup_certificates_issued_by_async() to perform
|
||||
* the lookup operation asynchronously.
|
||||
@@ -931,7 +931,7 @@ g_tls_database_lookup_certificates_issued_by (GTlsDatabase *self,
|
||||
* @callback: callback to call when the operation completes
|
||||
* @user_data: the data to pass to the callback function
|
||||
*
|
||||
* Asynchronously lookup certificates issued by this issuer in the database. See
|
||||
* Asynchronously look up certificates issued by this issuer in the database. See
|
||||
* g_tls_database_lookup_certificates_issued_by() for more information.
|
||||
*
|
||||
* The database may choose to hold a reference to the issuer byte array for the duration
|
||||
|
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
|
||||
/**
|
||||
* GVfsFileLookupFunc:
|
||||
* @vfs: a #GVfs
|
||||
* @identifier: the identifier to lookup a #GFile for. This can either
|
||||
* @identifier: the identifier to look up a #GFile for. This can either
|
||||
* be an URI or a parse name as returned by g_file_get_parse_name()
|
||||
* @user_data: user data passed to the function
|
||||
*
|
||||
|
@@ -61,24 +61,24 @@
|
||||
*
|
||||
* The operations that someone may want to perform with the map:
|
||||
*
|
||||
* - lookup if a string is valid (and not an alias)
|
||||
* - lookup the integer value for a enum 'nick'
|
||||
* - lookup the integer value for the target of an alias
|
||||
* - lookup an alias and convert it to its target string
|
||||
* - lookup the enum nick for a given value
|
||||
* - look up if a string is valid (and not an alias)
|
||||
* - look up the integer value for a enum 'nick'
|
||||
* - look up the integer value for the target of an alias
|
||||
* - look up an alias and convert it to its target string
|
||||
* - look up the enum nick for a given value
|
||||
*
|
||||
* In order to lookup if a string is valid, it is padded on either side
|
||||
* In order to look up if a string is valid, it is padded on either side
|
||||
* (as described) and scanned for in the array. For example, you might
|
||||
* look for "foo":
|
||||
*
|
||||
* xff 'f' 'o' 'o' x00 x00 x00 xff
|
||||
*
|
||||
* In order to lookup the integer value for a nick, the string is padded
|
||||
* In order to look up the integer value for a nick, the string is padded
|
||||
* on either side and scanned for in the array, as above. Instead of
|
||||
* merely succeeding, we look at the integer value to the left of the
|
||||
* match. This is the enum value.
|
||||
*
|
||||
* In order to lookup an alias and convert it to its target enum value,
|
||||
* In order to look up an alias and convert it to its target enum value,
|
||||
* the string is padded on either side (as described, with 0xfe) and
|
||||
* scanned for. For example, you might look for "baz":
|
||||
*
|
||||
@@ -92,7 +92,7 @@
|
||||
* added past the start of the integer value to find the start of the
|
||||
* string.
|
||||
*
|
||||
* To lookup the enum nick for a given value, the value is searched for
|
||||
* To look up the enum nick for a given value, the value is searched for
|
||||
* in the array. To ensure that the value isn't matching the inside of a
|
||||
* string, we must check that it is either the first item in the array or
|
||||
* immediately preceded by the byte 0xff. It must also be immediately
|
||||
|
@@ -659,7 +659,7 @@ test_search (void)
|
||||
assert_search ("konq", "kde4-konqbrowser.desktop\n", TRUE, TRUE, NULL, NULL);
|
||||
assert_search ("kate", "kde4-kate.desktop\n", TRUE, TRUE, NULL, NULL);
|
||||
|
||||
/* make sure we can lookup apps by name properly */
|
||||
/* make sure we can look up apps by name properly */
|
||||
assert_info ("kde4-kate.desktop",
|
||||
"kde4-kate.desktop\n"
|
||||
"Kate\n"
|
||||
|
@@ -49,7 +49,7 @@ usage (void)
|
||||
fprintf (stderr, " Use -s to do synchronous lookups.\n");
|
||||
fprintf (stderr, " Use -c NUMBER (and only a single resolvable argument) to test GSocketConnectable.\n");
|
||||
fprintf (stderr, " The given NUMBER determines how many times the connectable will be enumerated.\n");
|
||||
fprintf (stderr, " Use -t with MX, TXT, NS or SOA to lookup DNS records of those types.\n");
|
||||
fprintf (stderr, " Use -t with MX, TXT, NS or SOA to look up DNS records of those types.\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user