/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2001 Sun Microsystems Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/*
*
* AccessibleApplication function prototypes
*
* @obj: a pointer to the #AccessibleApplication on which to operate.
*
* Increment the reference count for an #AccessibleApplication.
- *
- * Returns: (no return code implemented yet).
- *
**/
void
AccessibleApplication_ref (AccessibleApplication *obj)
* @obj: a pointer to the #AccessibleApplication object on which to operate.
*
* Decrement the reference count for an #AccessibleApplication.
- *
- * Returns: (no return code implemented yet).
- *
**/
void
AccessibleApplication_unref (AccessibleApplication *obj)
*
* Returns: a UTF-8 string indicating which UI toolkit is
* used by an application.
- *
**/
char *
AccessibleApplication_getToolkitName (AccessibleApplication *obj)
{
- return Accessibility_Application__get_toolkitName (CSPI_OBJREF (obj), cspi_ev ());
+ char *retval;
+
+ cspi_return_val_if_fail (obj != NULL, NULL);
+
+ retval =
+ Accessibility_Application__get_toolkitName (CSPI_OBJREF (obj),
+ cspi_ev ());
+
+ cspi_return_val_if_ev ("toolkitName", NULL);
+
+ return retval;
}
/**
*
* Returns: a UTF-8 string indicating the application's
* at-spi version.
- *
**/
char *
AccessibleApplication_getVersion (AccessibleApplication *obj)
{
- return Accessibility_Application__get_version (CSPI_OBJREF (obj), cspi_ev ());
+ char *retval;
+
+ cspi_return_val_if_fail (obj != NULL, NULL);
+
+ retval =
+ Accessibility_Application__get_version (CSPI_OBJREF (obj),
+ cspi_ev ());
+
+ cspi_return_val_if_ev ("getVersion", NULL);
+
+ return retval;
}
/**
*
* Returns: a unique #long integer associated with the application
* by the Registry, or 0 if the application is not registered.
-**/
+ **/
long
AccessibleApplication_getID (AccessibleApplication *obj)
{
- return Accessibility_Application__get_id (CSPI_OBJREF (obj), cspi_ev ());
+ long retval;
+
+ cspi_return_val_if_fail (obj != NULL, 0);
+
+ retval = Accessibility_Application__get_id (CSPI_OBJREF (obj),
+ cspi_ev ());
+
+ cspi_return_val_if_ev ("get_id", 0);
+
+ return retval;
}
/**
{
return FALSE;
}
-
-