Skip to content
Commits on Source (60)
Brian J. Tarricone <bjt23@cornell.edu>
Stephan Arts <stephan@xfce.org>
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 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.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, 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.
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 software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, 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 redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
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 Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. 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 components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program 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
this License.
7. 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
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the 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.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF 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 Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; 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.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
This diff is collapsed.
Installation Instructions
*************************
Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without warranty of any kind.
Basic Installation
==================
Briefly, the shell command `./configure && make && make install'
should configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package. Some packages provide this
`INSTALL' file but do not implement all of the features documented
below. The lack of an optional feature in a given package is not
necessarily a bug. More recommendations for GNU packages can be found
in *note Makefile Conventions: (standards)Makefile Conventions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.
4. Type `make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
user, and only the `make install' phase executed with root
privileges.
5. Optionally, type `make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
regular user, particularly if the prior `make install' required
root privileges, verifies that the installation completed
correctly.
6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
7. Often, you can also type `make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.
8. Some packages, particularly those that use Automake, provide `make
distcheck', which can by used by developers to test that all other
targets like `make install' and `make uninstall' work correctly.
This target is generally not run by end users.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c99 CFLAGS=-g LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'. This
is known as a "VPATH" build.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.
On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
"universal" binaries--by specifying multiple `-arch' options to the
compiler but only a single `-arch' option to the preprocessor. Like
this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"
This is not guaranteed to produce working output in all cases, you
may have to build one architecture at a time and combine the results
using the `lipo' tool if you have problems.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX', where PREFIX must be an
absolute file name.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them. In general, the
default for these options is expressed in terms of `${prefix}', so that
specifying just `--prefix' will affect all of the other directory
specifications that were not explicitly provided.
The most portable way to affect installation locations is to pass the
correct locations to `configure'; however, many packages provide one or
both of the following shortcuts of passing variable assignments to the
`make install' command line to change installation locations without
having to reconfigure or recompile.
The first method involves providing an override variable for each
affected directory. For example, `make install
prefix=/alternate/directory' will choose an alternate location for all
directory configuration variables that were expressed in terms of
`${prefix}'. Any directories that were specified during `configure',
but not in terms of `${prefix}', must each be overridden at install
time for the entire installation to be relocated. The approach of
makefile variable overrides for each directory variable is required by
the GNU Coding Standards, and ideally causes no recompilation.
However, some platforms have known limitations with the semantics of
shared libraries that end up requiring recompilation when using this
method, particularly noticeable in packages that use GNU Libtool.
The second method involves providing the `DESTDIR' variable. For
example, `make install DESTDIR=/alternate/directory' will prepend
`/alternate/directory' before all installation names. The approach of
`DESTDIR' overrides is not required by the GNU Coding Standards, and
does not work on platforms that have drive letters. On the other hand,
it does better at avoiding recompilation issues, and works well even
when some directory options were not specified in terms of `${prefix}'
at `configure' time.
Optional Features
=================
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Some packages offer the ability to configure how verbose the
execution of `make' will be. For these packages, running `./configure
--enable-silent-rules' sets the default to minimal output, which can be
overridden with `make V=1'; while running `./configure
--disable-silent-rules' sets the default to verbose, which can be
overridden with `make V=0'.
Particular systems
==================
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
CC is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
HP-UX `make' updates targets which have the same time stamps as
their prerequisites, which makes it generally unusable when shipped
generated files such as `configure' are involved. Use GNU `make'
instead.
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
a workaround. If GNU CC is not installed, it is therefore recommended
to try
./configure CC="cc"
and if that doesn't work, try
./configure CC="cc -nodtk"
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
directory contains several dysfunctional programs; working variants of
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
in your `PATH', put it _after_ `/usr/bin'.
On Haiku, software installed for all users goes in `/boot/common',
not `/usr/local'. It is recommended to use the following options:
./configure --prefix=/boot/common
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS
KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf limitation. Until the limitation is lifted, you can use
this workaround:
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`--help'
`-h'
Print a summary of all of the options to `configure', and exit.
`--help=short'
`--help=recursive'
Print a summary of the options unique to this package's
`configure', and exit. The `short' variant lists options used
only in the top level, while the `recursive' variant lists options
also present in any nested packages.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--prefix=DIR'
Use DIR as the installation prefix. *note Installation Names::
for more details, including other options available for fine-tuning
the installation locations.
`--no-create'
`-n'
Run the configure checks, but stop before creating any output
files.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = \
common \
xfconf \
xfconfd \
xfconf-query \
xfconf-perl \
po \
docs \
tests
.PHONY: ChangeLog
ChangeLog: Makefile
(GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
&& mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
|| (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)
dist-hook: ChangeLog
EXTRA_DIST = \
AUTHORS \
COPYING \
ChangeLog \
INSTALL \
NEWS \
README
DISTCHECK_CONFIGURE_FLAGS = \
--enable-gtk-doc \
--disable-perl-bindings
This diff is collapsed.
4.13.5
======
- Fix make distcheck, (bug #14082)
- Handle empty arrays by initilizing the GValue to G_TYPE_PTR_ARRAY (bug #13780)
4.13.4
======
- Fix segfault in xfconf_cache_set_property_reply_handler when
multiple calls are made (bug #13825)
- Allow to store empty arrays (bug #13791)
- Fix a path in xfconf_cache_set where the mutex isn't locked (bug #13790)
4.13.3
======
- Flush gdbus connection on xfconf_shutdown
- Correctly use xfconf_shutdown in xfconf-query
- Check for invalid GPtrArrays in the conversion
from GValue to GVariant.
- Fix some build issues in AM subdir-objects
- Fix some autogen.sh warnings
- Better documentation processing.
4.13.2
======
- Fix cache corruption due to a wrong g_value_unset call.
- Update API gtk documentation
4.13.1
======
- Revert the bump of libxfconf version from 0 to 1,
to avoid massive changes in all xfce's components.
4.13.0
======
- Port xfconf to gdbus
- Bump libxfconf version from 0 to 1.
4.12.1
======
- Add support for binding to GdkRGBAs (required for migration to gtk3)
- Translation updates: ast, ca, el, eu, gl, he, hu, lt, nn, oc, ru, sk, sv
4.12.0
======
- Allow :.,[]{} characters in property and channel names (bug #11021)
- Fix make check when including perl bindings in the build (bug #9556)
- Remove unneeded files.
- Drop deprecated g_type_init() function.
- Simplify checks.
- Autotools updates.
- Use new glib 2.32 mutex api.
- Translation updates: ar, ast, bg, bn, ca, cs, da, de, el, en_AU,
en_GB, es, eu, fi, fr, gl, hr, hu, id, is, it, ja, kk, ko, lv, ms,
nb, nl, oc, pl, pt, pt_BR, ro, ru, sk, sr, sv, th, tr, ug, uk, ur,
ur_PK, zh_CN, zh_TW.
4.10.0
======
- Don't emit property-changed on cancelled calls.
- Accept NULL as a string value (bug #8726).
- Check abicheck.sh to be more portable (bug #8702).
- Fix more deprecated g_value_set_char (bug #8690).
- Explicitly link against gthread (bug #8713).
- Drop deprecated g_mapped_file_free.
- Translation updates: English (United Kingdom), Korean, Dutch
(Flemish), Portuguese, Romanian, Turkish, Chinese (China).
4.9.1
=====
- Use LT_PREREQ and LT_INIT.
- UTF-8 check xfconf strings.
- Do not dup strings in xfconf_channel_set_string.
- Bump package dependency versions.
- Fix comment in perl package info (bug #8661).
- Don't use deprecated g_value_set_char (bug #8690).
- Translation updates: German, Greek, Japanese, Korean, Dutch
(Flemish), Polish, Portuguese, Turkish.
4.9.0
=====
- Use sh as interpreter in tests.
- Add hook to skip the xfconf tests.
- Make the abicheck work on Solaris and PPC64 (bug #7416).
- Fix licenses and use new FSF address.
- Fix compiler warnings on Solaris.
- Avoid GCC 4.6 compiler warning.
- Add toggle option to xfconf-query.
- Remove unusable import and export options from xfconf-query.
- Translate all error strings in xfconf-query.
- Cleanup Makefile.am files a bit.
- Improve --version output in xfconf-query.
- Cleanup #includes.
- Drop usage of the G_CONST_RETURN macro.
- Translation updates: ar, ast, bn, ca, cs, da, de, el, en_GB, es,
eu, fi, fr, gl, he, hr, hu, id, is, it, ja, kk, ko, lt, lv, ms,
nb, nl, nn, pa, pl, pt, pt_BR, ro, ru, si, sk, sv, te, tr, ug, uk,
ur, ur_PK, zh_CN, zh_TW.
4.8.1
=====
- Fix double free crash (bug #8169).
- Fix compiler warnings on solaris.
- Avoid gcc 4.6 compiler warning.
- Allow installation of the helpers in a custom location.
- Updated translations: hr, is, ko, ms, nl, ru, sk, te, tr, zh_CN.
4.8.0
=====
- Updated translations: Arabic, Greek, Polish, Romanian.
4.7.5
=====
- Updated translations: he, nb, en+GB, pt, ar.
4.7.4
=====
- Don't enable options with --disable-<option> (bug #6820).
- Updated translations: ug, sk, pt.
4.7.3
=====
- Use G_GSIZE_FORMAT in the DBG message.
- Add doc module to fixxref options (bug #6304).
- Link the gtkdoc scanner to GObject and Glib (bug #6407).
- Check for perl outside bindings option for alias script (bug #6481).
- Move xfconfd from $libexecdir to $libdir.
- Updated translations: kk, bn, uk, si, it, sk, fr, id, zh_TW, de.
4.7.2
=====
- Disable cache singletons and improve some code now we know the
tree is always empty during prefetch. This is only a disadvantage
when creating multiple new channels with the same name, but
in that case channels singletons should be used.
- Lots of memory leaks plugged. Valgrind log is clean now.
- Fix memory corruption during file loading and use mmap.
- Properly handle dirty channels in the daemon and avoid excessive
saving of channels.
- Disable unimplemented code in the properties cache.
- Steal values during cache prefetch to avoid a lot of copying.
- Updated translations: hu.
4.7.1
=====
- Remove dangling nodes from the tree after a recursive remove.
- Use a seconds timeout to reduce system wakeups.
- Only print debug messages when compiled with debugging.
- Merge xml files in reversed order (bug #6079).
- Use g_strcmp0 for comparing strings.
- Bump glib depenency to 2.18.
- Silent the build.
- Updated translations: pt_BR, nl, gl, fi, ru.
4.7.0
=====
- Add prefetching and caching support to XfconfChannel. Should speed
things up a bit on app startup, and avoid blocking waiting on DBus
in other cases.
- New simpler (internal) handling of property bindings.
- Use new xdt macros, this requires xfce-dev-tools 4.7.2.
- New tests for object bindings.
- Updated translations: es, kk, ca, sv, hu, ro, gl, ja, cs, lv, ast,
zh_CN, ur, ur_PK, da, eu, pt.
4.6.2
=====
- Fix compilation using Sun cc (bug 5477).
4.6.1
=====
- Be a bit safer when writing out channel xml files: flush data to disk
using fdatasync()/fsync() before renaming over the old file.
- Updated translations: pl, es, it, gl, pl, pt, uk
4.6.0
=====
- Remove unimplemented --import and --export functions from xfconf-query
- Fix encoding bug with xfconf-query input (Bug #4622)
- Updated translations: ba, ca, cs, da, de, en_GB, es, fr, gl, hu, id, it, ja,
nb, pl, pt_PT, sv, tr, zh_CN
4.5.99.1
========
- Don't translate "true" and "false" in the xfconf-query output.
- Updated translations (cs, da, fi, fr, nl, pt_BR, sv, zh_CN)
4.5.93
======
- Install xfconfd to $(libexecdir) instead of $(bindir).
- Fix perl bindings link order on Cygwin (bug 4735).
- Allow passing arbitrary options to the perl bindings' Makefile.PL
generation script (bug 4735).
- Updated translations: Michal Várady (cs), SZERVÁC Attila (hu),
Daniel Nylander (sv), Terje Uriansrud (nb), Carles Muñoz Gorriz (ca),
Abel Martín (es), Maximilian Schleiss (fr), Og Maciel (pt_BR),
Eren Turkay (tr)
4.5.92
======
- Add xfconf_channel_new_with_property_base() to restrict a channel
to a subset of the property tree.
- Add a dbus message filter to xfconfd that catches dbus daemon
disconnect signals and flushes channels before xfconfd gets
killed (bug 4487).
- Change libxfconf GObject bindings API slightly to use gulong IDs
for each binding to be used when removing bindings. Extend the
unbind functions a bit.
- Bump libxfconf interface version due to incompatible change.
- Add libxfconf perl bindings.
- Remove xfconf_channel_remove_property() and
xfconf_channel_remove_properties().
- Only treat the XML file under $XDG_CONFIG_HOME as a "user" file,
and treat all others as system files. This fixes the problem where
Xfce-installed defaults get read *after* the user's config when
Xfce is installed to a user-writable prefix (bug 4592).
- Fix build on Cygwin and other platforms that actually care about
library link order (bug 4559).
4.5.91
======
- Remove xfsettingsd (moved to xfce4-settings package). This removes
xfconf's gtk+ dependency entirely.
- Add xfconf_channel_get() which returns an XfconfChannel singleton
object that lives until calling xfconf_shutdown().
- Add xfconf_channel_reset_property(), which is a replacement for the
'remove' functions. This more accurately describes what 'remove'
actually does in the presence of locked properties and/or properties
that have system-wide defaults.
- Deprecate xfconf_channel_remove_property() and
xfconf_channel_remove_properties().
- Change D-Bus interface to reflect above two changes.
- Add IsPropertyLocked() to the D-Bus interface, as well as a
corresponding xfconf_channel_is_property_locked() libxfconf function,
which allows clients to query whether or not a property can be
modified.
- Don't send out a PropertyChange signal if a property is set to the
value it already held.
- Fix daemon crash when resetting properties recursively.
- Fix daemon sending incorrect property names in the PropertyRemoved
signal when removing multiple properties at once.
- For GObject property bindings, if the bound xfconf property is
removed from the config store, try to reset the GObject property
to the default value specified in its GParamSpec.
- Add -R option to xfconf-query which causes the -r option (reset) to
operate recursively to include all properties under the specified
property.
- Add -a option to xfconf-query which forces setting a property as an
array even if the array only has one element.
- Fix xfconf_channel_get_property() so it properly converts the value
fetched from the config store into the type that the caller
requested (if any).
4.5.90
======
- Initial release. There are bugs, and the API and ABI are not frozen.
-> for version 1.0
* unit tests - some done, need:
- locking test
- RemoveChannel() test
- GetAllProperties() test
- tests for all the array and struct stuff
* MCS settings migration code
- special backend to read config entries
* expire channels from memory if they aren't accessed for a while
* PropertyChanged signal works, but...
- optimise by checking previous value; don't fire signal if the value
hasn't really changed. will this slow down the daemon too much?
- file system monitoring. if a backend file changes, the daemon needs to
re-read the file, but must save the old property tree so it can figure out
what has changed so it can send appropriate PropertyChanged signals
+ what happens if a channel isn't loaded into memory and its backing file
changes? load it and send PropertyChanged for all properties? that
could be very bad.
* libxfce4mcs-client dummy implementation that forwards to libxfconf (?)
* maybe validate channel/prop names in libxfconf too to generate an error
without a roundtrip to the server (?)
-> for future:
* transaction support
* network support - allow remote displays and such
* do some caching in the client library? seems wasteful of memory, but it
could allow the daemon to ditch its copy of a channel's properties more
often.
This diff is collapsed.
AM_CPPFLAGS = \
-I$(top_srcdir) \
-DLIBXFCONF_COMPILATION \
-DG_LOG_DOMAIN=\"xfconf-common\" \
$(PLATFORM_CPPFLAGS)
noinst_LTLIBRARIES = \
libxfconf-common.la \
libxfconf-gvaluefuncs.la \
libxfconf-dbus.la
libxfconf_common_la_SOURCES = \
xfconf-errors.c \
xfconf-marshal.c \
xfconf-marshal.h
libxfconf_common_la_CFLAGS = \
$(GLIB_CFLAGS) \
$(PLATFORM_CFLAGS)
libxfconf_common_la_LDFLAGS = \
$(PLATFORM_LDFLAGS)
libxfconf_common_la_LIBADD = \
$(GLIB_LIBS)
libxfconf_built_sources = \
xfconf-alias.h \
xfconf-aliasdef.c
libxfconf_gvaluefuncs_la_SOURCES = \
xfconf-gvaluefuncs.c \
xfconf-gvaluefuncs.h
libxfconf_gvaluefuncs_la_CFLAGS = \
$(GLIB_CFLAGS) \
$(GIO_UNIX_CFLAGS) \
$(PLATFORM_CFLAGS)
libxfconf_gvaluefuncs_la_LDFLAGS = \
$(PLATFORM_LDFLAGS)
libxfconf_gvaluefuncs_la_LIBADD = \
$(GLIB_LIBS) \
$(GIO_UNIX_LIBS)
libxfconf_dbus_la_SOURCES = \
xfconf-gdbus-bindings.c \
xfconf-gdbus-bindings.h
libxfconf_dbus_la_CFLAGS = $(GIO_UNIX_CFLAGS)
libxfconf_dbus_la_LIBADD = $(GIO_UNIX_LIBS)
BUILT_SOURCES = \
xfconf-marshal.c \
xfconf-marshal.h \
xfconf-gdbus-bindings.c \
xfconf-gdbus-bindings.h
xfconf-marshal.h: $(srcdir)/xfconf-marshal.list Makefile
$(AM_V_GEN) glib-genmarshal --prefix=_xfconf_marshal $(srcdir)/xfconf-marshal.list --header > xfconf-marshal.h
xfconf-marshal.c: $(srcdir)/xfconf-marshal.list Makefile
$(AM_V_GEN) echo '#include "xfconf-marshal.h"' > xfconf-marshal.c \
&& glib-genmarshal --prefix=_xfconf_marshal $(srcdir)/xfconf-marshal.list --body >> xfconf-marshal.c
xfconf-gdbus-bindings.h:
xfconf-gdbus-bindings.c: xfconf-dbus.xml Makefile
$(AM_V_GEN) $(GDBUS_CODEGEN) \
--interface-prefix org.xfce.Xfconf \
--annotate "org.xfce.Xfconf" "org.gtk.GDBus.C.Name" Exported \
--c-namespace Xfconf \
--generate-c-code xfconf-gdbus-bindings \
$<
CLEANFILES = \
actual-abi \
expected-abi
DISTCLEANFILES = \
$(libxfconf_built_sources) \
$(BUILT_SOURCES)
BUILT_SOURCES += \
$(libxfconf_built_sources)
xfconf-alias.h: make-exo-alias.pl $(top_srcdir)/xfconf/xfconf.symbols
$(AM_V_GEN) $(PERL) $(srcdir)/make-exo-alias.pl <$(top_srcdir)/xfconf/xfconf.symbols >xfconf-alias.h
xfconf-aliasdef.c: make-exo-alias.pl $(top_srcdir)/xfconf/xfconf.symbols
$(AM_V_GEN) $(PERL) $(srcdir)/make-exo-alias.pl -def <$(top_srcdir)/xfconf/xfconf.symbols >xfconf-aliasdef.c
EXTRA_DIST = \
make-exo-alias.pl \
xfconf-alias.h \
xfconf-aliasdef.c \
xfconf-common-private.h \
xfconf-dbus.xml \
xfconf-marshal.list \
xfconf-types.c
# required for make distcheck
dist-hook: all
This diff is collapsed.
#!/usr/bin/env perl -w
#
# Copyright (c) 2004 The GLib Development Team.
# Copyright (c) 2005 Benedikt Meurer <benny@xfce.org>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License ONLY.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
my $option_def = 0;
if (($#ARGV >= 0) && ($ARGV[0] eq "-def"))
{
shift;
$option_def = 1;
}
print <<EOF;
/* Generated by make-exo-alias.pl. Do not edit this file. */
#ifdef HAVE_GNUC_VISIBILITY
#include <glib.h>
EOF
if ($option_def)
{
print <<EOF
#undef IN_HEADER
#define IN_HEADER(x) 1
#undef IN_SOURCE
#define IN_SOURCE defined
EOF
}
else
{
print <<EOF
#define IN_HEADER defined
#define IN_SOURCE(x) 1
EOF
}
my $in_comment = 0;
my $in_skipped_section = 0;
while (<>)
{
# ignore empty lines
next if /^\s*$/;
# skip comments
if ($_ =~ /^\s*\/\*/)
{
$in_comment = 1;
}
if ($in_comment)
{
if ($_ =~ /\*\/\s$/)
{
$in_comment = 0;
}
next;
}
# handle ifdefs
if ($_ =~ /^\#endif/)
{
if (!$in_skipped_section)
{
print $_;
}
$in_skipped_section = 0;
next;
}
if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|INCLUDE_INTERNAL_SYMBOLS|ALL_FILES)/)
{
$in_skipped_section = 1;
}
if ($in_skipped_section)
{
next;
}
if ($_ =~ /^\#ifn?def\s+G/)
{
print $_;
next;
}
if ($_ =~ /^\#if.*(IN_SOURCE|IN_HEADER)/)
{
print $_;
next;
}
chop;
my $line = $_;
my @words;
my $attributes = "";
@words = split (/ /, $line);
my $symbol = shift (@words);
chomp ($symbol);
my $alias = "IA__".$symbol;
# Drop any Win32 specific .def file syntax, but keep attributes
foreach $word (@words)
{
$attributes = "$attributes $word" unless $word eq "PRIVATE";
}
if (!$option_def)
{
print <<EOF
extern __typeof ($symbol) $alias __attribute((visibility("hidden")))$attributes;
\#define $symbol $alias
EOF
}
else
{
print <<EOF
\#undef $symbol
extern __typeof ($symbol) $symbol __attribute((alias("$alias"), visibility("default")));
EOF
}
}
print <<EOF;
#endif /* HAVE_GNUC_VISIBILITY */
EOF
/* Generated by make-exo-alias.pl. Do not edit this file. */
#ifdef HAVE_GNUC_VISIBILITY
#include <glib.h>
#define IN_HEADER defined
#define IN_SOURCE(x) 1
#if IN_HEADER(__XFCONF_H__)
#if IN_SOURCE(__XFCONF_C__)
extern __typeof (xfconf_init) IA__xfconf_init __attribute((visibility("hidden")));
#define xfconf_init IA__xfconf_init
extern __typeof (xfconf_shutdown) IA__xfconf_shutdown __attribute((visibility("hidden")));
#define xfconf_shutdown IA__xfconf_shutdown
extern __typeof (xfconf_named_struct_register) IA__xfconf_named_struct_register __attribute((visibility("hidden")));
#define xfconf_named_struct_register IA__xfconf_named_struct_register
extern __typeof (xfconf_array_free) IA__xfconf_array_free __attribute((visibility("hidden")));
#define xfconf_array_free IA__xfconf_array_free
#endif
#endif
#if IN_HEADER(__XFCONF_ERRORS_H__)
#if IN_SOURCE(__XFCONF_ERRORS_C__)
extern __typeof (xfconf_error_get_type) IA__xfconf_error_get_type __attribute((visibility("hidden"))) G_GNUC_CONST;
#define xfconf_error_get_type IA__xfconf_error_get_type
extern __typeof (xfconf_get_error_quark) IA__xfconf_get_error_quark __attribute((visibility("hidden")));
#define xfconf_get_error_quark IA__xfconf_get_error_quark
#endif
#endif
#if IN_HEADER(__XFCONF_TYPES_H__)
#if IN_SOURCE(__XFCONF_TYPES_C__)
extern __typeof (xfconf_uint16_get_type) IA__xfconf_uint16_get_type __attribute((visibility("hidden"))) G_GNUC_CONST;
#define xfconf_uint16_get_type IA__xfconf_uint16_get_type
extern __typeof (xfconf_g_value_get_uint16) IA__xfconf_g_value_get_uint16 __attribute((visibility("hidden")));
#define xfconf_g_value_get_uint16 IA__xfconf_g_value_get_uint16
extern __typeof (xfconf_g_value_set_uint16) IA__xfconf_g_value_set_uint16 __attribute((visibility("hidden")));
#define xfconf_g_value_set_uint16 IA__xfconf_g_value_set_uint16
extern __typeof (xfconf_int16_get_type) IA__xfconf_int16_get_type __attribute((visibility("hidden"))) G_GNUC_CONST;
#define xfconf_int16_get_type IA__xfconf_int16_get_type
extern __typeof (xfconf_g_value_get_int16) IA__xfconf_g_value_get_int16 __attribute((visibility("hidden")));
#define xfconf_g_value_get_int16 IA__xfconf_g_value_get_int16
extern __typeof (xfconf_g_value_set_int16) IA__xfconf_g_value_set_int16 __attribute((visibility("hidden")));
#define xfconf_g_value_set_int16 IA__xfconf_g_value_set_int16
#endif
#endif
#if IN_HEADER(__XFCONF_CHANNEL_H__)
#if IN_SOURCE(__XFCONF_CHANNEL_C__)
extern __typeof (xfconf_channel_get_type) IA__xfconf_channel_get_type __attribute((visibility("hidden"))) G_GNUC_CONST;
#define xfconf_channel_get_type IA__xfconf_channel_get_type
extern __typeof (xfconf_channel_get) IA__xfconf_channel_get __attribute((visibility("hidden")));
#define xfconf_channel_get IA__xfconf_channel_get
extern __typeof (xfconf_channel_new) IA__xfconf_channel_new __attribute((visibility("hidden")));
#define xfconf_channel_new IA__xfconf_channel_new
extern __typeof (xfconf_channel_new_with_property_base) IA__xfconf_channel_new_with_property_base __attribute((visibility("hidden")));
#define xfconf_channel_new_with_property_base IA__xfconf_channel_new_with_property_base
extern __typeof (xfconf_channel_has_property) IA__xfconf_channel_has_property __attribute((visibility("hidden")));
#define xfconf_channel_has_property IA__xfconf_channel_has_property
extern __typeof (xfconf_channel_is_property_locked) IA__xfconf_channel_is_property_locked __attribute((visibility("hidden")));
#define xfconf_channel_is_property_locked IA__xfconf_channel_is_property_locked
extern __typeof (xfconf_channel_reset_property) IA__xfconf_channel_reset_property __attribute((visibility("hidden")));
#define xfconf_channel_reset_property IA__xfconf_channel_reset_property
extern __typeof (xfconf_channel_get_properties) IA__xfconf_channel_get_properties __attribute((visibility("hidden")));
#define xfconf_channel_get_properties IA__xfconf_channel_get_properties
extern __typeof (xfconf_channel_get_string) IA__xfconf_channel_get_string __attribute((visibility("hidden")));
#define xfconf_channel_get_string IA__xfconf_channel_get_string
extern __typeof (xfconf_channel_set_string) IA__xfconf_channel_set_string __attribute((visibility("hidden")));
#define xfconf_channel_set_string IA__xfconf_channel_set_string
extern __typeof (xfconf_channel_get_int) IA__xfconf_channel_get_int __attribute((visibility("hidden")));
#define xfconf_channel_get_int IA__xfconf_channel_get_int
extern __typeof (xfconf_channel_set_int) IA__xfconf_channel_set_int __attribute((visibility("hidden")));
#define xfconf_channel_set_int IA__xfconf_channel_set_int
extern __typeof (xfconf_channel_get_uint) IA__xfconf_channel_get_uint __attribute((visibility("hidden")));
#define xfconf_channel_get_uint IA__xfconf_channel_get_uint
extern __typeof (xfconf_channel_set_uint) IA__xfconf_channel_set_uint __attribute((visibility("hidden")));
#define xfconf_channel_set_uint IA__xfconf_channel_set_uint
extern __typeof (xfconf_channel_get_uint64) IA__xfconf_channel_get_uint64 __attribute((visibility("hidden")));
#define xfconf_channel_get_uint64 IA__xfconf_channel_get_uint64
extern __typeof (xfconf_channel_set_uint64) IA__xfconf_channel_set_uint64 __attribute((visibility("hidden")));
#define xfconf_channel_set_uint64 IA__xfconf_channel_set_uint64
extern __typeof (xfconf_channel_get_double) IA__xfconf_channel_get_double __attribute((visibility("hidden")));
#define xfconf_channel_get_double IA__xfconf_channel_get_double
extern __typeof (xfconf_channel_set_double) IA__xfconf_channel_set_double __attribute((visibility("hidden")));
#define xfconf_channel_set_double IA__xfconf_channel_set_double
extern __typeof (xfconf_channel_get_bool) IA__xfconf_channel_get_bool __attribute((visibility("hidden")));
#define xfconf_channel_get_bool IA__xfconf_channel_get_bool
extern __typeof (xfconf_channel_set_bool) IA__xfconf_channel_set_bool __attribute((visibility("hidden")));
#define xfconf_channel_set_bool IA__xfconf_channel_set_bool
extern __typeof (xfconf_channel_get_string_list) IA__xfconf_channel_get_string_list __attribute((visibility("hidden")));
#define xfconf_channel_get_string_list IA__xfconf_channel_get_string_list
extern __typeof (xfconf_channel_set_string_list) IA__xfconf_channel_set_string_list __attribute((visibility("hidden")));
#define xfconf_channel_set_string_list IA__xfconf_channel_set_string_list
extern __typeof (xfconf_channel_get_property) IA__xfconf_channel_get_property __attribute((visibility("hidden")));
#define xfconf_channel_get_property IA__xfconf_channel_get_property
extern __typeof (xfconf_channel_set_property) IA__xfconf_channel_set_property __attribute((visibility("hidden")));
#define xfconf_channel_set_property IA__xfconf_channel_set_property
extern __typeof (xfconf_channel_get_array) IA__xfconf_channel_get_array __attribute((visibility("hidden")));
#define xfconf_channel_get_array IA__xfconf_channel_get_array
extern __typeof (xfconf_channel_get_array_valist) IA__xfconf_channel_get_array_valist __attribute((visibility("hidden")));
#define xfconf_channel_get_array_valist IA__xfconf_channel_get_array_valist
extern __typeof (xfconf_channel_get_arrayv) IA__xfconf_channel_get_arrayv __attribute((visibility("hidden")));
#define xfconf_channel_get_arrayv IA__xfconf_channel_get_arrayv
extern __typeof (xfconf_channel_set_array) IA__xfconf_channel_set_array __attribute((visibility("hidden")));
#define xfconf_channel_set_array IA__xfconf_channel_set_array
extern __typeof (xfconf_channel_set_array_valist) IA__xfconf_channel_set_array_valist __attribute((visibility("hidden")));
#define xfconf_channel_set_array_valist IA__xfconf_channel_set_array_valist
extern __typeof (xfconf_channel_set_arrayv) IA__xfconf_channel_set_arrayv __attribute((visibility("hidden")));
#define xfconf_channel_set_arrayv IA__xfconf_channel_set_arrayv
extern __typeof (xfconf_channel_get_named_struct) IA__xfconf_channel_get_named_struct __attribute((visibility("hidden")));
#define xfconf_channel_get_named_struct IA__xfconf_channel_get_named_struct
extern __typeof (xfconf_channel_set_named_struct) IA__xfconf_channel_set_named_struct __attribute((visibility("hidden")));
#define xfconf_channel_set_named_struct IA__xfconf_channel_set_named_struct
extern __typeof (xfconf_channel_get_struct) IA__xfconf_channel_get_struct __attribute((visibility("hidden")));
#define xfconf_channel_get_struct IA__xfconf_channel_get_struct
extern __typeof (xfconf_channel_get_struct_valist) IA__xfconf_channel_get_struct_valist __attribute((visibility("hidden")));
#define xfconf_channel_get_struct_valist IA__xfconf_channel_get_struct_valist
extern __typeof (xfconf_channel_get_structv) IA__xfconf_channel_get_structv __attribute((visibility("hidden")));
#define xfconf_channel_get_structv IA__xfconf_channel_get_structv
extern __typeof (xfconf_channel_set_struct) IA__xfconf_channel_set_struct __attribute((visibility("hidden")));
#define xfconf_channel_set_struct IA__xfconf_channel_set_struct
extern __typeof (xfconf_channel_set_struct_valist) IA__xfconf_channel_set_struct_valist __attribute((visibility("hidden")));
#define xfconf_channel_set_struct_valist IA__xfconf_channel_set_struct_valist
extern __typeof (xfconf_channel_set_structv) IA__xfconf_channel_set_structv __attribute((visibility("hidden")));
#define xfconf_channel_set_structv IA__xfconf_channel_set_structv
extern __typeof (xfconf_list_channels) IA__xfconf_list_channels __attribute((visibility("hidden")));
#define xfconf_list_channels IA__xfconf_list_channels
#endif
#endif
#if IN_HEADER(__XFCONF_BINDING_H__)
#if IN_SOURCE(__XFCONF_BINDING_C__)
extern __typeof (xfconf_g_property_bind) IA__xfconf_g_property_bind __attribute((visibility("hidden")));
#define xfconf_g_property_bind IA__xfconf_g_property_bind
extern __typeof (xfconf_g_property_unbind) IA__xfconf_g_property_unbind __attribute((visibility("hidden")));
#define xfconf_g_property_unbind IA__xfconf_g_property_unbind
extern __typeof (xfconf_g_property_unbind_by_property) IA__xfconf_g_property_unbind_by_property __attribute((visibility("hidden")));
#define xfconf_g_property_unbind_by_property IA__xfconf_g_property_unbind_by_property
extern __typeof (xfconf_g_property_unbind_all) IA__xfconf_g_property_unbind_all __attribute((visibility("hidden")));
#define xfconf_g_property_unbind_all IA__xfconf_g_property_unbind_all
extern __typeof (xfconf_g_property_bind_gdkcolor) IA__xfconf_g_property_bind_gdkcolor __attribute((visibility("hidden")));
#define xfconf_g_property_bind_gdkcolor IA__xfconf_g_property_bind_gdkcolor
extern __typeof (xfconf_g_property_bind_gdkrgba) IA__xfconf_g_property_bind_gdkrgba __attribute((visibility("hidden")));
#define xfconf_g_property_bind_gdkrgba IA__xfconf_g_property_bind_gdkrgba
#endif
#endif
#endif /* HAVE_GNUC_VISIBILITY */
/* Generated by make-exo-alias.pl. Do not edit this file. */
#ifdef HAVE_GNUC_VISIBILITY
#include <glib.h>
#undef IN_HEADER
#define IN_HEADER(x) 1
#undef IN_SOURCE
#define IN_SOURCE defined
#if IN_HEADER(__XFCONF_H__)
#if IN_SOURCE(__XFCONF_C__)
#undef xfconf_init
extern __typeof (xfconf_init) xfconf_init __attribute((alias("IA__xfconf_init"), visibility("default")));
#undef xfconf_shutdown
extern __typeof (xfconf_shutdown) xfconf_shutdown __attribute((alias("IA__xfconf_shutdown"), visibility("default")));
#undef xfconf_named_struct_register
extern __typeof (xfconf_named_struct_register) xfconf_named_struct_register __attribute((alias("IA__xfconf_named_struct_register"), visibility("default")));
#undef xfconf_array_free
extern __typeof (xfconf_array_free) xfconf_array_free __attribute((alias("IA__xfconf_array_free"), visibility("default")));
#endif
#endif
#if IN_HEADER(__XFCONF_ERRORS_H__)
#if IN_SOURCE(__XFCONF_ERRORS_C__)
#undef xfconf_error_get_type
extern __typeof (xfconf_error_get_type) xfconf_error_get_type __attribute((alias("IA__xfconf_error_get_type"), visibility("default")));
#undef xfconf_get_error_quark
extern __typeof (xfconf_get_error_quark) xfconf_get_error_quark __attribute((alias("IA__xfconf_get_error_quark"), visibility("default")));
#endif
#endif
#if IN_HEADER(__XFCONF_TYPES_H__)
#if IN_SOURCE(__XFCONF_TYPES_C__)
#undef xfconf_uint16_get_type
extern __typeof (xfconf_uint16_get_type) xfconf_uint16_get_type __attribute((alias("IA__xfconf_uint16_get_type"), visibility("default")));
#undef xfconf_g_value_get_uint16
extern __typeof (xfconf_g_value_get_uint16) xfconf_g_value_get_uint16 __attribute((alias("IA__xfconf_g_value_get_uint16"), visibility("default")));
#undef xfconf_g_value_set_uint16
extern __typeof (xfconf_g_value_set_uint16) xfconf_g_value_set_uint16 __attribute((alias("IA__xfconf_g_value_set_uint16"), visibility("default")));
#undef xfconf_int16_get_type
extern __typeof (xfconf_int16_get_type) xfconf_int16_get_type __attribute((alias("IA__xfconf_int16_get_type"), visibility("default")));
#undef xfconf_g_value_get_int16
extern __typeof (xfconf_g_value_get_int16) xfconf_g_value_get_int16 __attribute((alias("IA__xfconf_g_value_get_int16"), visibility("default")));
#undef xfconf_g_value_set_int16
extern __typeof (xfconf_g_value_set_int16) xfconf_g_value_set_int16 __attribute((alias("IA__xfconf_g_value_set_int16"), visibility("default")));
#endif
#endif
#if IN_HEADER(__XFCONF_CHANNEL_H__)
#if IN_SOURCE(__XFCONF_CHANNEL_C__)
#undef xfconf_channel_get_type
extern __typeof (xfconf_channel_get_type) xfconf_channel_get_type __attribute((alias("IA__xfconf_channel_get_type"), visibility("default")));
#undef xfconf_channel_get
extern __typeof (xfconf_channel_get) xfconf_channel_get __attribute((alias("IA__xfconf_channel_get"), visibility("default")));
#undef xfconf_channel_new
extern __typeof (xfconf_channel_new) xfconf_channel_new __attribute((alias("IA__xfconf_channel_new"), visibility("default")));
#undef xfconf_channel_new_with_property_base
extern __typeof (xfconf_channel_new_with_property_base) xfconf_channel_new_with_property_base __attribute((alias("IA__xfconf_channel_new_with_property_base"), visibility("default")));
#undef xfconf_channel_has_property
extern __typeof (xfconf_channel_has_property) xfconf_channel_has_property __attribute((alias("IA__xfconf_channel_has_property"), visibility("default")));
#undef xfconf_channel_is_property_locked
extern __typeof (xfconf_channel_is_property_locked) xfconf_channel_is_property_locked __attribute((alias("IA__xfconf_channel_is_property_locked"), visibility("default")));
#undef xfconf_channel_reset_property
extern __typeof (xfconf_channel_reset_property) xfconf_channel_reset_property __attribute((alias("IA__xfconf_channel_reset_property"), visibility("default")));
#undef xfconf_channel_get_properties
extern __typeof (xfconf_channel_get_properties) xfconf_channel_get_properties __attribute((alias("IA__xfconf_channel_get_properties"), visibility("default")));
#undef xfconf_channel_get_string
extern __typeof (xfconf_channel_get_string) xfconf_channel_get_string __attribute((alias("IA__xfconf_channel_get_string"), visibility("default")));
#undef xfconf_channel_set_string
extern __typeof (xfconf_channel_set_string) xfconf_channel_set_string __attribute((alias("IA__xfconf_channel_set_string"), visibility("default")));
#undef xfconf_channel_get_int
extern __typeof (xfconf_channel_get_int) xfconf_channel_get_int __attribute((alias("IA__xfconf_channel_get_int"), visibility("default")));
#undef xfconf_channel_set_int
extern __typeof (xfconf_channel_set_int) xfconf_channel_set_int __attribute((alias("IA__xfconf_channel_set_int"), visibility("default")));
#undef xfconf_channel_get_uint
extern __typeof (xfconf_channel_get_uint) xfconf_channel_get_uint __attribute((alias("IA__xfconf_channel_get_uint"), visibility("default")));
#undef xfconf_channel_set_uint
extern __typeof (xfconf_channel_set_uint) xfconf_channel_set_uint __attribute((alias("IA__xfconf_channel_set_uint"), visibility("default")));
#undef xfconf_channel_get_uint64
extern __typeof (xfconf_channel_get_uint64) xfconf_channel_get_uint64 __attribute((alias("IA__xfconf_channel_get_uint64"), visibility("default")));
#undef xfconf_channel_set_uint64
extern __typeof (xfconf_channel_set_uint64) xfconf_channel_set_uint64 __attribute((alias("IA__xfconf_channel_set_uint64"), visibility("default")));
#undef xfconf_channel_get_double
extern __typeof (xfconf_channel_get_double) xfconf_channel_get_double __attribute((alias("IA__xfconf_channel_get_double"), visibility("default")));
#undef xfconf_channel_set_double
extern __typeof (xfconf_channel_set_double) xfconf_channel_set_double __attribute((alias("IA__xfconf_channel_set_double"), visibility("default")));
#undef xfconf_channel_get_bool
extern __typeof (xfconf_channel_get_bool) xfconf_channel_get_bool __attribute((alias("IA__xfconf_channel_get_bool"), visibility("default")));
#undef xfconf_channel_set_bool
extern __typeof (xfconf_channel_set_bool) xfconf_channel_set_bool __attribute((alias("IA__xfconf_channel_set_bool"), visibility("default")));
#undef xfconf_channel_get_string_list
extern __typeof (xfconf_channel_get_string_list) xfconf_channel_get_string_list __attribute((alias("IA__xfconf_channel_get_string_list"), visibility("default")));
#undef xfconf_channel_set_string_list
extern __typeof (xfconf_channel_set_string_list) xfconf_channel_set_string_list __attribute((alias("IA__xfconf_channel_set_string_list"), visibility("default")));
#undef xfconf_channel_get_property
extern __typeof (xfconf_channel_get_property) xfconf_channel_get_property __attribute((alias("IA__xfconf_channel_get_property"), visibility("default")));
#undef xfconf_channel_set_property
extern __typeof (xfconf_channel_set_property) xfconf_channel_set_property __attribute((alias("IA__xfconf_channel_set_property"), visibility("default")));
#undef xfconf_channel_get_array
extern __typeof (xfconf_channel_get_array) xfconf_channel_get_array __attribute((alias("IA__xfconf_channel_get_array"), visibility("default")));
#undef xfconf_channel_get_array_valist
extern __typeof (xfconf_channel_get_array_valist) xfconf_channel_get_array_valist __attribute((alias("IA__xfconf_channel_get_array_valist"), visibility("default")));
#undef xfconf_channel_get_arrayv
extern __typeof (xfconf_channel_get_arrayv) xfconf_channel_get_arrayv __attribute((alias("IA__xfconf_channel_get_arrayv"), visibility("default")));
#undef xfconf_channel_set_array
extern __typeof (xfconf_channel_set_array) xfconf_channel_set_array __attribute((alias("IA__xfconf_channel_set_array"), visibility("default")));
#undef xfconf_channel_set_array_valist
extern __typeof (xfconf_channel_set_array_valist) xfconf_channel_set_array_valist __attribute((alias("IA__xfconf_channel_set_array_valist"), visibility("default")));
#undef xfconf_channel_set_arrayv
extern __typeof (xfconf_channel_set_arrayv) xfconf_channel_set_arrayv __attribute((alias("IA__xfconf_channel_set_arrayv"), visibility("default")));
#undef xfconf_channel_get_named_struct
extern __typeof (xfconf_channel_get_named_struct) xfconf_channel_get_named_struct __attribute((alias("IA__xfconf_channel_get_named_struct"), visibility("default")));
#undef xfconf_channel_set_named_struct
extern __typeof (xfconf_channel_set_named_struct) xfconf_channel_set_named_struct __attribute((alias("IA__xfconf_channel_set_named_struct"), visibility("default")));
#undef xfconf_channel_get_struct
extern __typeof (xfconf_channel_get_struct) xfconf_channel_get_struct __attribute((alias("IA__xfconf_channel_get_struct"), visibility("default")));
#undef xfconf_channel_get_struct_valist
extern __typeof (xfconf_channel_get_struct_valist) xfconf_channel_get_struct_valist __attribute((alias("IA__xfconf_channel_get_struct_valist"), visibility("default")));
#undef xfconf_channel_get_structv
extern __typeof (xfconf_channel_get_structv) xfconf_channel_get_structv __attribute((alias("IA__xfconf_channel_get_structv"), visibility("default")));
#undef xfconf_channel_set_struct
extern __typeof (xfconf_channel_set_struct) xfconf_channel_set_struct __attribute((alias("IA__xfconf_channel_set_struct"), visibility("default")));
#undef xfconf_channel_set_struct_valist
extern __typeof (xfconf_channel_set_struct_valist) xfconf_channel_set_struct_valist __attribute((alias("IA__xfconf_channel_set_struct_valist"), visibility("default")));
#undef xfconf_channel_set_structv
extern __typeof (xfconf_channel_set_structv) xfconf_channel_set_structv __attribute((alias("IA__xfconf_channel_set_structv"), visibility("default")));
#undef xfconf_list_channels
extern __typeof (xfconf_list_channels) xfconf_list_channels __attribute((alias("IA__xfconf_list_channels"), visibility("default")));
#endif
#endif
#if IN_HEADER(__XFCONF_BINDING_H__)
#if IN_SOURCE(__XFCONF_BINDING_C__)
#undef xfconf_g_property_bind
extern __typeof (xfconf_g_property_bind) xfconf_g_property_bind __attribute((alias("IA__xfconf_g_property_bind"), visibility("default")));
#undef xfconf_g_property_unbind
extern __typeof (xfconf_g_property_unbind) xfconf_g_property_unbind __attribute((alias("IA__xfconf_g_property_unbind"), visibility("default")));
#undef xfconf_g_property_unbind_by_property
extern __typeof (xfconf_g_property_unbind_by_property) xfconf_g_property_unbind_by_property __attribute((alias("IA__xfconf_g_property_unbind_by_property"), visibility("default")));
#undef xfconf_g_property_unbind_all
extern __typeof (xfconf_g_property_unbind_all) xfconf_g_property_unbind_all __attribute((alias("IA__xfconf_g_property_unbind_all"), visibility("default")));
#undef xfconf_g_property_bind_gdkcolor
extern __typeof (xfconf_g_property_bind_gdkcolor) xfconf_g_property_bind_gdkcolor __attribute((alias("IA__xfconf_g_property_bind_gdkcolor"), visibility("default")));
#undef xfconf_g_property_bind_gdkrgba
extern __typeof (xfconf_g_property_bind_gdkrgba) xfconf_g_property_bind_gdkrgba __attribute((alias("IA__xfconf_g_property_bind_gdkrgba"), visibility("default")));
#endif
#endif
#endif /* HAVE_GNUC_VISIBILITY */
/*
* xfconf
*
* Copyright (c) 2008 Brian Tarricone <bjt23@cornell.edu>
*
* 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; version 2
* of the License ONLY.
*
* 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 __XFCONF_COMMON_PRIVATE_H__
#define __XFCONF_COMMON_PRIVATE_H__
#define I_(string) (g_intern_static_string((string)))
#endif /* __XFCONF_COMMON_PRIVATE_H__ */
<?xml version="1.0" encoding="UTF-8"?>
<node name="/org/xfce/Xfconf">
<interface name="org.xfce.Xfconf">
<!--
void org.xfce.Xfconf.SetProperty(String channel,
String property,
Variant value)
@channel: A channel/application/namespace name.
@property: A property name.
@value: A value to set for @property. Valid variant
types supported so far: [FIXME]
Sets a property value.
-->
<method name="SetProperty">
<arg direction="in" name="channel" type="s"/>
<arg direction="in" name="property" type="s"/>
<arg direction="in" name="value" type="v"/>
</method>
<!--
Variant org.xfce.Xfconf.GetProperty(String channel,
String property)
@channel: A channel/application/namespace name.
@propert: A property name.
Gets a property value, returned as a variant type.
-->
<method name="GetProperty">
<arg direction="in" name="channel" type="s"/>
<arg direction="in" name="property" type="s"/>
<arg direction="out" name="value" type="v"/>
</method>
<!--
Array{String,Variant} org.xfce.Xfconf.GetAllProperties(String channel,
String property_base)
@channel: A channel/application/namespace name.
@property_base: The root of poperties to return.
Gets all the properties and values that exist in
@channel that are rooted at @property_base. Passing
"/" or the empty string as @property_base will return
all properties in the channel.
Returns: An array of properties and values; the
properties are strings, and the values are
variants.
-->
<method name="GetAllProperties">
<arg direction="in" name="channel" type="s"/>
<arg direction="in" name="property_base" type="s"/>
<arg direction="out" name="properties" type="a{sv}"/>
</method>
<!--
Boolean org.xfce.Xfconf.PropertyExists(String channel,
String property)
@channel: A channel/application/namespace name.
@property: A property name.
Checks to see if @property exists in @channel.
Returns: %TRUE if @property exists, %FALSE if not.
-->
<method name="PropertyExists">
<arg direction="in" name="channel" type="s"/>
<arg direction="in" name="property" type="s"/>
<arg direction="out" name="exists" type="b"/>
</method>
<!--
void org.xfce.Xfconf.ResetProperty(String channel,
String property,
Boolean recursive)
@channel: A channel/application/namespace name.
@property: A property name.
@recursive: Whether the operation resets sub-properties.
Resets @property on @channel. If @recursive is true,
all sub-properties of the specified property will be
reset as well. If the special "/" property is specified
for @property, and @recursive is true, the entire channel
will be reset.
Since properties can be set by root-owned system-wide
settings, actual property *removal* may not be possible.
The idea of "reset" is that it puts the configuration store
back to the application's original state as if it were
freshly installed for the current user. If there are no
system-wide settings, this amounts to a "remove." If there
are system-wide settings and/or some properties are locked
by system policy, then it's just a reset.
-->
<method name="ResetProperty">
<arg direction="in" name="channel" type="s"/>
<arg direction="in" name="property" type="s"/>
<arg direction="in" name="recursive" type="b"/>
</method>
<!--
Array{String} org.xfce.Xfconf.ListChannels()
Returns a list of all known channels as an array of
strings.
-->
<method name="ListChannels">
<arg direction="out" name="channels" type="as"/>
</method>
<!--
Boolean org.xfce.Xfconf.IsPropertyLocked(String channel,
String property)
@channel: A channel/application/namespace name.
@property: A property name.
Queries whether the property can be modified by the
current user. The property may be locked by system
policy. Example use would be for a "kiosk mode"
where users cannot change how the desktop
environment is set up.
-->
<method name="IsPropertyLocked">
<arg direction="in" name="channel" type="s"/>
<arg direction="in" name="property" type="s"/>
<arg direction="out" name="locked" type="b"/>
</method>
<!--
void org.xfce.Xfconf.PropertyChanged(String channel,
String property.
Variant value)
@channel: A channel/application/namespace name.
@property: A property name.
@value: The new value.
Emitted when a property changes.
-->
<signal name="PropertyChanged">
<arg name="channel" type="s"/>
<arg name="property" type="s"/>
<arg name="value" type="v"/>
</signal>
<!--
void org.xfce.Xfconf.PropertyRemoved(String channel,
String property)
@channel: A channel/application/namespace name.
@property: A property name.
Emitted when a property is removed.
-->
<signal name="PropertyRemoved">
<arg name="channel" type="s"/>
<arg name="property" type="s"/>
</signal>
</interface>
</node>
/*
* xfconf
*
* Copyright (c) 2007 Brian Tarricone <bjt23@cornell.edu>
*
* 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; version 2
* of the License ONLY.
*
* 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
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <gio/gio.h>
#include "xfconf/xfconf-errors.h"
#include "xfconf-alias.h"
/**
* SECTION:xfconf-errors
* @title: Error Reporting
* @short_description: Xfconf library and daemon error descriptions
*
* Both the Xfconf daemon and library provide error information via the use of #GError
**/
static const GDBusErrorEntry xfconf_daemon_dbus_error_entries[] =
{
{ XFCONF_ERROR_UNKNOWN, "org.xfce.Xfconf.Error.Unknown" },
{ XFCONF_ERROR_CHANNEL_NOT_FOUND, "org.xfce.Xfconf.Error.ChannelNotFound" },
{ XFCONF_ERROR_PROPERTY_NOT_FOUND, "org.xfce.Xfconf.Error.PropertyNotFound" },
{ XFCONF_ERROR_READ_FAILURE, "org.xfce.Xfconf.Error.ReadFailure" },
{ XFCONF_ERROR_WRITE_FAILURE, "org.xfce.Xfconf.Error.WriteFailure" },
{ XFCONF_ERROR_PERMISSION_DENIED, "org.xfce.Xfconf.Error.PermissionDenied" },
{ XFCONF_ERROR_INTERNAL_ERROR, "org.xfce.Xfconf.Error.InternalError" },
{ XFCONF_ERROR_NO_BACKEND, "org.xfce.Xfconf.Error.NoBackend" },
{ XFCONF_ERROR_INVALID_PROPERTY, "org.xfce.Xfconf.Error.InvalidProperty" },
{ XFCONF_ERROR_INVALID_CHANNEL, "org.xfce.Xfconf.Error.InvalidChannel" },
};
/**
* XFCONF_ERROR:
*
* The #GError error domain for Xfconf.
**/
/**
* XFCONF_TYPE_ERROR:
*
* An enum GType for Xfconf errors.
**/
GQuark
xfconf_get_error_quark(void)
{
static volatile gsize quark_volatile = 0;
g_dbus_error_register_error_domain ("xfconf_daemon_error",
&quark_volatile,
xfconf_daemon_dbus_error_entries,
G_N_ELEMENTS (xfconf_daemon_dbus_error_entries));
return quark_volatile;
}
/* unfortunately glib-mkenums can't generate types that are compatible with
* dbus error names -- the 'nick' value is used, which can have dashes in it,
* which dbus doesn't like. */
GType
xfconf_error_get_type(void)
{
static GType type = 0;
if(!type) {
static const GEnumValue values[] = {
{ XFCONF_ERROR_UNKNOWN, "XFCONF_ERROR_UNKNOWN", "Unknown" },
{ XFCONF_ERROR_CHANNEL_NOT_FOUND, "XFCONF_ERROR_CHANNEL_NOT_FOUND", "ChannelNotFound" },
{ XFCONF_ERROR_PROPERTY_NOT_FOUND, "XFCONF_ERROR_PROPERTY_NOT_FOUND", "PropertyNotFound" },
{ XFCONF_ERROR_READ_FAILURE, "XFCONF_ERROR_READ_FAILURE", "ReadFailure" },
{ XFCONF_ERROR_WRITE_FAILURE, "XFCONF_ERROR_WRITE_FAILURE", "WriteFailure" },
{ XFCONF_ERROR_PERMISSION_DENIED, "XFCONF_ERROR_PERMISSION_DENIED", "PermissionDenied" },
{ XFCONF_ERROR_INTERNAL_ERROR, "XFCONF_ERROR_INTERNAL_ERROR", "InternalError" },
{ XFCONF_ERROR_NO_BACKEND, "XFCONF_ERROR_NO_BACKEND", "NoBackend" },
{ XFCONF_ERROR_INVALID_PROPERTY, "XFCONF_ERROR_INVALID_PROPERTY", "InvalidProperty" },
{ XFCONF_ERROR_INVALID_CHANNEL, "XFCONF_ERROR_INVALID_CHANNEL", "InvalidChannel" },
{ 0, NULL, NULL }
};
type = g_enum_register_static("XfconfError", values);
}
return type;
}
#define __XFCONF_ERRORS_C__
#include "xfconf-aliasdef.c"
This diff is collapsed.
/*
* Generated by gdbus-codegen 2.50.3. DO NOT EDIT.
*
* The license of this code is the same as for the source it was derived from.
*/
#ifndef __XFCONF_GDBUS_BINDINGS_H__
#define __XFCONF_GDBUS_BINDINGS_H__
#include <gio/gio.h>
G_BEGIN_DECLS
/* ------------------------------------------------------------------------ */
/* Declarations for org.xfce.Xfconf */
#define XFCONF_TYPE_EXPORTED (xfconf_exported_get_type ())
#define XFCONF_EXPORTED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFCONF_TYPE_EXPORTED, XfconfExported))
#define XFCONF_IS_EXPORTED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFCONF_TYPE_EXPORTED))
#define XFCONF_EXPORTED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), XFCONF_TYPE_EXPORTED, XfconfExportedIface))
struct _XfconfExported;
typedef struct _XfconfExported XfconfExported;
typedef struct _XfconfExportedIface XfconfExportedIface;
struct _XfconfExportedIface
{
GTypeInterface parent_iface;
gboolean (*handle_get_all_properties) (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *arg_channel,
const gchar *arg_property_base);
gboolean (*handle_get_property) (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *arg_channel,
const gchar *arg_property);
gboolean (*handle_is_property_locked) (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *arg_channel,
const gchar *arg_property);
gboolean (*handle_list_channels) (
XfconfExported *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_property_exists) (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *arg_channel,
const gchar *arg_property);
gboolean (*handle_reset_property) (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *arg_channel,
const gchar *arg_property,
gboolean arg_recursive);
gboolean (*handle_set_property) (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *arg_channel,
const gchar *arg_property,
GVariant *arg_value);
void (*property_changed) (
XfconfExported *object,
const gchar *arg_channel,
const gchar *arg_property,
GVariant *arg_value);
void (*property_removed) (
XfconfExported *object,
const gchar *arg_channel,
const gchar *arg_property);
};
GType xfconf_exported_get_type (void) G_GNUC_CONST;
GDBusInterfaceInfo *xfconf_exported_interface_info (void);
guint xfconf_exported_override_properties (GObjectClass *klass, guint property_id_begin);
/* D-Bus method call completion functions: */
void xfconf_exported_complete_set_property (
XfconfExported *object,
GDBusMethodInvocation *invocation);
void xfconf_exported_complete_get_property (
XfconfExported *object,
GDBusMethodInvocation *invocation,
GVariant *value);
void xfconf_exported_complete_get_all_properties (
XfconfExported *object,
GDBusMethodInvocation *invocation,
GVariant *properties);
void xfconf_exported_complete_property_exists (
XfconfExported *object,
GDBusMethodInvocation *invocation,
gboolean exists);
void xfconf_exported_complete_reset_property (
XfconfExported *object,
GDBusMethodInvocation *invocation);
void xfconf_exported_complete_list_channels (
XfconfExported *object,
GDBusMethodInvocation *invocation,
const gchar *const *channels);
void xfconf_exported_complete_is_property_locked (
XfconfExported *object,
GDBusMethodInvocation *invocation,
gboolean locked);
/* D-Bus signal emissions functions: */
void xfconf_exported_emit_property_changed (
XfconfExported *object,
const gchar *arg_channel,
const gchar *arg_property,
GVariant *arg_value);
void xfconf_exported_emit_property_removed (
XfconfExported *object,
const gchar *arg_channel,
const gchar *arg_property);
/* D-Bus method calls: */
void xfconf_exported_call_set_property (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
GVariant *arg_value,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_set_property_finish (
XfconfExported *proxy,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_set_property_sync (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
GVariant *arg_value,
GCancellable *cancellable,
GError **error);
void xfconf_exported_call_get_property (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_get_property_finish (
XfconfExported *proxy,
GVariant **out_value,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_get_property_sync (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
GVariant **out_value,
GCancellable *cancellable,
GError **error);
void xfconf_exported_call_get_all_properties (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property_base,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_get_all_properties_finish (
XfconfExported *proxy,
GVariant **out_properties,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_get_all_properties_sync (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property_base,
GVariant **out_properties,
GCancellable *cancellable,
GError **error);
void xfconf_exported_call_property_exists (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_property_exists_finish (
XfconfExported *proxy,
gboolean *out_exists,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_property_exists_sync (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
gboolean *out_exists,
GCancellable *cancellable,
GError **error);
void xfconf_exported_call_reset_property (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
gboolean arg_recursive,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_reset_property_finish (
XfconfExported *proxy,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_reset_property_sync (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
gboolean arg_recursive,
GCancellable *cancellable,
GError **error);
void xfconf_exported_call_list_channels (
XfconfExported *proxy,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_list_channels_finish (
XfconfExported *proxy,
gchar ***out_channels,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_list_channels_sync (
XfconfExported *proxy,
gchar ***out_channels,
GCancellable *cancellable,
GError **error);
void xfconf_exported_call_is_property_locked (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean xfconf_exported_call_is_property_locked_finish (
XfconfExported *proxy,
gboolean *out_locked,
GAsyncResult *res,
GError **error);
gboolean xfconf_exported_call_is_property_locked_sync (
XfconfExported *proxy,
const gchar *arg_channel,
const gchar *arg_property,
gboolean *out_locked,
GCancellable *cancellable,
GError **error);
/* ---- */
#define XFCONF_TYPE_EXPORTED_PROXY (xfconf_exported_proxy_get_type ())
#define XFCONF_EXPORTED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFCONF_TYPE_EXPORTED_PROXY, XfconfExportedProxy))
#define XFCONF_EXPORTED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), XFCONF_TYPE_EXPORTED_PROXY, XfconfExportedProxyClass))
#define XFCONF_EXPORTED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XFCONF_TYPE_EXPORTED_PROXY, XfconfExportedProxyClass))
#define XFCONF_IS_EXPORTED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFCONF_TYPE_EXPORTED_PROXY))
#define XFCONF_IS_EXPORTED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XFCONF_TYPE_EXPORTED_PROXY))
typedef struct _XfconfExportedProxy XfconfExportedProxy;
typedef struct _XfconfExportedProxyClass XfconfExportedProxyClass;
typedef struct _XfconfExportedProxyPrivate XfconfExportedProxyPrivate;
struct _XfconfExportedProxy
{
/*< private >*/
GDBusProxy parent_instance;
XfconfExportedProxyPrivate *priv;
};
struct _XfconfExportedProxyClass
{
GDBusProxyClass parent_class;
};
GType xfconf_exported_proxy_get_type (void) G_GNUC_CONST;
#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (XfconfExportedProxy, g_object_unref)
#endif
void xfconf_exported_proxy_new (
GDBusConnection *connection,
GDBusProxyFlags flags,
const gchar *name,
const gchar *object_path,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
XfconfExported *xfconf_exported_proxy_new_finish (
GAsyncResult *res,
GError **error);
XfconfExported *xfconf_exported_proxy_new_sync (
GDBusConnection *connection,
GDBusProxyFlags flags,
const gchar *name,
const gchar *object_path,
GCancellable *cancellable,
GError **error);
void xfconf_exported_proxy_new_for_bus (
GBusType bus_type,
GDBusProxyFlags flags,
const gchar *name,
const gchar *object_path,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
XfconfExported *xfconf_exported_proxy_new_for_bus_finish (
GAsyncResult *res,
GError **error);
XfconfExported *xfconf_exported_proxy_new_for_bus_sync (
GBusType bus_type,
GDBusProxyFlags flags,
const gchar *name,
const gchar *object_path,
GCancellable *cancellable,
GError **error);
/* ---- */
#define XFCONF_TYPE_EXPORTED_SKELETON (xfconf_exported_skeleton_get_type ())
#define XFCONF_EXPORTED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFCONF_TYPE_EXPORTED_SKELETON, XfconfExportedSkeleton))
#define XFCONF_EXPORTED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), XFCONF_TYPE_EXPORTED_SKELETON, XfconfExportedSkeletonClass))
#define XFCONF_EXPORTED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XFCONF_TYPE_EXPORTED_SKELETON, XfconfExportedSkeletonClass))
#define XFCONF_IS_EXPORTED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFCONF_TYPE_EXPORTED_SKELETON))
#define XFCONF_IS_EXPORTED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XFCONF_TYPE_EXPORTED_SKELETON))
typedef struct _XfconfExportedSkeleton XfconfExportedSkeleton;
typedef struct _XfconfExportedSkeletonClass XfconfExportedSkeletonClass;
typedef struct _XfconfExportedSkeletonPrivate XfconfExportedSkeletonPrivate;
struct _XfconfExportedSkeleton
{
/*< private >*/
GDBusInterfaceSkeleton parent_instance;
XfconfExportedSkeletonPrivate *priv;
};
struct _XfconfExportedSkeletonClass
{
GDBusInterfaceSkeletonClass parent_class;
};
GType xfconf_exported_skeleton_get_type (void) G_GNUC_CONST;
#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (XfconfExportedSkeleton, g_object_unref)
#endif
XfconfExported *xfconf_exported_skeleton_new (void);
G_END_DECLS
#endif /* __XFCONF_GDBUS_BINDINGS_H__ */