diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-10 16:32:28 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-10 16:32:28 +0800 |
commit | 585b25ad427f22c33b8e7344acc051a1c07e1fb9 (patch) | |
tree | b5be9f7f4b053f6f663b9f1b84cc6cd832ccd8ec /libempathy/action-chain-internal.h | |
parent | f6805650748b2851dcd22fa04901b91dd3ab0abd (diff) | |
parent | 3fe402f9da25077cf075c55263c78d613c62687a (diff) | |
download | gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.tar gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.tar.gz gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.tar.bz2 gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.tar.lz gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.tar.xz gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.tar.zst gsoc2013-empathy-585b25ad427f22c33b8e7344acc051a1c07e1fb9.zip |
Merge branch 'new-log-window'
Diffstat (limited to 'libempathy/action-chain-internal.h')
-rw-r--r-- | libempathy/action-chain-internal.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/libempathy/action-chain-internal.h b/libempathy/action-chain-internal.h new file mode 100644 index 000000000..14750c938 --- /dev/null +++ b/libempathy/action-chain-internal.h @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2009 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> + */ + +#ifndef __TPL_ACTION_CHAIN_H__ +#define __TPL_ACTION_CHAIN_H__ + +#include <glib-object.h> +#include <gio/gio.h> + +typedef struct { + GQueue *chain; + GSimpleAsyncResult *simple; + gboolean running; +} TplActionChain; + +TplActionChain *_tpl_action_chain_new_async (GObject *obj, + GAsyncReadyCallback cb, + gpointer user_data); +void _tpl_action_chain_free (TplActionChain *self); +typedef void (*TplPendingAction) (TplActionChain *ctx, gpointer user_data); +void _tpl_action_chain_append (TplActionChain *self, TplPendingAction func, + gpointer user_data); +void _tpl_action_chain_prepend (TplActionChain *self, TplPendingAction func, + gpointer user_data); +void _tpl_action_chain_start (TplActionChain *self); +void _tpl_action_chain_continue (TplActionChain *self); +void _tpl_action_chain_terminate (TplActionChain *self, const GError *error); +void _tpl_action_chain_clear (TplActionChain *self); + +gpointer _tpl_action_chain_get_object (TplActionChain *self); +gboolean _tpl_action_chain_new_finish (GObject *source, + GAsyncResult *result, GError **error); + +#endif // __TPL_ACTION_CHAIN_H__ |