view src/protocols/zephyr/init_et.c @ 10475:94fd0bf8c4b1

[gaim-migrate @ 11762] sf patch #1094341, from Richard Laager implements sf rfe #1090971 "tracks when a buddy was last seen and displays this value in the tooltip for offline and "signing on" buddies." The changes for this feature were pretty small and self-contained, and it's a neat feature. Then I started changing other things. I changed the way tooltips are created to use GStrings. I think it's easier to make changes without screwing stuff up, and the code is hopefully a bit easier to read through. I also changed how Add a Chat and Join a Chat work slightly. Now PRPLs can specify if a field is required or not, and the dialogs will not allow the user to click on "ok" if the field is not filled in. For example, when joining an oscar chat, the room name MUST be specified. This change and I think something else minor should fix the problem with adding chats to the buddy list that didn't have names. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 05 Jan 2005 05:52:10 +0000
parents 43dec50d8d51
children 64895571248f
line wrap: on
line source

/*
 * $Header$
 * $Source$
 * $Locker$
 *
 * Copyright 1986, 1987, 1988 by MIT Information Systems and
 *	the MIT Student Information Processing Board.
 *
 * For copyright info, see mit-sipb-copyright.h.
 */

#include <sysdep.h>
/* #include "error_table.h" */
#include "mit-sipb-copyright.h"

#ifndef	lint
static const char rcsid_init_et_c[] =
    "$Header$";
#endif
/*
struct foobar {
    struct et_list etl;
    struct error_table et;
};
*/
extern struct et_list * _et_list;

/* int init_error_table(msgs, base, count) */
/*     const char * const * msgs; */
/*     int base; */
/*     int count; */
/* { */
/*     struct foobar * new_et; */

/*     if (!base || !count || !msgs) */
/* 	return 0; */

/*     new_et = (struct foobar *) malloc(sizeof(struct foobar)); */
/*     if (!new_et) */
/* 	return errno;	/\* oops *\/ */
/*     new_et->etl.table = &new_et->et; */
/*     new_et->et.msgs = msgs; */
/*     new_et->et.base = base; */
/*     new_et->et.n_msgs= count; */

/*     new_et->etl.next = _et_list; */
/*     _et_list = &new_et->etl; */
/*     return 0; */
/* } */