[cogl/fosdem-2012: 6/17] Add the missing cogl_is_context() function
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/fosdem-2012: 6/17] Add the missing cogl_is_context() function
- Date: Wed, 4 Jan 2012 20:56:52 +0000 (UTC)
commit 2b4ce5010e063cb7198d4e3ab432877d99ff45db
Author: Neil Roberts <neil linux intel com>
Date: Wed Jan 4 16:55:25 2012 +0000
Add the missing cogl_is_context() function
This was missing from the CoglContext header.
cogl/cogl-context.h | 15 +++++++++++++++
.../cogl-2.0-experimental-sections.txt | 1 +
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index 56f3b1d..7481b2c 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -135,6 +135,21 @@ void
cogl_android_set_native_window (ANativeWindow *window);
#endif
+/**
+ * cogl_is_context:
+ * @object: An object or %NULL
+ *
+ * Gets whether the given object references an existing context object.
+ *
+ * Return value: %TRUE if the handle references a #CoglContext,
+ * %FALSE otherwise
+ *
+ * Since: 1.10
+ * Stability: Unstable
+ */
+gboolean
+cogl_is_context (void *object);
+
G_END_DECLS
#endif /* __COGL_CONTEXT_H__ */
diff --git a/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt b/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt
index 6381a4c..70bb21c 100644
--- a/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt
+++ b/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt
@@ -74,6 +74,7 @@ cogl_wayland_display_set_compositor_display
<SUBSECTION>
cogl_context_new
+cogl_is_context
cogl_context_get_display
<SUBSECTION>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]