...
 
Commits (653)
*Makefile
ChangeLog
*.pyc
aclocal.m4
autom4te.cache
config.h.in~
config
configure
m4/*.m4
/po/Makefile.in
/po/Makefile.in.in
......@@ -2,7 +2,7 @@
Authors of AT-SPI D-Bus implementation
--------------------------------------
Mike Gorse <mgorse@novell.com>
Mike Gorse <mgorse@suse.com>
Mark Doffman <mark.doffman@codethink.co.uk>
......
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
......@@ -16,97 +17,109 @@ freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
......@@ -145,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
......@@ -254,8 +267,8 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
......@@ -282,23 +295,31 @@ of these things:
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
......@@ -308,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
......@@ -347,9 +368,9 @@ Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
......@@ -390,7 +411,7 @@ excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
......@@ -401,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
......@@ -435,7 +456,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
......@@ -453,19 +474,18 @@ convey the exclusion of warranty; and each file should have at least the
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
version 2.1 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.
Lesser 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.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
......
Install procedure
-----------------
% gzip -cd at-spi-core-2.0.0.tar.gz | tar xvf - # unpack the sources
% cd at-spi-core-2.0.0 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build at-spi-core
tar -xJf at-spi2-core-2.34.0.tar.xz # unpack the sources
% cd at-spi2-core-2.34.0 # change to the toplevel directory
mkdir build # create a build directory
meson .. # configure
ninja # build at-spi2-core
[ Become root if necessary ]
% make install # install at-spi-core
ninja install # install at-spi2-core
Requirements
------------
GNU make
GNU autotools
pkg-config
Packages with local machine architecture:
meson
ninja
pkg-config
gobject-introspection
gtk-doc (for generation of documentation)
Packages with target architecture:
glib
dbus
dbus-glib
X
XEVIE (Reccomended)
libX11, libXtst, libXi (for X11 support)
Mike Gorse <mgorse@novell.com>
Li Yuan <lee.yuan@oracle.com>
Mark Doffman <mark.doffman@codethink.co.uk>
Mike Gorse <mgorse@suse.com>
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-gtk-doc
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
SUBDIRS=po dbind xml atspi bus registryd doc
ACLOCAL_AMFLAGS=-I m4 ${ACLOCAL_FLAGS}
EXTRA_DIST = \
atspi-2-uninstalled.pc.in \
atspi-2.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = atspi-2.pc
DISTCLEANFILES = \
atspi-2-uninstalled.pc \
atspi-2.pc
This diff is collapsed.
D-Bus AT-SPI
------------
This version of at-spi is a major break from previous versions.
This version of at-spi is a major break from version 1.x.
It has been completely rewritten to use D-Bus rather than
ORBIT / CORBA for its transport protocol.
......@@ -15,9 +15,10 @@ The mailing list used for general questions is:
accessibility-atspi@lists.linux-foundation.org
For bug reports, feature requests, patches or enhancements please use
bugzilla. The freedesktop project name is at-spi2.
the AT-SPI project on bugzilla.gnome.org. Use the at-spi2-core component for
bugs specific to this module.
http://bugs.freedesktop.org
http://bugzilla.gnome.org
A git repository with the latest development code is available at:
......@@ -48,8 +49,8 @@ Contents of this package
This package includes the protocol definitions for the new D-Bus
at-spi.
Also included is the daemon neccessary for forwarding device events
and registering accessible applicaitons.
Also included is the daemon necessary for forwarding device events
and registering accessible applicaitions.
Directory structure
......@@ -60,12 +61,13 @@ The directories within this package are arranged as follows:
xml
This directory contains XML documents describing
the D-Bus protocol in a subset of Telepathy XML.
the D-Bus protocol in the format used for D-Bus introspection.
tools
idl
Miscellaneous tools. Mostly for converting protocol
XML into D-Bus introspection, 'C' types and documentation.
The D-Bus specification in an idl-like format. This is likely not
parseable by any existing tools, is not entirely up-to-date, and may
by removed in a future release.
registryd
......@@ -73,3 +75,42 @@ The directories within this package are arranged as follows:
keeps a register of accessible applications and presents
this to clients (ATs).
It is also responsible for delivering device events.
dbind
Library to ease making D-Bus method calls, contains
marshalling code to convert function arguments
and a provided D-Bus signature into a D-Bus message.
Used by libatspi.
atspi
C library for use by ATs. Wraps the various D-Bus calls, provides
an interface for listening to events, and caches some information about
accessible objects. Also contains some functions used by at-spi2-atk.
bus
A server that sits on the session bus and provides an interface
allowing applications to find the accessibility bus daemon, launching
it as needed. The accessibility bus is separate from the session bus
because it may in fact span user sessions if a user, for instance,
runs an application that escalates to run as root. The accessibility
bus is thus tied to the X session rather than the D-Bus session.
doc
Contains infrastructure for creating libatspi documentation.
test
Contains files that may be useful for testing AT-SPI.
m4
Some macros used for building the module.
po
Infrastructure used for translation.
#######################
# type alignment test #
#######################
AC_DEFUN([DBIND_CHECK_ALIGNOF],
[changequote(<<, >>)dnl
dnl The name to #define.
define(<<AC_TYPE_NAME>>,
translit(dbind_alignof_$1, [a-z *], [A-Z_P]))dnl
dnl The cache variable name.
define(<<AC_CV_NAME>>,
translit(ac_cv_alignof_$1, [ *], [_p]))dnl
changequote([, ])dnl
AC_MSG_CHECKING(alignment of $1)
AC_CACHE_VAL(AC_CV_NAME,
[AC_TRY_RUN(
[ #include <stdio.h>
#include <stdlib.h>
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus.h>
typedef struct {char s1;} dbind_struct;
typedef void *dbind_pointer;
struct test {char s1; $1 s2;};
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", &(((struct test*)0)->s2));
exit(0);
} ],
AC_CV_NAME=`cat conftestval`,
AC_CV_NAME=0, AC_CV_NAME=0)
])dnl
AC_MSG_RESULT($AC_CV_NAME)
if test "$AC_CV_NAME" = "0" ; then
AC_MSG_ERROR([Failed to find alignment. Check config.log for details.])
fi
AC_TYPE_NAME=$AC_CV_NAME
AC_SUBST(AC_TYPE_NAME)
undefine([AC_TYPE_NAME])dnl
undefine([AC_CV_NAME])dnl
])
......@@ -5,29 +5,28 @@
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">at-spi2-core</name>
<shortdesc xml:lang="en">D-Bus accessibility specifications and registration daemon.</shortdesc>
<shortdesc xml:lang="en">D-Bus accessibility specifications, library, and registration daemon</shortdesc>
<description xml:lang="en">The Access Technology Service Provider Interface
(AT-SPI) is a set of interfaces that allow access technologies such as screen
readers to programmatically determine what is being displayed on the screen and
simulate keyboard and mouse events. It can also be used for automated testing.
The at-spi2-core module contains the D-Bus specification, the registry daemon,
and a C library for use by access technologies that provides a convenient
wrapper around the DBus interfaces.</description>
<homepage rdf:resource="http://www.linuxfoundation.org/en/Accessibility/ATK/AT-SPI/AT-SPI_on_D-Bus"/>
<license rdf:resource="http://usefulinc.com/doap/licenses/lgpl" />
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/at-spi2-core/issues/" />
<download-page rdf:resource="http://download.gnome.org/sources/at-spi2-core/" />
<mailing-list rdf:resource="https://lists.linux-foundation.org/mailman/listinfo/accessibility-atspi"/>
<category rdf:resource="http://api.gnome.org/doap-extensions#core" />
<programming-language>C</programming-language>
<maintainer>
<foaf:Person>
<foaf:name>Mark Doffman</foaf:name>
<foaf:mbox rdf:resource="mailto:mark.doffman@codethink.co.uk" />
<gnome:userid>markdoffman</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Mike Gorse</foaf:name>
<foaf:mbox rdf:resource="mailto:mgorse@novell.com" />
<foaf:mbox rdf:resource="mailto:mgorse@suse.com" />
<gnome:userid>mgorse</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Li Yuan</foaf:name>
<foaf:mbox rdf:resource="mailto:lee.yuan@oracle.com" />
<gnome:userid>liyuan</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
Name: atspi
Description: Accessibility Technology software library
Requires: dbus-1
Version: @VERSION@
Libs: ${pc_top_builddir}/${pcfiledir}/atspi/libatspi.la
Cflags: -I${pc_top_builddir}/${pcfiledir}
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: atspi
Description: Accessibility Technology software library
Requires: dbus-1
Version: @VERSION@
Libs: -L${libdir} -latspi
Cflags: -I${includedir}/at-spi-2.0
lib_LTLIBRARIES = libatspi.la
libatspi_la_LDFLAGS = @LDFLAGS@ @LT_VERSION_INFO@ @LIBTOOL_EXPORT_OPTIONS@ -no-undefined
libatspi_la_CFLAGS = $(DBUS_CFLAGS) \
$(DBIND_CFLAGS) \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/registryd \
-I$(top_srcdir)
libatspi_la_LIBADD = $(DBUS_LIBS) \
$(GOBJ_LIBS) \
$(X_LIBS) \
$(top_builddir)/dbind/libdbind.la
libatspiincludedir = $(includedir)/at-spi-2.0/atspi
libatspiinclude_HEADERS = \
atspi.h \
atspi-accessible.h \
atspi-action.h \
atspi-application.h \
atspi-collection.h \
atspi-component.h \
atspi-constants.h \
atspi-device-listener.h \
atspi-device-listener-private.h \
atspi-document.h \
atspi-editabletext.h \
atspi-enum-types.h \
atspi-event-listener.h \
atspi-event-listener-private.h \
atspi-gmain.c \
atspi-gmain.h \
atspi-hyperlink.h \
atspi-hypertext.h \
atspi-image.h \
atspi-matchrule.h \
atspi-misc.h \
atspi-object.h \
atspi-private.h \
atspi-registry.h \
atspi-relation.h \
atspi-selection.h \
atspi-stateset.h \
atspi-table.h \
atspi-text.h \
atspi-types.h \
atspi-value.h
libatspi_la_SOURCES = \
$(BUILT_SOURCES) \
$(libatspiinclude_HEADERS) \
atspi.h \
atspi-accessible.c \
atspi-accessible.h \
atspi-action.c \
atspi-action.h \
atspi-application.c \
atspi-application.h \
atspi-collection.c \
atspi-collection.h \
atspi-component.c \
atspi-component.h \
atspi-constants.h \
atspi-device-listener.c \
atspi-device-listener.h \
atspi-device-listener-private.h \
atspi-document.c \
atspi-document.h \
atspi-editabletext.c \
atspi-editabletext.h \
atspi-event-listener.c \
atspi-event-listener.h \
atspi-event-listener-private.h \
atspi-hyperlink.c \
atspi-hyperlink.h \
atspi-hypertext.c \
atspi-hypertext.h \
atspi-image.c \
atspi-image.h \
atspi-matchrule.c \
atspi-matchrule.h \
atspi-matchrule-private.h \
atspi-misc.c \
atspi-misc.h \
atspi-misc-private.h \
atspi-object.c \
atspi-object.h \
atspi-private.h \
atspi-registry.c \
atspi-registry.h \
atspi-relation.c \
atspi-relation.h \
atspi-selection.c \
atspi-selection.h \
atspi-stateset.c \
atspi-stateset.h \
atspi-table.c \
atspi-table.h \
atspi-text.c \
atspi-text.h \
atspi-types.h \
atspi-value.c \
atspi-value.h
BUILT_SOURCES = \
atspi-enum-types.c \
atspi-enum-types.h
#CLEANFILES = atspi-constants.h
#atspi-constants.h: $(top_srcdir)/xml/spec.xml $(top_srcdir)/tools/c-constants-gen.py
# python $(top_srcdir)/tools/c-constants-gen.py Atspi $(top_srcdir)/xml/spec.xml atspi-constants
ENUM_TYPES = \
atspi-constants.h \
atspi-types.h
atspi-enum-types.h: atspi-enum-types.h.template $(ENUM_TYPES) $(GLIB_MKENUMS)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template atspi-enum-types.h.template $(ENUM_TYPES)) > $@
atspi-enum-types.c: atspi-enum-types.c.template $(ENUM_TYPES) $(GLIB_MKENUMS)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template atspi-enum-types.c.template $(ENUM_TYPES)) > $@
if HAVE_INTROSPECTION
INTROSPECTION_FILES = $(libatspi_la_SOURCES)
Atspi-2.0.gir: $(INTROSPECTION_SCANNER) \
libatspi.la \
$(INTROSPECTION_FILES)
$(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
--namespace Atspi \
--nsversion=2.0 \
-I$(top_builddir) \
-I$(top_srcdir) \
--include=GLib-2.0 \
--include=GObject-2.0 \
--libtool="$(top_builddir)/libtool" \
--library=libatspi.la \
--library=$(top_builddir)/dbind/libdbind.la \
--pkg dbus-1 \
--warn-all \
--output $@ \
$(addprefix $(srcdir)/, $(INTROSPECTION_FILES))
girdir = $(datadir)/gir-1.0
gir_DATA = Atspi-2.0.gir
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN)$(top_builddir)/libtool --mode=execute \
$(INTROSPECTION_COMPILER) \
--includedir=$(srcdir) \
--includedir=. \
$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(gir_DATA:.gir=.typelib)
CLEANFILES = \
$(gir_DATA) \
$(typelibs_DATA)
endif
/*
* AT-SPI - Assistive Technology Service Provider Interface
* (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
*
* Copyright 2002 Ximian, Inc.
* 2002 Sun Microsystems Inc.
* Copyright 2010, 2011 Novell, Inc.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_ACCESSIBLE_PRIVATE_H_
#define _ATSPI_ACCESSIBLE_PRIVATE_H_
G_BEGIN_DECLS
#include "atspi-accessible.h"
#include "atspimarshal.h"
struct _AtspiAccessiblePrivate
{
GHashTable *cache;
guint cache_ref_count;
};
GHashTable *
_atspi_accessible_ref_cache (AtspiAccessible *accessible);
void
_atspi_accessible_unref_cache (AtspiAccessible *accessible);
G_END_DECLS
#endif /* _ATSPI_ACCESSIBLE_H_ */
This diff is collapsed.
......@@ -8,24 +8,26 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 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.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser 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.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_ACCESSIBLE_H_
#define _ATSPI_ACCESSIBLE_H_
G_BEGIN_DECLS
#include "glib-object.h"
#include "atspi-application.h"
......@@ -41,11 +43,13 @@
#define ATSPI_IS_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_ACCESSIBLE))
#define ATSPI_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_ACCESSIBLE, AtspiAccessibleClass))
typedef struct _AtspiAccessiblePrivate AtspiAccessiblePrivate;
struct _AtspiAccessible
{
AtspiObject parent;
AtspiAccessible *accessible_parent;
GList *children;
GPtrArray *children;
AtspiRole role;
gint interfaces;
char *name;
......@@ -53,18 +57,21 @@ struct _AtspiAccessible
AtspiStateSet *states;
GHashTable *attributes;
guint cached_properties;
AtspiAccessiblePrivate *priv;
};
typedef struct _AtspiAccessibleClass AtspiAccessibleClass;
struct _AtspiAccessibleClass
{
AtspiObjectClass parent_class;
void (*region_changed) (AtspiAccessible *accessible, gint current_offset, gint last_offset);
};
GType atspi_accessible_get_type (void);
AtspiAccessible *
atspi_accessible_new (AtspiApplication *app, const gchar *path);
_atspi_accessible_new (AtspiApplication *app, const gchar *path);
gchar * atspi_accessible_get_name (AtspiAccessible *obj, GError **error);
......@@ -102,6 +109,7 @@ gint atspi_accessible_get_id (AtspiAccessible *obj, GError **error);
AtspiAccessible * atspi_accessible_get_application (AtspiAccessible *obj, GError **error);
#ifndef ATSPI_DISABLE_DEPRECATED
AtspiAction * atspi_accessible_get_action (AtspiAccessible *obj);
AtspiCollection * atspi_accessible_get_collection (AtspiAccessible *obj);
......@@ -122,18 +130,52 @@ AtspiSelection * atspi_accessible_get_selection (AtspiAccessible *obj);
AtspiTable * atspi_accessible_get_table (AtspiAccessible *obj);
AtspiTableCell * atspi_accessible_get_table_cell (AtspiAccessible *obj);
AtspiText * atspi_accessible_get_text (AtspiAccessible *obj);
AtspiValue * atspi_accessible_get_value (AtspiAccessible *obj);
#endif
AtspiAction * atspi_accessible_get_action_iface (AtspiAccessible *obj);
AtspiCollection * atspi_accessible_get_collection_iface (AtspiAccessible *obj);
AtspiComponent * atspi_accessible_get_component_iface (AtspiAccessible *obj);
AtspiDocument * atspi_accessible_get_document_iface (AtspiAccessible *obj);
AtspiEditableText * atspi_accessible_get_editable_text_iface (AtspiAccessible *obj);
AtspiHypertext * atspi_accessible_get_hypertext_iface (AtspiAccessible *obj);
AtspiImage * atspi_accessible_get_image_iface (AtspiAccessible *obj);
AtspiSelection * atspi_accessible_get_selection_iface (AtspiAccessible *obj);
AtspiTable * atspi_accessible_get_table_iface (AtspiAccessible *obj);
AtspiText * atspi_accessible_get_text_iface (AtspiAccessible *obj);
AtspiValue * atspi_accessible_get_value_iface (AtspiAccessible *obj);
GArray * atspi_accessible_get_interfaces (AtspiAccessible *obj);
const gchar* atspi_accessible_get_object_locale (AtspiAccessible *accessible, GError **error);
void atspi_accessible_set_cache_mask (AtspiAccessible *accessible, AtspiCache mask);
void atspi_accessible_clear_cache (AtspiAccessible *accessible);
void atspi_accessible_clear_cache (AtspiAccessible *obj);
guint atspi_accessible_get_process_id (AtspiAccessible *accessible, GError **error);
gchar * atspi_accessible_get_accessible_id (AtspiAccessible *obj, GError **error);
/* private */
void _atspi_accessible_add_cache (AtspiAccessible *accessible, AtspiCache flag);
AtspiCache _atspi_accessible_get_cache_mask (AtspiAccessible *accessible);
gboolean _atspi_accessible_test_cache (AtspiAccessible *accessible, AtspiCache flag);
G_END_DECLS
#endif /* _ATSPI_ACCESSIBLE_H_ */
......@@ -6,19 +6,19 @@
* 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
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 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.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser 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.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
......@@ -44,7 +44,7 @@ atspi_action_get_n_actions (AtspiAction *obj, GError **error)
}
/**
* atspi_action_get_description:
* atspi_action_get_description: (rename-to atspi_action_get_action_description)
* @obj: a pointer to the #AtspiAction implementor to query.
* @i: an integer indicating which action to query.
*
......@@ -52,9 +52,27 @@ atspi_action_get_n_actions (AtspiAction *obj, GError **error)
* object implementing #AtspiAction.
*
* Returns: a UTF-8 string describing the '@i-th' invocable action.
*
* Deprecated: 2.10: Use atspi_action_get_action_description instead.
**/
gchar *
atspi_action_get_description (AtspiAction *obj, int i, GError **error)
{
return atspi_action_get_action_description (obj, i, error);
}
/**
* atspi_action_get_action_description:
* @obj: a pointer to the #AtspiAction implementor to query.
* @i: an integer indicating which action to query.
*
* Get the description of '@i-th' action invocable on an
* object implementing #AtspiAction.
*
* Returns: a UTF-8 string describing the '@i-th' invocable action.
**/
gchar *
atspi_action_get_action_description (AtspiAction *obj, int i, GError **error)
{
dbus_int32_t d_i = i;
char *retval = NULL;
......@@ -89,7 +107,7 @@ atspi_action_get_description (AtspiAction *obj, int i, GError **error)
* keybinding string is the "keyboard shortcut" which invokes the
* action without posting any menus.
* Meta-keys are indicated by the conventional strings
* "<Control>", "<Alt>", "<Shift>", "<Mod2>",
* "&lt;Control&gt;", "&lt;Alt&gt;", "&lt;Shift&gt;", "&lt;Mod2&gt;",
* etc. (we use the same string as gtk_accelerator_name() in
* gtk+-2.X.
*
......@@ -110,17 +128,35 @@ atspi_action_get_key_binding (AtspiAction *obj, gint i, GError **error)
}
/**
* atspi_action_get_name:
* atspi_action_get_name: (rename-to atspi_action_get_action_name)
* @obj: a pointer to the #AtspiAction implementor to query.
* @i: an integer indicating which action to query.
*
* Get the name of the '@i-th' action invocable on an
* object implementing #AtspiAction.
*
* Returns: the 'event type' name of the action, as a UTF-8 string.
* Returns: the non-localized name of the action, as a UTF-8 string.
*
* Deprecated: 2.10: Use atspi_action_get_action_name instead.
**/
gchar *
atspi_action_get_name (AtspiAction *obj, gint i, GError **error)
{
return atspi_action_get_action_name (obj, i, error);
}
/**
* atspi_action_get_action_name:
* @obj: a pointer to the #AtspiAction implementor to query.
* @i: an integer indicating which action to query.
*
* Get the name of the '@i-th' action invocable on an
* object implementing #AtspiAction.
*
* Returns: the non-localized name of the action, as a UTF-8 string.
**/
gchar *
atspi_action_get_action_name (AtspiAction *obj, gint i, GError **error)
{
dbus_int32_t d_i = i;
char *retval = NULL;
......@@ -132,6 +168,30 @@ atspi_action_get_name (AtspiAction *obj, gint i, GError **error)
return retval;
}
/**
* atspi_action_get_localized_name:
* @obj: a pointer to the #AtspiAction implementor to query.
* @i: an integer indicating which action to query.
*
* Get the name of the '@i-th' action invocable on an
* object implementing #AtspiAction.
*
* Returns: the name of the action, as a UTF-8 string.
**/
gchar *
atspi_action_get_localized_name (AtspiAction *obj, gint i, GError **error)
{
dbus_int32_t d_i = i;
char *retval = NULL;
g_return_val_if_fail (obj != NULL, NULL);
_atspi_dbus_call (obj, atspi_interface_action, "GetLocalizedName", error,
"i=>s", d_i, &retval);
return retval;
}
/**
* atspi_action_do_action:
* @obj: a pointer to the #AtspiAction to query.
......
......@@ -7,19 +7,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 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.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser 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.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_ACTION_H_
......@@ -31,6 +31,8 @@
#include "atspi-types.h"
G_BEGIN_DECLS
#define ATSPI_TYPE_ACTION (atspi_action_get_type ())
#define ATSPI_IS_ACTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_ACTION)
#define ATSPI_ACTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_ACTION, AtspiAction)
......@@ -43,14 +45,23 @@ struct _AtspiAction
GTypeInterface parent;
};
gint atspi_action_get_n_actions (AtspiAction *obj, GError **error);
gchar * atspi_action_get_action_description (AtspiAction *obj, int i, GError **error);
gchar * atspi_action_get_description (AtspiAction *obj, int i, GError **error);
gchar * atspi_action_get_action_name (AtspiAction *obj, gint i, GError **error);
gint atspi_action_get_n_actions (AtspiAction *obj, GError **error);
gchar * atspi_action_get_key_binding (AtspiAction *obj, gint i, GError **error);
gchar * atspi_action_get_name (AtspiAction *obj, gint i, GError **error);
gchar * atspi_action_get_localized_name (AtspiAction *obj, gint i, GError **error);
gboolean atspi_action_do_action (AtspiAction *obj, gint i, GError **error);
#ifndef ATSPI_DISABLE_DEPRECATED
gchar * atspi_action_get_description (AtspiAction *obj, gint i, GError **error);
gchar * atspi_action_get_name (AtspiAction *obj, gint i, GError **error);
#endif
G_END_DECLS
#endif /* _ATSPI_ACTION_H_ */
......@@ -6,19 +6,19 @@
* 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
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 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.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser 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.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
......@@ -43,6 +43,8 @@ atspi_application_dispose (GObject *object)
if (application->bus)
{
if (application->bus != _atspi_bus ())
dbus_connection_close (application->bus);
dbus_connection_unref (application->bus);
application->bus = NULL;
}
......@@ -54,6 +56,13 @@ atspi_application_dispose (GObject *object)
application->hash = NULL;
}
if (application->root)
{
g_clear_object (&application->root->parent.app);
g_object_unref (application->root);
application->root = NULL;
}
G_OBJECT_CLASS (atspi_application_parent_class)->dispose (object);
}
......@@ -85,10 +94,7 @@ _atspi_application_new (const gchar *bus_name)
AtspiApplication *application;
application = g_object_new (ATSPI_TYPE_APPLICATION, NULL);
if (application)
{
application->bus_name = g_strdup (bus_name);
application->root = NULL;
}
application->bus_name = g_strdup (bus_name);
application->root = NULL;
return application;
}
......@@ -7,19 +7,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 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.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser 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.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_APPLICATION_H_
......@@ -27,7 +27,11 @@
#include <dbus/dbus.h>
#include "atspi-types.h"
#include "atspi-accessible.h"
#include <sys/time.h>
G_BEGIN_DECLS
#define ATSPI_TYPE_APPLICATION (atspi_application_get_type ())
#define ATSPI_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_APPLICATION, AtspiApplication))
......@@ -48,6 +52,7 @@ struct _AtspiApplication
gchar *toolkit_name;
gchar *toolkit_version;
gchar *atspi_version;
struct timeval time_added;
};
typedef struct _AtspiApplicationClass AtspiApplicationClass;
......@@ -59,4 +64,8 @@ struct _AtspiApplicationClass
AtspiApplication *
_atspi_application_new (const char *bus_name);
GType atspi_application_get_type (void);
G_END_DECLS
#endif /* _ATSPI_APPLICATION_H_ */
......@@ -6,19 +6,19 @@
* Copyright 2010, 2011 Novell, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 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.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser 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.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
......@@ -26,21 +26,17 @@
/* TODO: Improve documentation and implement some missing functions */
/**
* atspi_collection_is_ancester_of:
*
* @collection: The #AtspiCollection to test against.
* @test: The #AtspiAccessible to test.
*
* Returns: TRUE if @collection is an ancestor of @test; FALSE otherwise.
* atspi_collection_is_ancestor_of:
*
* Not yet implemented.
*
**/
gboolean
atspi_collection_is_ancestor_of (AtspiCollection *collection,
AtspiAccessible *test,
GError **error)
{
g_warning ("Atspi: TODO: Implement is_ancester_of");
g_warning ("AT-SPI: TODO: Implement is_ancestor_of");
return FALSE;
}
......@@ -53,6 +49,8 @@ new_message (AtspiCollection *collection, char *method)
return NULL;
accessible = ATSPI_ACCESSIBLE (collection);
if (!accessible->parent.app)
return NULL;
return dbus_message_new_method_call (accessible->parent.app->bus_name,
accessible->parent.path,
atspi_interface_collection,
......@@ -93,11 +91,8 @@ return_accessibles (DBusMessage *message)
while (dbus_message_iter_get_arg_type (&iter_array) != DBUS_TYPE_INVALID)
{
AtspiAccessible *accessible;
GArray *new_array;
accessible = _atspi_dbus_return_accessible_from_iter (&iter_array);
new_array = g_array_append_val (ret, accessible);
if (new_array)
ret = new_array;
ret = g_array_append_val (ret, accessible);
/* Iter was moved already, so no need to call dbus_message_iter_next */
}
dbus_message_unref (message);
......@@ -106,16 +101,18 @@ return_accessibles (DBusMessage *message)
/**
* atspi_collection_get_matches:
*
* @collection: The #AtspiCollection.
* @rule: A #AtspiMatchRule describing the match criteria.
* @collection: A pointer to the #AtspiCollection to query.
* @rule: An #AtspiMatchRule describing the match criteria.
* @sortby: An #AtspiCollectionSortOrder specifying the way the results are to
* be sorted.
* @count: The maximum number of results to return, or 0 for no limit.
* @traverse: TODO
* @traverse: Not supported.
*
* Gets all #AtspiAccessible objects from the @collection matching a given
* @rule.
*
* Returns: (element-type AtspiAccessible*) (transfer full): A #GArray of
* #AtspiAccessibles matching the given match rule.
* Returns: (element-type AtspiAccessible*) (transfer full): All
* #AtspiAccessible objects matching the given match rule.
**/