projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add g_output_stream_write_all_async()
[platform/upstream/glib.git]
/
gio
/
gsrvtarget.c
diff --git
a/gio/gsrvtarget.c
b/gio/gsrvtarget.c
index
21c0575
..
232da5a
100644
(file)
--- a/
gio/gsrvtarget.c
+++ b/
gio/gsrvtarget.c
@@
-15,9
+15,7
@@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
*/
#include "config.h"
@@
-44,7
+42,7
@@
* then connect to whatever host was pointed to by that record.
*
* You can use g_resolver_lookup_service() or
* then connect to whatever host was pointed to by that record.
*
* You can use g_resolver_lookup_service() or
- * g_resolver_lookup_service_async() to find the #GSrvTarget
<!-- -->
s
+ * g_resolver_lookup_service_async() to find the #GSrvTargets
* for a given service. However, if you are simply planning to connect
* to the remote service, you can use #GNetworkService's
* #GSocketConnectable interface and not need to worry about
* for a given service. However, if you are simply planning to connect
* to the remote service, you can use #GNetworkService's
* #GSocketConnectable interface and not need to worry about
@@
-77,10
+75,10
@@
G_DEFINE_BOXED_TYPE (GSrvTarget, g_srv_target,
*
* Creates a new #GSrvTarget with the given parameters.
*
*
* Creates a new #GSrvTarget with the given parameters.
*
- * You should not need to use this; normally #GSrvTarget
<!-- -->
s are
+ * You should not need to use this; normally #GSrvTargets are
* created by #GResolver.
*
* created by #GResolver.
*
- * Return
value
: a new #GSrvTarget.
+ * Return
s
: a new #GSrvTarget.
*
* Since: 2.22
*/
*
* Since: 2.22
*/
@@
-106,7
+104,7
@@
g_srv_target_new (const gchar *hostname,
*
* Copies @target
*
*
* Copies @target
*
- * Return
value
: a copy of @target
+ * Return
s
: a copy of @target
*
* Since: 2.22
*/
*
* Since: 2.22
*/
@@
-141,7
+139,7
@@
g_srv_target_free (GSrvTarget *target)
* check if it contains encoded Unicode segments, and use
* g_hostname_to_unicode() to convert it if it does.)
*
* check if it contains encoded Unicode segments, and use
* g_hostname_to_unicode() to convert it if it does.)
*
- * Return
value
: @target's hostname
+ * Return
s
: @target's hostname
*
* Since: 2.22
*/
*
* Since: 2.22
*/
@@
-157,7
+155,7
@@
g_srv_target_get_hostname (GSrvTarget *target)
*
* Gets @target's port
*
*
* Gets @target's port
*
- * Return
value
: @target's port
+ * Return
s
: @target's port
*
* Since: 2.22
*/
*
* Since: 2.22
*/
@@
-175,7
+173,7
@@
g_srv_target_get_port (GSrvTarget *target)
* #GResolver already sorts the targets according to the algorithm in
* RFC 2782.
*
* #GResolver already sorts the targets according to the algorithm in
* RFC 2782.
*
- * Return
value
: @target's priority
+ * Return
s
: @target's priority
*
* Since: 2.22
*/
*
* Since: 2.22
*/
@@
-193,7
+191,7
@@
g_srv_target_get_priority (GSrvTarget *target)
* #GResolver already sorts the targets according to the algorithm in
* RFC 2782.
*
* #GResolver already sorts the targets according to the algorithm in
* RFC 2782.
*
- * Return
value
: @target's weight
+ * Return
s
: @target's weight
*
* Since: 2.22
*/
*
* Since: 2.22
*/
@@
-203,7
+201,7
@@
g_srv_target_get_weight (GSrvTarget *target)
return target->weight;
}
return target->weight;
}
-gint
+
static
gint
compare_target (gconstpointer a, gconstpointer b)
{
GSrvTarget *ta = (GSrvTarget *)a;
compare_target (gconstpointer a, gconstpointer b)
{
GSrvTarget *ta = (GSrvTarget *)a;
@@
-227,7
+225,7
@@
compare_target (gconstpointer a, gconstpointer b)
*
* Sorts @targets in place according to the algorithm in RFC 2782.
*
*
* Sorts @targets in place according to the algorithm in RFC 2782.
*
- * Return
value
: (transfer full): the head of the sorted list.
+ * Return
s
: (transfer full): the head of the sorted list.
*
* Since: 2.22
*/
*
* Since: 2.22
*/