summaryrefslogtreecommitdiff
path: root/telepathy-glib/handle-repo-internal.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-15 19:00:43 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-15 19:00:43 +0000
commit6705ba5447000f277007e60f2ca5b64a29beddd0 (patch)
tree533160a693fcb46b1d9018dad615bfee17c2121c /telepathy-glib/handle-repo-internal.h
parentd3fd33332291f3b3068ada2ce39a9ec02a73eb47 (diff)
downloadtelepathy-glib-6705ba5447000f277007e60f2ca5b64a29beddd0.tar.gz
Change all internal-*.h to a more conventional *-internal.h
20071115190043-53eee-ed834b56ee1a271c42809e00f033e2aa55b9baf6.gz
Diffstat (limited to 'telepathy-glib/handle-repo-internal.h')
-rw-r--r--telepathy-glib/handle-repo-internal.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/telepathy-glib/handle-repo-internal.h b/telepathy-glib/handle-repo-internal.h
new file mode 100644
index 000000000..c6b717e23
--- /dev/null
+++ b/telepathy-glib/handle-repo-internal.h
@@ -0,0 +1,81 @@
+/*
+ * internal-handle-repo.h - private header for handle repositories
+ *
+ * Copyright (C) 2005,2006,2007 Collabora Ltd.
+ * Copyright (C) 2005,2006,2007 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_INTERNAL_HANDLE_REPO_H__
+#define __TP_INTERNAL_HANDLE_REPO_H__
+
+#include <telepathy-glib/handle-repo.h>
+
+G_BEGIN_DECLS
+
+/* <-- this is no longer a gtkdoc comment because this is not public API
+ * TpHandleRepoIfaceClass:
+ * @parent_class: Fields shared with GTypeInterface
+ * @handle_is_valid: Implementation for tp_handle_is_valid() for this repo
+ * @handles_are_valid: Implementation for tp_handles_are_valid() for this repo
+ * @ref_handle: Implementation for tp_handle_ref() for this repo
+ * @unref_handle: Implementation for tp_handle_unref() for this repo
+ * @client_hold_handle: Implementation for tp_handle_client_hold() for this
+ * repo
+ * @client_release_handle: Implementation for tp_handle_client_release() for
+ * this repo
+ * @inspect_handle: Implementation for tp_handle_inspect() for this repo
+ * @ensure_handle: Implementation for tp_handle_ensure() for this repo
+ * @lookup_handle: Implementation for tp_handle_lookup() for this repo
+ * @get_qdata: Implementation for tp_handle_get_qdata() for this repo
+ * @set_qdata: Implementation for tp_handle_set_qdata() for this repo
+ *
+ * The class of a #TpHandleRepoIface. All implementation callbacks must be
+ * filled in by all implementations, and have the same semantics as the
+ * global function that calls them.
+ */
+struct _TpHandleRepoIfaceClass {
+ GTypeInterface parent_class;
+
+ gboolean (*handle_is_valid) (TpHandleRepoIface *self, TpHandle handle,
+ GError **error);
+ gboolean (*handles_are_valid) (TpHandleRepoIface *self,
+ const GArray *handles, gboolean allow_zero, GError **error);
+
+ void (*ref_handle) (TpHandleRepoIface *self, TpHandle handle);
+ void (*unref_handle) (TpHandleRepoIface *self, TpHandle handle);
+ gboolean (*client_hold_handle) (TpHandleRepoIface *self,
+ const gchar *client, TpHandle handle, GError **error);
+ gboolean (*client_release_handle) (TpHandleRepoIface *self,
+ const gchar *client, TpHandle handle, GError **error);
+
+ const char *(*inspect_handle) (TpHandleRepoIface *self, TpHandle handle);
+ TpHandle (*ensure_handle) (TpHandleRepoIface *self, const char *id,
+ gpointer context, GError **error);
+ TpHandle (*lookup_handle) (TpHandleRepoIface *self, const char *id,
+ gpointer context, GError **error);
+
+ void (*set_qdata) (TpHandleRepoIface *repo, TpHandle handle,
+ GQuark key_id, gpointer data, GDestroyNotify destroy);
+ gpointer (*get_qdata) (TpHandleRepoIface *repo, TpHandle handle,
+ GQuark key_id);
+};
+
+G_END_DECLS
+
+#endif /*__TP_INTERNAL_HANDLE_REPO_H__ */