aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/action-chain-internal.h
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-04-20 16:21:49 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 18:37:55 +0800
commit7a393000d1dd55dc60345f0b2bb51b44215d9607 (patch)
treea43819827b0abfd1e7357a9f28cff4340b067c51 /libempathy/action-chain-internal.h
parent669b6782b2bb1c7275092f5923b8930cc2849c98 (diff)
downloadgsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.tar
gsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.tar.gz
gsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.tar.bz2
gsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.tar.lz
gsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.tar.xz
gsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.tar.zst
gsoc2013-empathy-7a393000d1dd55dc60345f0b2bb51b44215d9607.zip
Copy TplActionChain from telepathy-logger
Diffstat (limited to 'libempathy/action-chain-internal.h')
-rw-r--r--libempathy/action-chain-internal.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/libempathy/action-chain-internal.h b/libempathy/action-chain-internal.h
new file mode 100644
index 000000000..674cc2b06
--- /dev/null
+++ b/libempathy/action-chain-internal.h
@@ -0,0 +1,47 @@
+/*
+ * 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;
+} 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_continue (TplActionChain *self);
+void _tpl_action_chain_terminate (TplActionChain *self, const GError *error);
+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__