Add atspi_is_initialized
authorMike Gorse <mgorse@suse.com>
Sun, 16 Jun 2013 19:02:22 +0000 (14:02 -0500)
committerMike Gorse <mgorse@suse.com>
Sun, 16 Jun 2013 19:02:22 +0000 (14:02 -0500)
Added a function to query whether libatspi has been initialized. Used by
at-spi2-atk. Also, bump version.

atspi/atspi-misc.c
atspi/atspi-misc.h
configure.ac

index 0e65fd5..c9fa0ae 100644 (file)
@@ -941,6 +941,19 @@ atspi_init (void)
 }
 
 /**
+ * atspi_is_initialized:
+ *
+ * Indicates whether AT-SPI has been initialized.
+ *
+ * Returns: %True if initialized; %False otherwise.
+ */
+gboolean
+atspi_is_initialized ()
+{
+  return atspi_inited;
+}
+
+/**
  * atspi_event_main:
  *
  * Starts/enters the main event loop for the AT-SPI services.
index f8df0a9..4e9677e 100644 (file)
@@ -29,6 +29,7 @@
 G_BEGIN_DECLS
 
 int atspi_init (void);
+gboolean atspi_is_initialized (void);
 
 void atspi_event_main ();
 
index e280b49..227d6ad 100644 (file)
@@ -1,4 +1,4 @@
-AC_INIT([at-spi2-core], [2.9.2], [accessibility-atspi@lists.linux-foundation.org])
+AC_INIT([at-spi2-core], [2.9.3], [accessibility-atspi@lists.linux-foundation.org])
 AC_PREREQ([2.59])
 AC_CONFIG_AUX_DIR(config)
 AC_CONFIG_MACRO_DIR([m4])