view src/protocols/zephyr/ZNewLocU.c @ 4596:7e1591c6d0d8

[gaim-migrate @ 4881] Bjoern Voigt writes: "The patch --------- Some small i18n fixes - some new files in po/POTFILES.in (I hope, there are now all files, with gettext-strings) - a translation for the "boring default" away message (not hardcoded any more) - translations for the Menu Bar during conversations After looking in gconf-editor, I saw, that the static items should be marked with N_(...) = gettext_noop. The strings can now be translated, but unfortunately I still can see them. - Yahoo away messages translation German translation ------------------ 2 strings are untranslated: #: src/gaim-disclosure.c:253 msgid "Expander Size" msgstr "" #: src/gaim-disclosure.c:254 msgid "Size of the expander arrow" msgstr "" File transfer doen't work on my box and so I cannot test the function." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 21 Feb 2003 04:33:56 +0000
parents 424a40f12a6c
children 43d6c08d7e96
line wrap: on
line source

/* This file is part of the Project Athena Zephyr Notification System.
 * It contains source for the ZNewLocateUser function.
 *
 *	Created by:	Robert French
 *
 *	$Source$
 *	$Author: warmenhoven $
 *
 *	Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology.
 *	For copying and distribution information, see the file
 *	"mit-copyright.h". 
 */
/* $Header$ */

#include <internal.h>

#ifndef lint
static const char rcsid_ZNewLocateUser_c[] =
    "$Id: ZNewLocU.c 2096 2001-07-31 01:00:39Z warmenhoven $";
#endif

Code_t ZLocateUser(user, nlocs, auth)
    char *user;
    int *nlocs;
    Z_AuthProc auth;
{
    Code_t retval;
    ZNotice_t notice;
    ZAsyncLocateData_t zald;

    (void) ZFlushLocations();	/* ZFlushLocations never fails (the library
				   is allowed to know this). */

    if ((retval = ZRequestLocations(user, &zald, UNACKED, auth)) != ZERR_NONE)
	return(retval);

    retval = Z_WaitForNotice (&notice, ZCompareALDPred, &zald, SRV_TIMEOUT);
    if (retval == ZERR_NONOTICE)
	return ETIMEDOUT;
    if (retval != ZERR_NONE)
	return retval;

    if ((retval = ZParseLocations(&notice, &zald, nlocs, NULL)) != ZERR_NONE) {
	ZFreeNotice(&notice);
	return(retval);
    }

    ZFreeNotice(&notice);
    ZFreeALD(&zald);
    return(ZERR_NONE);
}