[gnome-builder/wip/chergert/debugger: 2/89] hover: sketch provider API
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 2/89] hover: sketch provider API
- Date: Tue, 9 May 2017 01:05:47 +0000 (UTC)
commit 8b7972eceafc9e254866b4eb307df0d2ff2510f2
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 11 21:36:35 2017 -0700
hover: sketch provider API
libide/hover/ide-hover-provider.h | 48 +++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/libide/hover/ide-hover-provider.h b/libide/hover/ide-hover-provider.h
new file mode 100644
index 0000000..3fcd7be
--- /dev/null
+++ b/libide/hover/ide-hover-provider.h
@@ -0,0 +1,48 @@
+/* ide-hover-provider.h
+ *
+ * Copyright (C) 2017 Christian Hergert <chergert redhat com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef IDE_HOVER_PROVIDER_H
+#define IDE_HOVER_PROVIDER_H
+
+#include "ide-types.h"
+
+G_BEGIN_DECLS
+
+#define IDE_TYPE_HOVER_PROVIDER (ide_hover_provider_get_type())
+
+G_DECLARE_INTERFACE (IdeHoverProvider, ide_hover_provider, IDE, HOVER_PROVIDER, IdeObject)
+
+struct _IdeHoverProviderInterface
+{
+ GTypeInterface parent_iface;
+
+ void (*query_async) (IdeHoverProvider *self,
+ IdeBuffer *buffer,
+ const GtkTextIter *location,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+ gchar *(*query_finish) (IdeHoverProvider *self,
+ GAsyncResult *result,
+ GError **error);
+};
+
+G_END_DECLS
+
+#endif /* IDE_HOVER_PROVIDER_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]