Frameworks/libpurple.framework/Versions/0.6.2/Headers/table.h
changeset 2592 e8d15275025e
parent 1739 8b0daad9656c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/table.h	Fri Aug 21 13:25:11 2009 -0700
     1.3 @@ -0,0 +1,53 @@
     1.4 +/**
     1.5 + * @file table.h MSN helper structure
     1.6 + *
     1.7 + * purple
     1.8 + *
     1.9 + * Purple is the legal property of its developers, whose names are too numerous
    1.10 + * to list here.  Please refer to the COPYRIGHT file distributed with this
    1.11 + * source distribution.
    1.12 + *
    1.13 + * This program is free software; you can redistribute it and/or modify
    1.14 + * it under the terms of the GNU General Public License as published by
    1.15 + * the Free Software Foundation; either version 2 of the License, or
    1.16 + * (at your option) any later version.
    1.17 + *
    1.18 + * This program is distributed in the hope that it will be useful,
    1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.21 + * GNU General Public License for more details.
    1.22 + *
    1.23 + * You should have received a copy of the GNU General Public License
    1.24 + * along with this program; if not, write to the Free Software
    1.25 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    1.26 + */
    1.27 +#ifndef _MSN_TABLE_H_
    1.28 +#define _MSN_TABLE_H_
    1.29 +
    1.30 +typedef struct _MsnTable MsnTable;
    1.31 +
    1.32 +#include "cmdproc.h"
    1.33 +#include "transaction.h"
    1.34 +#include "msg.h"
    1.35 +
    1.36 +typedef void (*MsnMsgTypeCb)(MsnCmdProc *cmdproc, MsnMessage *msg);
    1.37 +
    1.38 +struct _MsnTable
    1.39 +{
    1.40 +	GHashTable *cmds;
    1.41 +	GHashTable *msgs;
    1.42 +	GHashTable *errors;
    1.43 +
    1.44 +	GHashTable *async;
    1.45 +	GHashTable *fallback;
    1.46 +};
    1.47 +
    1.48 +MsnTable *msn_table_new(void);
    1.49 +void msn_table_destroy(MsnTable *table);
    1.50 +
    1.51 +void msn_table_add_cmd(MsnTable *table, char *command, char *answer,
    1.52 +					   MsnTransCb cb);
    1.53 +void msn_table_add_error(MsnTable *table, char *answer, MsnErrorCb cb);
    1.54 +void msn_table_add_msg_type(MsnTable *table, char *type, MsnMsgTypeCb cb);
    1.55 +
    1.56 +#endif /* _MSN_TABLE_H_ */