6aa3d40bc0
* doc-src/ui_seperation.txt ** NEW ** information for ui seperation * src/Makefile.am remove files that were moved to common include common directory by default for the header files * src/inc.c * src/common/socket.c * src/automaton.[ch] implement automaton using g_io_*-functions instead of gdk_input_add to make it ui independent * src/codeconv.c * src/compose.c * src/ldif.c * src/pgptext.c * src/procmime.c * src/rfc2015.c * src/smtp.c * src/unmime.c remove common/ prefix because directory is now in include path * src/compose.c * src/folder.c * src/folderview.c * src/mainwindow.c * src/messageview.c * src/prefs_common.c * src/procmsg.c * src/rfc2015.c fix warnings * src/imap.c * src/inc.c * src/news.c * src/pop.c * src/send.c * src/smtp.c * src/ssl_certificate.c add log.h header file for logging functions * src/main.c * src/common/utils.c * src/summaryview.c * src/xml.c o move debug_mode to commno/utils.c o add functions to set and get debug_mode * src/defs.h ** REMOVE ** * src/intl.h ** REMOVE ** * src/socket.[ch] ** REMOVE ** * src/ssl.[ch] ** REMOVE ** * src/utils.[ch] ** REMOVE ** replaced by new files in src/common/ * src/common/Makefile.am add new files in src/common/ * src/common/defs.h ** NEW ** * src/common/intl.h ** NEW ** * src/common/log.[ch] ** NEW ** * src/common/socket.[ch] ** NEW ** * src/common/ssl.[ch] ** NEW ** * src/common/utils.[ch] ** NEW ** replacement for files in src/
69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
/*
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
|
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __AUTOMATON_H__
|
|
#define __AUTOMATON_H__
|
|
|
|
#include <glib.h>
|
|
|
|
#include "socket.h"
|
|
|
|
typedef struct _AtmState AtmState;
|
|
typedef struct _Automaton Automaton;
|
|
|
|
typedef gint (*AtmHandler) (SockInfo *source,
|
|
gpointer data);
|
|
typedef void (*AtmUIFunc) (gpointer data,
|
|
gint state);
|
|
|
|
struct _AtmState
|
|
{
|
|
GIOCondition condition;
|
|
gint (*handler) (SockInfo *source,
|
|
gpointer data);
|
|
};
|
|
|
|
struct _Automaton
|
|
{
|
|
gint max;
|
|
gint num;
|
|
gint tag;
|
|
guint timeout_tag;
|
|
guint elapsed;
|
|
gboolean cancelled;
|
|
gboolean terminated;
|
|
|
|
gpointer data;
|
|
AtmState *state;
|
|
|
|
gint (*terminate) (SockInfo *source,
|
|
gpointer data);
|
|
|
|
AtmUIFunc ui_func;
|
|
|
|
SockInfo *help_sock;
|
|
};
|
|
|
|
Automaton *automaton_create (gint num);
|
|
void automaton_destroy (Automaton *atm);
|
|
gboolean automaton_input_cb (GIOChannel *channel,
|
|
GIOCondition condition,
|
|
gpointer data);
|
|
|
|
#endif /* __AUTOMATON_H__ */
|