summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug-message.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-13 14:34:19 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-18 08:57:32 +0200
commitad4a3ac68481c352051380934430dec635fd12ff (patch)
tree0d8466067f10a846c7c7edabff36a3d3e9549bb0 /telepathy-glib/debug-message.h
parent312587f6be7f5a11a32dfdd0a03bc83db8c1173b (diff)
downloadtelepathy-glib-ad4a3ac68481c352051380934430dec635fd12ff.tar.gz
Add TpDebugMessage
Diffstat (limited to 'telepathy-glib/debug-message.h')
-rw-r--r--telepathy-glib/debug-message.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/telepathy-glib/debug-message.h b/telepathy-glib/debug-message.h
new file mode 100644
index 000000000..8d6d0b6fb
--- /dev/null
+++ b/telepathy-glib/debug-message.h
@@ -0,0 +1,75 @@
+/*
+ * debug-message.h
+ *
+ * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
+ *
+ * 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 __TP_DEBUG_MESSAGE_H__
+#define __TP_DEBUG_MESSAGE_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+typedef struct _TpDebugMessage TpDebugMessage;
+typedef struct _TpDebugMessageClass TpDebugMessageClass;
+typedef struct _TpDebugMessagePriv TpDebugMessagePriv;
+
+struct _TpDebugMessageClass {
+ /*<private>*/
+ GObjectClass parent_class;
+};
+
+struct _TpDebugMessage {
+ /*<private>*/
+ GObject parent;
+ TpDebugMessagePriv *priv;
+};
+
+GType tp_debug_message_get_type (void);
+
+/* TYPE MACROS */
+#define TP_TYPE_DEBUG_MESSAGE \
+ (tp_debug_message_get_type ())
+#define TP_DEBUG_MESSAGE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ TP_TYPE_DEBUG_MESSAGE, \
+ TpDebugMessage))
+#define TP_DEBUG_MESSAGE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ TP_TYPE_DEBUG_MESSAGE, \
+ TpDebugMessageClass))
+#define TP_IS_DEBUG_MESSAGE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ TP_TYPE_DEBUG_MESSAGE))
+#define TP_IS_DEBUG_MESSAGE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), \
+ TP_TYPE_DEBUG_MESSAGE))
+#define TP_DEBUG_MESSAGE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ TP_TYPE_DEBUG_MESSAGE, \
+ TpDebugMessageClass))
+
+GDateTime * tp_debug_message_get_time (TpDebugMessage *self);
+const gchar * tp_debug_message_get_domain (TpDebugMessage *self);
+GLogLevelFlags tp_debug_message_get_level (TpDebugMessage *self);
+const gchar * tp_debug_message_get_message (TpDebugMessage *self);
+
+G_END_DECLS
+
+#endif /* #ifndef __TP_DEBUG_MESSAGE_H__*/