2008-05-16 Mark Doffman <mark.doffman@codethink.co.uk>
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / util.c
similarity index 58%
rename from cspi/spi_matchrule.c
rename to atk-adaptor/util.c
index 199ea7f..27d6f93 100644 (file)
@@ -1,8 +1,9 @@
 /*
  * AT-SPI - Assistive Technology Service Provider Interface
- * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) 
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
- * Copyright 2007 IBM Corp.
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  * Boston, MA 02111-1307, USA.
  */
 
-#include <cspi/spi.h>
-#include <cspi/spi-private.h>
+#include <config.h>
+#include <spi-common/spi-types.h>
 
-/**
- * AccessibleMatchrule_ref:
- * @obj: a pointer to the #AccessibleMatchrule object on which to operate.
- *
- * Increment the reference count for an #AccessibleMatchrule object.
- **/
-void
-AccessibleMatchRule_ref (AccessibleMatchRule *obj)
-{
-  cspi_object_ref (obj);
-}
+#include "spi-private.h"
 
-/**
- * AccessibleMatchrule_unref:
- * @obj: a pointer to the #AccessibleMatchrule object on which to operate.
- *
- * Decrement the reference count for an #AccessibleMatchrule object.
- **/
+Accessibility_Role spi_accessible_role_from_atk_role (AtkRole role);
 
-void
-AccessibleMatchRule_unref (AccessibleMatchRule *obj)
+Accessibility_Role
+spi_role_from_atk_role (AtkRole role)
 {
-  cspi_object_unref (obj);
+    return spi_accessible_role_from_atk_role (role);
 }