[Telepathy-commits] [telepathy-glib/master] Add _tp_connection_get_contact_attribute_interfaces (internal-only)

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Oct 3 06:34:06 PDT 2008


---
 docs/reference/Makefile.am           |    1 +
 telepathy-glib/Makefile.am           |    1 +
 telepathy-glib/connection-internal.h |   34 ++++++++++++++++++++++++++++++++++
 telepathy-glib/connection.c          |    7 +++++++
 4 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 telepathy-glib/connection-internal.h

diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 54e6f5f..fc9a0e7 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -61,6 +61,7 @@ CFILE_GLOB=$(top_srcdir)/telepathy-glib/*.c $(top_builddir)/telepathy-glib/_gen/
 # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
 IGNORE_HFILES=\
     channel-internal.h \
+    connection-internal.h \
     debug-internal.h \
     handle-repo-internal.h \
     proxy-internal.h
diff --git a/telepathy-glib/Makefile.am b/telepathy-glib/Makefile.am
index 741290b..f05ef50 100644
--- a/telepathy-glib/Makefile.am
+++ b/telepathy-glib/Makefile.am
@@ -211,6 +211,7 @@ libtelepathy_glib_internal_la_SOURCES = \
     channel-internal.h \
     channel-manager.c \
     connection.c \
+    connection-internal.h \
     connection-manager.c \
     contacts-mixin.c \
     dbus.c \
diff --git a/telepathy-glib/connection-internal.h b/telepathy-glib/connection-internal.h
new file mode 100644
index 0000000..10d2b49
--- /dev/null
+++ b/telepathy-glib/connection-internal.h
@@ -0,0 +1,34 @@
+/*
+ * TpConnection - proxy for a Telepathy connection (internals)
+ *
+ * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
+ * Copyright (C) 2008 Nokia Corporation
+ *
+ * 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_CONNECTION_INTERNAL_H
+#define TP_CONNECTION_INTERNAL_H
+
+#include <telepathy-glib/connection.h>
+
+G_BEGIN_DECLS
+
+const GArray *_tp_connection_get_contact_attribute_interfaces (
+    TpConnection *self);
+
+G_END_DECLS
+
+#endif
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index 1ba958d..5cf9685 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -34,6 +34,7 @@
 #include <telepathy-glib/util.h>
 
 #define DEBUG_FLAG TP_DEBUG_CONNECTION
+#include "telepathy-glib/connection-internal.h"
 #include "telepathy-glib/dbus-internal.h"
 #include "telepathy-glib/debug-internal.h"
 
@@ -1190,3 +1191,9 @@ tp_connection_presence_type_cmp_availability (TpConnectionPresenceType p1,
 
   return 0;
 }
+
+const GArray *
+_tp_connection_get_contact_attribute_interfaces (TpConnection *self)
+{
+  return self->priv->contact_attribute_interfaces;
+}
-- 
1.5.6.5




More information about the Telepathy-commits mailing list