Mercurial > pidgin
comparison src/ft.h @ 6269:0a902bd3e170
[gaim-migrate @ 6766]
I'm going to be boiled alive for this.. Changing
gaim_xfers_get_local_system_ip() to use a static buffer that it returns
instead of a g_strdup()'d copy of the buffer... but that's rarely of use,
because I don't think the IP will be changing often enough where this will
screw up code :P Also, fixed a function's name, because I broke compiling
again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 22 Jul 2003 08:22:08 +0000 |
parents | 084e1f6610a8 |
children | 41120df7ed94 |
comparison
equal
deleted
inserted
replaced
6268:084e1f6610a8 | 6269:0a902bd3e170 |
---|---|
484 const char *gaim_xfers_get_local_ip(void); | 484 const char *gaim_xfers_get_local_ip(void); |
485 | 485 |
486 /** | 486 /** |
487 * Returns the IP address of the local system. | 487 * Returns the IP address of the local system. |
488 * | 488 * |
489 * @note The returned string is a pointer to a static buffer. If this | |
490 * function is called twice, it may be important to make a copy | |
491 * of the returned string. | |
492 * | |
493 * @return The local IP address. | |
494 */ | |
495 const char *gaim_xfers_get_local_system_ip(void); | |
496 | |
497 /** | |
498 * Returns the IP address that should be used for the specified account. | |
499 * | |
500 * First, the IP associated with @a account is tried, via a call to | |
501 * gaim_account_get_local_ip(). | |
502 * | |
503 * If that IP is not set, the IP set in preferences is tried. | |
504 * | |
505 * If that IP is not set, the system's local IP is tried, via a call to | |
506 * gaim_xfers_get_local_ip(). | |
507 * | |
489 * @note The returned IP address must be g_free()'d when no longer | 508 * @note The returned IP address must be g_free()'d when no longer |
490 * in use. | 509 * in use. |
491 * | 510 * |
492 * @return The local IP address. | 511 * @note The returned string is a pointer to a static buffer. If this |
493 */ | 512 * function is called twice, it may be important to make a copy |
494 char *gaim_xfers_get_local_system__ip(void); | 513 * of the returned string. |
495 | |
496 /** | |
497 * Returns the IP address that should be used for the specified account. | |
498 * | |
499 * First, the IP associated with @a account is tried, via a call to | |
500 * gaim_account_get_local_ip(). | |
501 * | |
502 * If that IP is not set, the IP set in preferences is tried. | |
503 * | |
504 * If that IP is not set, the system's local IP is tried, via a call to | |
505 * gaim_xfers_get_local_ip(). | |
506 * | |
507 * @note The returned IP address must be g_free()'d when no longer | |
508 * in use. | |
509 * | |
510 * @param account The account the IP is going to be used with. | |
511 * | 514 * |
512 * @return The local IP address to be used. | 515 * @return The local IP address to be used. |
513 */ | 516 */ |
514 char *gaim_xfers_get_ip_for_account(const GaimAccount *account); | 517 const char *gaim_xfers_get_ip_for_account(const GaimAccount *account); |
515 | 518 |
516 /** | 519 /** |
517 * Initializes the file transfer subsystem. | 520 * Initializes the file transfer subsystem. |
518 */ | 521 */ |
519 void gaim_xfers_init(void); | 522 void gaim_xfers_init(void); |