summaryrefslogtreecommitdiff
path: root/wocky/wocky-pubsub-node.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-09-22 11:47:41 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2010-02-24 18:47:33 +0000
commit426c96d4592cce2d967ed81677798e6a9076e6b4 (patch)
tree54c07c6eec660d7fd2e208c07824a9cf4fc5f444 /wocky/wocky-pubsub-node.h
parentf44b14786d2d55886896182967a796c1b5155156 (diff)
add wocky-pubsub-node.[ch]
Diffstat (limited to 'wocky/wocky-pubsub-node.h')
-rw-r--r--wocky/wocky-pubsub-node.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/wocky/wocky-pubsub-node.h b/wocky/wocky-pubsub-node.h
new file mode 100644
index 0000000..6b5bc61
--- /dev/null
+++ b/wocky/wocky-pubsub-node.h
@@ -0,0 +1,64 @@
+/*
+ * wocky-pubsub-node.h - Header of WockyPubsubNode
+ * 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
+ */
+
+#ifndef __WOCKY_PUBSUB_NODE_H__
+#define __WOCKY_PUBSUB_NODE_H__
+
+#include <glib-object.h>
+#include <gio/gio.h>
+#include <wocky/wocky-types.h>
+#include <wocky/wocky-session.h>
+#include <wocky/wocky-pubsub-service.h>
+
+G_BEGIN_DECLS
+
+typedef struct _WockyPubsubNodeClass WockyPubsubNodeClass;
+
+struct _WockyPubsubNodeClass {
+ GObjectClass parent_class;
+};
+
+struct _WockyPubsubNode {
+ GObject parent;
+};
+
+GType wocky_pubsub_node_get_type (void);
+
+#define WOCKY_TYPE_PUBSUB_NODE \
+ (wocky_pubsub_node_get_type ())
+#define WOCKY_PUBSUB_NODE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), WOCKY_TYPE_PUBSUB_NODE, \
+ WockyPubsubNode))
+#define WOCKY_PUBSUB_NODE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), WOCKY_TYPE_PUBSUB_NODE, \
+ WockyPubsubNodeClass))
+#define WOCKY_IS_PUBSUB_NODE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), WOCKY_TYPE_PUBSUB_NODE))
+#define WOCKY_IS_PUBSUB_NODE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), WOCKY_TYPE_PUBSUB_NODE))
+#define WOCKY_PUBSUB_NODE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), WOCKY_TYPE_PUBSUB_NODE, \
+ WockyPubsubNodeClass))
+
+WockyPubsubNode * wocky_pubsub_node_new (WockyPubsubService *service,
+ const gchar *name);
+
+G_END_DECLS
+
+#endif /* __WOCKY_PUBSUB_NODE_H__ */