From 67b98c94b38b2e5f5e808e52806edc273668873a Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 25 2020 18:18:59 +0000 Subject: grilo-0.3.6 base --- diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..d37f438 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,157 @@ +Contributors: +============= +Juan A. Suarez Romero +Iago Toral Quiroga +Victor Manuel Jaquez Leal +Bastien Nocera +Simón Pena +Mathias Hasselmann +Victor Toso +Guillaume Emont +Guillaume Emont +Lionel Landwerlin +Damien Lespiau +Piotr Drąg +Marc-André Lureau +Joaquim Rocha +Simon Pena +Mathieu Duponchelle +Matej Urbančič +Yi-Soo An +Kjartan Maraas +Xabier Rodriguez Calvar +Xavier Claessens +Sam Thursfield +Murray Cumming +Мирослав Николић +Marek Černocký +Alberto Garcia +1PunMan +Dušan Kazik +Jens Georg +Emanuele Aina +Cédric Valmary +Aurimas Černius +Anders Jonsson +Muhammet Kara +Marinus Schraal +Chao-Hsiung Liao +Fran Dieguez +Fabien Lebaillif - Delamare +Eduardo Lima Mitev +Emmanuele Bassi +Ask Hjorth Larsen +Andika Triwidada +Yosef Or Boczko +Colin Walters +Rūdolfs Mazurs +Philip Withnall +Pedro Albuquerque +Ting-Wei Lan +Fabio Tomat +Stefan Kost +Inaki Larranaga Murgoitio +Dominique Leuenberger +Alberto Garcia +Alexandre Franke +Victor Ibragimov +Seong-ho Cho +Rafael Ferreira +Rafael Fonseca +Fernando Carvalho +Olav Vitters +Nilamdyuti Goswami +Milo Casagrande +Mike Ruprecht +Marek Chalupa +Enrico Nicoletto +Kristjan SCHMIDT +Gabor Kelemen +Jussi Kukkonen +Bernd Homuth +Daniel Șerbănescu +Daniel Mustieles +veer +Miguel Rodriguez Núñez +Andika Triwidada +Antía Puentes +A S Alam +Yaakov Selkowitz +Yuri Myasoedov +Xavi Ivars +Wylmer Wang +Balázs Úr +gogo +Tom Tryfonidis +Tim Lunn +Daniel Korostil +Simon Wenner +Sebastian Keller +Samir Ribic +甘露(Gan Lu) +Reinout van Schouwen +Rafael Fontenelle +George Sedov +Alban Browaeys +Yi-Jyun Pan +Oliver Krylow +Murray Cumming +Marcus Lundblad +Martin Srebotnjak +Michael Wood +Balázs Meskó +Balázs Meskó +MarMav +Mateu Batle +Mario Blättermann +Marek Cernocky +liushuyu +leo +Kenneth Nielsen +Adrien Plazas +Jiro Matsuzawa +Jordi Mas +Jasper Lievisse Adriaanse +Jacobo Aragunde Pérez +Jan Alexander Steffens (heftig) +Efstathios Iosifidis +iain +Милош Поповић +GNOME Translation Robot +Gil Forcada +Nishio Futoshi +Evgeny Bobkin +Emin Tufan Çetin +Efstathios Iosifidis +Dimitris Spingos +Seong-ho Cho +Daniel Mustieles +Claudio Arseni +Claudio Arseni +Claude Paroz +Christian Kirbach +Pawan Chitrakar +Christophe Fergeau +Carles Ferrando +Wolfgang Stöggl +Benjamin Steinwender +Mathieu Bridon +Alexander Shopov +Anish A +Andrzej Bieniek +Adrião Morão +David King +Andres Gomez +A S Alam + +Past contributors: +================== +Sergio Villar Senin +César García Tapia +Nuno Araujo +Jens Georg +Kalev Lember +José Dapena Paz +Evan Nemerson +Ryan Lortie +Chris Lord diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..5ab7695 --- /dev/null +++ b/COPYING @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + 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 Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +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 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 +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 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. + + 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. + + 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, 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 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 +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, 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 library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete 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 distribute a copy of this License along with the +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 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +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 Library, 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 Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you 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. + + If distribution of 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 satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +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 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 +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + 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. + + 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. + + 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 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. + + It may happen that this requirement contradicts the license +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 +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library 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. + + 9. 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 Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +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 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 +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 Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library 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 Library. + +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. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library 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. + + 13. The Free Software Foundation may publish revised and/or new +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. + +Each version is given a distinguishing version number. If the Library +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 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 +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 + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "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 +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. 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 LIBRARY 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 +LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), 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 Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. 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. + + + Copyright (C) + + 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 + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..4191f01 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,20106 @@ +commit 6cd2e5e94f1ba2a8bf7c42da98523b3d76b5e298 +Author: Victor Toso +Date: Thu Jul 26 18:02:29 2018 +0200 + + Release 0.3.6 + + NEWS | 13 +++++++++++++ + configure.ac | 4 ++-- + 2 files changed, 15 insertions(+), 2 deletions(-) + +commit d2114dd7c5c22eb416fabdcf37a74c801c1309f6 +Author: Victor Toso +Date: Wed Jul 25 14:03:29 2018 +0200 + + build-sys: require same version for glib components + + As gio-2.0 requirement was 2.44 since 555654f4132801 we can use the + same version for all glib components: + - gobject-2.0 + - gmodule-2.0 + - gio-2.0 + - glib-2.0 + + configure.ac | 12 +++++++----- + meson.build | 11 +++++++---- + 2 files changed, 14 insertions(+), 9 deletions(-) + +commit 2b8b32e947ee3317edd2c74decbcfe2e67d81e02 +Author: 1PunMan +Date: Sun Jun 10 00:09:43 2018 +0530 + + core: Add grl_data_add_for_id() + + grl_data_add_for_id() allow unregistered keys to be + registered and set multiple values to it. + + https://gitlab.gnome.org/GNOME/grilo/issues/1 + + src/data/grl-data.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-data.h | 2 ++ + 2 files changed, 66 insertions(+) + +commit b30608abacd37a4e39d5c5465efc82c566756631 +Author: 1PunMan +Date: Mon May 28 13:36:42 2018 +0530 + + core: Add grl_data_set_for_id() + + grl_data_set_for_id() allows keys that aren't registered, + to be registered and set it's value. It simply sets the value + for registered keys. + + https://gitlab.gnome.org/GNOME/grilo/issues/1 + + src/data/grl-data.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++- + src/data/grl-data.h | 2 ++ + src/grl-registry-priv.h | 4 +++ + src/grl-registry.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 142 insertions(+), 1 deletion(-) + +commit 06cd3944cc0a81a46c983f21a3bb6bc0266745c8 +Author: Victor Toso +Date: Wed Jul 25 00:15:45 2018 +0200 + + net: Remove deprecated g_type_class_add_private() + + Similar to previous commit but for the libs. Only the net library uses + g_type_class_add_private(). + + libs/net/grl-net-wc.c | 11 ++--------- + 1 file changed, 2 insertions(+), 9 deletions(-) + +commit c76929fc7499d533fc6fb931ba2538147d5b9cb0 +Author: Victor Toso +Date: Tue Jul 24 23:54:44 2018 +0200 + + core: Remove deprecated g_type_class_add_private() + + Instead we define the class with G_DEFINE_TYPE_WITH_PRIVATE(). + + This also removes the usage of G_TYPE_INSTANCE_GET_PRIVATE() as we use + instead the _get_instance_private() + + Notes: + - grl-caps: G_DEFINE_TYPE_WITH_PRIVATE had to be moved after + struct _GrlCapsPrivate definition; + - grl-operation-options: Idem to grl-caps + + src/data/grl-config.c | 9 ++------- + src/data/grl-data.c | 9 ++------- + src/data/grl-media.c | 12 ++---------- + src/data/grl-related-keys.c | 11 ++--------- + src/grl-caps.c | 10 ++-------- + src/grl-operation-options.c | 9 ++------- + src/grl-plugin.c | 12 ++---------- + src/grl-registry.c | 11 ++--------- + src/grl-source.c | 17 +++++------------ + 9 files changed, 21 insertions(+), 79 deletions(-) + +commit 82c54af9e6eac38f51c871909df0ba5e10816f6a +Author: Bastien Nocera +Date: Tue Jul 24 12:14:09 2018 +0200 + + grl-inspect: Add Python3 support to grilo-inspect + + We need to run a few commands to generate headers before compiling + grilo-inspect, make sure to support both Python2 and Python3. + + tools/grilo-inspect/meson.build | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit c146f752475b53eddaa5b86090593125789ce93e +Author: Bastien Nocera +Date: Sun Jul 22 14:16:19 2018 +0200 + + build: Add CI + + So we don't get uncompiled MRs anymore. + + .gitlab-ci.yml | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + +commit cec88ac67bd3e216cbdd4fdfaffce428939fc3b6 +Author: Milo Casagrande +Date: Thu Jul 19 06:44:29 2018 +0000 + + Update Italian translation + + po/it.po | 118 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 58 insertions(+), 60 deletions(-) + +commit 2449de2a4b3c910c9ca7b15036e6216b9f81f2e3 +Author: Victor Toso +Date: Tue Jul 17 16:36:31 2018 +0200 + + Post-release version bump to 0.3.6 + + configure.ac | 2 +- + meson.build | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 66bc17e9f7f99f494302226ec333ee175d0f906b +Author: Victor Toso +Date: Tue Jul 17 16:22:39 2018 +0200 + + Release 0.3.5 + + NEWS | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 4 ++-- + 2 files changed, 56 insertions(+), 2 deletions(-) + +commit 8b716af3d2c758a6c604ddc1f588aa112c9c9a9f +Author: Victor Toso +Date: Tue Jul 17 13:08:08 2018 +0200 + + build: include meson in the tarballs + + https://gitlab.gnome.org/GNOME/grilo/issues/4 + + Makefile.am | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit adc11e54537aff804c6dcd8d26ade0114632157b +Author: veer +Date: Tue Jun 12 04:34:54 2018 +0530 + + test-ui: Use GMenu and GAction for application menu + + This fixes the following deprecation warnings: + + | main.c: In function ‘changes_notification_cb’: + | main.c:286:3: warning: ‘gtk_toggle_action_get_active’ is deprecated + | ui_state->changes_notification = gtk_toggle_action_get_active (action); + | ^~~~~~~~ + + | main.c: In function ‘ui_setup’: + | main.c:1878:3: warning: ‘gtk_action_group_new’ is deprecated + | GtkActionGroup *actions = gtk_action_group_new ("actions"); + | ^~~~~~~~~~~~~~ + + | main.c:1879:3: warning: ‘gtk_action_group_add_actions’ is deprecated + | gtk_action_group_add_actions (actions, entries, G_N_ELEMENTS (entries), NULL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + | main.c:1880:3: warning: ‘gtk_action_group_add_toggle_actions’ is deprecated + | gtk_action_group_add_toggle_actions (actions, toggle_entries, G_N_ELEMENTS (toggle_entries), NULL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + | main.c:1882:3: warning: ‘gtk_ui_manager_new’ is deprecated + | GtkUIManager *uiman = gtk_ui_manager_new (); + | ^~~~~~~~~~~~ + + | main.c:1883:3: warning: ‘gtk_ui_manager_insert_action_group’ is deprecated + | gtk_ui_manager_insert_action_group (uiman, actions, 0); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + | main.c:1885:31: warning: ‘gtk_ui_manager_get_accel_group’ is deprecated + | gtk_ui_manager_get_accel_group (uiman)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + | main.c:1886:3: warning: ‘gtk_ui_manager_add_ui_from_string’ is deprecated + | gtk_ui_manager_add_ui_from_string (uiman, ui_definition, -1, NULL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + | main.c:1890:23: warning: ‘gtk_ui_manager_get_widget’ is deprecated + | gtk_ui_manager_get_widget (uiman, "/MainMenu"), + | ^~~~~~~~~~~~~~~~~~~~~~~~~ + + Signed-off-by: Victor Toso + + tools/grilo-test-ui/main.c | 192 ++++++++++++++++++++++++++++++--------------- + 1 file changed, 128 insertions(+), 64 deletions(-) + +commit e2c649364b0e1c05e1177417d16c4374f6b6a5d3 +Author: Yi-Soo An +Date: Thu Jul 12 16:52:12 2018 +0900 + + tests: Add g_autoptr tests + + The tests are for the classes + - GrlNetWc + - GrlData + - GrlMedia + - GrlRelatedKeys + - GrlCaps + - GrlOperationOptions + - GrlPlugin + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + tests/Makefile.am | 4 +++ + tests/autoptr.c | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 105 insertions(+) + +commit 18ae3196dff76711f30c131d25ede2b5ccee4bb1 +Author: Yi-Soo An +Date: Thu Jul 12 16:41:06 2018 +0900 + + net-wc: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + libs/net/grl-net-wc.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 6b49c5e9b16309ce99d1f4d72e09ffb3acf3cc72 +Author: Yi-Soo An +Date: Thu Jul 12 15:31:45 2018 +0900 + + plugin: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + src/grl-plugin.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit e1a8991e0ff6c011b1b6fcad93f772674afeab6e +Author: Yi-Soo An +Date: Thu Jul 12 14:12:26 2018 +0900 + + caps: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + src/grl-caps.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 2d8bed42b01a2d08c717a0c7247367c3dc4dc14e +Author: Yi-Soo An +Date: Wed Jul 11 15:00:54 2018 +0900 + + related-keys: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + src/data/grl-related-keys.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 97da2d3aa924df4c98429a4dbf42ac0856866413 +Author: Yi-Soo An +Date: Wed Jul 11 14:57:35 2018 +0900 + + data: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + src/data/grl-data.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit aa44edd82f0c2960173a7cfaf4a4f2c1b52b64cf +Author: Yi-Soo An +Date: Wed Jul 11 14:33:44 2018 +0900 + + operation-options: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + src/grl-operation-options.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 317d77de3b44030e972e51d4a470870e2dc6aef4 +Author: Yi-Soo An +Date: Wed Jul 11 14:28:57 2018 +0900 + + media: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC + + To support g_autoptr, it is added. + + https://gitlab.gnome.org/GNOME/grilo/merge_requests/10 + + src/data/grl-media.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit b2e21c38e4b2e2c31223dc3a26022c8107d604e9 +Author: Matej Urbančič +Date: Wed Jul 11 21:45:27 2018 +0200 + + Added Slovenian translation + + po/sl.po | 144 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 70 insertions(+), 74 deletions(-) + +commit 5b60c7458e631cf943603c322ed0076f1ce33a65 +Author: veer +Date: Sat Jun 9 19:05:30 2018 +0530 + + test-ui: Fix -Wenum-compare + + ../tools/grilo-test-ui/main.c: In function ‘supported_media_to_str’: + ../tools/grilo-test-ui/main.c:905:12: warning: comparison between + ‘GrlMediaType’ {aka ‘enum ’} and ‘enum ’ + [-Wenum-compare] + + if (type == GRL_SUPPORTED_MEDIA_NONE) + ^~ + + ../tools/grilo-test-ui/main.c:907:12: warning: comparison between + ‘GrlMediaType’ {aka ‘enum ’} and ‘enum ’ + [-Wenum-compare] + + if (type == GRL_SUPPORTED_MEDIA_ALL) + ^~ + + https://gitlab.gnome.org/GNOME/grilo/issues/7 + Signed-off-by: Victor Toso + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 437da35985c17d3c64b0b51390aff67f609f6e66 +Author: Balázs Meskó +Date: Sat Jul 7 14:20:40 2018 +0000 + + Update Hungarian translation + + po/hu.po | 122 ++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 59 insertions(+), 63 deletions(-) + +commit 30a88ff561121b902cc8af8cfb9d17eae06304aa +Author: Daniel Șerbănescu +Date: Thu Jun 28 18:56:49 2018 +0000 + + Update Romanian translation + + po/ro.po | 38 +++++++++++++++++++------------------- + 1 file changed, 19 insertions(+), 19 deletions(-) + +commit 0e4ea9e97fa882f12f928e6053d4dd8dc30dfe6f +Author: Fabio Tomat +Date: Tue Jun 26 20:16:55 2018 +0000 + + Update Friulian translation + + po/fur.po | 137 ++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 67 insertions(+), 70 deletions(-) + +commit bdb2bccae0f1f701ca799e4a8fb678f84b037dde +Author: Andika Triwidada +Date: Sat Jun 23 03:12:29 2018 +0000 + + Update Indonesian translation + + po/id.po | 139 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 68 insertions(+), 71 deletions(-) + +commit e10ae49a956ff86d59702915d4c729d8981e3085 +Author: Daniel Mustieles +Date: Thu Jun 21 10:05:40 2018 +0200 + + Updated Spanish translation + + po/es.po | 138 +++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 72 insertions(+), 66 deletions(-) + +commit 2d0dd2014f000455404413ddd70ab179c7a0c12c +Author: Mario Blättermann +Date: Sun Jun 17 11:14:50 2018 +0000 + + Update German translation + + po/de.po | 124 +++++++++++++++++++++++++++++---------------------------------- + 1 file changed, 57 insertions(+), 67 deletions(-) + +commit 9abc2e219609ec069bae0fc0670307f7f36c81fa +Author: Marek Cernocky +Date: Thu Jun 14 14:03:05 2018 +0200 + + Updated Czech translation + + po/cs.po | 116 ++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 55 insertions(+), 61 deletions(-) + +commit 89cabea116fa540e396f96e36430fc705a571163 +Author: Yi-Jyun Pan +Date: Wed Jun 13 14:42:27 2018 +0000 + + Update Chinese (Taiwan) translation + + po/zh_TW.po | 119 +++++++++++++++++++++++++++++------------------------------- + 1 file changed, 58 insertions(+), 61 deletions(-) + +commit fa5999f3b5c1a121905469577dee6cfd5c867319 +Author: Anders Jonsson +Date: Sun Jun 10 15:58:19 2018 +0000 + + Update Swedish translation + + po/sv.po | 115 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 57 insertions(+), 58 deletions(-) + +commit e8424d28d9b08d91e47ee228dd18d25075e11473 +Author: Piotr Drąg +Date: Sun Jun 10 15:28:01 2018 +0200 + + Update Polish translation + + po/pl.po | 119 ++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 57 insertions(+), 62 deletions(-) + +commit bba45f60671f1da555cafc1a3c072cef12198367 +Author: Rafael Fontenelle +Date: Sat Jun 9 14:03:08 2018 +0000 + + Update Brazilian Portuguese translation + + po/pt_BR.po | 145 +++++++++++++++++++++++++++++------------------------------- + 1 file changed, 70 insertions(+), 75 deletions(-) + +commit 31ecb8381a8b48ae394c8b783994d1be21d6ee96 +Author: Piotr Drąg +Date: Thu Oct 6 04:05:23 2016 +0200 + + Use Unicode in translatable strings + + Changes "…" quotation marks to “…”. + + See https://developer.gnome.org/hig/stable/typography.html + + https://bugzilla.gnome.org/show_bug.cgi?id=772493 + + src/grl-multiple.c | 2 +- + src/grl-registry.c | 20 ++++++++++---------- + src/grl-source.c | 2 +- + 3 files changed, 12 insertions(+), 12 deletions(-) + +commit 8f0f3de84e6edefd42dab69158433f9a18de9f19 +Merge: 39c9d89 21986cb +Author: Victor Toso +Date: Sat Jun 9 12:12:17 2018 +0000 + + Merge branch 'test_metadata' into 'master' + + Add vala bindings for multiple keys + + Closes #2 + + See merge request GNOME/grilo!1 + +commit 21986cbe53383fa202022d26e7cf9c62d8cde355 +Author: 1PunMan +Date: Mon May 28 14:06:21 2018 +0530 + + grilo: Add vala bindings for Key COMPOSER + + Currently Grilo returns an error when the Key COMPOSER + is used, this commit adds the binding to allow the key + to function properly. + + https://gitlab.gnome.org/GNOME/grilo/issues/2 + + bindings/vala/grilo-0.3-custom.vala | 2 ++ + 1 file changed, 2 insertions(+) + +commit 972ca2c12d434a71d3a6eeb97604e9fdace3b5e4 +Author: 1PunMan +Date: Mon May 28 14:01:42 2018 +0530 + + grilo: Add vala bindings for Key ALBUM_DISC_NUMBER + + Currently Grilo returns an error when the Key ALBUM_DISC_NUMBER + is used, this commit adds the binding to allow the key to + function properly. + + https://gitlab.gnome.org/GNOME/grilo/issues/2 + + bindings/vala/grilo-0.3-custom.vala | 2 ++ + 1 file changed, 2 insertions(+) + +commit 80746024a9c781700f2b49f4ecba653d045f0312 +Author: 1PunMan +Date: Sun May 20 16:12:33 2018 +0530 + + grilo: Add vala bindings for Key ALBUM_ARTIST + + Currently Grilo returns an error when the Key ALBUM_ARTIST + is used, this commit adds the binding to allow the key to + function properly. + + https://gitlab.gnome.org/GNOME/grilo/issues/2 + + bindings/vala/grilo-0.3-custom.vala | 2 ++ + 1 file changed, 2 insertions(+) + +commit 39c9d89635788c76c1777e7de11c2f7b851b4835 +Author: Daniel Șerbănescu +Date: Sun Apr 8 20:01:29 2018 +0000 + + Add Romanian translation + + po/LINGUAS | 1 + + po/ro.po | 194 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 195 insertions(+) + +commit 005c29c63f310aff5e56df35659ebc9c78c3a3bc +Author: Claude Paroz +Date: Mon Mar 26 14:39:36 2018 +0200 + + Add glib preset to meson i18n call + + Without that, no strings are extracted to the .pot file. + + po/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 6d3863c0bedb46af15804932d8753bc3b5592e21 +Author: gogo +Date: Fri Mar 16 18:17:51 2018 +0000 + + Add Croatian translation + + po/LINGUAS | 1 + + po/hr.po | 194 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 195 insertions(+) + +commit b144fe0a105b9332e5be18a4ea224197ba5fd1b4 +Author: Anders Jonsson +Date: Mon Oct 16 22:06:18 2017 +0000 + + Update Swedish translation + + po/sv.po | 24 +++++++++++------------- + 1 file changed, 11 insertions(+), 13 deletions(-) + +commit 59b9daf6b3f1ae76c0a884268da0662bd18f2b04 +Author: Xavi Ivars +Date: Thu Oct 5 14:28:46 2017 +0200 + + [l10n] Updated Catalan (Valencian) translation + + po/ca@valencia.po | 127 +++++++++++++++++++++++++++++------------------------- + 1 file changed, 68 insertions(+), 59 deletions(-) + +commit 2b2c5cf6aa46a73ff383e4eafe33760eb109b776 +Author: Christophe Fergeau +Date: Mon Sep 18 11:07:14 2017 +0200 + + test-ui: Fix several leaks + + Fixing these leaks makes it easier to spot leaks coming from the + underlying libraries when running under valgrind. + + Signed-off-by: Christophe Fergeau + + https://bugzilla.gnome.org/show_bug.cgi?id=787873 + + tools/grilo-test-ui/main.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +commit b333c0d3c915d22320efe87275f1cc4f23029627 +Author: Jordi Mas +Date: Thu Sep 7 16:17:51 2017 +0200 + + Update Catalan translation + + po/ca.po | 120 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 64 insertions(+), 56 deletions(-) + +commit 2e1c69657347cbcf8a3df92c366d769fdf8bea00 +Author: Emin Tufan Çetin +Date: Wed Sep 6 06:50:05 2017 +0000 + + Update Turkish translation + + po/tr.po | 102 +++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 53 insertions(+), 49 deletions(-) + +commit f24601d01cd39c9bc9f6cef032347892c2c3457c +Author: Ask Hjorth Larsen +Date: Mon Aug 28 16:19:38 2017 +0200 + + Updated Danish translation + + po/da.po | 45 +++++++++++++++++++++++---------------------- + 1 file changed, 23 insertions(+), 22 deletions(-) + +commit b56c54c3fb136189ee3aaf189fb9ea8ddeb4f8ec +Author: Victor Toso +Date: Fri Aug 25 11:11:15 2017 +0200 + + Post-release version bump to 0.3.5 + + configure.ac | 2 +- + meson.build | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit b773deccb84c159850cdcf73db0d8e8707f9da09 +Author: Victor Toso +Date: Thu Aug 24 17:46:42 2017 +0200 + + Release 0.3.4 + + NEWS | 17 +++++++++++++++++ + configure.ac | 2 +- + 2 files changed, 18 insertions(+), 1 deletion(-) + +commit f7fa152f5b697a4fcd8fc9faf9d306402a1ee928 +Author: Victor Toso +Date: Thu Aug 24 17:26:56 2017 +0200 + + docs: fix make distclean + + Otherwise we'll get: + + ERROR: files left in build directory after distclean: + ./doc/grilo/grilo-scan.o + ./doc/grilo/efficient-metadata-resolution.c + ./doc/grilo/searching.c + ./doc/grilo/configuring-plugins.c + ./doc/grilo/browsing.c + ./doc/grilo/multivalues.c + + doc/grilo/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b73cf2268fd72e4b97c6900f8d99539c0cbab5e3 +Author: Pawan Chitrakar +Date: Wed Aug 16 08:38:27 2017 +0000 + + Add Nepali translation + + po/LINGUAS | 1 + + po/ne.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 194 insertions(+) + +commit 727e0c426cfbfee3163191520cb988c7cc7229a7 +Author: Rafael Fonseca +Date: Thu Feb 4 15:10:36 2016 +0100 + + core: Improve warning message for non-handled related keys. + + When setting a non-handled related key, Grilo complains with the following + message + + Grilo-WARNING **: [data] data/grl-data.c:742: Trying to add an empty + GrlRelatedKeys to GrlData + + This patch improves the error reporting a bit by saying which key type is not + currently being handled. + + https://bugzilla.gnome.org/show_bug.cgi?id=707643 + + src/data/grl-related-keys.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 948686dbaec8fe1d45b9b0b5983297da606c2ab7 +Author: Rafael Fonseca +Date: Sat Jan 30 16:10:28 2016 +0100 + + core: Fix warning when setting a related boolean key + + When trying to set a related key for which there is no specific handle, grilo + complains with the following message + + Grilo-WARNING **: [data] data/grl-data.c:742: Trying to add an empty + GrlRelatedKeys to GrlData + + This patch makes it possible to properly set such boolean keys. + + https://bugzilla.gnome.org/show_bug.cgi?id=707643 + + src/data/grl-related-keys.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 39d2a865200e813f5aef73b1e06a057e793333c2 +Author: Kristjan SCHMIDT +Date: Sun Jun 11 22:06:40 2017 +0200 + + Updated Esperanto translation + + po/eo.po | 130 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 70 insertions(+), 60 deletions(-) + +commit 3104a340a674429a01a41fbce8441728660077e4 +Author: Emmanuele Bassi +Date: Sat Mar 11 23:07:06 2017 +0000 + + Fix build with recent Meson + + Referencing the current source directory inside an include_directories() + statement is not recommended in Meson, and version 0.39, released on + March 5th, declares it an error. + + src/meson.build | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit c5eac4907f9a99280064aa001485f9696f5ebe10 +Author: Jan Alexander Steffens (heftig) +Date: Thu Feb 16 01:24:48 2017 +0100 + + build: Improve docs and introspection + + https://bugzilla.gnome.org/show_bug.cgi?id=778612 + + doc/grilo/Makefile.am | 12 ++++++++++++ + doc/grilo/meson.build | 10 +++++++++- + doc/grilo/writing-apps.xml | 10 +++++----- + libs/meson.build | 2 ++ + libs/net/meson.build | 13 ++++--------- + libs/pls/meson.build | 9 ++++++--- + src/meson.build | 1 + + 7 files changed, 39 insertions(+), 18 deletions(-) + +commit a0f3f0be1374458328f73d89e5dbb711009a0fb7 +Author: Victor Toso +Date: Tue Feb 14 14:35:10 2017 +0100 + + Post-release version bump to 0.3.4 + + configure.ac | 2 +- + meson.build | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 8d04687dfa80625e655ce79fc995d7635456388b +Author: Victor Toso +Date: Tue Feb 14 13:57:41 2017 +0100 + + Release 0.3.3 + + NEWS | 24 ++++++++++++++++++++++++ + configure.ac | 4 ++-- + 2 files changed, 26 insertions(+), 2 deletions(-) + +commit fcdcd29b1bc6aec03f57dac39b7b5a7df60c8cae +Author: Juan A. Suarez Romero +Date: Tue Feb 14 13:32:18 2017 +0100 + + travis: add Meson build + + Include building with Meson. + + .travis.yml | 48 ++++++++++++++++++++++++++++++++++-------------- + 1 file changed, 34 insertions(+), 14 deletions(-) + +commit 4538c07aafae1d23211335ecfd51fb97e4f4d96d +Author: Juan A. Suarez Romero +Date: Tue Feb 14 11:22:22 2017 +0100 + + build: add Meson build support + + https://bugzilla.gnome.org/show_bug.cgi?id=775950 + + bindings/meson.build | 10 +++ + bindings/vala/meson.build | 31 ++++++++ + doc/grilo/meson.build | 26 +++++++ + doc/man/meson.build | 14 ++++ + doc/meson.build | 12 +++ + examples/meson.build | 32 ++++++++ + libs/meson.build | 14 ++++ + libs/net/meson.build | 54 +++++++++++++ + libs/pls/meson.build | 40 ++++++++++ + meson.build | 125 ++++++++++++++++++++++++++++++ + meson_options.txt | 6 ++ + po/meson.build | 58 ++++++++++++++ + src/grl-metadata-key.h | 4 + + src/meson.build | 123 +++++++++++++++++++++++++++++ + tools/grilo-inspect/generate_core_keys.py | 36 +++++++++ + tools/grilo-inspect/meson.build | 22 ++++++ + tools/grilo-launch/meson.build | 16 ++++ + tools/grilo-test-ui/meson.build | 27 +++++++ + tools/meson.build | 13 ++++ + 19 files changed, 663 insertions(+) + +commit 5940808548f01ec12a34d33917a437a1399323fe +Author: Juan A. Suarez Romero +Date: Sun Dec 11 16:10:41 2016 +0100 + + core: include @filename@ in file-production + + Small fix for an include that is in the wrong place. + + https://bugzilla.gnome.org/show_bug.cgi?id=775950 + + src/grl-type-builtins.c.template | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 000303d276ff2af4827ad47d90bc1e2ff33570ec +Author: Juan A. Suarez Romero +Date: Sun Dec 11 13:21:02 2016 +0100 + + doc: put manpages in doc/man + + Put all manpage files together. + + https://bugzilla.gnome.org/show_bug.cgi?id=775950 + + Makefile.am | 8 +------- + configure.ac | 1 + + doc/Makefile.am | 6 +++++- + doc/man/Makefile.am | 14 ++++++++++++++ + {tools/grilo-test-ui => doc/man}/grilo-test-ui-0.3.1 | 0 + grl-inspect-0.3.1 => doc/man/grl-inspect-0.3.1 | 0 + grl-launch-0.3.1 => doc/man/grl-launch-0.3.1 | 0 + tools/grilo-test-ui/Makefile.am | 2 -- + 8 files changed, 21 insertions(+), 10 deletions(-) + +commit 9511ba62ea0c944cd596704d31bdc516091e1610 +Author: Juan A. Suarez Romero +Date: Sun Feb 12 03:26:22 2017 +0100 + + travis: do not push container without credentials + + Avoid trying to push container to Docker Hub if no credentials have been + defined. + + .travis.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b90fdf69f5b8ab8f1c8d785450d69b1583593882 +Author: Juan A. Suarez Romero +Date: Sun Feb 12 02:54:07 2017 +0100 + + travis: use Docker to perform build and test + + Finally, we move to use containers in Travis CI to build and test Grilo. + + It uses grilofw/grilo:base as base image. + + If build goes fine, it will push grilofw/grilo:core container, which is + used to build Grilo plugins. + + .travis.yml | 40 ++++++++++++++++++++++++++++++---------- + 1 file changed, 30 insertions(+), 10 deletions(-) + +commit ce1fa94cc8759616a6aacfe94c09ffbf3432f7c0 +Author: Juan A. Suarez Romero +Date: Wed Feb 8 10:14:39 2017 +0100 + + travis: build documentation + + .travis.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ca5dc8aa3c2aa2aca80e326345e4f5cf094bb02a +Author: Bastien Nocera +Date: Fri Nov 18 14:14:10 2016 +0100 + + tests: Fix typo in comment + + tests/lib-net.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a176b9a03d04d3f1657ffeaff51bd72a2e6ae21e +Author: Bastien Nocera +Date: Fri Nov 18 14:12:12 2016 +0100 + + tests: Fix common test failures in GrlNet tests + + The small-delay test fails fairly often, about 20% of the time for a 100 + runs on a non-loaded machine. + + We're lucky it doesn't happen more often, as g_timeout_add_seconds() as + used by grl-net-wc.c will ultimately use g_timeout_set_expiration() + which might round up timeouts to the above second: + " + /* We want the microseconds part of the timeout to land on the + * 'timer_perturb' mark, but we need to make sure we don't try to + * set the timeout in the past. We do this by ensuring that we + * always only *increase* the expiration time by adding a full + * second in the case that the microsecond portion decreases. + */ + " + + Bump the threshold to a full second, and verify by raising the delay + in the grl_net_wc_set_throttling() call. + + https://bugzilla.gnome.org/show_bug.cgi?id=774578 + + tests/lib-net.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 2802eaf147dd7c2cb6ce3a3d2a39b612b5cc35f6 +Author: Marinus Schraal +Date: Mon Nov 14 10:33:55 2016 +0100 + + core: Include type'ified header in introspection + + Introspection sources need to include the type'ified enumerations + otherwise the gir-scanner won't know anything about the enumerations + listed in that header, generated with glib-mkenums. + + Fix-up to commit 463d94d6022d + + https://bugzilla.gnome.org/show_bug.cgi?id=774394 + + src/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit d20d73a8c6e2a27046604b2372e05915286ba8a8 +Author: Bastien Nocera +Date: Mon Nov 7 21:32:36 2016 +0100 + + core: Fix missing gtk-doc markers in API docs + + Spotted by Rico Tzschichholz + + https://bugzilla.gnome.org/show_bug.cgi?id=769127#c4 + + src/grl-plugin.c | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +commit 463d94d6022d3dd0acc8da8313ab10e01bfac7d9 +Author: Bastien Nocera +Date: Mon Nov 7 16:33:01 2016 +0100 + + core: Don't include private headers in introspection data + + We should only use the C sources, not the private headers in the + introspection, so as to avoid making private API available. + + src/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 40bc6960318281cd21f379d2b3ba4da0ab33d0a7 +Author: Bastien Nocera +Date: Mon Nov 7 16:28:19 2016 +0100 + + core: Fix API doc for composer + + Bug introduced in commit e61f217 + + src/data/grl-media.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 15a844e4c3a6cbd616c776957d68afb8078ba4e3 +Author: Bastien Nocera +Date: Mon Nov 7 16:27:39 2016 +0100 + + core: Fix API doc for album artist + + Bug introduced in commit e9be911 + + src/data/grl-media.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1dc730a140feea180e88a66891af8bd584bee360 +Author: Bastien Nocera +Date: Mon Nov 7 15:42:19 2016 +0100 + + vala: Don't ship pre-built vapi files + + We will always build them if vala support is enabled. + + bindings/vala/grilo-0.3.vapi | 1033 -------------------------------------- + bindings/vala/grilo-net-0.3.vapi | 43 -- + 2 files changed, 1076 deletions(-) + +commit 458d23de299d62c35c040c9ae83f1755400ed71a +Author: Bastien Nocera +Date: Mon Nov 7 15:41:55 2016 +0100 + + vala: Don't remove .deps files on maintainer-clean + + We don't have any rules to recreate those files. + + bindings/vala/Makefile.am | 1 - + 1 file changed, 1 deletion(-) + +commit e753a634222ad22897237fea8973c94d4cc5edc0 +Author: liushuyu +Date: Sat Oct 29 23:56:44 2016 +0800 + + Update zh_CN translation + + po/zh_CN.po | 116 ++++++++++++++++++++++++++++++++---------------------------- + 1 file changed, 61 insertions(+), 55 deletions(-) + +commit b4245447ec557f032387a1ca40922d11d0da5b11 +Author: Bastien Nocera +Date: Mon Oct 24 16:28:30 2016 +0200 + + net: Always return an error on failure + + When getting a "Gateway timeout" error, or any other errors not handled + in the switch statement, we should make sure to return an error. + + https://bugzilla.gnome.org/show_bug.cgi?id=773422 + + libs/net/grl-net-wc.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit cd58c0445c47ca7cd8b10af50f036adaa2c2b284 +Author: Bastien Nocera +Date: Mon Oct 24 16:28:02 2016 +0200 + + net: Downgrade verbose error output to a GRL_DEBUG() + + And don't mark debug strings as translatable. + + https://bugzilla.gnome.org/show_bug.cgi?id=773422 + + libs/net/grl-net-wc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d04576a9530995277b0ac23e2afddac05203c802 +Author: Alexander Shopov +Date: Sun Sep 25 16:09:44 2016 +0300 + + Update Bulgarian translation + + po/LINGUAS | 1 + + po/bg.po | 196 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 197 insertions(+) + +commit 6ffe44554fe4abd4f21e35497133c1ebe02482af +Author: Victor Toso +Date: Mon Sep 19 17:09:31 2016 +0200 + + tests: include lib-net into make check + + https://bugzilla.gnome.org/show_bug.cgi?id=771338 + + tests/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 41f66e904af762df4845cb7c521324519cc97f11 +Author: Victor Toso +Date: Thu Sep 15 17:38:42 2016 +0200 + + tests: avoid critical warning on test + + As timeout might not be used. + + https://bugzilla.gnome.org/show_bug.cgi?id=771338 + + tests/lib-net.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit e97d89d5fb47eca864e72cbcc749afa301212611 +Author: Victor Toso +Date: Thu Sep 15 17:13:14 2016 +0200 + + tests: add stress test to grl-net-wc + + https://bugzilla.gnome.org/show_bug.cgi?id=771338 + + tests/lib-net.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 48 insertions(+) + +commit ca91b2823643aa963837776a82147693e448c6cc +Author: Victor Toso +Date: Thu Sep 15 17:36:26 2016 +0200 + + net: Check for throttling only if set + + Otherwise, we might add several 0 seconds delay on multiple fetch + requests leading to unexpected behavior (assertion) + + https://bugzilla.gnome.org/show_bug.cgi?id=771338 + + libs/net/grl-net-wc.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +commit e60b6390fae94601822239455747982d114496ac +Author: David King +Date: Sun Sep 18 11:06:48 2016 +0200 + + Add British English translation + + po/LINGUAS | 1 + + po/en_GB.po | 197 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 198 insertions(+) + +commit 74dbc23c132d14d90b97bacdc7184259cee29f2f +Author: Bastien Nocera +Date: Wed Sep 14 13:03:05 2016 +0200 + + tests: Fix registry test with Tracker plugin + + The tracker plugin expects the client and daemon to run with the same + locale to do direct connection, and throws a warning if not. + + Set the locale correctly in the test to avoid that problem. + + https://bugzilla.gnome.org/show_bug.cgi?id=771339 + + tests/registry.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 3a6268f60712aafd2f007426e5d646c8ce237657 +Author: Dominique Leuenberger +Date: Sat Sep 10 23:51:38 2016 +0200 + + build: fix build due wrong format in debug + + Introduced in commit f3ccf55 + + tests/lib-net.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5402721fd327a80340241f2ae9e8860e398699de +Author: Victor Toso +Date: Sat Sep 10 15:40:11 2016 +0200 + + Post-release version bump to 0.3.3 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 343d0a4c29b234f81197f502fed16ba739022a6a +Author: Victor Toso +Date: Sat Sep 10 15:39:35 2016 +0200 + + Release 0.3.2 + + NEWS | 21 +++++++++++++++++++++ + configure.ac | 4 ++-- + 2 files changed, 23 insertions(+), 2 deletions(-) + +commit f3ccf5575ff4b1f3cf59236a7aea53b1895f98b0 +Author: Victor Toso +Date: Wed Aug 24 14:27:25 2016 +0200 + + tests: throttling test on GrlNetWc library + + https://bugzilla.gnome.org/show_bug.cgi?id=769331 + + tests/Makefile.am | 11 +++ + tests/lib-net.c | 248 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 259 insertions(+) + +commit b4dca1129989f9d9fc4a274860d38566802cd11c +Author: Victor Toso +Date: Sat Jul 30 18:22:51 2016 +0200 + + net: Initialize GTimeVal for throttling + + The last_request variable was never initialized leading to delay + between request to not work. + + https://bugzilla.gnome.org/show_bug.cgi?id=769331 + + libs/net/grl-net-wc.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 75448d86a70cf5ffbe7be5b3a930749dbffb15b0 +Author: Mathieu Bridon +Date: Sat Aug 13 00:31:28 2016 +0200 + + Fix annotation + + Bindings are broken without this. + + https://bugzilla.gnome.org/show_bug.cgi?id=769830 + + libs/net/grl-net-wc.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit f321549718125e45205c46567b047060088fa5ea +Author: Piotr Drąg +Date: Mon Aug 22 21:27:05 2016 +0200 + + Updated Polish translation + + po/pl.po | 50 +++++++++++++++++++++++--------------------------- + 1 file changed, 23 insertions(+), 27 deletions(-) + +commit 2daf86f7f61b6b1d2ee3c528ab2d16b87900d507 +Author: Piotr Drąg +Date: Thu Jul 21 22:37:55 2016 +0200 + + Add Language headers to po files + + Future versions of gettext will fail if this header is missing. + + po/ca@valencia.po | 2 +- + po/nb.po | 2 +- + po/sl.po | 2 +- + po/sr@latin.po | 2 +- + po/tr.po | 2 +- + po/zh_HK.po | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +commit e6cbe5da72e40385266e88f8ef7e39783a39ac37 +Author: Bastien Nocera +Date: Mon Jun 27 13:57:19 2016 +0200 + + test-ui: Remove setting "guess-video" option + + It doesn't do anything since title parsing was moved to the Lua plugin. + + tools/grilo-test-ui/main.c | 14 -------------- + 1 file changed, 14 deletions(-) + +commit 0d9e53e32400dafd25d319b8e670ee762ef82700 +Author: Bastien Nocera +Date: Mon Jun 27 13:50:53 2016 +0200 + + man: Fix grl-launch browse example + + s/box/container/ as done in grilo 0.3 + + grl-launch-0.3.1 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 6d46eb23cedaa024ccd3b3fdd88dd00e054acf70 +Author: Adrien Plazas +Date: Fri May 13 10:05:46 2016 +0200 + + grl-source: Make resolution funcs own 'media' param + + Declare the ownership of the 'media' param of grl_source_resolve() and + grl_source_resolve_sync() as fully transfered. + + This is needed to avoid reference counting bugs in the Vala bindings. + + https://bugzilla.gnome.org/show_bug.cgi?id=766386 + + src/grl-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 8e2e164c5c3a7595b9ca1e427256b1f89b6b67df +Author: Reinout van Schouwen +Date: Sun Jun 26 23:41:30 2016 +0200 + + Initial Dutch translation by Nathan Follens and Justin van Steijn + + po/LINGUAS | 1 + + po/nl.po | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 200 insertions(+) + +commit f58a3eabb4b78423c31bb2a9d16dd7d9dfd80699 +Author: Andika Triwidada +Date: Wed Jun 22 21:11:34 2016 +0000 + + Updated Indonesian translation + + po/id.po | 59 +++++++++++++++++++++++++++++------------------------------ + 1 file changed, 29 insertions(+), 30 deletions(-) + +commit 38ec24f4099f25b4463901978a8020baaa3d05a3 +Author: Juan A. Suarez Romero +Date: Thu Jun 16 21:21:02 2016 +0000 + + Post-release version bump to 0.3.2 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 77d50a8b2b1de5f61f5f5571faa157cdcd9f259c +Author: Juan A. Suarez Romero +Date: Thu Jun 16 21:12:04 2016 +0000 + + Release 0.3.1 + + NEWS | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 4 ++-- + 2 files changed, 56 insertions(+), 2 deletions(-) + +commit ea1f42338261d733a5922089e848c6acc372c010 +Author: Victor Toso +Date: Sat Jun 4 22:27:11 2016 +0200 + + net: use G_IO_ERROR_FAILED instead of GRL_NET_WC_ERROR_UNAVAILABLE + + https://bugzilla.gnome.org/show_bug.cgi?id=764077 + + libs/net/grl-net-wc.c | 12 ++++++------ + libs/net/grl-net-wc.h | 3 ++- + 2 files changed, 8 insertions(+), 7 deletions(-) + +commit 1a89d35172abe0e7344f7f99f9802bfba1177a9a +Author: Victor Toso +Date: Wed May 25 21:51:52 2016 +0200 + + net: use G_IO_ERROR on cancelled operation + + By deprecating GRL_NET_WC_ERROR_CANCELLED we can use + G_IO_ERROR_CANCELLED instead. + + https://bugzilla.gnome.org/show_bug.cgi?id=764077 + + libs/net/grl-net-wc.c | 10 +++++----- + libs/net/grl-net-wc.h | 3 ++- + 2 files changed, 7 insertions(+), 6 deletions(-) + +commit fc631058c7073c9a22849f0f4a439ce38caa7940 +Author: Victor Toso +Date: Mon Jun 6 15:59:25 2016 +0200 + + doap: Add Description and Victor Toso as co-maintainer + + grilo.doap | 8 ++++++++ + 1 file changed, 8 insertions(+) + +commit 92dadb2f48b0ca12f02c68459596d141bbea8d37 +Author: Victor Toso +Date: Sat Jun 4 22:12:17 2016 +0200 + + net: use G_IO_ERROR_PROXY_FAILED instead of GRL_NET_WC_ERROR_PROXY_ERROR + + https://bugzilla.gnome.org/show_bug.cgi?id=764077 + + libs/net/grl-net-wc.c | 4 ++-- + libs/net/grl-net-wc.h | 3 ++- + 2 files changed, 4 insertions(+), 3 deletions(-) + +commit 3c6f1deb3b20c1674a4e7b1ac11a173e6219dbe8 +Author: Victor Toso +Date: Tue Mar 29 23:51:31 2016 +0200 + + net: Set proper error when operation is cancelled + + https://bugzilla.gnome.org/show_bug.cgi?id=764077 + + libs/net/grl-net-wc.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +commit 2cdbe9a7e8dec9db6aff6ff3861cdb0bb1b5772f +Author: Cédric Valmary +Date: Mon May 30 19:17:21 2016 +0000 + + Updated Occitan translation + + po/oc.po | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 764b48c31a1fdb2cb470d639d74e192c9596db10 +Author: Victor Toso +Date: Mon Jul 7 23:33:18 2014 -0300 + + test-ui: Include api-key for AcoustID source + + https://bugzilla.gnome.org/show_bug.cgi?id=732879 + + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 2e28327919b5a38ed5957d8665d1b39f0f673ab1 +Author: Bastien Nocera +Date: Fri May 13 17:24:40 2016 +0200 + + core: Fix broken patch application + + Introduced in e61f2172f424938d4a404a65f0dc082c615600b8 + + Thanks patch! + + src/data/grl-media.c | 60 ---------------------------------------------------- + 1 file changed, 60 deletions(-) + +commit e9be9114df766627595e6b89f3996cf6d0b4a9da +Author: Marinus Schraal +Date: Wed Mar 2 19:56:38 2016 +0100 + + core: Add GRL_METADATA_KEY_ALBUM_ARTIST + + Add GRL_METADATA_KEY_ALBUM_ARTIST, defines the main artist of the album + from which the media originates. + + https://bugzilla.gnome.org/show_bug.cgi?id=763009 + + src/data/grl-media.c | 32 ++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 4 ++++ + src/grl-metadata-key.c | 10 ++++++++++ + src/grl-metadata-key.h | 1 + + 4 files changed, 47 insertions(+) + +commit e61f2172f424938d4a404a65f0dc082c615600b8 +Author: Marinus Schraal +Date: Wed Mar 2 18:06:17 2016 +0100 + + core: Add GRL_METADATA_KEY_COMPOSER + + Add GRL_METADATA_KEY_COMPOSER, defines the composer(s) of the media. + + https://bugzilla.gnome.org/show_bug.cgi?id=763009 + + src/data/grl-media.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 6 +++ + src/grl-metadata-key.c | 10 +++++ + src/grl-metadata-key.h | 1 + + 4 files changed, 137 insertions(+) + +commit 29c98850cdc1e4334818d68a00b06255d0fa072d +Author: Marinus Schraal +Date: Mon Feb 8 20:16:26 2016 +0100 + + core: Add GRL_METADATA_KEY_ALBUM_DISC_NUMBER + + A property for the disc number when an album is part of a multi-album + set. + + https://bugzilla.gnome.org/show_bug.cgi?id=761868 + + src/data/grl-media.c | 33 +++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 4 ++++ + src/grl-metadata-key.c | 11 +++++++++++ + src/grl-metadata-key.h | 1 + + 4 files changed, 49 insertions(+) + +commit 1e85e20700eec97dda83b7bb9aebf702d9ddd8b4 +Author: Cédric Valmary +Date: Thu May 5 20:05:08 2016 +0000 + + Updated Occitan translation + + po/oc.po | 21 ++++++++++----------- + 1 file changed, 10 insertions(+), 11 deletions(-) + +commit fbc4bed99e154ddcad26564ed948782809c3a781 +Author: Fabio Tomat +Date: Fri Apr 8 08:22:23 2016 +0000 + + Updated Friulian translation + + po/fur.po | 22 ++++++++++------------ + 1 file changed, 10 insertions(+), 12 deletions(-) + +commit aff26f2e92c5155a6ace45352a587fbf510b42e6 +Author: Fabio Tomat +Date: Wed Mar 23 17:13:32 2016 +0000 + + Added Friulian translation + + po/LINGUAS | 1 + + po/fur.po | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 200 insertions(+) + +commit fc1b214fe975c4ed7f2918fb2fee667ae60e3351 +Author: Ask Hjorth Larsen +Date: Sun Mar 20 23:39:39 2016 +0100 + + Updated Danish translation + + po/da.po | 96 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 49 insertions(+), 47 deletions(-) + +commit e3d2451cac62fb9bd29e1449635d2c3ad8bf510f +Author: Inaki Larranaga Murgoitio +Date: Sun Mar 20 20:10:27 2016 +0100 + + Updated Basque language + + po/eu.po | 107 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 58 insertions(+), 49 deletions(-) + +commit 93ac54ce8e755d3e01e9948cc2a7a160e0b88fe3 +Author: Milo Casagrande +Date: Fri Mar 18 08:57:15 2016 +0000 + + Updated Italian translation + + po/it.po | 94 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 47 insertions(+), 47 deletions(-) + +commit 947d6ff8b9a5c6d529ee97db8af445d9e95a7006 +Author: Yuri Myasoedov +Date: Thu Mar 17 21:51:23 2016 +0300 + + Updated Russian translation + + po/ru.po | 113 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 61 insertions(+), 52 deletions(-) + +commit ef4d4c1affe60ff9834252696c8817ec33f744b7 +Author: Matej Urbančič +Date: Sat Mar 5 21:17:11 2016 +0100 + + Updated Slovenian translation + + po/sl.po | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit f84659e6d35c73682223ddc386ccfb6318ed188b +Author: Matej Urbančič +Date: Sat Mar 5 20:45:53 2016 +0100 + + Updated Slovenian translation + + po/sl.po | 95 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 51 insertions(+), 44 deletions(-) + +commit 8635e5d661a99b339bf2cba0b569671062db731f +Author: Seong-ho Cho +Date: Thu Mar 3 15:38:24 2016 +0000 + + Updated Korean translation + + po/ko.po | 96 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 51 insertions(+), 45 deletions(-) + +commit a4b13a13f2161fd3ae8e9bef3e33c3fa47d79b56 +Author: Bastien Nocera +Date: Wed Mar 2 12:06:19 2016 +0100 + + vala: Fix compilation with Vala enabled and grlnet disabled + + https://bugzilla.gnome.org/show_bug.cgi?id=761820 + + bindings/vala/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +commit 52a23f13dce7b974aa0f62e437ebd6cc5e9a084b +Author: Bastien Nocera +Date: Wed Mar 2 12:03:04 2016 +0100 + + vala: Move variable assignments outside the conditional + + Otherwise EXTRA_DIST and co. aren't actually getting set if we're not + compiling with Vala. + + https://bugzilla.gnome.org/show_bug.cgi?id=761820 + + bindings/vala/Makefile.am | 15 +++++++-------- + 1 file changed, 7 insertions(+), 8 deletions(-) + +commit 4bcedcc11b8611922e39be5cbd9e34a0928510f2 +Author: Efstathios Iosifidis +Date: Tue Mar 1 23:31:37 2016 +0000 + + Updated Greek translation + + po/el.po | 96 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 51 insertions(+), 45 deletions(-) + +commit 2ee662950ea2429f2e9367940a9687709c96db66 +Author: Cédric Valmary +Date: Mon Feb 29 18:55:21 2016 +0000 + + Updated Occitan translation + + po/oc.po | 98 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 52 insertions(+), 46 deletions(-) + +commit 86ba324d2f971965e3b7ce584cb945625379dc26 +Author: Fran Dieguez +Date: Tue Feb 23 22:36:31 2016 +0100 + + Updated Galician translations + + po/gl.po | 111 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 60 insertions(+), 51 deletions(-) + +commit 8ace2954556030bdb45657b49dd5c0c63175c795 +Author: Мирослав Николић +Date: Fri Feb 19 19:29:55 2016 +0100 + + Updated Serbian translation + + po/sr.po | 59 ++++++++++++++++++++++++++++++---------------------------- + po/sr@latin.po | 59 ++++++++++++++++++++++++++++++---------------------------- + 2 files changed, 62 insertions(+), 56 deletions(-) + +commit e1b44d27bc6888be7e2dbe34e6845418a3c974cb +Author: Anders Jonsson +Date: Tue Feb 16 22:34:57 2016 +0000 + + Updated Swedish translation + + po/sv.po | 97 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 50 insertions(+), 47 deletions(-) + +commit 8f4ce4d7e4ab26e2aa0e6139f9d6aecdf9775a6e +Author: Chao-Hsiung Liao +Date: Sat Feb 13 06:56:42 2016 +0000 + + Updated Chinese (Taiwan) translation + + po/zh_TW.po | 107 ++++++++++++++++++++++++++++++++---------------------------- + 1 file changed, 58 insertions(+), 49 deletions(-) + +commit 6ebad05d38379e0f9f46c9f7e648c2f69e5c6a49 +Author: Rūdolfs Mazurs +Date: Sat Feb 6 16:12:50 2016 +0200 + + Update Latvian translation + + po/lv.po | 696 ++++++++++++--------------------------------------------------- + 1 file changed, 130 insertions(+), 566 deletions(-) + +commit ebc8fc6f71e3be8e56d3d0306676a529ad34c7d8 +Author: Alexandre Franke +Date: Tue Feb 2 16:21:53 2016 +0000 + + Updated French translation + + po/fr.po | 91 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 48 insertions(+), 43 deletions(-) + +commit 7e447e79f9141948e2d79162bbe03351e00ee641 +Author: Dušan Kazik +Date: Tue Jan 26 14:42:11 2016 +0000 + + Updated Slovak translation + + po/sk.po | 90 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 47 insertions(+), 43 deletions(-) + +commit b8233b1d7aeb73699c4d5b0860a7b3f1dcce2817 +Author: Balázs Meskó +Date: Mon Jan 25 00:31:46 2016 +0000 + + Updated Hungarian translation + + po/hu.po | 95 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 49 insertions(+), 46 deletions(-) + +commit 586dd093096422522e7872e3a37c7597cd264e0a +Author: Tim Lunn +Date: Fri Jan 15 11:03:40 2016 +1100 + + core: plug leak of filename + + https://bugzilla.gnome.org/show_bug.cgi?id=760648 + + src/grl-registry.c | 1 + + 1 file changed, 1 insertion(+) + +commit 5a0b679fc521b4c389d0c46bf4fa3bb674b77f3d +Author: Aurimas Černius +Date: Tue Jan 12 22:36:55 2016 +0200 + + Updated Lithuanian translation + + po/lt.po | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 7158c4c4f5eb22d1a210824f4a404dc90f370391 +Author: Ting-Wei Lan +Date: Mon Jan 11 20:26:12 2016 +0800 + + grl-launch: Fix help messages in some locales + + Call setlocale() first thing in the main() function + + https://bugzilla.gnome.org/show_bug.cgi?id=760426 + + tools/grilo-launch/grl-launch.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 79bbf6a2b50a25df82222cf6736b5b08aefa1216 +Author: Ting-Wei Lan +Date: Mon Jan 11 20:25:15 2016 +0800 + + grl-inspect: Fix help messages in some locales + + Call setlocale() first thing in the main() function + + https://bugzilla.gnome.org/show_bug.cgi?id=760426 + + tools/grilo-inspect/grl-inspect.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 630be719519dd27b7bb93d0f0ac3b78be3b508ad +Author: Bastien Nocera +Date: Sat Dec 26 23:32:34 2015 +0100 + + doc: Remove removed function from API docs + + doc/grilo/grilo-sections.txt | 1 - + 1 file changed, 1 deletion(-) + +commit 077649388d76bc900dd49e5a379424b77c4b8156 +Author: Kjartan Maraas +Date: Sun Jan 10 20:01:35 2016 +0100 + + Updated Norwegian bokmål translation. + + po/nb.po | 106 +++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 56 insertions(+), 50 deletions(-) + +commit fbc92b0aabe381f250a09727d7aff8f5d7b7a980 +Author: Daniel Mustieles +Date: Thu Jan 7 23:13:13 2016 +0100 + + Updated Spanish translation + + po/es.po | 93 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 49 insertions(+), 44 deletions(-) + +commit f9c0d589701270155c52a753a8c2685642ebd1e7 +Author: Enrico Nicoletto +Date: Thu Dec 31 17:42:50 2015 +0000 + + Updated Brazilian Portuguese translation + + po/pt_BR.po | 118 ++++++++++++++++++++++++++++++++---------------------------- + 1 file changed, 64 insertions(+), 54 deletions(-) + +commit 40bb29ff39c744abc6a44b985dd4021244f879f2 +Author: Yosef Or Boczko +Date: Thu Dec 31 17:28:19 2015 +0200 + + Updated Hebrew translation + + po/he.po | 68 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 36 insertions(+), 32 deletions(-) + +commit ddb0bc0718e06f006613da29166501afb622e98b +Author: Мирослав Николић +Date: Wed Dec 30 06:22:22 2015 +0100 + + Updated Serbian translation + + po/sr.po | 97 +++++++++++++++++++++++++-------------------------- + po/sr@latin.po | 107 ++++++++++++++++++++++++++++----------------------------- + 2 files changed, 102 insertions(+), 102 deletions(-) + +commit 25b97bb3d59d559d80108384be6dd9231c77e875 +Author: Marek Černocký +Date: Wed Dec 23 10:59:32 2015 +0100 + + Updated Czech translation + + po/cs.po | 85 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 43 insertions(+), 42 deletions(-) + +commit 36ee4439043e5a5c2031125a625b509b6f54d61d +Author: Bernd Homuth +Date: Tue Dec 22 16:13:24 2015 +0000 + + Updated German translation + + po/de.po | 94 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 50 insertions(+), 44 deletions(-) + +commit ecafbf2e7bf1726ad25f8277c91a348853bd62c1 +Author: Andika Triwidada +Date: Tue Dec 22 02:16:54 2015 +0000 + + Updated Indonesian translation + (cherry picked from commit 836438fb26de9fce2d798be9c7c91cee3083c735) + + po/id.po | 81 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 41 insertions(+), 40 deletions(-) + +commit 8ad325ac6935e0660992d978f9a3a8d753359860 +Author: Aurimas Černius +Date: Sun Dec 20 15:08:25 2015 +0200 + + Updated Lithuanian translation + + po/lt.po | 91 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 47 insertions(+), 44 deletions(-) + +commit 7723f955d3361e7f05002e33df99a15b30c9eb93 +Author: Pedro Albuquerque +Date: Sat Dec 19 07:42:47 2015 +0000 + + Updated Portuguese translation + + po/pt.po | 93 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 49 insertions(+), 44 deletions(-) + +commit 223d0dde1ea1c5b984916c7a0edf52cf8bc5e0b1 +Author: Piotr Drąg +Date: Thu Dec 17 02:03:10 2015 +0100 + + Updated Polish translation + + po/pl.po | 85 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 43 insertions(+), 42 deletions(-) + +commit e3b7851b32ae98c8bc523d41228f4d17951a8f86 +Author: Juan A. Suarez Romero +Date: Wed Dec 16 21:15:45 2015 +0100 + + Fix 0.3.0 NEWS + + Was wrongly created. + + NEWS | 191 ------------------------------------------------------------------- + 1 file changed, 191 deletions(-) + +commit eb41d28f317d5e0a4699da103ed7f484b160c0d1 +Author: Juan A. Suarez Romero +Date: Wed Dec 16 19:51:08 2015 +0000 + + Post-release version bump to 0.3.1 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 3fe8cbec8b8fe01e62624b8ca8b676f60fc8a98a +Author: Juan A. Suarez Romero +Date: Wed Dec 16 19:46:56 2015 +0000 + + Release 0.3.0 + + NEWS | 264 +++++++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 6 +- + src/data/grl-media.c | 205 +++++++++++++++++++++++++++++++++++++-- + src/grl-plugin.c | 2 + + src/grl-registry.c | 5 +- + src/grl-registry.h | 4 + + src/grl-source.c | 6 +- + 7 files changed, 479 insertions(+), 13 deletions(-) + +commit e12b770ee53cb72083cfeaf95ec98f314288e9bc +Author: Bastien Nocera +Date: Wed Dec 16 14:13:10 2015 +0100 + + net: Better error message when a mock file is absent + + Now we'll print the path of the missing file, instead of a glib message + about it. + + libs/net/grl-net-mock.c | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +commit 4760581e6533ff0853de074ef04968a7ab60f0ca +Author: Juan A. Suarez Romero +Date: Wed Dec 16 10:41:32 2015 +0100 + + doc: update documentation + + No more GrlMediaFoos. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + doc/grilo/grilo-docs.sgml | 4 - + doc/grilo/grilo-sections.txt | 224 ++++++++++++++---------------------------- + doc/grilo/grilo.types | 4 - + doc/grilo/plugins-sources.xml | 67 ++++++------- + doc/grilo/writing-apps.xml | 21 ++-- + src/data/grl-data.c | 10 +- + src/data/grl-media.c | 3 +- + src/grl-caps.h | 2 +- + src/grl-source.h | 2 +- + 9 files changed, 120 insertions(+), 217 deletions(-) + +commit 96cdec89f6da97206617a4ef302199c523ed155f +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:35:33 2015 +0100 + + core: update serialize/unserialize functions + + Use the new flatten GrlMedia to serialize/unserialize. + + We keep the same format as in previous versions, except for the containers, + which are now serialized as "grlcontainer" instead of "grlbox". + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + src/data/grl-media.c | 66 ++++++++++++++++++++++------------------------------ + 1 file changed, 28 insertions(+), 38 deletions(-) + +commit 7241222a3988177f584291711cc316722280a38d +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:35:21 2015 +0100 + + core: merge GrlMediaBox into GrlMedia + + Get rid of GrlMediaBox and use instead GrlMedia. + + Also, all references to "box" are converted to "container", as container is a + more suitable name than boxes. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + bindings/vala/grilo-0.3.vapi | 18 +++-- + examples/browsing-pls.c | 6 +- + examples/browsing.c | 6 +- + examples/searching.c | 4 +- + libs/pls/grl-pls.c | 23 +++---- + src/Makefile.am | 2 - + src/data/grl-media-box.c | 144 ---------------------------------------- + src/data/grl-media-box.h | 95 -------------------------- + src/data/grl-media.c | 72 ++++++++++++++++++++ + src/data/grl-media.h | 9 +++ + src/grilo.c | 3 - + src/grilo.h | 1 - + src/grl-source.c | 34 +++++----- + src/grl-source.h | 7 +- + tools/grilo-launch/grl-launch.c | 8 +-- + tools/grilo-test-ui/main.c | 14 ++-- + 16 files changed, 139 insertions(+), 307 deletions(-) + +commit eb29c13eb2b8d4335341e74f0e8906ac3f6241e3 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:35:16 2015 +0100 + + core: merge GrlMediaImage into GrlMedia + + Get rid of GrlMediaImage and use instead GrlMedia. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + bindings/vala/grilo-0.3.vapi | 37 ++-- + src/Makefile.am | 2 - + src/data/grl-media-image.c | 467 ------------------------------------------- + src/data/grl-media-image.h | 156 --------------- + src/data/grl-media.c | 184 +++++++++++++++++ + src/data/grl-media.h | 25 +++ + src/grilo.c | 1 - + src/grilo.h | 1 - + tools/grilo-test-ui/main.c | 6 +- + 9 files changed, 225 insertions(+), 654 deletions(-) + +commit 11c7c84667749a9d6f942744d5eab287e3c73197 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:35:11 2015 +0100 + + core: merge GrlMediaVideo into GrlMedia + + Get rid of GrlMediaVideo and use instead GrlMedia. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + bindings/vala/grilo-0.3.vapi | 77 ++--- + src/Makefile.am | 2 - + src/data/grl-media-video.c | 750 ------------------------------------------- + src/data/grl-media-video.h | 191 ----------- + src/data/grl-media.c | 584 +++++++++++++++++++++++++++++++-- + src/data/grl-media.h | 69 +++- + src/grilo.c | 1 - + src/grilo.h | 1 - + tools/grilo-test-ui/main.c | 4 +- + 9 files changed, 668 insertions(+), 1011 deletions(-) + +commit 53e9029b3bf7fb65123f060d1782aca698827920 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:35:06 2015 +0100 + + core: merge GrlMediaAudio into GrlMedia + + Get rid of GrlMediaAudio and use instead GrlMedia. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + bindings/vala/grilo-0.3.vapi | 77 +++-- + libs/pls/grl-pls.c | 9 +- + src/Makefile.am | 2 - + src/data/grl-media-audio.c | 680 ------------------------------------------- + src/data/grl-media-audio.h | 158 ---------- + src/data/grl-media.c | 524 ++++++++++++++++++++++++++++++++- + src/data/grl-media.h | 71 ++++- + src/grilo.c | 1 - + src/grilo.h | 1 - + tools/grilo-test-ui/main.c | 4 +- + 10 files changed, 619 insertions(+), 908 deletions(-) + +commit 900a3ab4ad7c93aecc5b10ba7722b026bb65d88a +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:35:00 2015 +0100 + + core: add GrlMedia media-type property + + This property will store the type of media (audio, video, image or container). + + The type for supported media in source has been renamed to GrlSupportedMedia. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + bindings/vala/grilo-0.3.vapi | 20 +++++++++--- + src/Makefile.am | 2 +- + src/data/grl-media.c | 74 ++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 22 +++---------- + src/grl-metadata-key.h | 16 ++++++++++ + src/grl-source.c | 10 +++--- + src/grl-source.h | 18 ++++++++++- + tools/grilo-test-ui/main.c | 16 +++++----- + 8 files changed, 140 insertions(+), 38 deletions(-) + +commit a9a7101b805082987e222a97fe1edada61038517 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 17:34:51 2015 +0100 + + core: merge key and relation functions + + Merge register_relation function into register_key, so when creating a new key + make explicitly if the key is related with other. + + https://bugzilla.gnome.org/show_bug.cgi?id=755551 + + bindings/vala/grilo-0.3.vapi | 5 +- + src/grl-metadata-key.c | 151 ++++++++++++++++++++++++------------------- + src/grl-registry-priv.h | 1 + + src/grl-registry.c | 96 +++++++++++---------------- + src/grl-registry.h | 5 +- + 5 files changed, 124 insertions(+), 134 deletions(-) + +commit efd52bb9bda14863fdd475d63ef56ea4a66d3037 +Author: Olav Vitters +Date: Tue Dec 15 22:20:35 2015 +0100 + + update tests for grl_registry_load_all_plugins API change + + tests/registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 9c476361a804c26b4d47de94b3bb94c63f56fbf0 +Author: Juan A. Suarez Romero +Date: Thu Dec 10 11:34:29 2015 +0000 + + core: split plugin loading from plugin activation + + Explicitly separate the loading plugin process from activation process. + + Thus we can load several plugins from different places, and activate all + of them together. + + Loading the plugin will run the plugin's registering function, while + activating will run the plugin's activation function. + + https://bugzilla.gnome.org/show_bug.cgi?id=759295 + + bindings/vala/grilo-0.3.vapi | 5 +- + examples/browsing-pls.c | 5 +- + examples/browsing.c | 2 +- + examples/configuring-plugins.c | 2 +- + examples/efficient-metadata-resolution.c | 2 +- + examples/loading-plugins.c | 2 +- + examples/multivalues.c | 2 +- + examples/searching.c | 2 +- + src/grl-registry.c | 343 ++++++++----------------------- + src/grl-registry.h | 9 +- + tools/grilo-inspect/grl-inspect.c | 2 +- + tools/grilo-launch/grl-launch.c | 2 +- + tools/grilo-test-ui/main.c | 4 +- + 13 files changed, 111 insertions(+), 271 deletions(-) + +commit e0d59b36c7df7439b091510e7b52eac616d0b3c3 +Author: Juan A. Suarez Romero +Date: Thu Dec 10 11:33:17 2015 +0000 + + core: remove optional info in plugins + + Set only a restricted set of information in plugins. + + https://bugzilla.gnome.org/show_bug.cgi?id=759295 + + bindings/vala/grilo-0.3.vapi | 7 +- + src/grl-plugin-priv.h | 9 ++- + src/grl-plugin.c | 147 +++++++++++++++----------------------- + src/grl-plugin.h | 7 +- + src/grl-registry.c | 66 +++++++++-------- + tools/grilo-inspect/grl-inspect.c | 23 ++---- + 6 files changed, 105 insertions(+), 154 deletions(-) + +commit d1c29751d4040dcd499bed883cedff421539fcd3 +Author: Juan A. Suarez Romero +Date: Thu Dec 10 11:32:34 2015 +0000 + + core: Add GrlPluginDescriptor in GrlPluginPrivate + + Integrate the plugin descriptor inside private class. + + https://bugzilla.gnome.org/show_bug.cgi?id=759295 + + bindings/vala/grilo-0.3.vapi | 3 --- + src/grl-plugin-priv.h | 6 ++--- + src/grl-plugin.c | 63 +++++++++++++++++++++++++------------------- + 3 files changed, 39 insertions(+), 33 deletions(-) + +commit 222beefa6d0deea483e35010878b4828bc41a5d4 +Author: Juan A. Suarez Romero +Date: Thu Dec 10 11:31:46 2015 +0000 + + core: add GRL_PLUGIN_DEFINE() + + Defines a new plugin that can be loaded later. + + It adds all the fields that usually go in the XML file. + + https://bugzilla.gnome.org/show_bug.cgi?id=759295 + + bindings/vala/grilo-0.3.vapi | 4 ++ + src/grl-registry.c | 32 +++++------ + src/grl-registry.h | 123 ++++++++++++++++++++++++++----------------- + 3 files changed, 96 insertions(+), 63 deletions(-) + +commit 6d68858dad2afbc0662021f9ca4d7167d79fb48a +Author: Bastien Nocera +Date: Tue Dec 1 16:17:02 2015 +0100 + + core: Remove trailing '/' from GrlMedia IDs + + grl-launch-0.3 -S browse -k title grlbox://grl-tracker-source/videos/ + should have the same output as: + grl-launch-0.3 -S browse -k title grlbox://grl-tracker-source/videos + + The first would get its ID parsed to "videos/" whereas the second would + be parsed to "videos". Chomp the trailing '/'. + + https://bugzilla.gnome.org/show_bug.cgi?id=758654 + + src/data/grl-media.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 539cf42ce0a7f6f6fc4698b12bd0845a711957af +Author: Bastien Nocera +Date: Wed Nov 25 14:18:21 2015 +0100 + + grl-launch: Add examples to man page + + https://bugzilla.gnome.org/show_bug.cgi?id=758655 + + grl-launch-0.3.1 | 27 +++++++++++++++++++++++++++ + 1 file changed, 27 insertions(+) + +commit 2c3d2b39d2077464b6745332f1d2fce96b858799 +Author: Bastien Nocera +Date: Wed Nov 25 11:59:02 2015 +0100 + + grl-launch: Clarify "-T" option + + https://bugzilla.gnome.org/show_bug.cgi?id=758655 + + grl-launch-0.3.1 | 2 +- + tools/grilo-launch/grl-launch.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 0b7ed08f0a4cb7449d0c63ab5a4ec431640c98b4 +Author: Bastien Nocera +Date: Wed Nov 25 12:28:50 2015 +0100 + + source: Warn against broken media boxes + + All media boxes should have IDs for us to be able to serialise, or + deserialise it, and, for example, browse the sub-boxes in some sources + with grl-launch. + + https://bugzilla.gnome.org/show_bug.cgi?id=758654 + + src/grl-source.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +commit 3f4ec06aacd6dcae1a10c1d5f01ebcbc31f62137 +Author: Matej Urbančič +Date: Sun Dec 13 18:37:29 2015 +0100 + + Updated Slovenian translation + + po/sl.po | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +commit d8cd2e0bc668342684fea140cf5c8e7e975e1fbf +Author: Juan A. Suarez Romero +Date: Thu Dec 10 11:21:21 2015 +0000 + + build: Show better configuration info + + Pretty-print configuration setup. + + https://bugzilla.gnome.org/show_bug.cgi?id=755702 + + configure.ac | 25 ++++++++++++++++++++++++- + 1 file changed, 24 insertions(+), 1 deletion(-) + +commit e7329cd8ff8434373846242e4d533eb1d20edd19 +Author: Yosef Or Boczko +Date: Thu Nov 19 21:43:33 2015 +0200 + + Updated Hebrew translation + + po/he.po | 87 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 46 insertions(+), 41 deletions(-) + +commit 03ee49edcd50f48d2c720bc5e29212b1793404f3 +Author: Cédric Valmary +Date: Tue Nov 10 13:58:16 2015 +0000 + + Updated Occitan translation + + po/oc.po | 147 +++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 76 insertions(+), 71 deletions(-) + +commit b8f35a6bdf495c085d16759c5cc224a680dbc9b3 +Author: Emmanuele Bassi +Date: Wed Oct 21 17:54:16 2015 +0100 + + Revert "Revert "Revert "Updated Basque language""" + + This reverts commit 6680b876475b158a6410c91c4af572fb7475f08a. + + Sorry, wrong repository. + + po/eu.po | 89 ++++++++++++++++++++++++++++++---------------------------------- + 1 file changed, 42 insertions(+), 47 deletions(-) + +commit 6680b876475b158a6410c91c4af572fb7475f08a +Author: Emmanuele Bassi +Date: Wed Oct 21 17:54:11 2015 +0100 + + Revert "Revert "Updated Basque language"" + + This reverts commit db6c817568d8b9c01d8be06fd71dab5005d7de7a. + + po/eu.po | 89 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 47 insertions(+), 42 deletions(-) + +commit db6c817568d8b9c01d8be06fd71dab5005d7de7a +Author: Emmanuele Bassi +Date: Wed Oct 21 17:52:46 2015 +0100 + + Revert "Updated Basque language" + + This reverts commit 499045f6397fa925f3c42be166a33808f74f7f9a. + + Only G-C-C has been ported. + + po/eu.po | 89 ++++++++++++++++++++++++++++++---------------------------------- + 1 file changed, 42 insertions(+), 47 deletions(-) + +commit 499045f6397fa925f3c42be166a33808f74f7f9a +Author: Inaki Larranaga Murgoitio +Date: Wed Oct 14 12:35:30 2015 +0200 + + Updated Basque language + + po/eu.po | 89 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 47 insertions(+), 42 deletions(-) + +commit 770f78f7825926751d20de458e4641b9ba75b68e +Author: Juan A. Suarez Romero +Date: Fri Oct 2 14:30:34 2015 +0000 + + grl-inspect: print related keys + + tools/grilo-inspect/grl-inspect.c | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +commit 71e453b18a64b3cb5b2ec4b3072e4f4549518d97 +Author: GNOME Translation Robot +Date: Fri Oct 2 07:06:55 2015 +0000 + + Updated German translation + + po/de.po | 40 ++++++++++++++++++++-------------------- + 1 file changed, 20 insertions(+), 20 deletions(-) + +commit 240b31ee7da329e53e317c637664f68a11474071 +Author: Juan A. Suarez Romero +Date: Wed Sep 30 20:52:51 2015 +0000 + + build: surround GRL_MAJORMINOR with braces + + It fixes distcheck. + + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 40641d92518b15a88f24986025c946c958102609 +Author: Juan A. Suarez Romero +Date: Wed Sep 30 15:45:29 2015 +0000 + + travis: Update Travis requirements + + Use ppa:grilo-team/travis repository, and add also libtotem-plparser-dev to be + able to build GrlPls. + + .travis.yml | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 41b533f2006311cb8c1b099245401038b15400f4 +Author: Bastien Nocera +Date: Thu Sep 24 14:38:17 2015 +0200 + + vala: Don't remove .deps file on clean + + Instead, they should only be removed when maintainer-clean is done. + + https://bugzilla.gnome.org/show_bug.cgi?id=755368 + + bindings/vala/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 8e511b672b3d37b43d0b8d036896a2a196f143d0 +Author: Victor Toso +Date: Thu Sep 24 11:21:20 2015 +0200 + + build: fix build due syntax error + + commit 2a73d7deaad9fbdebf3441d72b aims to fix missing dependencies but + introduced syntax error. + + https://bugzilla.gnome.org/show_bug.cgi?id=755516 + + configure.ac | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +commit 0c035d7086213407ce90cfe2bbf1ff5529e4d729 +Author: Xavier Claessens +Date: Tue Sep 22 13:54:20 2015 -0400 + + pls: annotate that filter_func can be NULL + + https://bugzilla.gnome.org/show_bug.cgi?id=755433 + + libs/pls/grl-pls.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 4d50af277d5f2dadbdef009fd60730eb5eae9b98 +Author: Bastien Nocera +Date: Wed Sep 23 12:59:43 2015 +0200 + + tests: Remove GLIB_CHECK_VERSION check for unsupported version + + tests/registry.c | 4 ---- + 1 file changed, 4 deletions(-) + +commit cd9871c0a1cdb8fcc3a1b7a748e7c117d6547d94 +Author: Bastien Nocera +Date: Wed Sep 23 12:59:29 2015 +0200 + + core: Remove GLIB_CHECK_VERSION check for unsupported version + + src/grilo.c | 4 ---- + 1 file changed, 4 deletions(-) + +commit 2a73d7deaad9fbdebf3441d72b8316bdf4258024 +Author: Bastien Nocera +Date: Wed Sep 23 11:35:04 2015 +0200 + + build: Fail when library dependencies are missing + + When --disable-grl-pls or --disable-grl-net is not passed, fail so that + users know that those internal libraries are strongly recommended. + + See https://bugzilla.gnome.org/show_bug.cgi?id=755367 + + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +commit 75f2306f85f34fa95bbcb7e5ea158ef6f20eefb4 +Author: Bastien Nocera +Date: Wed Sep 23 11:34:22 2015 +0200 + + net: Remove support for libsoup < 2.42 + + Was released 2.5 years ago. + + configure.ac | 7 +------ + libs/net/Makefile.am | 5 ----- + libs/net/grl-net-wc.c | 25 ++----------------------- + 3 files changed, 3 insertions(+), 34 deletions(-) + +commit 25425e4817b88297408161b581aa22a103dca082 +Author: Милош Поповић +Date: Wed Sep 23 08:38:25 2015 +0000 + + Updated Serbian translation + + po/sr.po | 100 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 49 insertions(+), 51 deletions(-) + +commit 61f6a87313fd4717021485d4fa96e4b941ed6935 +Author: Bastien Nocera +Date: Tue Sep 22 18:20:24 2015 +0200 + + build: Also bump grl-net and grl-pls to 0.3 + + Turns out that grilo-plugins expects grl-net and grl-pls to be the same + version as grilo itself, which is likely what a number of applications + also do. + + This is easier to deal with than versions changing, and matches what + GLib does for example. + + This also fixes a number of lingering references to 0.2 as the major + version number. + + Makefile.am | 6 +++--- + configure.ac | 14 +++++++------- + grilo-net-0.2.pc.in => grilo-net-0.3.pc.in | 2 +- + grilo-net-uninstalled.pc.in | 2 +- + grilo-pls-0.2.pc.in => grilo-pls-0.3.pc.in | 2 +- + grilo-pls-uninstalled.pc.in | 2 +- + grl-inspect-0.2.1 => grl-inspect-0.3.1 | 0 + grl-launch-0.2.1 => grl-launch-0.3.1 | 0 + tools/grilo-test-ui/Makefile.am | 2 +- + .../{grilo-test-ui-0.2.1 => grilo-test-ui-0.3.1} | 0 + 10 files changed, 15 insertions(+), 15 deletions(-) + +commit 555654f4132801a4d9950b65f147ba0a01365e38 +Author: Bastien Nocera +Date: Tue Sep 22 17:37:10 2015 +0200 + + build: Require a newer GLib version + + And always build the NetworkMonitor support for networked sources. + + configure.ac | 7 +------ + src/grl-registry.c | 16 ---------------- + 2 files changed, 1 insertion(+), 22 deletions(-) + +commit 16f535813039740aca17224d2e04d0e8b24e47cb +Author: Bastien Nocera +Date: Tue Sep 22 17:35:32 2015 +0200 + + core: Remove deprecated functions + + doc/grilo/grilo-sections.txt | 2 -- + src/grl-operation-options.c | 36 ------------------------------------ + src/grl-operation-options.h | 7 ------- + tools/grilo-launch/grl-launch.c | 2 +- + 4 files changed, 1 insertion(+), 46 deletions(-) + +commit 3314e9fb9b35e9765e31a213132ed3d45e90f5e2 +Author: Bastien Nocera +Date: Wed Mar 25 19:17:03 2015 +0100 + + core: Add a way to load builtin plugins + + Instead of requiring plugins to ship an xml description, and a separate + .so shared library, allow applications to load plugins it implements + itself. + + https://bugzilla.gnome.org/show_bug.cgi?id=747026 + + doc/grilo/grilo-sections.txt | 1 + + src/grl-registry.c | 67 ++++++++++++++++++++++++++++++++++++++++++++ + src/grl-registry.h | 4 +++ + 3 files changed, 72 insertions(+) + +commit 3de5440317756a03e08da472c6bd38ca8d610b59 +Author: Bastien Nocera +Date: Tue Sep 22 17:31:00 2015 +0200 + + build: Bump version to 0.3.0 + + As this is a new development cycle. + + Makefile.am | 2 +- + .../vala/{Grl-0.2.metadata => Grl-0.3.metadata} | 0 + .../{GrlNet-0.2.metadata => GrlNet-0.3.metadata} | 0 + ...grilo-0.2-custom.vala => grilo-0.3-custom.vala} | 0 + bindings/vala/{grilo-0.2.deps => grilo-0.3.deps} | 0 + bindings/vala/grilo-0.3.vapi | 1050 ++++++++++++++++++++ + ...t-0.2-custom.vala => grilo-net-0.3-custom.vala} | 0 + .../{grilo-net-0.2.deps => grilo-net-0.3.deps} | 0 + bindings/vala/grilo-net-0.3.vapi | 43 + + configure.ac | 8 +- + doc/grilo/environment-setup.xml | 2 +- + grilo-0.2.pc.in => grilo-0.3.pc.in | 0 + 12 files changed, 1099 insertions(+), 6 deletions(-) + +commit bbb894b1620f7a4d0502ec00d3b4540dc5842628 +Author: Bastien Nocera +Date: Thu Sep 10 11:34:44 2015 +0200 + + core: Use correct word for 'duplicates' + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 4e49f8d2918c09fbf60c2007bb1c8998f135e7e2 +Author: Ask Hjorth Larsen +Date: Sun Sep 20 17:25:39 2015 +0000 + + Updated Danish translation + + po/da.po | 95 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 51 insertions(+), 44 deletions(-) + +commit 071b67d65342a10e16e75a0e3cc4f844cf9620df +Author: Anders Jonsson +Date: Sat Sep 19 22:31:06 2015 +0000 + + Updated Swedish translation + + po/sv.po | 101 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 54 insertions(+), 47 deletions(-) + +commit aa7209961c19b05c5523320cefb5b3fd9b9524bc +Author: Bernd Homuth +Date: Thu Sep 17 19:41:02 2015 +0000 + + Updated German translation + + po/de.po | 101 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 55 insertions(+), 46 deletions(-) + +commit d82d0203a6a62f9c55c04560062aa8ff136eb1be +Author: Muhammet Kara +Date: Thu Sep 17 18:03:45 2015 +0000 + + Updated Turkish translation + + po/tr.po | 80 +++++++++++++++++++++++++++++++++++++--------------------------- + 1 file changed, 46 insertions(+), 34 deletions(-) + +commit b7ad2cfeb59648a7c7bc17383c5c16352535e343 +Author: Marek Černocký +Date: Sun Sep 13 17:22:15 2015 +0200 + + Updated Czech translation + + po/cs.po | 91 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 48 insertions(+), 43 deletions(-) + +commit 532d6537d4898596d86ec393b05e88477f3a1356 +Author: Seong-ho Cho +Date: Sat Sep 12 13:45:57 2015 +0900 + + Updated Korean translation + + po/ko.po | 99 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 52 insertions(+), 47 deletions(-) + +commit 5f42c1e86056607fdcc8be246175d7435521b1e5 +Author: Matej Urbančič +Date: Tue Sep 8 23:26:01 2015 +0200 + + Updated Slovenian translation + + po/sl.po | 96 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 50 insertions(+), 46 deletions(-) + +commit b74c0e320095b12a98c5e933b1e2af3b50f28037 +Author: Alexandre Franke +Date: Mon Sep 7 12:12:49 2015 +0000 + + Updated French translation + + po/fr.po | 89 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 47 insertions(+), 42 deletions(-) + +commit caf231f029025dce644c28e7b92f247564dfc991 +Author: Tom Tryfonidis +Date: Fri Sep 4 22:33:50 2015 +0000 + + Updated Greek translation + + po/el.po | 91 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 48 insertions(+), 43 deletions(-) + +commit 6558ba92f0b210711bab48117b77b69e56eddec8 +Author: Claudio Arseni +Date: Fri Sep 4 07:52:10 2015 +0000 + + Updated Italian translation + + po/it.po | 101 ++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 54 insertions(+), 47 deletions(-) + +commit f108e7dded032e4fbb42ae710585e819175fae74 +Author: Andika Triwidada +Date: Thu Sep 3 20:46:35 2015 +0000 + + Updated Indonesian translation + + po/id.po | 94 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 50 insertions(+), 44 deletions(-) + +commit 855fa82cf7e34f3183062b837ba629d583973e92 +Author: Aurimas Černius +Date: Wed Sep 2 20:58:44 2015 +0300 + + Updated Lithuanian translation + + po/lt.po | 96 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 50 insertions(+), 46 deletions(-) + +commit b3c5e91d4e2c4606e4712837d2e62d33234a18be +Author: Daniel Mustieles +Date: Wed Sep 2 18:52:38 2015 +0200 + + Updated Spanish translation + + po/es.po | 94 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 50 insertions(+), 44 deletions(-) + +commit a05a65f34ba36f44a3e06390c6806727f7454dfa +Author: Bastien Nocera +Date: Wed Sep 2 13:54:12 2015 +0200 + + build: Fix tests enablements + + Spotted by Michael Terry + + https://bugzilla.gnome.org/show_bug.cgi?id=693450 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b7fb6dd0ba17e362303a49ced1aa2617de6f301f +Author: Bastien Nocera +Date: Wed Sep 2 13:30:09 2015 +0200 + + grilo-test-ui: Remove GtkStock usage + + tools/grilo-test-ui/main.c | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +commit 7fb0b6ab22da8a9aa057bb1e88818b493d798759 +Author: Pedro Albuquerque +Date: Wed Sep 2 06:57:58 2015 +0000 + + Updated Portuguese translation + + po/pt.po | 94 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 50 insertions(+), 44 deletions(-) + +commit 3582906193f69fb242e3799b76c4011a98b170a4 +Author: Balázs Úr +Date: Tue Sep 1 21:56:05 2015 +0000 + + Updated Hungarian translation + + po/hu.po | 98 +++++++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 53 insertions(+), 45 deletions(-) + +commit 08c2b449b01099314a9bffe5211cb4dbc4f281eb +Author: Dušan Kazik +Date: Tue Sep 1 15:27:41 2015 +0000 + + Updated Slovak translation + + po/sk.po | 91 ++++++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 48 insertions(+), 43 deletions(-) + +commit fc4965df39fd19a24db5def57a7186b914edd667 +Author: Bastien Nocera +Date: Fri Aug 28 15:26:56 2015 +0200 + + grilo-test-ui: Fix warning about deprecated gtk-menu-images + + Menus don't use images in recent versions of GTK+: + The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version. + + Remove the icons from the menu items. + + https://bugzilla.gnome.org/show_bug.cgi?id=754401 + + tools/grilo-test-ui/main.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +commit ca2b98888ece03b9e0e5cb6449ae1c6d68c2f15e +Author: Piotr Drąg +Date: Tue Sep 1 16:29:29 2015 +0200 + + Updated Polish translation + + po/pl.po | 35 ++++++++++++++++++++--------------- + 1 file changed, 20 insertions(+), 15 deletions(-) + +commit 9971e349da1f8dbe75c64a0f7a91f5cc8e6387f1 +Author: Victor Toso +Date: Fri May 1 23:36:32 2015 +0200 + + grl-registry: allow register same metadata key + + In case the plugin wants to reregister a metadata-key we don't throw + an error. Common situation for this is when application unload() and + load() again a plugin with custom metadata keys. + + https://bugzilla.gnome.org/show_bug.cgi?id=748550 + + src/grl-registry.c | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 113 insertions(+) + +commit 2c8df07188befb082201a8d5c97a4b122913e3cc +Author: Juan A. Suarez Romero +Date: Sun Aug 30 20:03:40 2015 +0000 + + grilo-test-ui: Renew Youtube Key + + The old key used for the Test UI application has expired, and a new one is + required. + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit abb24872157eac0c8005b167baadf22773b62106 +Author: Xavier Claessens +Date: Wed Aug 26 13:08:59 2015 -0400 + + registry: Use g_strv_contains() + + GNetworkConnectivity was added in glib 2.44, so was g_strv_contains(). + No need of a custom implementation here. + + https://bugzilla.gnome.org/show_bug.cgi?id=754093 + + src/grl-registry.c | 33 +++++++-------------------------- + 1 file changed, 7 insertions(+), 26 deletions(-) + +commit c930f91d77cce2343f6c6483256e941691e3525b +Author: Xavier Claessens +Date: Wed Aug 26 13:16:12 2015 -0400 + + registry: Fix plugin tests running with mocked network + + Unit tests from grilo-plugins sets GRL_NET_MOCKED env variable + to mock network, so we shouldn't hide those plugins if the host + has no internet connectivity. This can happen on build bots for + example. + + https://bugzilla.gnome.org/show_bug.cgi?id=754093 + + src/grl-registry.c | 40 ++++++++++++++++++++++++++-------------- + 1 file changed, 26 insertions(+), 14 deletions(-) + +commit 46c06caf9c90095594de3ce7ddbd4241d90adc5c +Author: Chao-Hsiung Liao +Date: Wed Aug 26 12:47:57 2015 +0000 + + Updated Chinese (Taiwan) translation + + po/zh_TW.po | 34 +++++++++++++++++----------------- + 1 file changed, 17 insertions(+), 17 deletions(-) + +commit 951f0ff578ca64296afa92931e611a84d1326033 +Author: Piotr Drąg +Date: Tue Aug 25 18:44:31 2015 +0200 + + Updated Polish translation + + po/pl.po | 108 +++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 54 insertions(+), 54 deletions(-) + +commit 444b2d9286a875db76abb5a0179442611c4d78dc +Author: Bastien Nocera +Date: Thu Nov 27 14:39:48 2014 +0100 + + core: Change "last-played-time" type to GDateTime + + Instead of a string. + + https://bugzilla.gnome.org/show_bug.cgi?id=686175 + + src/data/grl-media.c | 12 ++++++------ + src/data/grl-media.h | 4 ++-- + src/grl-metadata-key.c | 10 +++++----- + 3 files changed, 13 insertions(+), 13 deletions(-) + +commit af52aa57f579026e3a6d6b4b4a757522774abd19 +Author: Bastien Nocera +Date: Mon Mar 30 16:45:15 2015 +0200 + + source: Only replace source ID in notify if unset + + In other cases where grl_media_set_source() is used, it only sets the + source of a media if it is the special root container media, or if the + source was previously unset. + + This avoids sources being overwritten when sending change notifications + when sending changes from an aggregating source (such as the one + embedded in Totem). + + https://bugzilla.gnome.org/show_bug.cgi?id=747029 + + src/grl-source.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +commit de50ad298b88bddabd6d5cc9c1f20f93731c1f7b +Author: Mathieu Duponchelle +Date: Sat Apr 25 17:28:15 2015 +0200 + + core: Remove remaining references to GrlMetadataSource + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + doc/grilo/Makefile.am | 1 - + src/grl-metadata-source-priv.h | 36 ------- + tests/Makefile.am | 4 - + tests/metadata_source.c | 180 ----------------------------------- + tests/python/Makefile.am | 3 +- + tests/python/test_metadata_source.py | 106 --------------------- + 6 files changed, 1 insertion(+), 329 deletions(-) + +commit 851e3cf4c9b240b60941d9c72af0cb812a18c002 +Author: Mathieu Duponchelle +Date: Sun Apr 26 18:14:58 2015 +0200 + + core: Generate .gitgnore in libs/pls too + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + libs/pls/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +commit 0486e1d76b7a524e3fbdd83a9cc2be6a8779bbe6 +Author: Mathieu Duponchelle +Date: Sun Apr 26 18:14:08 2015 +0200 + + core: Add a Makefile.am in src/data + + To have a gitignore generated there as well. + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + configure.ac | 1 + + src/Makefile.am | 2 ++ + src/data/Makefile.am | 1 + + 3 files changed, 4 insertions(+) + +commit abd6970a82fb1e338dc93e35756cf07849eaa378 +Author: Mathieu Duponchelle +Date: Sun Apr 26 18:12:44 2015 +0200 + + tests: Disable python tests + + They fail for various reasons for now and we want make check to + pass. + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + tests/python/testrunner.py | 3 +++ + 1 file changed, 3 insertions(+) + +commit b45e74074304e09a4323cc21c631fa0028ce23c8 +Author: Mathieu Duponchelle +Date: Sun Apr 26 17:59:04 2015 +0200 + + tests: Fix loading plugins + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + tests/python/test_fs.py | 5 ++++- + tests/python/test_media.py | 5 ++++- + tests/python/test_options.py | 5 ++++- + tests/python/test_plugin.py | 2 +- + 4 files changed, 13 insertions(+), 4 deletions(-) + +commit 888622339e1dffcb68959f00beb75166c4909fa5 +Author: Mathieu Duponchelle +Date: Sun Apr 26 17:57:27 2015 +0200 + + tests: Use GLib though introspection + + + And remove useless pygtk import. + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + tests/python/test_fs.py | 11 +++++------ + tests/python/testrunner.py | 2 -- + 2 files changed, 5 insertions(+), 8 deletions(-) + +commit 7ff6dd9a7ed55dff4083fa1f46657c2f96090b71 +Author: Mathieu Duponchelle +Date: Sat Apr 25 17:29:04 2015 +0200 + + tests: Make C tests run again + + GrlMediaPlugin is now GrlSource. + + https://bugzilla.gnome.org/show_bug.cgi?id=748455 + + tests/registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f046b208417912c4d62d3600e4b0d074318e0422 +Author: Mathieu Duponchelle +Date: Tue May 19 18:25:00 2015 +0200 + + introspection: Install to the correct places + + make distcheck was failing on my end, because it sets a prefix + which has to be taken into account, this fixes that issue + as shown in the example in: + + /usr/share/gobject-introspection-1.0/Makefile.introspection + + https://bugzilla.gnome.org/show_bug.cgi?id=749587 + + libs/net/Makefile.am | 4 ++-- + libs/pls/Makefile.am | 4 ++-- + src/Makefile.am | 4 ++-- + 3 files changed, 6 insertions(+), 6 deletions(-) + +commit 7e87137e3241047d40d4e93355ede27d33d0f7f8 +Author: Bastien Nocera +Date: Thu Jul 2 12:33:20 2015 +0200 + + source: Add "net:plaintext" source tag doc + + This will make it easier for applications to avoid using plaintext + channels, such as HTTP-only connections, when doing requests. + + Adding a tag allows applications to avoid hard-coding sources which + might leak private information. + + https://bugzilla.gnome.org/show_bug.cgi?id=747953 + + src/grl-source.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 4391c96cd9bd81b5c2d7fca68af9ed10802e97b6 +Author: Bastien Nocera +Date: Tue May 26 12:46:01 2015 +0200 + + grilo-test-ui: Fix possible uninitialised use + + From coverity: + grilo-0.2.12/tools/grilo-test-ui/main.c:776:20: warning: 'next_op_id' may be used uninitialized in this function [-Wmaybe-uninitialized] + + https://bugzilla.gnome.org/show_bug.cgi?id=749887 + + tools/grilo-test-ui/main.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit f8e9945ef52023a9ee0c97413d515ba51ee8ef2e +Author: Bastien Nocera +Date: Tue May 26 12:43:38 2015 +0200 + + examples: Don't use options uninitialised + + From coverity: + grilo-0.2.12/examples/browsing-pls.c:119: uninit_use_in_call: Using uninitialized value "options" when calling "g_object_unref". + + https://bugzilla.gnome.org/show_bug.cgi?id=749887 + + examples/browsing-pls.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 532b3083eb5aa18ac276a140324f43fa444a8d2f +Author: Bastien Nocera +Date: Tue May 26 12:41:58 2015 +0200 + + pls: Avoid NULL dereference + + From coverity: + libs/pls/grl-pls.c:624: var_deref_op: Dereferencing null pointer "valid_entries". + + valid_entries can be NULL, so check its value before using it in the + debug output. + + https://bugzilla.gnome.org/show_bug.cgi?id=749887 + + libs/pls/grl-pls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f36606d173c8389f9c1f03990029ec32f61575ac +Author: Pedro Albuquerque +Date: Wed Jul 1 22:00:29 2015 +0000 + + Updated Portuguese translation + + po/pt.po | 76 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 39 insertions(+), 37 deletions(-) + +commit 179e6c3906ff5aa860aa38debce8dce79ac94b0a +Author: Philip Withnall +Date: Mon May 4 15:21:35 2015 +0100 + + src: Try all GrlSources in grl_multiple_get_media_from_uri() + + Previously, grl_multiple_get_media_from_uri() would stop as soon as + a source returned TRUE for grl_source_test_media_from_uri() but then + returned a NULL GrlMedia in its grl_source_get_media_from_uri() + callback. + + That’s probably not what the user wanted, so instead continue to + asynchronously try the remaining GrlSources until a GrlMedia is returned + or the end of the sources list is reached. + + https://bugzilla.gnome.org/show_bug.cgi?id=748896 + + src/grl-multiple.c | 92 ++++++++++++++++++++++++++++++------------------------ + 1 file changed, 51 insertions(+), 41 deletions(-) + +commit 0a19c612e3b312efafff93879482aefc336d09c6 +Author: Cédric Valmary +Date: Wed May 27 16:43:51 2015 +0000 + + Added Occitan translation + + po/LINGUAS | 1 + + po/oc.po | 196 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 197 insertions(+) + +commit 7d981c4f55b975db6aff0e592802d7cf0c1698a5 +Author: Philip Withnall +Date: Mon May 4 09:17:47 2015 +0100 + + src: Expand documentation for GrlSourceResolveCb + + https://bugzilla.gnome.org/show_bug.cgi?id=748873 + + src/grl-source.h | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +commit e9fc0cfd413ed4dadada1673227f194755900d71 +Author: Philip Withnall +Date: Mon May 4 09:15:33 2015 +0100 + + src: Add preconditions to all methods in grl-media.c + + Otherwise it’s very easy to get a NULL GrlMedia in a GrlSourceResolveCb + callback and start calling methods on it which will happily produce + garbage. + + https://bugzilla.gnome.org/show_bug.cgi?id=748873 + + src/data/grl-media.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 128 insertions(+), 1 deletion(-) + +commit 4c02c33218fe54ef6ba34b4852fca32a21d7483a +Author: George Sedov +Date: Wed Mar 4 17:56:32 2015 +0300 + + core: Add GRL_CORE_ERROR_AUTHENTICATION_TOKEN + + Add an error type for problems with authentication tokens + that require user attention, such as a VK oauth token that + requires re-login. + + https://bugzilla.gnome.org/show_bug.cgi?id=744238 + + src/grl-error.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit eca9fb193d8f22b99b76f84f6171fd46e308738c +Author: Mathieu Duponchelle +Date: Wed Apr 15 18:13:57 2015 +0200 + + doc: add grl_operation_options_[set|get]_resolution_flags to + + the sections. + + doc/grilo/grilo-sections.txt | 2 ++ + 1 file changed, 2 insertions(+) + +commit 47f8ac3212ca114ab686129887c19625e6a3f343 +Author: Rūdolfs Mazurs +Date: Fri Apr 3 19:53:52 2015 +0300 + + Updated Latvian translation + + po/lv.po | 681 ++++++++++++++++++++++++++++++++++++++++++++++++++++----------- + 1 file changed, 566 insertions(+), 115 deletions(-) + +commit a520247a16fec863ea04ac839fd9aa9105ebd481 +Author: Samir Ribic +Date: Fri Mar 13 21:01:32 2015 +0000 + + Added Bosnian translation + + po/LINGUAS | 1 + + po/bs.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit ee8d5558bf5d5a2b07e88afe7928df79b36f45da +Author: Bastien Nocera +Date: Thu Mar 5 14:15:08 2015 +0100 + + core: Fix warning when unloading a plugin that failed to load + + This warning is normal: + (totem:17205): Grilo-WARNING **: [registry] grl-registry.c:1130: Failed to open module: libicui18n.so.52: cannot open shared object file: No such file or directory + + This one isn't: + (totem:8432): GModule-CRITICAL **: g_module_close: assertion 'module != NULL' failed + + This patch fixes the latter. + + https://bugzilla.gnome.org/show_bug.cgi?id=745676 + + src/grl-registry.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +commit 2e14259e4973a403cd1e7afb4ee42ec8cea12180 +Author: Juan A. Suarez Romero +Date: Tue Feb 17 18:33:38 2015 +0000 + + Post-release version bump to 0.2.13 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 06a224c1fd71af769b56a825791422e42c3a9523 +Author: Juan A. Suarez Romero +Date: Tue Feb 17 18:32:05 2015 +0000 + + Release 0.2.12 + + NEWS | 66 ++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 6 ++--- + src/data/grl-media-audio.c | 15 +++++++++++ + src/data/grl-media-video.c | 4 +-- + 4 files changed, 86 insertions(+), 5 deletions(-) + +commit 0aaa3264f652e28ec5d54d0989a9e46a7a261059 +Author: Bastien Nocera +Date: Tue Feb 17 17:56:36 2015 +0100 + + build: Default to building .tar.xz tarballs + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 00f1f93eeabf89fd94014061060b77d700cfe84f +Author: Bastien Nocera +Date: Tue Feb 17 13:39:12 2015 +0100 + + pls: Support older versions of totem-pl-parser + + But no need to recompile grilo to support newer versions. + + libs/pls/grl-pls.c | 5 +++++ + 1 file changed, 5 insertions(+) + +commit 50ff107e98481cf44b540323d851ce2115146b21 +Author: Bastien Nocera +Date: Sun Feb 8 16:11:41 2015 +0100 + + pls: Export the "audio-track" playlist attribute + + https://bugzilla.gnome.org/show_bug.cgi?id=744168 + + libs/pls/grl-pls.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 47835b939d5cccc96e7d0f9bfaca954bdf719961 +Author: Bastien Nocera +Date: Sun Feb 8 15:41:41 2015 +0100 + + core: Add "audio-track" property + + https://bugzilla.gnome.org/show_bug.cgi?id=744168 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + src/grl-metadata-key.c | 13 +++++++++++++ + src/grl-metadata-key.h | 1 + + 3 files changed, 16 insertions(+) + +commit 3ba699dd90ed5b99d77c444c134324e1f917d2ea +Author: Bastien Nocera +Date: Fri May 30 16:33:12 2014 +0200 + + core: Fix possible crash when passing NULL options + + grl_operation_options_get_resolution_flags() shouldn't + crash when the options passed are NULL. + + https://bugzilla.gnome.org/show_bug.cgi?id=724308 + + src/grl-operation-options.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +commit c65c68bd8aa302869782e12a6be93494c5909fc1 +Author: Bastien Nocera +Date: Tue May 13 08:39:52 2014 +0200 + + core: Rename GrlOperationOptions "flags" to "resolution-flags" + + And add the associated functions as well. Deprecate the old + functions. + + https://bugzilla.gnome.org/show_bug.cgi?id=724308 + + examples/browsing-pls.c | 2 +- + examples/browsing.c | 2 +- + examples/efficient-metadata-resolution.c | 4 +-- + examples/multivalues.c | 2 +- + examples/searching.c | 2 +- + libs/pls/grl-pls.c | 4 +-- + src/grl-caps.c | 2 +- + src/grl-operation-options-priv.h | 2 +- + src/grl-operation-options.c | 54 ++++++++++++++++++++++++++------ + src/grl-operation-options.h | 7 +++++ + src/grl-source.c | 34 ++++++++++---------- + tools/grilo-launch/grl-launch.c | 8 ++--- + tools/grilo-test-ui/main.c | 4 +-- + 13 files changed, 85 insertions(+), 42 deletions(-) + +commit 6329e1be0d3e585ccbdf5d6fbf416c15ce6f93f4 +Author: Sebastian Keller +Date: Thu Feb 12 17:43:51 2015 +0100 + + core: Fix memory leak in get_additional_sources + + missing_in_data creates a new list which was not being freed by + get_additional_sources. + + https://bugzilla.gnome.org/show_bug.cgi?id=744408 + + src/grl-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit dcb7405b622c5fe1b31b596435255034b6bbf69c +Author: Bastien Nocera +Date: Thu Jan 22 15:15:24 2015 +0100 + + core: Make grl_init_get_option_group() available to bindings + + Now that it's registered as a boxed type. + + See https://bugzilla.gnome.org/show_bug.cgi?id=743349 + + https://bugzilla.gnome.org/show_bug.cgi?id=743351 + + src/grilo.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 48fa64f445a745e148a2065c8f3d473ef0932366 +Author: Bastien Nocera +Date: Thu Jan 22 16:07:50 2015 +0100 + + core: Fix grl_init() when using the GOptionGroup instead + + Using the GOptionGroup instead of grl_init() should still make sure + to setup all the necessary plugin paths, etc. Move most of the code + from grl_init() to pre- and post-parse GOptionGroup hooks. + + https://bugzilla.gnome.org/show_bug.cgi?id=743353 + + src/grilo.c | 80 ++++++++++++++++++++++++++++++++++++++----------------------- + 1 file changed, 50 insertions(+), 30 deletions(-) + +commit fcf23a97ea6d8232643d0f5d4adf22d188307c5f +Author: Juan A. Suarez Romero +Date: Thu Jan 29 17:20:15 2015 +0000 + + core: Check if source is valid + + Before checking if source is visible, check if it is a valid source. + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 76eafa8194c4563190cbfe6cd058c02576e8c7f4 +Author: Juan A. Suarez Romero +Date: Thu Jan 29 14:40:15 2015 +0000 + + build: fix distcheck for Vala + + Metadata file has changed, and we also need to clean vapi files. + + bindings/vala/Makefile.am | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit d24cdcfb1dc221d4b3efe5e7c5a75d2212058d37 +Author: Bastien Nocera +Date: Tue Dec 16 17:32:23 2014 +0100 + + core: Make the property name match the metadata key name + + GRL_METADATA_KEY_PUBLICATION_DATE should really correspond to + "publication-date" not "publishing-date". + + https://bugzilla.gnome.org/show_bug.cgi?id=741605 + + src/grl-metadata-key.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 6da7929afcc0a49cb298d9a1e5bc68f5b36406a7 +Author: Bastien Nocera +Date: Tue Dec 2 15:15:19 2014 +0100 + + core: Add tag to grl_operation_options_get_key_range_filter + + Add "transfer none" to the out parameters of + grl_operation_options_get_key_range_filter(). + + https://bugzilla.gnome.org/show_bug.cgi?id=741020 + + src/grl-operation-options.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit a4fac2b310750e42435fc527e9bbe936d7be8f23 +Author: Bastien Nocera +Date: Mon Dec 1 01:02:18 2014 +0100 + + core: Add register_keys plugin function + + This allows for custom metadata keys to be registered before the + plugins, or even the sources, are loaded. + + https://bugzilla.gnome.org/show_bug.cgi?id=740943 + + src/grl-plugin-priv.h | 5 +++ + src/grl-plugin.c | 38 ++++++++++++++++++ + src/grl-registry.c | 104 +++++++++++++++++++++++++++++++++----------------- + src/grl-registry.h | 33 +++++++++++++--- + 4 files changed, 140 insertions(+), 40 deletions(-) + +commit 7a7ccfc43d558e5b6f425498fd8be9d2664eabd0 +Author: Bastien Nocera +Date: Thu Jan 22 13:24:14 2015 +0100 + + build: Add vapigen.m4 file + + To avoid errors during autogen.sh if vala is not present on the + system. + + https://bugzilla.gnome.org/show_bug.cgi?id=742645 + + m4/vapigen.m4 | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 101 insertions(+) + +commit e8f99d98a58f001984d5f01a6c7395592bff4cf9 +Author: Bastien Nocera +Date: Wed Jan 21 23:54:45 2015 +0100 + + core: Fix annotation of grl_init() to fix vala bindings + + Trying to pass args (argc/argv) to grl.init() failed in vala with the error: + error: Argument 1: Cannot pass unowned ref argument to owned reference parameter + Grl.init (ref args); + ^^^^^^^^ + + We need to mark the argv as "transfer none" to have it match the + type of args, as done in other GObject libraries with vala bindings. + + src/grilo.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 78d4690dabd4fe1822ab8d610a76faa385d2e3e3 +Author: Bastien Nocera +Date: Wed Jan 21 23:47:10 2015 +0100 + + vala: Add some missing definitions + + GRL_SOURCE_REMAINING_UNKNOWN and GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN + weren't available from vala programs. + + https://bugzilla.gnome.org/show_bug.cgi?id=730663 + + bindings/vala/grilo-0.2-custom.vala | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit f48941d8e38cace3f709c78a2609c30d2693d998 +Author: Bastien Nocera +Date: Wed Jan 21 23:36:11 2015 +0100 + + build: Require vala 0.27 + + The current git master version, as grilo refuses to build with + anything older. We'll switch to 0.28 when it's out. + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e0e30dfa0ea5d9e4814b2cdb1236abfa74289076 +Author: Bastien Nocera +Date: Thu Dec 11 00:34:49 2014 +0100 + + Revert "core: Allow removing metadata keys in GrlData" + + This reverts commit 32275f8daace57eaea1899ad534244091e05e0a9. + + This patch broke adding empty strings as related keys, as the + lastfm-albumart plugin tests showed. + + https://bugzilla.gnome.org/show_bug.cgi?id=741207 + + src/data/grl-data.c | 6 ++++-- + src/data/grl-related-keys.c | 12 +++++------- + 2 files changed, 9 insertions(+), 9 deletions(-) + +commit bfb7078a56786b1b708aac8075e36d4f03bb54c2 +Author: Bastien Nocera +Date: Wed Dec 10 16:04:57 2014 +0100 + + core: Don't require a newer GIO for network awareness + + As a separate commit, because it will make it easier to revert + once we're ready to bump the GLib/GIO dependencies. + + https://bugzilla.gnome.org/show_bug.cgi?id=725148 + + configure.ac | 5 +++++ + src/grl-registry.c | 19 +++++++++++++++++++ + 2 files changed, 24 insertions(+) + +commit f30dccc9cdc732f3b4e84b68eae1ad68613e1b9b +Author: Bastien Nocera +Date: Thu Dec 4 22:42:52 2014 +0100 + + core: Make sources network aware + + If a source says that it requires the local network, or access to + the Internet to work properly, automatically hide it when the network + becomes unavailable, and show it when the network comes back on again. + + This is implemented using GNetworkManager's connectivity property. + See https://bugzilla.gnome.org/show_bug.cgi?id=664562 + + Sources only need to set the "net:local" or "net:internet" tags to + be shown/hidden from applications depending on the network status. + + https://bugzilla.gnome.org/show_bug.cgi?id=725148 + + src/grl-registry.c | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++-- + src/grl-source.c | 6 ++ + 2 files changed, 178 insertions(+), 5 deletions(-) + +commit 8a583607a59395958169dbd2230ab39b90d59e81 +Author: Marc-André Lureau +Date: Wed Dec 10 00:39:35 2014 +0100 + + build-sys: fix out-of-tree build of vapi + + Reference custom file by path. + + https://bugzilla.gnome.org/show_bug.cgi?id=741315 + + bindings/vala/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit c760d284acad86bb6f60af711af7d079052832f7 +Author: Marc-André Lureau +Date: Tue Dec 9 08:03:25 2014 +0100 + + build-sys: fix gio-2.0 gir bindings errors + + Use vala gio-2.0 definition to avoid the gir error: + + Gio-2.0.gir:79247.7-79251.24: error: `UnixSocketAddress' already + contains a definition for `abstract' + Gio-2.0.gir:79093.7-79095.21: note: previous definition of `abstract' + was here + + https://bugzilla.gnome.org/show_bug.cgi?id=741315 + + bindings/vala/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 930ddb4c1dc7992e70ea91f388c4b576616c6a93 +Author: Bastien Nocera +Date: Wed Dec 10 14:21:51 2014 +0100 + + core: Fix API documentation bugs + + data/grl-media-audio.c:180: Warning: Grl: grl_media_audio_set_mb_recording_id: unknown parameter 'mb_track_id' in documentation comment, should be 'mb_recording_id' + data/grl-media-video.c:182: Warning: Grl: grl_media_video_set_episode_title: unknown parameter 'show' in documentation comment, should be 'episode_title' + + src/data/grl-media-audio.c | 2 +- + src/data/grl-media-video.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 32275f8daace57eaea1899ad534244091e05e0a9 +Author: Bastien Nocera +Date: Mon Dec 8 17:49:02 2014 +0100 + + core: Allow removing metadata keys in GrlData + + https://bugzilla.gnome.org/show_bug.cgi?id=741207 + + src/data/grl-data.c | 6 ++---- + src/data/grl-related-keys.c | 12 +++++++----- + 2 files changed, 9 insertions(+), 9 deletions(-) + +commit 6af34f0fb9ab57eea1446a63740dd5b33afbc44d +Author: Victor Toso +Date: Tue Dec 9 19:32:04 2014 +0100 + + core: add GRL_METADATA_KEY_EPISODE_TITLE + + Title of show's episode. + + https://bugzilla.gnome.org/show_bug.cgi?id=741207 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + doc/grilo/grilo-sections.txt | 3 +++ + src/data/grl-media-video.c | 36 ++++++++++++++++++++++++++++++++++++ + src/data/grl-media-video.h | 4 ++++ + src/grl-metadata-key.c | 10 ++++++++++ + src/grl-metadata-key.h | 1 + + 6 files changed, 56 insertions(+) + +commit 5c1eb9e5340cbfe57fc63cc0cdf882f9e4850c9e +Author: Victor Toso +Date: Sat Nov 29 18:19:36 2014 +0100 + + core: add GRL_METADATA_KEY_MB_RECORDING_ID + + MusicBrainz recording identifier. From its documentation: + A recording is an entity in MusicBrainz which can be linked to tracks + on releases. Each track must always be associated with a single + recording, but a recording can be linked to any number of tracks. + + https://bugzilla.gnome.org/show_bug.cgi?id=741230 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + doc/grilo/grilo-sections.txt | 3 +++ + src/data/grl-media-audio.c | 29 +++++++++++++++++++++++++++++ + src/data/grl-media-audio.h | 4 ++++ + src/grl-metadata-key.c | 9 +++++++++ + src/grl-metadata-key.h | 1 + + 6 files changed, 48 insertions(+) + +commit ba54248110c94de219c4d21f5b31a84ecbe08d64 +Author: Muhammet Kara +Date: Thu Dec 4 09:32:15 2014 +0000 + + Updated Turkish translation + + po/tr.po | 55 ++++++++++++++++++++++++++++--------------------------- + 1 file changed, 28 insertions(+), 27 deletions(-) + +commit d4ed03666cbac31ee393ae7a4709572611b3a38d +Author: Ting-Wei Lan +Date: Thu Dec 4 02:01:38 2014 +0800 + + Fix "non-void function should return a value" for clang + + https://bugzilla.gnome.org/show_bug.cgi?id=741081 + + src/data/grl-media-audio.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d3a2c277d9d2af9b5aaedbf94f6481ba98ccff3b +Author: Bastien Nocera +Date: Sun Nov 30 18:58:46 2014 +0100 + + core: Fix excessive ref'ing when registering new keys + + When registering new metadata keys, there's no need to take a new + reference to the GParamSpec passed, as the usual construct is to + call g_param_spec_new_... in the call to + grl_registry_register_metadata_key(), leaking the original reference + to the GParamSpec when grilo it de-inited. + + https://bugzilla.gnome.org/show_bug.cgi?id=740942 + + src/grl-registry.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +commit 689bf702cb3d264cca9b1a689d6237f611ad3407 +Author: Marc-André Lureau +Date: Sat Nov 15 19:36:47 2014 +0100 + + vala: modernize bindings generation + + Use GIR and modern autotools helpers. This binding allows to build + simple plugin, it hasn't been tested for applications. + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + bindings/Makefile.am | 6 +- + bindings/vala/Grl-0.2.metadata | 15 +++++ + bindings/vala/GrlNet-0.2.metadata | 3 + + bindings/vala/Makefile.am | 83 +++++------------------- + bindings/vala/grilo-0.2-custom.vala | 17 +---- + bindings/vala/grilo-0.2.metadata | 58 ----------------- + bindings/vala/grilo-net-0.2.metadata | 6 -- + bindings/vala/grilo-net-uninstalled.files.in | 2 - + bindings/vala/grilo-net-uninstalled.namespace.in | 1 - + bindings/vala/grilo-uninstalled.defines | 1 - + bindings/vala/grilo-uninstalled.files.in | 13 ---- + bindings/vala/grilo-uninstalled.namespace.in | 1 - + configure.ac | 49 ++------------ + 13 files changed, 44 insertions(+), 211 deletions(-) + +commit 2fa07bd6d6d6b4f918d15cbe563bcf2fd29b5f94 +Author: Victor Toso +Date: Sun Aug 17 16:00:09 2014 -0300 + + core: add GRL_METADATA_KEY_MB_ARTIST_ID + + MusicBrainz artist identifier. + + https://bugzilla.gnome.org/show_bug.cgi?id=732878 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + doc/grilo/grilo-sections.txt | 5 +++ + src/data/grl-media-audio.c | 70 +++++++++++++++++++++++++++++++++++++ + src/data/grl-media-audio.h | 8 +++++ + src/grl-metadata-key.c | 12 +++++++ + src/grl-metadata-key.h | 1 + + 6 files changed, 98 insertions(+) + +commit 9cee9ffd2de288ef3081c01a10344f309174953e +Author: Victor Toso +Date: Mon Jul 7 01:13:41 2014 -0300 + + core: add GRL_METADATA_KEY_MB_TRACK_ID + + MusicBrainz track identifier. + + https://bugzilla.gnome.org/show_bug.cgi?id=732878 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + doc/grilo/grilo-sections.txt | 3 +++ + src/data/grl-media-audio.c | 28 ++++++++++++++++++++++++++++ + src/data/grl-media-audio.h | 4 ++++ + src/grl-metadata-key.c | 9 +++++++++ + src/grl-metadata-key.h | 1 + + 6 files changed, 47 insertions(+) + +commit 2e45b89392a44bf4baada62b28fbcf4a8cac802d +Author: Bastien Nocera +Date: Wed Nov 26 16:26:50 2014 +0100 + + core: Correct value type for file sizes + + An int is obviously too small a value to fit a filesize in bytes, with + its maximum at 2GB. Use an int64 instead. + + Note, this breaks ABI but should not break API. + + https://bugzilla.gnome.org/show_bug.cgi?id=740761 + + src/data/grl-media.c | 12 ++++++------ + src/data/grl-media.h | 4 ++-- + src/grl-metadata-key.c | 12 ++++++------ + 3 files changed, 14 insertions(+), 14 deletions(-) + +commit 6b26ee202958c33968c6af76b08358ae50c21a14 +Author: Bastien Nocera +Date: Wed Nov 26 16:26:27 2014 +0100 + + core: Add support for int64 values + + https://bugzilla.gnome.org/show_bug.cgi?id=740761 + + src/data/grl-data.c | 79 +++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-data.h | 6 ++++ + src/data/grl-related-keys.c | 52 +++++++++++++++++++++++++++++ + src/data/grl-related-keys.h | 7 ++++ + 4 files changed, 144 insertions(+) + +commit a7cf2bd82c88d7f10213b05128e933afaf7b75d4 +Author: Juan A. Suarez Romero +Date: Tue Nov 18 18:49:56 2014 +0000 + + net: Check object before increasing refcount + + Check if object is non-NULL before increasing its reference count. + + Fixes e823b8fe63846a9c60ebd59a8bf07e9c602a8528. + + libs/net/grl-net-wc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 9621ecdf2326d60145a92c601922d305f8992544 +Author: Marc-André Lureau +Date: Mon Nov 17 12:03:24 2014 +0100 + + core: annotate ownership transfer of grl_registry_register_source() + + Do as the comment in the function says, "Take ownership of the source". + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f94a93937d1c56e82a14493fcceb3672dbf10362 +Author: Marc-André Lureau +Date: Mon Nov 17 12:00:40 2014 +0100 + + net: add GIR annotations for grl_net_wc_request_finish() + + Annotate out arguments and the memory ownership. + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + libs/net/grl-net-wc.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 49bf27d4deb8c1ed17995e7d9027875aebba04aa +Author: Marc-André Lureau +Date: Mon Nov 17 12:15:45 2014 +0100 + + core: annotate nullable error in callbacks + + Since those arguments are optional error given to callbacks, annotate + them as nullable. + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + src/grl-source.h | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +commit f37636f241b514fe323e9640ee1ff907222724e8 +Author: Marc-André Lureau +Date: Mon Nov 17 11:58:32 2014 +0100 + + core: remove wrong (type uint) annotations for errors + + For some reason, those annotations where added since daebdc455. + Today GIR seems to deal with callbacks errors fine, so let's remove it + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + src/grl-source.h | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 9ad556169669bf1c39f647ea24ea1f8b47a2242b +Author: Marc-André Lureau +Date: Mon Nov 17 11:53:33 2014 +0100 + + net: define C include for GIR + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + libs/net/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +commit 590aa8677de9ffdab6591d9a8615de281c91d2d3 +Author: Marc-André Lureau +Date: Mon Nov 17 11:52:50 2014 +0100 + + core: define C include for GIR + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + src/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +commit e823b8fe63846a9c60ebd59a8bf07e9c602a8528 +Author: Marc-André Lureau +Date: Sat Nov 15 19:35:10 2014 +0100 + + net: avoid request_async() crash on cancellable unref + + The caller may unref the cancellable, keep a reference on cancellable to + avoid potential crash. + + https://bugzilla.gnome.org/show_bug.cgi?id=740186 + + libs/net/grl-net-wc.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit d1350ee3afabc59cf5bd3cfc351146b608c39579 +Author: Marc-André Lureau +Date: Fri Nov 14 17:58:49 2014 +0100 + + Add missing GRL_OP_STORE to supported ops + + https://bugzilla.gnome.org/show_bug.cgi?id=740128 + + src/grl-source.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 5b865c87998a40ea3305af00eaa26fa458ac7ec3 +Author: Marc-André Lureau +Date: Fri Nov 14 12:45:03 2014 +0100 + + Fix compilation warning + + data/grl-related-keys.c: In function 'grl_related_keys_get_boolean': + data/grl-related-keys.c:474:419: warning: return makes integer from + pointer without a cast [enabled by default] + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + + https://bugzilla.gnome.org/show_bug.cgi?id=740113 + + src/data/grl-related-keys.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f44b68f5348e66cc9b80a7a71311fc5406eaf167 +Author: Adrião Morão +Date: Tue Oct 21 11:03:23 2014 +0200 + + grilo-test-ui: Changed URLs in order to use HTTPS + + Flickr changed its API to force TLS on requests against the API and using OAuth + + tools/grilo-test-ui/flickr-oauth.h | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit a2f3ef6db36bd959f67ae6195c31af30a4b24047 +Author: A S Alam +Date: Sun Sep 21 09:54:18 2014 -0500 + + update Punjabi Translation for 3.14 release + + po/pa.po | 4018 +++++++++++++++++++++++++++----------------------------------- + 1 file changed, 1717 insertions(+), 2301 deletions(-) + +commit afe4edfd8633dedaa9aa443566e0c0d3f2f24dd0 +Author: Anders Jonsson +Date: Sat Sep 13 11:13:17 2014 +0000 + + Updated Swedish translation + + po/sv.po | 64 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 32 insertions(+), 32 deletions(-) + +commit ae973eb04c5618ee2f668bda77e4426382cbf336 +Author: Alberto Garcia +Date: Tue Aug 26 14:16:54 2014 +0300 + + doc: Rename grl-inspect.1 to grl-inspect-0.2.1 + + Makefile.am | 2 +- + grl-inspect.1 => grl-inspect-0.2.1 | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 8fa8e53ff8673cc9a2ee3bcfb79340913bab3ab2 +Author: Alberto Garcia +Date: Tue Aug 26 14:14:37 2014 +0300 + + doc: Add manpage for grl-launch + + Makefile.am | 2 +- + grl-launch-0.2.1 | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 91 insertions(+), 1 deletion(-) + +commit 8ecf10716c9a4b2eeb9d58df0b507745992abaea +Author: Alberto Garcia +Date: Tue Aug 26 13:59:02 2014 +0300 + + doc: Add manpage for grilo-test-ui + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/Makefile.am | 2 ++ + tools/grilo-test-ui/grilo-test-ui-0.2.1 | 41 +++++++++++++++++++++++++++++++++ + 2 files changed, 43 insertions(+) + +commit 3aa0700dded6800cf9a538a8b492a5a9ba71be70 +Author: Juan A. Suarez Romero +Date: Sun Aug 24 15:47:10 2014 +0000 + + Post-release version bump to 0.2.12 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5b49eb5d5bf4cf0aae364945ff7b85a58fd657a0 +Author: Juan A. Suarez Romero +Date: Sun Aug 24 15:38:03 2014 +0000 + + Release 0.2.11 + + NEWS | 43 +++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 10 +++++----- + src/data/grl-media-audio.c | 4 ++++ + 3 files changed, 52 insertions(+), 5 deletions(-) + +commit 155fcf3bef62cd3ae98b5a35ab5d290d5a86e22b +Author: Victor Toso +Date: Mon Jul 7 01:01:17 2014 -0300 + + fix: vala bindings use tabs instead of spaces + + https://bugzilla.gnome.org/show_bug.cgi?id=732878 + + bindings/vala/grilo-0.2-custom.vala | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 56b575aaffbfa491da9d2aaff27391b0060404aa +Author: MarMav +Date: Wed Aug 13 12:01:09 2014 +0000 + + Updated Greek translation + + po/el.po | 36 ++++++++++++++++++------------------ + 1 file changed, 18 insertions(+), 18 deletions(-) + +commit 26ea24d9d31ca4069185d38b07ace35bc5afdb59 +Author: Juan A. Suarez Romero +Date: Tue Aug 5 09:04:08 2014 +0000 + + build: remove "INCLUDES" from Makefile.am + + Deprecated option. + + tools/grilo-inspect/Makefile.am | 3 +-- + tools/grilo-launch/Makefile.am | 3 +-- + tools/grilo-test-ui/Makefile.am | 5 ++--- + 3 files changed, 4 insertions(+), 7 deletions(-) + +commit a2d576dc306f3cb1a0fb6b383c62652f8d0d00e9 +Author: Juan A. Suarez Romero +Date: Tue Aug 5 08:35:25 2014 +0000 + + build: add "subdir-objects" option in configure.ac + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 543161a25b0809f74032627bec0e8d3d478405f9 +Author: Piotr Drąg +Date: Thu Jul 31 19:26:42 2014 +0200 + + doap: add + + grilo.doap | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 1f95cb5a2273cc0eea9af8cf6c1b45d897ee154b +Author: Juan A. Suarez Romero +Date: Wed Jul 30 19:56:14 2014 +0000 + + grl-inspect: Add media_from_uri + + Show if the source supports media_from_uri operation. + + tools/grilo-inspect/grl-inspect.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 9cbfb0a3f5eb88ed99a345cab3a06e11673031a6 +Author: Juan A. Suarez Romero +Date: Wed Jul 30 19:13:44 2014 +0000 + + core: Append source ID in media_from_uri operation + + If the source resolving the URI does not add the source-id, let's do it in the + core instead. + + We always want the media coming with the source-id. + + src/grl-source.c | 5 +++++ + 1 file changed, 5 insertions(+) + +commit aba1bb4fcd3fd3570de0f7cad630a5fab6ae463d +Author: Juan A. Suarez Romero +Date: Wed Jul 30 19:10:52 2014 +0000 + + grl-launch: Add media_from_uri operation + + Given an URI and a source, it builds the GrlMedia that contains that URI in the source. + + tools/grilo-launch/grl-launch.c | 52 ++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 51 insertions(+), 1 deletion(-) + +commit 915d5bd898a0833d6fdbe151e83d03f9c6184cfa +Author: Juan A. Suarez Romero +Date: Mon Jul 28 09:41:41 2014 +0000 + + grl-launch: Add test_media_from_uri operation + + tools/grilo-launch/grl-launch.c | 50 ++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 49 insertions(+), 1 deletion(-) + +commit 1cf4129c8d667d65e0493986b0286f1c5c4f36d7 +Author: Olav Vitters +Date: Wed Jul 30 20:17:04 2014 +0200 + + doap category core + + grilo.doap | 1 + + 1 file changed, 1 insertion(+) + +commit ce2f0d38b73b685ad9c6ab9635a2c625335fabe1 +Author: Bastien Nocera +Date: Thu Jul 17 11:04:37 2014 +0200 + + core: Make it possible to init() after a deinit() + + Reinitialise grl_initialized when calling grl_deinit(). This makes + it possible to reload plugins again after they've been disabled. + + Spotted by vrishab + + https://bugzilla.gnome.org/show_bug.cgi?id=733285 + + src/grilo.c | 1 + + 1 file changed, 1 insertion(+) + +commit a1f85561a662a70924b41d4b82eb499ccd7f9b5b +Author: Bastien Nocera +Date: Wed Jul 16 17:24:15 2014 +0200 + + net: Fix double-free using the Jamendo plugin + + The item in the queue is already freed when the source is removed, + through a destroy notify, so no need to do it twice. + + Ensure we cancel the cancellable though, but do not unref it as we do + not own it. + + https://bugzilla.gnome.org/show_bug.cgi?id=733232 + + libs/net/grl-net-wc.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 665081a94589f18e60794936565b1fa320d00aaf +Author: Muhammet Kara +Date: Thu Jul 10 17:22:39 2014 +0000 + + Updated Turkish translation + + po/tr.po | 22 +++++++++++----------- + 1 file changed, 11 insertions(+), 11 deletions(-) + +commit 06e12432faa3b3a514635f5bb045b5286ecb9a3b +Author: Victor Toso +Date: Mon Jun 23 02:34:24 2014 -0300 + + test-ui: Include api-key for The TVDB source + + https://bugzilla.gnome.org/show_bug.cgi?id=672933 + + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 1e35ceba8eee1f908a69fbe8442a0c22066c447a +Author: Juan A. Suarez Romero +Date: Tue Jun 24 18:29:35 2014 +0200 + + travis: add zlib1g-dev dependency + + .travis.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit bf4763469a6dd9c19b8cd3710cb8e0dfb8125ea6 +Author: Juan A. Suarez Romero +Date: Tue Jun 24 16:27:40 2014 +0200 + + travis: Update to Ubuntu Trusty + + We require quite new dependencies that are not easy to back-port to + Ubuntu Precise, the default version that Travis CI uses. + + .travis.yml | 1 + + 1 file changed, 1 insertion(+) + +commit 4111b239351c50c510f7a388fc82f6963c0e1f52 +Author: Muhammet Kara +Date: Tue Jun 24 08:51:33 2014 +0000 + + Added Turkish translation + + po/LINGUAS | 1 + + po/tr.po | 190 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 191 insertions(+) + +commit ec35e862057a1aa686be4d6addf91ae4b5cc3568 +Author: Juan A. Suarez Romero +Date: Thu Jun 5 17:49:42 2014 +0000 + + core: add GRL_METADATA_KEY_MB_ALBUM_ID + + MusicBrainz album identifier. + + https://bugzilla.gnome.org/show_bug.cgi?id=731282 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + doc/grilo/grilo-sections.txt | 3 +++ + src/data/grl-media-audio.c | 27 +++++++++++++++++++++++++++ + src/data/grl-media-audio.h | 4 ++++ + src/grl-metadata-key.c | 9 +++++++++ + src/grl-metadata-key.h | 1 + + 6 files changed, 46 insertions(+) + +commit 8317937ec3032ea983d5699ec2ce7aa71375d259 +Author: Simon Wenner +Date: Thu May 22 00:09:50 2014 +0200 + + bindings: add Vala binding for GRL_METADATA_KEY_INVALID + + https://bugzilla.gnome.org/show_bug.cgi?id=730548 + + bindings/vala/grilo-0.2-custom.vala | 2 ++ + 1 file changed, 2 insertions(+) + +commit f8e6a3d094db069e62e812253fadefc2a33ea13f +Author: Andres Gomez +Date: Wed Jun 4 16:46:23 2014 +0300 + + core: Stupi typo in comments + + src/data/grl-media.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 4c22ed430d8a94e50bb70199216c13a301689127 +Author: Bastien Nocera +Date: Fri May 30 16:45:08 2014 +0200 + + core: Fix typo in remove vfunc declaration + + src/grl-source.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 37e40deab108bffc58c80627ff9f76ef2b73b7cb +Author: Bastien Nocera +Date: Tue May 13 00:51:26 2014 +0200 + + test-ui: Don't remove items from the view when remove fails + + https://bugzilla.gnome.org/show_bug.cgi?id=724308 + + tools/grilo-test-ui/main.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +commit 4e576eec6bc8c1d8a5a366ca371abf3989a116f8 +Author: Bastien Nocera +Date: Mon May 12 13:11:38 2014 +0200 + + core: Fix reference to renamed functions + + GrlMetadataSource doesn't exist any more. + + https://bugzilla.gnome.org/show_bug.cgi?id=730003 + + src/grl-caps.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 1a4261204e293b9832f048dd9b4df24ba8390bfb +Author: Bastien Nocera +Date: Wed May 7 18:10:45 2014 +0200 + + net: Do guard check after variable declaration + + C89. + + libs/net/grl-net-wc.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 373058acdc05ebf33cc35ea8c0adaecf8fae6db0 +Author: Juan A. Suarez Romero +Date: Thu May 1 18:09:24 2014 +0000 + + grl-launch: Add monitor operation + + Allows to monitor changes in sources. + + tools/grilo-launch/grl-launch.c | 97 ++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 95 insertions(+), 2 deletions(-) + +commit b4c19cc049108ece063bc4a49c33ac460d3df71d +Author: Juan A. Suarez Romero +Date: Mon Apr 28 06:41:25 2014 +0000 + + grl-inspect: Print source tags + + tools/grilo-inspect/grl-inspect.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +commit 5c3f284c42ad2cc276de6486ddc772befade6dba +Author: Juan A. Suarez Romero +Date: Thu Apr 24 18:38:57 2014 +0200 + + doc: Remove setup-plugins-env.sh reference + + We are no longer supporting this script, so it must be removed from the + documentation. + + README | 12 ++--------- + doc/grilo/environment-setup.xml | 45 ----------------------------------------- + 2 files changed, 2 insertions(+), 55 deletions(-) + +commit cbcff20724134e95272a4f59fd1618eeda231703 +Merge: e66054e 3517b54 +Author: Juan A. Suarez +Date: Thu Apr 24 18:26:46 2014 +0200 + + Merge pull request #2 from flasheater/patch-2 + + Update README + +commit e66054ecdc810c157a35eae4915361aa0b147aa8 +Author: Xavier Claessens +Date: Wed Apr 23 15:38:53 2014 -0400 + + grl_pls_browse: Document that it can take NULL filter func + + https://bugzilla.gnome.org/show_bug.cgi?id=728812 + + libs/pls/grl-pls.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 0a33601db466b167a8d732e00b172eeea53a5f9e +Author: Xavier Claessens +Date: Wed Apr 23 15:34:29 2014 -0400 + + GrlPlsFilterFunc: Document how the refcounting works + + https://bugzilla.gnome.org/show_bug.cgi?id=728812 + + libs/pls/grl-pls.h | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +commit 7757b3283c3020197bbbe83c362b2abf04b0c483 +Author: Xavier Claessens +Date: Wed Apr 23 15:19:19 2014 -0400 + + Doc: fix some unused/undeclared symbols + + https://bugzilla.gnome.org/show_bug.cgi?id=728812 + + doc/grilo/grilo-sections.txt | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +commit 3517b5410e3a43d4f16bff576aab67b31dd2dd12 +Author: Oliver Krylow +Date: Sat Apr 19 20:39:55 2014 +0200 + + Update README + + fixed typo + + README | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 2c5e804d8392d3f5e4458570b4229e8c50293ba2 +Author: Bastien Nocera +Date: Fri Mar 28 18:07:03 2014 +0100 + + net: Avoid creating multiple caches + + Call grl_net_wc_set_cache(wc, TRUE) 4 times, your SoupSession + will end up with 4 caches. Not what we want. + + https://bugzilla.gnome.org/show_bug.cgi?id=724907 + + libs/net/grl-net-wc.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit f9548f67028a9b2d9cb0ba28684f5a15181fe74a +Author: Juan A. Suarez Romero +Date: Sun Apr 6 17:55:48 2014 +0000 + + grl-launch: Do not leak keys + + tools/grilo-launch/grl-launch.c | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +commit 2f24e6271f5e92e66386f41d2ea862bee1e195d8 +Author: Piotr Drąg +Date: Fri Apr 4 20:30:09 2014 +0200 + + doap: update URLs + + grilo.doap | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 73425c5582ea3284a64edb55910a9c7a5e4a3f44 +Author: Inaki Larranaga Murgoitio +Date: Fri Apr 4 17:43:45 2014 +0200 + + Added Basque language\nAdded 'eu' (Basque) to LINGUAS + + po/LINGUAS | 1 + + po/eu.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit 45ef80ea31ce5461df34a7d16a75b03a13318afe +Author: Juan A. Suarez Romero +Date: Fri Mar 28 10:29:39 2014 +0100 + + grl-launch: Add tool to use Grilo from command-line + + Inspired by gst-launch, this tool allows to use Grilo from command line, + invoking most of commands and features in a simple way. + + Results can be saved to filename and loaded later with a spreadsheet, as + results are stored in CSV format. + grl-launch: Add tool to use Grilo from command-line + + Inspired by gst-launch, this tool allows to use Grilo from command line, + invoking most of commands and features in a simple way. + + Results can be saved to filename and loaded later with a spreadsheet, as + results are stored in CSV format. + + https://bugzilla.gnome.org/show_bug.cgi?id=727223 + + configure.ac | 1 + + tools/Makefile.am | 4 +- + tools/grilo-launch/Makefile.am | 25 ++ + tools/grilo-launch/grl-launch.c | 678 ++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 706 insertions(+), 2 deletions(-) + +commit 74fe8c56d191178c4b40c14b568edd671e625f7a +Author: Juan A. Suarez Romero +Date: Sat Mar 29 22:59:28 2014 +0100 + + core: Fix comment + + Missing some asterisks. + + src/grl-caps.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +commit 58a61dca99837b3c0a46e93e6d8203da63ef5e45 +Author: Juan A. Suarez Romero +Date: Sat Mar 29 21:51:41 2014 +0000 + + build: do not use bash to invoke gnome-autogen.sh + + This allow to build in a different directory. + + autogen.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8bf3a6266cc29555ef737bfe2b84287d51473307 +Author: Bastien Nocera +Date: Tue Jan 28 01:49:39 2014 +0100 + + pls: Use new "title-from-filename" property + + https://bugzilla.gnome.org/show_bug.cgi?id=706877 + + libs/pls/grl-pls.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit f0371195e11a7e7025e1010a7754bbb69d00ec26 +Author: Bastien Nocera +Date: Tue Jan 28 01:41:54 2014 +0100 + + core: Add "title-from-filename" property + + When the title is guessed from the filename, so that we know to + overwrite it when resolving a new title. + + https://bugzilla.gnome.org/show_bug.cgi?id=706877 + + src/grl-metadata-key.c | 12 ++++++++++++ + src/grl-metadata-key.h | 1 + + 2 files changed, 13 insertions(+) + +commit 8fb93031f521258073a6037f131bc89f1b7370d1 +Author: Bastien Nocera +Date: Tue Mar 25 10:19:50 2014 +0100 + + core: Don't try to store metadata if already saved + + When storing an item, don't try to call store_metadata() if + there are no keys left to write. + + This fixes warnings in grilo-test-ui when trying to create a new + bookmark as all the possible metadata we'd add will already + be handled. + + https://bugzilla.gnome.org/show_bug.cgi?id=673912 + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 117eed6df6571ac31071a04aa63198fcf1693902 +Author: Bastien Nocera +Date: Wed Mar 19 12:17:01 2014 +0100 + + core: Coding style fix + + https://bugzilla.gnome.org/show_bug.cgi?id=726698 + + src/data/grl-media.c | 36 ++++++++++++++++++------------------ + 1 file changed, 18 insertions(+), 18 deletions(-) + +commit 7429149f96593318d67a81b5c91b162e7add4e82 +Author: Bastien Nocera +Date: Wed Mar 19 12:15:39 2014 +0100 + + core: More guards in public functions + + And avoid C99 variable declarations. + + https://bugzilla.gnome.org/show_bug.cgi?id=726698 + + src/data/grl-config.c | 39 +++++++++++++++++++--- + src/data/grl-media-audio.c | 45 +++++++++++++++++++++---- + src/data/grl-media-box.c | 6 ++-- + src/data/grl-media-image.c | 20 ++++++++++-- + src/data/grl-media-video.c | 38 +++++++++++++++++---- + src/data/grl-media.c | 80 +++++++++++++++++++++++++++++++++++++-------- + src/data/grl-related-keys.c | 46 ++++++++++++++++++++++---- + 7 files changed, 231 insertions(+), 43 deletions(-) + +commit e9ed0903936bc56b3d54f3453ffa432f125e1b0f +Author: Bastien Nocera +Date: Wed Mar 19 11:42:50 2014 +0100 + + core: Remove unnecessary dispose functions + + They were just chaining up. + + https://bugzilla.gnome.org/show_bug.cgi?id=726698 + + src/data/grl-config.c | 8 -------- + src/data/grl-media-audio.c | 8 -------- + src/data/grl-media-box.c | 8 -------- + src/data/grl-media-image.c | 8 -------- + src/data/grl-media-video.c | 8 -------- + src/data/grl-media.c | 8 -------- + 6 files changed, 48 deletions(-) + +commit 0f2dd0486d9ef589dfd73a5ff41b7479742cc695 +Author: Juan A. Suarez Romero +Date: Tue Mar 25 22:32:51 2014 +0000 + + build: Generate AUTHORS automatically on release + + Instead of generating the AUTHORS file manually, generate it automatically + based on the git commits. + + The file is split in two sections: current contributors (authors that has some + line in the current code) and past contributors (those that committed code in + the past but that nowadays has been replaced by code of new authors). + + Because everybody is important for this project. + + AUTHORS | 17 ----------------- + Makefile.am | 12 +----------- + release.mk | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 49 insertions(+), 28 deletions(-) + +commit 6882196a8ce81b7b8000cb39792c29ce660a377c +Author: Мирослав Николић +Date: Sun Mar 23 11:27:25 2014 +0100 + + Updated Serbian translation + + po/sr.po | 685 +++++++++++++++------------------------------------------ + po/sr@latin.po | 685 +++++++++++++++------------------------------------------ + 2 files changed, 354 insertions(+), 1016 deletions(-) + +commit dea67a0ede4954497e39ac7da64e5706c6a819f9 +Author: Мирослав Николић +Date: Fri Mar 21 05:32:47 2014 +0100 + + Updated Serbian translation + + po/sr.po | 652 ++++++++++++++++++++++++++++++++++++++++++++++----------- + po/sr@latin.po | 652 ++++++++++++++++++++++++++++++++++++++++++++++----------- + 2 files changed, 1060 insertions(+), 244 deletions(-) + +commit cb18112652f16494588a3b89127ec383dbc9c4f1 +Author: Juan A. Suarez Romero +Date: Thu Mar 20 18:37:42 2014 +0000 + + Fix 00d2cd23ff440b759d724fe401c2f8065eb8a4c1 + + Missed to include a file + + tools/Makefile.am | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +commit 00d2cd23ff440b759d724fe401c2f8065eb8a4c1 +Author: Juan A. Suarez Romero +Date: Thu Mar 20 18:30:54 2014 +0000 + + tools: remove useless files + + These files where mostly for testing bindings, but they are unmaintained and are not actually tools. + + So just remove them + + configure.ac | 1 - + tools/js/testGrilo.js | 68 ---- + tools/python/grilo-test-ui.py | 853 ------------------------------------------ + tools/vala/Makefile.am | 43 --- + tools/vala/grilo-test.vala | 95 ----- + 5 files changed, 1060 deletions(-) + +commit 8f6f5ac953942b9bef58294f882041eb8c075e0b +Author: Juan A. Suarez Romero +Date: Wed Mar 19 12:08:01 2014 +0000 + + Post-release version bump to 0.2.11 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d88e91c9abc801266f3a5a06b3d9689307f6d9ba +Author: Juan A. Suarez Romero +Date: Wed Mar 19 12:04:31 2014 +0000 + + Release 0.2.10 + + NEWS | 29 +++++++++++++++++++++++++++++ + configure.ac | 6 +++--- + src/data/grl-media.c | 4 ++++ + src/grl-registry.c | 2 ++ + 4 files changed, 38 insertions(+), 3 deletions(-) + +commit b88a996231a70334f08bef1153d9cf88ab54f48e +Author: Bastien Nocera +Date: Tue Mar 18 18:08:34 2014 +0100 + + pls: Set file size attribute + + https://bugzilla.gnome.org/show_bug.cgi?id=629002 + + libs/pls/grl-pls.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 09d9b0a88286a5bf29414187ebcf636474d83c75 +Author: Juan A. Suarez Romero +Date: Mon Mar 3 00:03:14 2014 +0000 + + core: Add metadata key for size + + Add GRL_METADATA_KEY_SIZE, and proper functions, that get/set the size in media + size in bytes. + + https://bugzilla.gnome.org/show_bug.cgi?id=629002 + + doc/grilo/grilo-sections.txt | 2 ++ + src/data/grl-media.c | 28 ++++++++++++++++++++++++++++ + src/data/grl-media.h | 4 ++++ + src/grl-metadata-key.c | 13 +++++++++++++ + src/grl-metadata-key.h | 1 + + 5 files changed, 48 insertions(+) + +commit 21e6fb514884251d5dfb042b56b78e687d05d5a0 +Author: Bastien Nocera +Date: Fri Mar 14 14:01:39 2014 +0100 + + core: Add guards for public API + + Add guards for all the grl_data_* public API functions. + + https://bugzilla.gnome.org/show_bug.cgi?id=726340 + + src/data/grl-data.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 73 insertions(+), 6 deletions(-) + +commit 1d806abd6310e013035eb98347df700d93b11dd6 +Author: Ryan Lortie +Date: Wed Mar 12 15:35:03 2014 -0400 + + configure: don't hardcode lib64 + + If the user wants libraries installed in a directory called lib64 then + they will specify this via the --libdir option. + + https://bugzilla.gnome.org/show_bug.cgi?id=726197 + + configure.ac | 11 ----------- + 1 file changed, 11 deletions(-) + +commit 8f82675b221a15287e12546bb2fc8cc08f67c618 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 21:54:21 2014 +0000 + + core: Rename variable + + src/grl-source.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 90253afd0e30bc1e33a69c6cc6c89b28461dd04c +Author: Juan A. Suarez Romero +Date: Sun Mar 9 21:52:18 2014 +0000 + + doc: Update grl-inspect man page + + Add documentation about inspecting metadata keys. + + grl-inspect.1 | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +commit 4ce8e5056180a54c027e88b4c7ed9b11038aa029 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 19:32:02 2014 +0000 + + test-ui: Show new registered metadata keys. + + tools/grilo-test-ui/main.c | 20 ++++++++++++++++++++ + 1 file changed, 20 insertions(+) + +commit f2a3ad3cadffb35833dd8ab00280aaa62b0c2110 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 19:31:21 2014 +0000 + + core: Add "metadata-key-added" signal + + This signal is emitted when a source registers a new custom metadata key. + + src/grl-registry.c | 36 ++++++++++++++++++++++++++++++++---- + 1 file changed, 32 insertions(+), 4 deletions(-) + +commit 2c331dfe66e79459ca85a8fd8c888edbb9e30c45 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 17:29:44 2014 +0000 + + core: Pull plugin leak + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1c3bd7f7d76f13c43f7d66d2836adac6f88cabd0 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 16:11:33 2014 +0000 + + core: Use a hashtable to store metadatakeys + + Do not use a GParamSpecPool for it, as this class does not have a way to free + it. + + Instead, use a GHashTable. + + src/grl-metadata-key.c | 908 ++++++++++++++++++++++++------------------------ + src/grl-registry-priv.h | 8 +- + src/grl-registry.c | 106 +++--- + 3 files changed, 517 insertions(+), 505 deletions(-) + +commit 90aa982ee7a75da374424064d3ffe5552e3e3435 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 00:36:49 2014 +0000 + + core: Free tags + + src/grl-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit 0c3913e2a01f8949c380dc3c5eb86c73020410d8 +Author: Juan A. Suarez Romero +Date: Sun Mar 9 00:03:32 2014 +0000 + + core: configurations are stored in a list + + When freeing the list of configurations, do not unref directly because they are + inside a list. Use g_list_free_full() to do the job. + + src/grl-registry.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +commit 806a8598c34d5b408eeebd3b699d50a03bd5c105 +Author: Juan A. Suarez Romero +Date: Thu Mar 6 17:28:08 2014 +0000 + + core: Use g_clear_pointer/object when possible + + Reduces the number of lines and makes the code more readable. + + configure.ac | 2 +- + libs/net/grl-net-mock.c | 37 ++++++++------------------- + libs/net/grl-net-wc.c | 10 +++----- + libs/pls/grl-pls.c | 32 ++++++----------------- + src/grl-caps.c | 8 ++---- + src/grl-plugin.c | 9 +++---- + src/grl-range-value.c | 9 ++----- + src/grl-registry.c | 31 ++++++----------------- + src/grl-source.c | 13 +++------- + tools/grilo-test-ui/main.c | 63 ++++++++++++---------------------------------- + 10 files changed, 58 insertions(+), 156 deletions(-) + +commit 0d380b7e10b84740a54ec108df61fc4c62b43e0f +Author: Bastien Nocera +Date: Fri Feb 28 21:22:32 2014 +0100 + + core: Add names to all the timeouts and idles + + For debugging purposes. + + https://bugzilla.gnome.org/show_bug.cgi?id=725419 + + libs/net/grl-net-wc.c | 1 + + libs/pls/grl-pls.c | 5 +- + src/grl-multiple.c | 8 ++- + src/grl-source.c | 151 ++++++++++++++++++++++++++++++-------------------- + 4 files changed, 101 insertions(+), 64 deletions(-) + +commit 5520b4e219d9a9e1dd66aefcd27b2bda2d040a8e +Author: Juan A. Suarez Romero +Date: Sun Mar 2 01:24:03 2014 +0000 + + core: Free registry resources before unreffing it + + We can't unref the registry to finalize all the sources and plugins, because + they can try to access the registry again in their finalize method. + + This commit first finalizes the sources, plugins, and other resources, and at + the end it unrefs the registry. + + https://bugzilla.gnome.org/show_bug.cgi?id=724660 + + src/grilo.c | 2 +- + src/grl-registry-priv.h | 2 + + src/grl-registry.c | 141 ++++++++++++++++++++++++------------------------ + 3 files changed, 72 insertions(+), 73 deletions(-) + +commit 30823a258d7340436bf0c6f79f77cc2947d9086c +Author: Marcus Lundblad +Date: Fri Feb 28 21:17:16 2014 +0000 + + Added Swedish translation + + po/LINGUAS | 1 + + po/sv.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit f6b7305afcf1264f90e51004ea0eda95d4413089 +Author: Juan A. Suarez Romero +Date: Fri Feb 28 00:23:35 2014 +0000 + + build: Detect Vala presence + + Build vala bindings if vala is present. + + https://bugzilla.gnome.org/show_bug.cgi?id=724648 + + configure.ac | 51 +++++++++++++++++++++++++++++++-------------------- + 1 file changed, 31 insertions(+), 20 deletions(-) + +commit 171211cfc75d241b0208308c198f0495e80f3f80 +Author: Bastien Nocera +Date: Fri Feb 21 12:25:28 2014 +0100 + + core: Add documentation for source-tags + + Explain usage and commonly used tags. + + https://bugzilla.gnome.org/show_bug.cgi?id=724019 + + src/grl-source.c | 42 ++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 42 insertions(+) + +commit 636ac50f093c11afbc68a0158fe8baaab363085b +Author: Bastien Nocera +Date: Tue Feb 25 14:37:13 2014 +0100 + + core: Fix gtk-doc for source-tags + + They were referred to as "tags" in some places, and "source-tags" + in others. + + src/grl-source.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +commit 790f3508d5f805577f4d9187ab5bf6e89262d4b5 +Author: Bastien Nocera +Date: Sun Feb 23 19:02:02 2014 +0100 + + pls: Fix build with grilo never installed + + This re-applies the fix from: + https://git.gnome.org/browse/grilo/commit/?id=3f66bb29a2d0f81479a435c1fabc80c08c4961be + + Which got broken by the wrong de-duplicating done in + 5f88b535800d1105439641795ddd2e07fd113744 + + https://bugzilla.gnome.org/show_bug.cgi?id=724871 + + libs/pls/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit bd2a3875e3460e8a93ba30a9c7841650669a8c3f +Author: Bastien Nocera +Date: Fri Feb 21 12:30:26 2014 +0100 + + core: Fix API documentation typo + + ../../src/data/grl-data.c:389: warning: Parameter description + for grl_data_get_boolean::key is missing in source code comment block. + + https://bugzilla.gnome.org/show_bug.cgi?id=724871 + + src/data/grl-data.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5f88b535800d1105439641795ddd2e07fd113744 +Author: Bastien Nocera +Date: Fri Feb 21 12:24:59 2014 +0100 + + pls: Fix redefinition of compiler args + + https://bugzilla.gnome.org/show_bug.cgi?id=724871 + + libs/pls/Makefile.am | 1 - + 1 file changed, 1 deletion(-) + +commit 71def91bc93da36d1abf7332e899b5fd88dd1cf1 +Author: Juan A. Suarez Romero +Date: Fri Feb 21 00:35:42 2014 +0100 + + travis: Update package dependencies + + .travis.yml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 0defc30bd6e432cfb04c8956fef13d035d9c2178 +Author: Bastien Nocera +Date: Mon Feb 10 12:39:44 2014 +0100 + + test-ui: Show "source-tags" property + + https://bugzilla.gnome.org/show_bug.cgi?id=724019 + + tools/grilo-test-ui/main.c | 28 ++++++++++++++++++++++++++++ + 1 file changed, 28 insertions(+) + +commit 5fd88084afe8a7469fc65abe1eff3b0a7ac5488f +Author: Bastien Nocera +Date: Mon Feb 10 12:37:40 2014 +0100 + + core: Add "source-tags" property + + So that more information can be conveyed about the source's content + to the front-end applications, such as: + - the genre of the media (tv, cinema, radio, music, etc.) + - the countries the media is relevant to + - whether the media served is from the same machine, or from + the local network + + https://bugzilla.gnome.org/show_bug.cgi?id=724019 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-source.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- + src/grl-source.h | 2 ++ + 2 files changed, 60 insertions(+), 1 deletion(-) + +commit 4f68bcff087ad0a073a86fbbeaec88a1dae2d4f3 +Author: Bastien Nocera +Date: Tue Feb 18 16:46:21 2014 +0100 + + test-ui: Fix crasher on exit + + The test UI was crashing because we left closing through the + "Close" button destroy the window, which left all the pointers + dangling. + + https://bugzilla.gnome.org/show_bug.cgi?id=724658 + + tools/grilo-test-ui/main.c | 14 ++++++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) + +commit 4e38032dc0bdc62d868ebdb8c2d08983b5865760 +Author: Juan A. Suarez Romero +Date: Tue Feb 18 14:18:14 2014 +0000 + + Post-release version bump to 0.2.10 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c3add1a606383bd0e583d48cf85ad5c714ff1639 +Author: Juan A. Suarez Romero +Date: Tue Feb 18 14:15:33 2014 +0000 + + Release 0.2.9 + + NEWS | 14 ++++++++++++++ + configure.ac | 4 ++-- + 2 files changed, 16 insertions(+), 2 deletions(-) + +commit 6f96c5f2a3cf0195c6c2357d5a0dbd2ce2971dde +Author: Juan A. Suarez Romero +Date: Tue Feb 18 14:07:31 2014 +0000 + + build: drop libvala requirement + + Only valac, vapigen and vala-gen-introspect are required. + + https://bugzilla.gnome.org/show_bug.cgi?id=724430 + + configure.ac | 21 +-------------------- + 1 file changed, 1 insertion(+), 20 deletions(-) + +commit 121308824b96d42960a96a965e9bf6a0be096a94 +Author: Bastien Nocera +Date: Mon Feb 17 14:30:06 2014 +0100 + + pls: Return an error when the entry media is of the wrong type + + Ensure that the type of the returned media is GrlMediaBox when + the detected type is GrlMediaBox. + + https://bugzilla.gnome.org/show_bug.cgi?id=724540 + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 2 +- + libs/pls/grl-pls.c | 10 ++++++++++ + 2 files changed, 11 insertions(+), 1 deletion(-) + +commit d03820f00eeff74649a506cb7c20721a92b16da8 +Author: Bastien Nocera +Date: Tue Feb 18 12:06:37 2014 +0000 + + pls: C89 compilation fixes + + Move declaration to the top of the block. + + https://bugzilla.gnome.org/show_bug.cgi?id=724540 + + libs/pls/grl-pls.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +commit d6643ecdc15f47b7dedd8c1816f40c1b3326a192 +Author: Bastien Nocera +Date: Tue Feb 18 11:15:38 2014 +0100 + + net: Fix introspection scanner warning + + https://bugzilla.gnome.org/show_bug.cgi?id=724620 + + libs/net/grl-net-wc.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +commit 968a7ea8f8ae2a866738cc4b507b44eae772bffe +Author: Bastien Nocera +Date: Tue Feb 18 11:10:47 2014 +0100 + + core: Fix introspection scanner warnings + + https://bugzilla.gnome.org/show_bug.cgi?id=724620 + + src/grl-operation-options.c | 4 +--- + src/grl-operation.c | 2 +- + src/grl-plugin.c | 2 +- + src/grl-range-value.c | 4 ++-- + src/grl-value-helper.c | 17 +++++++++++++++-- + 5 files changed, 20 insertions(+), 9 deletions(-) + +commit 3f66bb29a2d0f81479a435c1fabc80c08c4961be +Author: Colin Walters +Date: Fri Feb 14 11:55:09 2014 -0500 + + build: Avoid self-dependeny in pls + + Since GrlPls depends on Grl, we need to use --include-uninstalled + to find the built Grl.gir inside $(top_builddir)/src, instead + of requiring a previous version in the buildroot. + + This was caught by Continuous. + + libs/pls/Makefile.am | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit ef537bd6bb26e036ae02b0461f1cf43e8939abc0 +Author: Juan A. Suarez Romero +Date: Tue Feb 11 00:26:47 2014 +0100 + + Post-release version bump to 0.2.9 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 43501848d21efe499fa7f699e461110458d04910 +Author: Juan A. Suarez Romero +Date: Mon Feb 10 21:33:16 2014 +0000 + + Release 0.2.8 + + AUTHORS | 2 ++ + NEWS | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 6 +++--- + libs/pls/grl-pls.c | 6 ++++++ + src/grilo.c | 2 ++ + src/grl-registry.c | 2 ++ + src/grl-source.c | 2 ++ + 7 files changed, 78 insertions(+), 3 deletions(-) + +commit f09c959b620cdcb1cdd4e52fdadb9ba29a8b46ab +Author: Juan A. Suarez Romero +Date: Mon Feb 10 21:32:02 2014 +0000 + + build: use all options in distcheck + + Activate all the availables in distcheck to verify everything will build + correctly. + + Makefile.am | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit 9006ae5521ea4c7194cead95699dec8b25e0bcde +Author: Bastien Nocera +Date: Mon Feb 10 12:37:04 2014 +0100 + + core: Fix "Since" in GrlSource::source-icon docs + + https://bugzilla.gnome.org/show_bug.cgi?id=724018 + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit dc8a52a98801ebfe04d37a1bb1f1ce7362927872 +Author: Bastien Nocera +Date: Mon Feb 10 01:12:44 2014 +0100 + + doc: Fix parameter name in API docs + + https://bugzilla.gnome.org/show_bug.cgi?id=723989 + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a6046475d3972d636c21bf4a82f3f39553aaa790 +Author: Bastien Nocera +Date: Mon Feb 10 01:12:07 2014 +0100 + + build: Add missing introspection dependency on gio + + GIcon is defined in Gio-2.0, so add it to the Gir dependencies. + + https://bugzilla.gnome.org/show_bug.cgi?id=723989 + + src/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5e01818be198ea5aff7fcd4f2b8f93c82c5734c0 +Author: Kjartan Maraas +Date: Mon Feb 10 16:22:51 2014 +0100 + + Updated Norwegian bokmål translation + + po/nb.po | 66 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 33 insertions(+), 33 deletions(-) + +commit 777d4452ee85bfe60b2318e19ec1e9d15b1c5866 +Author: Colin Walters +Date: Mon Feb 10 00:14:14 2014 -0500 + + build: Honor BUILD_GRILO_PLS conditional for example code + + This was breaking the Continuous build. + + examples/Makefile.am | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit e55699b8574fdf64795df862c7536f1a012fc47d +Author: Bastien Nocera +Date: Thu Dec 19 19:10:11 2013 +0100 + + ui-test: Handle playlists in the "/" filesystem + + https://bugzilla.gnome.org/show_bug.cgi?id=695303 + + tools/grilo-test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit a60fc34bc8c9bbbb92d36782a9834a5f152055b4 +Author: Juan A. Suarez Romero +Date: Sun Feb 9 14:02:55 2014 +0000 + + pls: Include src/ in introspection + + Needed to find Grl-0.2.gir + + https://bugzilla.gnome.org/show_bug.cgi?id=695303 + + libs/pls/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 50e231075122405bad866191c829470c2f100467 +Author: Mateu Batle +Date: Thu Sep 12 19:01:35 2013 +0200 + + pls: Add new Grilo Playlist lib + + This utility library allows both plugins and applications to read + playlists as if they were containers, using an API similar to the + Sources. + + With additional fixes from Juan A. Suarez Romero and + Bastien Nocera. + + https://bugzilla.gnome.org/show_bug.cgi?id=695303 + + Signed-off-by: Bastien Nocera + Signed-off-by: Juan A. Suarez Romero + + Makefile.am | 4 + + configure.ac | 37 ++ + doc/grilo/grilo-docs.sgml | 5 + + doc/grilo/grilo-sections.txt | 10 + + examples/Makefile.am | 5 +- + examples/browsing-pls.c | 246 ++++++++ + grilo-pls-0.2.pc.in | 15 + + grilo-pls-uninstalled.pc.in | 15 + + libs/Makefile.am | 6 +- + libs/pls/Makefile.am | 70 +++ + libs/pls/grl-pls.c | 1372 ++++++++++++++++++++++++++++++++++++++++++ + libs/pls/grl-pls.h | 79 +++ + po/POTFILES.in | 1 + + 13 files changed, 1863 insertions(+), 2 deletions(-) + +commit acf670c92c908654e1b3cd3c437300b4621d02f8 +Author: Juan A. Suarez Romero +Date: Fri Feb 7 21:30:25 2014 +0000 + + test-ui: Call grl_deinit () + + https://bugzilla.gnome.org/show_bug.cgi?id=710185 + + tools/grilo-test-ui/main.c | 22 +++++++++------------- + 1 file changed, 9 insertions(+), 13 deletions(-) + +commit 2975d4788d503b1105151c51650b68c327f3f7af +Author: Juan A. Suarez Romero +Date: Fri Feb 7 21:25:00 2014 +0000 + + grl-inspect: Call grl_deinit() + + https://bugzilla.gnome.org/show_bug.cgi?id=710185 + + tools/grilo-inspect/grl-inspect.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit ee153974cc762ac7baacb46869882a64a3e5c848 +Author: Juan A. Suarez Romero +Date: Fri Feb 7 21:01:09 2014 +0000 + + examples: call grl_deinit() + + https://bugzilla.gnome.org/show_bug.cgi?id=710185 + + examples/browsing.c | 1 + + examples/configuring-plugins.c | 2 ++ + examples/efficient-metadata-resolution.c | 1 + + examples/loading-plugins.c | 2 ++ + examples/multivalues.c | 1 + + examples/searching.c | 1 + + 6 files changed, 8 insertions(+) + +commit 27fa2aa1f9201d4f0723afe43e90cd996876c999 +Author: Juan A. Suarez Romero +Date: Fri Feb 7 20:47:32 2014 +0000 + + core: Add grl_deinit() function + + Quitting without cleanly unregistering sources and plugins can leave unfreed + resources in the system. + + This happens specially with the sources that open or create temporal files, but + as they are not cleanly unreffed the files are kept there. + + So we are adding grl_deinit() function, which should be called by the + applications once they have finished to use Grilo. This function will cleanly + unload all the sources and plugins. + + https://bugzilla.gnome.org/show_bug.cgi?id=710185 + + doc/grilo/grilo-sections.txt | 1 + + src/grilo.c | 25 +++++++++++ + src/grilo.h | 2 + + src/grl-registry.c | 104 ++++++++++++++++++++++++++++++++++++++++--- + 4 files changed, 125 insertions(+), 7 deletions(-) + +commit 0953b4a55ec0db85ed5139aa9a97b4231f72c602 +Author: Daniel Korostil +Date: Wed Feb 5 15:10:30 2014 +0200 + + Added uk translation + + po/LINGUAS | 1 + + po/uk.po | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 198 insertions(+) + +commit 8654445fae39768fcf776656e9c95133b21d9627 +Author: Bastien Nocera +Date: Fri Jan 17 08:57:07 2014 +0100 + + doc: Add unit to duration + + Looking at the various sources, this is currently in seconds + + https://bugzilla.gnome.org/show_bug.cgi?id=722398 + + src/data/grl-media.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 39ce2d2e702ae9117a6f48e8d38a1a03768280e3 +Author: Bastien Nocera +Date: Tue Jan 28 10:40:17 2014 +0100 + + grilo-test-ui: Show source metadata on right pane + + https://bugzilla.gnome.org/show_bug.cgi?id=723077 + + tools/grilo-test-ui/main.c | 104 ++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 103 insertions(+), 1 deletion(-) + +commit ccac94175c696711751e8c0fda613eb3d440c14e +Author: Dominique Leuenberger +Date: Tue Jan 28 21:29:50 2014 +0100 + + Support Vala 0.24 + + https://bugzilla.gnome.org/show_bug.cgi?id=723191 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f1e99181a4a745bda047eae9f659de328ad6df18 +Author: Bastien Nocera +Date: Tue Jan 28 10:17:01 2014 +0100 + + grilo-test-ui: Fix slowness when remote GFileIcons are used + + https://bugzilla.gnome.org/show_bug.cgi?id=723077 + + tools/grilo-test-ui/main.c | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +commit cd1d69cdd02c1f8e8aee7eb2199e86365e6b2a1f +Author: Emanuele Aina +Date: Sun Jan 26 23:09:35 2014 +0100 + + grilo-test-ui: Use the icon provided by each GrlSource + + Use the newly introduced Icon property of GrlSource to display a custom + icon (if available) in the browser list. + + Signed-off-by: Emanuele Aina + + https://bugzilla.gnome.org/show_bug.cgi?id=723077 + + tools/grilo-test-ui/main.c | 52 ++++++++++++++++------------------------------ + 1 file changed, 18 insertions(+), 34 deletions(-) + +commit 0814a841ac48f7aa8864b51d6c8e88095ca8134a +Author: Juan A. Suarez Romero +Date: Mon Jan 27 10:45:51 2014 +0100 + + core: Do not use g_clear_pointer() + + To avoid requiring glib 2.34 + + src/grl-registry.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +commit 7b4ec551ec39538933742dfaca1ca585f234e200 +Author: Juan A. Suarez Romero +Date: Mon Jan 27 10:45:30 2014 +0100 + + build: bump glib requirement to 2.32 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 07c0f44ba6cb4e82c36a58d3d31dc7c5c836a08e +Author: Juan A. Suarez Romero +Date: Mon Jan 27 09:03:50 2014 +0000 + + doc: Add grl_registry_add_config_from_resource() to documentation + + doc/grilo/grilo-sections.txt | 1 + + src/grl-registry.c | 2 -- + 2 files changed, 1 insertion(+), 2 deletions(-) + +commit f58647687b15766c60c7d1f22134316c0a9ac874 +Author: Bastien Nocera +Date: Thu Jan 16 18:08:55 2014 +0100 + + core: Add grl_registry_add_config_from_resource() + + https://bugzilla.gnome.org/show_bug.cgi?id=722358 + + src/grl-registry.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-registry.h | 4 ++++ + 2 files changed, 58 insertions(+) + +commit 8eb5dac7799d6507ec62e4f694da892b169374b4 +Author: Bastien Nocera +Date: Thu Jan 16 17:30:35 2014 +0100 + + core: Split up keyfile processing for config + + Into a separate function, so it can be used to load from data instead. + + https://bugzilla.gnome.org/show_bug.cgi?id=722358 + + src/grl-registry.c | 57 ++++++++++++++++++++++++++++++------------------------ + 1 file changed, 32 insertions(+), 25 deletions(-) + +commit ed27759a5ca716c8d05efe4f5a0804ad9be2449e +Author: Yosef Or Boczko +Date: Sun Jan 26 04:44:10 2014 +0200 + + Added Hebrew translation + + Signed-off-by: Yosef Or Boczko + + po/LINGUAS | 1 + + po/he.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit e04c039a98d0956936c671b0678756bfaa1a5480 +Author: Wylmer Wang +Date: Fri Jan 24 21:45:01 2014 +0800 + + Update Chinese simplified translation + + po/zh_CN.po | 35 ++++++++++++++++++++--------------- + 1 file changed, 20 insertions(+), 15 deletions(-) + +commit 5b0671d47f634b0dbb5dc9516a12a1fa6f7713d6 +Author: Victor Manuel Jaquez Leal +Date: Fri Jan 17 10:17:25 2014 +0000 + + vala: add gio dependency + + GIcon is provided in GIO module. + + This fixes the Vala break introduced by previous commit. + + https://bugzilla.gnome.org/show_bug.cgi?id=722407 + + bindings/vala/grilo-0.2.deps | 1 + + 1 file changed, 1 insertion(+) + +commit c8423dac910f41670754b0c18041854bcd64551d +Author: Bastien Nocera +Date: Thu Dec 19 22:44:09 2013 +0100 + + core: Add Icon property to GrlSource + + https://bugzilla.gnome.org/show_bug.cgi?id=657926 + + Signed-off-by: Bastien Nocera + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/grilo-sections.txt | 1 + + src/grl-source.c | 40 ++++++++++++++++++++++++++++++++++++++++ + src/grl-source.h | 3 +++ + 3 files changed, 44 insertions(+) + +commit 2eab8437b4970232ca2981347a836237a3369317 +Author: Juan A. Suarez Romero +Date: Thu Nov 28 08:53:03 2013 +0000 + + doc: Relocated home page + + Grilo home page has been moved from http://live.gnome.org/Grilo to + https://wiki.gnome.org/Projects/Grilo. + + README | 2 +- + configure.ac | 2 +- + grilo.doap | 2 +- + tools/grilo-inspect/grl-inspect.c | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +commit d6d53aa07af55ff5c348f6c71eec17d403289786 +Author: Juan A. Suarez Romero +Date: Tue Oct 29 18:36:42 2013 +0000 + + net: mockup requester should be initialized/finalized once + + The mockup requester is shared among all GrlNet instances. So it should be + initialized just once, and finalized also once, when no instance require it. + + https://bugzilla.gnome.org/show_bug.cgi?id=709651 + + libs/net/grl-net-mock.c | 27 ++++++++++++++++++++------- + 1 file changed, 20 insertions(+), 7 deletions(-) + +commit 5cc4aa932fda6cf3ba30add225a7774de1032a54 +Author: Anish A +Date: Fri Nov 1 02:12:42 2013 +0530 + + Updated Malayalam Translation + + po/LINGUAS | 1 + + po/ml.po | 190 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 191 insertions(+) + +commit 8e9b96ceda226b0ebb2c35ab79e868a612ac95fa +Author: Efstathios Iosifidis +Date: Thu Oct 24 11:13:57 2013 +0300 + + Updated Greek translation + + po/el.po | 72 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 36 insertions(+), 36 deletions(-) + +commit b2847d2b1b0c4494ffed1ce78cef6fd57fde138c +Author: Jacobo Aragunde Pérez +Date: Fri Oct 18 19:49:42 2013 +0200 + + grilo-test-ui: Prevent undesired calls to resolve when browsing a category + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit a9ea4eba106e5a65598c612995d71859bd9053a2 +Author: Kristjan SCHMIDT +Date: Sat Oct 19 22:51:06 2013 +0200 + + Add Esperanto translation + + po/LINGUAS | 1 + + po/eo.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit b1e79ceedea7ee4b2d057ac00c28b13aa8056bce +Author: Alban Browaeys +Date: Tue Oct 1 18:31:21 2013 +0200 + + core: initialize caps filter to none. + + Sync with the comment above telling the filter is to be initialized + to none. + + Partially revert commit 5b88159eaa8d06a5f17c092cbb69b79e62d48f2b + + The issue is that grl_upnp_source_get_caps set the search and browse + caps to FILTER_ALL if filtered is supported and do not touch them + otherwise. But grl_caps_new instantiate a caps with filter initalized to + FILTER_ALL ... so grl_upnp_source_get_caps always returns caps with + FILTER_ALL . + + Fixes browse vs search for grilo plugin upnp at least against servers + that has no or incomplete search capabilities. + + https://bugzilla.gnome.org/show_bug.cgi?id=709208 + + src/grl-caps.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit b04b099e1860d284ecf76f9a0bab2e71d0b9f141 +Author: Carles Ferrando +Date: Sun Oct 13 22:17:49 2013 +0200 + + [l10n] Added Catalan (Valencian) translation + + po/LINGUAS | 1 + + po/ca@valencia.po | 190 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 191 insertions(+) + +commit 09fc9db0de999a3121194bdc3017e9cdc7a45577 +Author: Gil Forcada +Date: Sun Oct 13 22:17:45 2013 +0200 + + [l10n] Add Catalan translation + + po/LINGUAS | 1 + + po/ca.po | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 192 insertions(+) + +commit 1cc5fac4257208428455cdd1be542fb410f3b318 +Author: Wolfgang Stöggl +Date: Sat Oct 12 23:25:14 2013 +0200 + + Updated German translation + + po/de.po | 53 ++++++++++++++++++++++++++++------------------------- + 1 file changed, 28 insertions(+), 25 deletions(-) + +commit 1dd026c49b26a7439b947e3d1f601ec3a836ba94 +Author: Victor Ibragimov +Date: Thu Oct 10 17:04:50 2013 +0500 + + Tajik translation updated + + po/tg.po | 57 +++++++++++++++++++++++++++++---------------------------- + 1 file changed, 29 insertions(+), 28 deletions(-) + +commit 1f95073c2e3a953b89a97f920f8ee6c899493466 +Author: Kjartan Maraas +Date: Sat Sep 28 15:23:57 2013 +0200 + + Updated Norwegian bokmål translation + + po/nb.po | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +commit ef18f4ed05991fdd1f83ad50b9a80bff9a60860d +Author: Fernando Carvalho +Date: Thu Sep 19 00:18:26 2013 +0100 + + Updated Portuguese translation + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit e7944923cbf3a79e5bb1d2f3fdc7420682ce719c +Author: Fernando Carvalho +Date: Thu Sep 19 00:16:21 2013 +0100 + + Updated Portuguese translation + + po/pt.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 192 insertions(+) + +commit 32a5ef1c533283e1d6a7a809149faccb24b8f0bc +Author: Gabor Kelemen +Date: Wed Sep 18 13:37:48 2013 +0200 + + Added Hungarian translation + + po/hu.po | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 195 insertions(+) + +commit 455ef92a29ec9c4856a177a7660d8e33f3a973c1 +Author: Gabor Kelemen +Date: Wed Sep 18 13:37:35 2013 +0200 + + Added hu to LINGUAS + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit 1114ecd0afa6c017f3bca79f5b8e31a65ebee781 +Author: Juan A. Suarez Romero +Date: Wed Sep 18 11:39:25 2013 +0200 + + build: Add support for Vala 0.22 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b861a8acd099bc48fa4f7b25abda0b0ed74ef809 +Author: Juan A. Suarez Romero +Date: Tue Sep 17 23:50:20 2013 +0200 + + Post-release version bump to 0.2.8 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 530ca0086896d2028e82052e243d8328544ceac3 +Author: Juan A. Suarez Romero +Date: Tue Sep 17 21:01:54 2013 +0200 + + Release 0.2.7 + + NEWS | 80 ++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 6 ++-- + src/grl-operation.c | 2 ++ + tools/grilo-test-ui/main.c | 2 +- + 4 files changed, 86 insertions(+), 4 deletions(-) + +commit d395137b6a5e914e06197f34c1bda565cb80e67a +Author: Ask H. Larsen +Date: Tue Sep 17 18:18:52 2013 +0200 + + Updated Danish translation + + po/da.po | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 191 insertions(+) + +commit c486260e2c8c775141f4ab42882a38d3dc721c2c +Author: Kenneth Nielsen +Date: Tue Sep 17 18:18:52 2013 +0200 + + Added da to list of languages + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit 17de8559e9890f875d44df670bf7d024075b93c8 +Author: Nilamdyuti Goswami +Date: Tue Sep 17 17:25:59 2013 +0530 + + Assamese translation updated + + po/as.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 193 insertions(+) + +commit 29ff9f1db3e4b8ad7cee92c1661e0d58090f4aa8 +Author: Nilamdyuti Goswami +Date: Tue Sep 17 17:25:11 2013 +0530 + + Added Assamese to LINGUAS + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit 35aa2a6e67af4a056b77ee658bfab1508b9b3fad +Author: Andika Triwidada +Date: Sat Sep 14 09:56:54 2013 +0700 + + Updated Indnesian translation + + po/id.po | 17 +++++++++++------ + 1 file changed, 11 insertions(+), 6 deletions(-) + +commit 7efacf6200d91ff0e6fb1d3a0fb1d229e5c99b79 +Author: Seong-ho Cho +Date: Sat Sep 14 04:38:56 2013 +0900 + + Added Korean translation + + po/LINGUAS | 1 + + po/ko.po | 198 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 199 insertions(+) + +commit a6d96cd56dca6232ffdd92678b4c73adc5466b94 +Author: Juan A. Suarez Romero +Date: Fri Sep 13 16:00:19 2013 +0000 + + net: unref stream after using it + + https://bugs.launchpad.net/bugs/1224410 + + libs/net/grl-net-wc.c | 1 + + 1 file changed, 1 insertion(+) + +commit 56926d8ea91b93fc19e7ca5d210a559b08c99c1b +Author: Evgeny Bobkin +Date: Fri Sep 13 12:45:39 2013 +0200 + + Add Russian translation + + po/LINGUAS | 1 + + po/ru.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 194 insertions(+) + +commit 0ae9e898c3904577e07115654170a20b21addf91 +Author: Rūdolfs Mazurs +Date: Thu Sep 12 21:06:51 2013 +0300 + + Added Latvian translation + + po/LINGUAS | 1 + + po/lv.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 194 insertions(+) + +commit b258a23551931ecb963cfc6f7ff1855d732faba9 +Author: A S Alam +Date: Thu Sep 12 12:48:11 2013 -0500 + + add pa to LINGUAS, translation already available + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit 56516561bea80c0e7dddd9e9bb7069c79d87ec43 +Author: Dušan Kazik +Date: Thu Sep 12 08:57:09 2013 +0200 + + Updated Slovak translation + + po/sk.po | 19 +++++++++---------- + 1 file changed, 9 insertions(+), 10 deletions(-) + +commit d507110aa2e13ee6dc2a111512505c716e8feec0 +Author: Alexandre Franke +Date: Tue Sep 10 22:00:43 2013 +0200 + + Add French translation + + po/LINGUAS | 1 + + po/fr.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit b27dedc51fe752353f6632a7b8f5e7f6ec7e0816 +Author: A S Alam +Date: Mon Sep 9 22:49:47 2013 -0500 + + Punjabi Translation updated by Aman + + po/pa.po | 4176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 4176 insertions(+) + +commit b39501b34c2791a61fca2f036aaade2ee515601c +Author: Kjartan Maraas +Date: Sun Sep 8 19:57:08 2013 +0200 + + Updated Norwegian bokmål translation + + po/nb.po | 22 +++++++++++----------- + 1 file changed, 11 insertions(+), 11 deletions(-) + +commit 2ae4708a521d550376169cf2dde37636a02599d1 +Author: Juan A. Suarez Romero +Date: Sun Sep 8 13:57:53 2013 +0200 + + net: Check if URL has query parameters + + When using the GrlNet mock, we could need to skip some of the query + parameters in the URL. + + This commit cover the case of having an URL without any query parameter. + + https://bugzilla.gnome.org/show_bug.cgi?id=706805 + + libs/net/grl-net-mock.c | 19 ++++++++++++------- + 1 file changed, 12 insertions(+), 7 deletions(-) + +commit 3c0237a858e445e215d5e6766ff519614b039c8b +Author: Juan A. Suarez Romero +Date: Sat Sep 7 22:40:26 2013 +0000 + + core: Remove no used assignment + + src/data/grl-media.c | 1 - + 1 file changed, 1 deletion(-) + +commit 58cdd2fa0da39178ab7534ff69af16c72d907de9 +Author: Мирослав Николић +Date: Thu Sep 5 11:39:29 2013 +0200 + + Updated Serbian translation + + po/sr.po | 55 ++++++++++++++++++++++++++++--------------------------- + po/sr@latin.po | 55 ++++++++++++++++++++++++++++--------------------------- + 2 files changed, 56 insertions(+), 54 deletions(-) + +commit 9a38b0d35d0486ddd051c6144a659877a67c440f +Author: Juan A. Suarez Romero +Date: Sun Sep 1 09:48:59 2013 +0000 + + net: Pull some leaks + + libs/net/grl-net-mock.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 6e878f6e04bd88217043b586a9de021423205078 +Author: Juan A. Suarez Romero +Date: Sun Sep 1 09:13:49 2013 +0000 + + net: Do not leak content from mockups + + Be sure content got for mockups are freed to avoid leaks. + + libs/net/grl-net-wc.c | 30 +++++++++++++++--------------- + 1 file changed, 15 insertions(+), 15 deletions(-) + +commit 15776bd89ec4f93134245a1267e1ab3d78f86f21 +Author: Claudio Arseni +Date: Fri Aug 30 22:32:34 2013 +0200 + + [l10n] Added Italian translation. + + po/LINGUAS | 1 + + po/it.po | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 192 insertions(+) + +commit 16fb34949cf474a2f0bb18c357e5368b109bb9bd +Author: Aurimas Černius +Date: Wed Aug 28 23:11:35 2013 +0300 + + Updated Lithuanian translation + + po/lt.po | 55 ++++++++++++++++++++++++++++--------------------------- + 1 file changed, 28 insertions(+), 27 deletions(-) + +commit 138b434daeef67c77ff7d7d0e8c52fde0fda5fd7 +Author: Dušan Kazik +Date: Wed Aug 28 21:29:35 2013 +0200 + + Added slovak translation + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit c4d4f23e038c977a3b0cd8ffe1685d9907d60ece +Author: Dušan Kazik +Date: Wed Aug 28 21:27:50 2013 +0200 + + Added slovak translation + + po/sk.po | 194 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 194 insertions(+) + +commit 463d254d992f1a05b075f689019772d44d500aa4 +Author: Fran Diéguez +Date: Tue Aug 27 02:34:32 2013 +0200 + + Updated Galician translations + + po/gl.po | 26 ++++++++++++++------------ + 1 file changed, 14 insertions(+), 12 deletions(-) + +commit c7948dbd35eb99224252d56ebc35635673e66d5c +Author: leo +Date: Mon Aug 26 11:43:37 2013 +0200 + + Updated Spanish Translation + + Miguel Rodriguez + + po/es.po | 67 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 33 insertions(+), 34 deletions(-) + +commit ea96876bd0732653979d1ddead83aed5347c2268 +Author: Kjartan Maraas +Date: Mon Aug 26 10:55:37 2013 +0200 + + Updated Norwegian bokmål translation + + po/nb.po | 85 ++++++++++++++++++++++++++++++++-------------------------------- + 1 file changed, 42 insertions(+), 43 deletions(-) + +commit c53c9c4b8ae706d6a0096873ced8c076fcdf97b4 +Author: Emanuele Aina +Date: Wed Aug 21 15:04:14 2013 +0200 + + core: Use g_clear_error()/g_clear_object()/g_list_free_full() + + Simplify cleanup functions by relying on the NULL-safe versions of + g_error_free()/g_object_unref() and free lists and their elements in a + single pass. + + https://bugzilla.gnome.org/show_bug.cgi?id=706495 + + src/grl-multiple.c | 5 +---- + src/grl-operation-options.c | 3 +-- + src/grl-source.c | 52 +++++++++++++-------------------------------- + 3 files changed, 17 insertions(+), 43 deletions(-) + +commit 99d47217a1f543ae3ddc23788dfa673ecae7fd93 +Author: Emanuele Aina +Date: Tue Aug 13 20:02:22 2013 +0200 + + build: Switch to git.mk to keep the .gitignore file updated + + Fixing the *CLEANFILES lists where needed and having git.mk generate the + .gitignore files automatically seemed more useful than manually updating + those files. + + https://bugzilla.gnome.org/show_bug.cgi?id=706491 + + .gitignore | 27 ---- + Makefile.am | 25 ++-- + bindings/Makefile.am | 2 + + bindings/vala/Makefile.am | 2 + + configure.ac | 4 +- + doc/Makefile.am | 2 + + doc/grilo/.gitignore | 14 -- + doc/grilo/grilo-overrides.txt | 0 + examples/Makefile.am | 3 +- + git.mk | 303 ++++++++++++++++++++++++++++++++++++++++ + libs/Makefile.am | 6 +- + libs/net/Makefile.am | 11 +- + src/Makefile.am | 18 +-- + tests/.gitignore | 2 - + tests/Makefile.am | 3 +- + tests/python/Makefile.am | 5 +- + tools/Makefile.am | 11 +- + tools/grilo-inspect/.gitignore | 1 - + tools/grilo-inspect/Makefile.am | 9 +- + tools/grilo-test-ui/.gitignore | 1 - + tools/grilo-test-ui/Makefile.am | 6 +- + tools/vala/Makefile.am | 9 +- + 22 files changed, 349 insertions(+), 115 deletions(-) + +commit 18da634b72c5670fb96bbbc4af70a868adb040a2 +Author: Emanuele Aina +Date: Wed Aug 21 13:37:33 2013 +0200 + + doc: Updates and fixes + + - Ignore all the *-priv.h headers + - Update grilo-sections.txt with new symbols + - Fix referecens to old GrlMediaSource and GrlMetadataSource to point to + GrlSource + - Standardize element-type annotation to use the C symbol names + - Misc cleanups to fix gtk-doc warnings + + https://bugzilla.gnome.org/show_bug.cgi?id=706487 + + doc/grilo/Makefile.am | 11 ++++++++--- + doc/grilo/grilo-sections.txt | 22 ++++++++++++++++++++-- + doc/grilo/plugins-sources.xml | 15 ++++++++------- + libs/net/grl-net-wc.c | 5 +++-- + src/data/grl-data.c | 4 ++-- + src/grl-caps.c | 2 +- + src/grl-caps.h | 6 ++++++ + src/grl-multiple.c | 6 +++--- + src/grl-operation-options.c | 16 +++++++++------- + src/grl-operation-options.h | 6 ++++++ + src/grl-plugin.c | 9 ++++----- + src/grl-registry.c | 8 +++++--- + src/grl-source.c | 17 ++++++++--------- + src/grl-source.h | 2 +- + 14 files changed, 84 insertions(+), 45 deletions(-) + +commit 8bcf9eafafebe18e008ebe7f90ed27764d8331c8 +Author: Juan A. Suarez Romero +Date: Fri Aug 23 14:53:55 2013 +0000 + + doc: use semicolon in ignored-parameters + + ignored-parameters is a list of keys to be ignored when dealing with mockup + network content. + + While in theory we can use either a colon or semicolon to separate the + parameters, according to GKeyFile documentation, using colon doesn't work very + well. + + So let's suggest to use semicolon. + + doc/grilo/plugins-testing.xml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 9fc9d629cd8f38091740aa01795ad71e2dd88e53 +Author: Rafael Ferreira +Date: Tue Aug 20 23:35:09 2013 -0300 + + Updated Brazilian Portuguese translation + + po/pt_BR.po | 16 +++++++++------- + 1 file changed, 9 insertions(+), 7 deletions(-) + +commit 5b88159eaa8d06a5f17c092cbb69b79e62d48f2b +Author: Juan A. Suarez Romero +Date: Wed Aug 21 00:07:36 2013 +0200 + + doc: Fix documentation about GRL_TYPE_FILTER_NONE + + GRL_TYPE_FILTER_NONE means "do not allow any content" (only + GrlMediaBox), while GRL_TYPE_FILTER_ALL means "allow all content". + + This commit clarifies it. + + https://bugzilla.gnome.org/show_bug.cgi?id=706412 + + src/grl-caps.c | 4 ++-- + src/grl-caps.h | 3 ++- + 2 files changed, 4 insertions(+), 3 deletions(-) + +commit 67f4b69ad785bd55f2aefd01b857c5ec2da3cba0 +Author: Emanuele Aina +Date: Mon Aug 12 20:14:28 2013 +0200 + + core: Add grl_operation_set_data_full() + + Let users specify a destroy function to offload to Grilo the management + of the registered data lifecycle. + + https://bugzilla.gnome.org/show_bug.cgi?id=705944 + + src/grl-operation.c | 26 ++++++++++++++++++++++++++ + src/grl-operation.h | 2 ++ + 2 files changed, 28 insertions(+) + +commit 0fdf4ae361bdc55b2314e9191f3e5fa3ca3d15ea +Author: Colin Walters +Date: Fri Aug 16 09:08:02 2013 -0400 + + build: Various srcdir != builddir fixes + + gnome-ostree does it by default. + + https://bugzilla.gnome.org/show_bug.cgi?id=706132 + + src/Makefile.am | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +commit 82c7ea965b44a8efc54067abc73341fde58ec8bc +Author: Matej Urbančič +Date: Sun Aug 18 02:01:10 2013 +0200 + + Updated Slovenian translation + + po/sl.po | 68 +++++++++++++++++++++++++++++----------------------------------- + 1 file changed, 31 insertions(+), 37 deletions(-) + +commit 7b07a6d494b57200b4ff5d317bb09ddad374da42 +Author: Chao-Hsiung Liao +Date: Fri Aug 16 10:10:35 2013 +0800 + + Updated Traditional Chinese translation(Hong Kong and Taiwan) + + po/zh_HK.po | 19 +++++++++++-------- + po/zh_TW.po | 19 +++++++++++-------- + 2 files changed, 22 insertions(+), 16 deletions(-) + +commit 08e5934755b2f3c3e917c347a6771ffe33e04a20 +Author: Marek Černocký +Date: Sat Aug 10 08:34:37 2013 +0200 + + Updated Czech translation + + po/cs.po | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +commit af839152781fd6cf7b4373b4ff442adc64539aa0 +Author: Piotr Drąg +Date: Fri Aug 9 23:02:08 2013 +0200 + + Updated Polish translation + + po/pl.po | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +commit 36dbe5b0720417cb85c73a62e4a5c6bdcbe2303a +Author: Juan A. Suarez Romero +Date: Fri Aug 9 10:30:52 2013 +0200 + + net: Handle invalid URLs + + For non valid URLs, return an error in the async result. + + libs/net/grl-net-wc.c | 19 +++++++++++++++++-- + 1 file changed, 17 insertions(+), 2 deletions(-) + +commit 25cebaea62ebbfdecc5966cd20ea06f27eeb24cb +Author: 甘露(Gan Lu) +Date: Sat Aug 3 21:24:34 2013 +0800 + + Added Chinese simplified translation + + po/LINGUAS | 1 + + po/zh_CN.po | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 188 insertions(+) + +commit 97c607e25ec3d519d72b45e19b31fd297c5cd888 +Author: Enrico Nicoletto +Date: Fri Aug 2 22:59:17 2013 -0300 + + Updated Brazilian Portuguese translation + + po/pt_BR.po | 52 +++++++++++++++++++++++++--------------------------- + 1 file changed, 25 insertions(+), 27 deletions(-) + +commit b2b900cd02a6996a8320b0a77a11b3786850064e +Author: Fran Diéguez +Date: Fri Aug 2 11:58:04 2013 +0200 + + Updated Galician translations + + po/gl.po | 54 +++++++++++++++++++++++++----------------------------- + 1 file changed, 25 insertions(+), 29 deletions(-) + +commit 409f3b7da99771fee1f32e32775692d5ebeaa52e +Author: Jiro Matsuzawa +Date: Tue Jul 30 21:56:50 2013 +0900 + + l10n: Update Japanese translation + + po/ja.po | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +commit 2538afc4d4141b0cdd87ad7012bfaed30160f9f1 +Author: Marek Černocký +Date: Sun Jul 28 12:41:04 2013 +0200 + + Updated Czech translation + + po/cs.po | 44 +++++++++++++++++++------------------------- + 1 file changed, 19 insertions(+), 25 deletions(-) + +commit f839ac33dd8fcd205d58720bf6d7269153a56381 +Author: Piotr Drąg +Date: Thu Jul 25 20:29:15 2013 +0200 + + Updated Polish translation + + po/pl.po | 48 +++++++++++++++++++++--------------------------- + 1 file changed, 21 insertions(+), 27 deletions(-) + +commit 19cfe096b3721cadb94e215235ccd4c9cf77c0a3 +Author: Juan A. Suarez Romero +Date: Thu Jul 25 09:40:40 2013 +0200 + + core: Fix typo in error message + + https://bugzilla.gnome.org/show_bug.cgi?id=704804 + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit cbff6e82273cc59bc10cb40b64c57107e076bcb0 +Author: Nishio Futoshi +Date: Wed Jul 24 22:26:29 2013 +0900 + + l10n: Add Japanese translation + + po/LINGUAS | 1 + + po/ja.po | 189 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 190 insertions(+) + +commit 56001c38a4586cd6b690dc57de51437818ae6570 +Author: Chao-Hsiung Liao +Date: Sat Jul 20 19:56:54 2013 +0800 + + Updated Traditional Chinese translation(Hong Kong and Taiwan) + + po/LINGUAS | 2 + + po/zh_HK.po | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + po/zh_TW.po | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 378 insertions(+) + +commit 9dc7a41f75eb3c32b30bb9975301189ec4d77cff +Author: Bastien Nocera +Date: Tue Jul 16 16:31:21 2013 +0200 + + build: Require vala to dist + + Vala is needed to create the distribution tarball, otherwise + files that would be used when --enable-vala is used against the + tarball would fail because of missing files. + + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f5eaf272cae888ee3b6840052f0ab7251c0f3097 +Author: Juan A. Suarez Romero +Date: Tue Jul 9 13:07:48 2013 +0000 + + core: Adjust page_size to max_page_size + + If page_size is NULL, then instead of computing the optimal page size, use + max_page_size as the optimal page_size. + + This allows to use the function with those services that do not allow to + specify the page size. + + src/grl-util.c | 29 ++++++++++++++++++++--------- + 1 file changed, 20 insertions(+), 9 deletions(-) + +commit 4b920dd6c190f3604ab656c83ccb5930592153fa +Author: Juan A. Suarez Romero +Date: Tue Jul 9 10:15:44 2013 +0000 + + core: Add clarification for max_page_size == 0 + + When using grl_paging_translate(). + + src/grl-util.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d0ba03de46fcbe5b44c2224b7471267b961cd3ed +Author: Juan A. Suarez Romero +Date: Sat Jul 6 10:47:42 2013 +0000 + + grl-inspect: Print slow keys + + Show the slow keys list when inspecting a source. + + tools/grilo-inspect/grl-inspect.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 0897b071313d3ca5970c042718508a00922e432a +Author: Juan A. Suarez Romero +Date: Sat Jul 6 10:36:16 2013 +0000 + + core: Allow NULL param in grl_date_time_from_iso_8601() + + src/grl-util.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 832b44295e45a1740420e00ba833fdb582ac6915 +Author: Andika Triwidada +Date: Thu Jul 4 12:04:40 2013 +0700 + + Added Indonesian translation + + po/LINGUAS | 1 + + po/id.po | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 187 insertions(+) + +commit 06c6beea726c7c8ef24ab122dc2fcb95858b8b19 +Author: Benjamin Steinwender +Date: Mon Jun 24 21:55:20 2013 +0200 + + Updated German translation + + po/de.po | 75 +++++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 36 insertions(+), 39 deletions(-) + +commit d0f988a1de82c68e03b46ffe931681a6502c4b2c +Author: Juan A. Suarez Romero +Date: Thu Jun 13 11:49:21 2013 +0200 + + core: plug leaks + + src/grl-source.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit d67561d3887ed60e68d190805eaae78e6b180cd9 +Author: Juan A. Suarez Romero +Date: Thu Jun 13 11:53:18 2013 +0000 + + net: plug some leaks + + libs/net/grl-net-mock.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit f08caabfb7d4d1aa69eafef294bb55fcb6d65677 +Author: Juan A. Suarez Romero +Date: Fri Jun 14 19:56:19 2013 +0200 + + net: re-structure code + + As we have rid of stable/unstable code due the new libsoup version + requirement, let's merge some files. + + libs/net/Makefile.am | 3 - + libs/net/grl-net-mock.c | 1 - + libs/net/grl-net-private.c | 175 ----------------- + libs/net/grl-net-private.h | 95 --------- + libs/net/grl-net-soup.c | 356 ---------------------------------- + libs/net/grl-net-wc.c | 471 ++++++++++++++++++++++++++++++++++++++++++++- + po/POTFILES.in | 4 +- + 7 files changed, 467 insertions(+), 638 deletions(-) + +commit 00cd48417c047ef03fc8e991ed9367f2dda0df44 +Author: Juan A. Suarez Romero +Date: Fri Jun 14 16:59:34 2013 +0000 + + net: Remove old code + + Bump libsoup2.4 minimal version requirement to 2.33.4, and get rid of code + handling older versions. + + This simplifies the maintenance of code. + + configure.ac | 7 +- + libs/net/Makefile.am | 24 +-- + libs/net/grl-net-soup-stable.c | 203 --------------------- + .../{grl-net-soup-unstable.c => grl-net-soup.c} | 0 + 4 files changed, 7 insertions(+), 227 deletions(-) + +commit f26b61d530a3608099f3ce62396a08308ec9c3bb +Author: Juan A. Suarez Romero +Date: Sun Jun 16 23:30:25 2013 +0000 + + build: Fix silent rules + + Remove silent.m4 file and use the system one. + + Makefile.am | 2 +- + m4/silent.m4 | 27 --------------------------- + 2 files changed, 1 insertion(+), 28 deletions(-) + +commit d7174c0644b774741ea3a8f2a9ddc7e252ba50d4 +Author: Juan A. Suarez Romero +Date: Thu Jun 13 11:49:21 2013 +0200 + + core: plug leak + + src/grl-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit d1d6c0c57896271b49b94ceb5432d2ef7dbd50b2 +Author: Juan A. Suarez Romero +Date: Tue Jun 4 11:17:21 2013 +0200 + + build: Use vala 0.16 in Travis CI + + .travis.yml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 65bd32178cae65015b62036261d509254e9e06e1 +Author: Juan A. Suarez Romero +Date: Tue Jun 4 09:12:51 2013 +0000 + + build: add Travis CI support + + Use Travis CI services to check Grilo is built correctly. + + https://travis-ci.org/Igalia/grilo + + .travis.yml | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +commit b17d995b68bcc882267a71dc62aeb7445de5da9f +Author: Aurimas Černius +Date: Sun Jun 2 14:28:41 2013 +0300 + + Added Lithuanian translation + + po/LINGUAS | 1 + + po/lt.po | 194 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 195 insertions(+) + +commit 2db8e4b38ab2e6d0b9d1a981d6a642dc01167912 +Author: Kjartan Maraas +Date: Sun Jun 2 02:11:46 2013 +0200 + + Updated Norwegian bokmål translation + + po/nb.po | 190 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 190 insertions(+) + +commit eb134f41613c8af9b43d295b9f0d6b73bdf651a2 +Author: Kjartan Maraas +Date: Sun Jun 2 02:11:44 2013 +0200 + + Add nb + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit 2faaf892fd6104b8f8b6bdbe73a403f3977c769a +Author: Christian Kirbach +Date: Thu May 30 14:10:48 2013 +0200 + + Added German translation and updated LINGUAS + + po/LINGUAS | 1 + + po/de.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 194 insertions(+) + +commit f581f2a456e6dbec76742b8e862feecee58e36b0 +Author: Juan A. Suarez Romero +Date: Tue May 21 16:01:10 2013 +0200 + + test-ui: Check if there is a reply from OAuth + + https://bugzilla.gnome.org/show_bug.cgi?id=700478 + + tools/grilo-test-ui/flickr-oauth.c | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) + +commit 1353bcde648e35b5ce20c0135b32e841597601d0 +Author: Juan A. Suarez Romero +Date: Sat May 18 19:11:14 2013 +0000 + + core: Fix some introspection warnings + + src/data/grl-related-keys.h | 2 +- + src/grl-registry.h | 6 ++++-- + 2 files changed, 5 insertions(+), 3 deletions(-) + +commit 6ab0239a4ba4fabc7506c71104c555c14913b06a +Author: Juan A. Suarez Romero +Date: Thu May 16 18:08:33 2013 +0000 + + net: use different function to check cache + + In order to avoid bumping up the libsoup version required, do a slightly change + in function that checks if cache is available. + + libs/net/grl-net-soup-unstable.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b78464d31f5160a80fa7b24f099a8b728ad993d6 +Author: Juan A. Suarez Romero +Date: Thu May 16 10:24:08 2013 +0200 + + Post-release version bump to 0.2.7 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 54cccbef0f19770d92e2c5cd9d589657f75b5dbc +Author: Juan A. Suarez Romero +Date: Thu May 16 00:24:42 2013 +0200 + + Release 0.2.6 + + AUTHORS | 1 + + NEWS | 47 +++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 4 ++-- + src/data/grl-config.c | 4 ++-- + 4 files changed, 52 insertions(+), 4 deletions(-) + +commit 03e2472ca8951cd3668149b9ca6b8747f5d4cc49 +Author: Juan A. Suarez Romero +Date: Wed May 15 22:47:14 2013 +0000 + + build: fix distcheck + + tools/grilo-inspect/Makefile.am | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +commit b3a806e1091d79d0264b6ca39a5b7ffe75fa88b0 +Author: Juan A. Suarez Romero +Date: Wed May 15 21:37:31 2013 +0000 + + test-ui: make liboauth a conditional dependency + + If liboauth is available, then add support in test-ui for authorizing Flickr + personal accounts. + + configure.ac | 13 +++++++++---- + tools/grilo-test-ui/Makefile.am | 20 +++++++++++++++----- + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 3 files changed, 42 insertions(+), 9 deletions(-) + +commit 85c26ba5a52ec8b90e5984db50385dffd8ab066b +Author: Juan A. Suarez Romero +Date: Wed May 15 21:40:57 2013 +0200 + + net: ensure cache is created with the proper size + + This covers the case of deactivating and reactivating later the cache. + As soon as we create it, we need to set the configured sized. + + libs/net/grl-net-soup-unstable.c | 16 +++++++++++----- + 1 file changed, 11 insertions(+), 5 deletions(-) + +commit 5140418233f2f8822c7e30e8353a155bb0a91aa7 +Author: Sergio Villar Senin +Date: Tue May 14 17:34:47 2013 +0200 + + test-ui: shutdown plugins on exit + + Unload plugins on program exit. The registry will call the finalize + method on each plugin before the program ends to allow things like + clearing the plugins HTTP cache. + + https://bugzilla.gnome.org/show_bug.cgi?id=700311 + + tools/grilo-test-ui/main.c | 18 +++++++++++------- + 1 file changed, 11 insertions(+), 7 deletions(-) + +commit 23fe14ed52ed620ded17d453419d560d314791e2 +Author: Sergio Villar Senin +Date: Tue May 14 17:34:25 2013 +0200 + + net: use a different cache per session + + The SoupCache is a SoupSessionFeature so it could only be attached + to a single SoupSession. A new SoupCache is created for each + SoupSession. + + Also the cache contents are now destroyed on finalize. + + https://bugzilla.gnome.org/show_bug.cgi?id=700311 + + libs/net/grl-net-soup-unstable.c | 53 ++++++++++++++++++++++++++-------------- + 1 file changed, 35 insertions(+), 18 deletions(-) + +commit ab5db43b56f464d78a28f62202a6540e9d04c705 +Author: Sergio Villar Senin +Date: Tue May 14 17:29:24 2013 +0200 + + net: properly set the SoupCache max size + + The SoupCache expects the maximum size to be specified in bytes + instead of in megabytes. Also removed the call to + soup_cache_set_max_size just after creating the cache as it is not + needed. + + https://bugzilla.gnome.org/show_bug.cgi?id=700310 + + libs/net/grl-net-soup-unstable.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +commit cccd542bd94152939f412a5ca46b3407e5dc0334 +Author: Juan A. Suarez Romero +Date: Tue Apr 30 08:38:40 2013 +0000 + + test-ui: Initialize variables + + tools/grilo-test-ui/main.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +commit 21339e9723f62aee1c68bc341773388df52bc2b6 +Author: Marek Chalupa +Date: Mon Apr 22 09:19:25 2013 +0200 + + test-ui: use new flickr plugin + + flickr-auth.[ch] was replaced by their oauth alternatives and main.c was + rewritten to use them. + + Into authenticate flickr popup window was added text entry to enter the + verifier given by flickr. + + https://bugzilla.gnome.org/show_bug.cgi?id=697175 + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 8 +- + tools/grilo-test-ui/Makefile.am | 6 +- + tools/grilo-test-ui/flickr-auth.c | 257 ------------------------------ + tools/grilo-test-ui/flickr-auth.h | 43 ----- + tools/grilo-test-ui/flickr-oauth.c | 317 +++++++++++++++++++++++++++++++++++++ + tools/grilo-test-ui/flickr-oauth.h | 90 +++++++++++ + tools/grilo-test-ui/main.c | 44 +++-- + 7 files changed, 449 insertions(+), 316 deletions(-) + +commit b590157c45a14eb95c54091a75eb109cf1bcf438 +Author: Marek Chalupa +Date: Mon Apr 22 09:19:25 2013 +0200 + + core: add grl_config_get/set_api_token_secret() + + Two new functions added to grl-config.[ch], needed by oauth + authentication proccess. + + https://bugzilla.gnome.org/show_bug.cgi?id=697175 + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-config.c | 35 +++++++++++++++++++++++++++++++++++ + src/data/grl-config.h | 21 +++++++++++++-------- + 2 files changed, 48 insertions(+), 8 deletions(-) + +commit 19f01a3cdbaf29b0b1c2929cbc66ca0d80866937 +Author: Juan A. Suarez Romero +Date: Mon Apr 15 20:41:48 2013 +0000 + + grl-inspect: Use format string literal + + tools/grilo-inspect/grl-inspect.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 3ea15a4feca73acc5c43466d13c0a1d4e2eb5a61 +Author: Juan A. Suarez Romero +Date: Sun Apr 14 21:29:25 2013 +0000 + + grl-inspect: Show information about keys + + tools/grilo-inspect/grl-inspect.c | 125 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 125 insertions(+) + +commit 1fef17ed2f87ba09dc520be9d305d644dac5deb8 +Author: Juan A. Suarez Romero +Date: Wed Mar 27 19:14:31 2013 +0000 + + grl-inspect: Show more information about sources + + tools/grilo-inspect/grl-inspect.c | 57 ++++++++++++++++++++++++++++++++------- + 1 file changed, 47 insertions(+), 10 deletions(-) + +commit ed556e13bfc817982f5d04ca4f2a8ba01f41ae83 +Author: Juan A. Suarez Romero +Date: Wed Mar 27 18:17:52 2013 +0000 + + grl-inspect: Group sources by plugin, and sort alphabetically + + tools/grilo-inspect/grl-inspect.c | 68 +++++++++++++++++++++++++++++---------- + 1 file changed, 51 insertions(+), 17 deletions(-) + +commit 88bb9eb3a01242d4e41cc705d1311371f5ee7fb8 +Author: Juan A. Suarez Romero +Date: Mon Mar 25 00:30:01 2013 +0000 + + grl-inspect: Print list of available keys + + configure.ac | 1 + + src/grl-metadata-key.h | 2 +- + tools/grilo-inspect/Makefile.am | 9 ++++- + tools/grilo-inspect/grl-inspect.c | 77 +++++++++++++++++++++++++++++++++++---- + 4 files changed, 79 insertions(+), 10 deletions(-) + +commit b65c75f8eb8f6926317319b126c586d6d2e6d1d0 +Author: Miguel Rodriguez Núñez +Date: Fri Apr 12 12:00:06 2013 +0200 + + Updated Spanish translation + + po/es.po | 35 ++++++++++++++++++----------------- + 1 file changed, 18 insertions(+), 17 deletions(-) + +commit aa7ed956d9a8f7ce86eb72dbbdd370ffc2a27f62 +Author: Miguel Rodriguez Núñez +Date: Thu Apr 11 18:10:38 2013 +0200 + + Updated Spanish translation + + po/LINGUAS | 1 + + po/es.po | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 196 insertions(+) + +commit 10a5a033afc3dd745df5d42e87676b197c0b1c1e +Author: Rafael Ferreira +Date: Wed Apr 10 02:55:17 2013 -0300 + + Added Brazilian Portuguese translation + + po/LINGUAS | 1 + + po/pt_BR.po | 193 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 194 insertions(+) + +commit 46eab031ff7c871f16fbbf67d9cddddae7b6cf85 +Author: Bastien Nocera +Date: Wed Apr 3 20:25:28 2013 +0200 + + test-ui: Update for filesystem plugin changes + + Update for filesystem plugin changes (base-path -> base-uri), and + add recent:/// to the list, as an example. + + https://bugzilla.gnome.org/show_bug.cgi?id=696860 + + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 623030e83ec0764389a3035145235d7cd32accf8 +Author: Victor Ibragimov +Date: Mon Apr 8 17:22:53 2013 +0500 + + Added new Tajik translation + + po/LINGUAS | 1 + + po/tg.po | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 193 insertions(+) + +commit 28ab8282d0a5cf8a99d5b5789fd0495336aa2194 +Author: Dimitris Spingos +Date: Wed Apr 3 13:52:10 2013 +0300 + + Added Greek translation + + po/LINGUAS | 1 + + po/el.po | 196 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 197 insertions(+) + +commit 9f1e16c529d4fd661e62e63fe24d7863300b29ff +Author: Martin Srebotnjak +Date: Fri Mar 29 15:49:47 2013 +0100 + + Updated Slovenian translation + + po/sl.po | 85 +++++++++++++++++++++++++++++++++------------------------------- + 1 file changed, 44 insertions(+), 41 deletions(-) + +commit 94b71dfae524d6c475e69c0505fc726702a2b9b8 +Author: Marek Černocký +Date: Thu Mar 28 09:54:52 2013 +0100 + + Added Czech language + + po/LINGUAS | 1 + + 1 file changed, 1 insertion(+) + +commit 105e7293416719b46f674d018b83755828077e63 +Author: Marek Černocký +Date: Thu Mar 28 09:54:35 2013 +0100 + + Czech translation + + po/cs.po | 194 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 194 insertions(+) + +commit c1e9b86a2ac8a75acae1c256960ae07f4300d466 +Author: Juan A. Suarez Romero +Date: Mon Mar 25 00:35:02 2013 +0000 + + grl-inspect: Wait 1 second before showing results + + Wait for sources that are created asynchronously to be active before inspecting + them. + + grl-inspect.1 | 1 + + tools/grilo-inspect/grl-inspect.c | 10 +++------- + 2 files changed, 4 insertions(+), 7 deletions(-) + +commit 53ab14ac90617c8b320d2251f4dfe1f6cfa43e95 +Author: Fran Diéguez +Date: Sun Mar 24 23:15:18 2013 +0100 + + Added galician translations + + po/LINGUAS | 1 + + po/gl.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 194 insertions(+) + +commit 687be38de1a3eab699744951d5d0a03b6bf37bfa +Author: Мирослав Николић +Date: Sun Mar 24 07:47:45 2013 +0100 + + Added Serbian translation + + po/LINGUAS | 3 +- + po/sr.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + po/sr@latin.po | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 388 insertions(+), 1 deletion(-) + +commit 5fd04c7ef80be58626c2cf1e0c670e82dabd84ae +Author: Juan A. Suarez Romero +Date: Sat Mar 23 22:55:30 2013 +0000 + + core: Improve grl_date_time_from_iso8601() + + Handle more date precisions: YYYY, YYYY-MM, YYYY-MM-DD, YYYYMMDD. + + src/grl-util.c | 18 +++++++++++++++++- + 1 file changed, 17 insertions(+), 1 deletion(-) + +commit 47ecd0ce2d53b119f737bf580695240a2a2c59ad +Author: Matej Urbančič +Date: Sat Mar 23 02:29:46 2013 +0100 + + Updated Slovenian translation + + po/sl.po | 32 +++++++++++++++----------------- + 1 file changed, 15 insertions(+), 17 deletions(-) + +commit dcb6a00c4906a3ec50d2a71c8a763a5797eadcee +Author: Matej Urbančič +Date: Sat Mar 23 02:26:43 2013 +0100 + + Added sl for Slovenian translation + + po/LINGUAS | 2 ++ + 1 file changed, 2 insertions(+) + +commit 8f36e9c9a4be1e29d738df0e0ca6812d34052086 +Author: Matej Urbančič +Date: Sat Mar 23 02:25:26 2013 +0100 + + Added Slovenian translation + + po/sl.po | 200 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 200 insertions(+) + +commit 4d71d5ab698e3f944c8856effa845e89abdce9c2 +Author: Piotr Drąg +Date: Fri Mar 22 23:28:17 2013 +0100 + + Added Polish translation + + po/LINGUAS | 1 + + po/pl.po | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 198 insertions(+) + +commit e1959c237fcf75721267b6be13118fd7558c9c87 +Author: Juan A. Suarez Romero +Date: Mon Mar 18 19:20:56 2013 +0100 + + i18n: Add support for internationalization + + Makefile.am | 2 +- + configure.ac | 13 +++++++------ + libs/net/Makefile.am | 1 + + libs/net/grl-net-mock.c | 7 ++++--- + libs/net/grl-net-private.c | 17 +++++++++-------- + libs/net/grl-net-soup-stable.c | 2 +- + libs/net/grl-net-soup-unstable.c | 7 ++++--- + po/LINGUAS | 0 + po/POTFILES.in | 8 ++++++++ + src/Makefile.am | 1 + + src/grilo.c | 16 +++++++++++----- + src/grl-multiple.c | 15 +++++++++++---- + src/grl-registry.c | 40 ++++++++++++++++++++++------------------ + src/grl-source.c | 21 +++++++++++++-------- + 14 files changed, 93 insertions(+), 57 deletions(-) + +commit 35cfddb88d6240dd5a8acbc132d6ccd4c1e5570f +Author: Kalev Lember +Date: Wed Mar 20 19:55:02 2013 +0100 + + vala: Add support for Vala 0.20 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit df8e6103c5efd11b162c3bfbd772bd334d4ae5b2 +Author: Alberto Garcia +Date: Wed Mar 20 12:27:45 2013 +0200 + + core: Fix compiler warning + + gcc complains about 'unknown_keys' being possibly uninitialized when + media_decorate() is called from queue_add_media(). + + That probably happens because gcc cannot guarantee that + g_queue_push_tail() doesn't modify qlement->is_ready. + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 74315e28c9bd0c2fbbbcba33d87c9935a20c3fc6 +Author: Alberto Garcia +Date: Wed Mar 20 12:27:34 2013 +0200 + + core: Fix uninitialized variable in grl_registry_preload_plugin() + + If the plugin XML file can't be read in grl_registry_preload_plugin(), + the function returns an uninitialized pointer instead of NULL. + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a9a756f9dd66657c0ceaab556c466c1dc3590404 +Author: Juan A. Suarez Romero +Date: Tue Mar 19 12:18:59 2013 +0000 + + Post-release version bump to 0.2.6 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c2a266541c6e1873686320b37c6b29576d255eac +Author: Juan A. Suarez Romero +Date: Tue Mar 19 12:13:04 2013 +0000 + + Release 0.2.5 + + AUTHORS | 1 + + NEWS | 24 ++++++++++++++++++++++++ + configure.ac | 4 ++-- + 3 files changed, 27 insertions(+), 2 deletions(-) + +commit 1c2a33adb18d25b9214c3a9859e72bf3bc01af0d +Author: Mike Ruprecht +Date: Thu Feb 21 15:39:28 2013 -0600 + + core: Fix double-free protection assert when unloading a plugin twice + + When calling g_module_close() twice on the same module, it throws a + g_return_if_fail() assertion stating ref_count > 0 fails. It's + effectively like g_object_unref(). + + This patch prevents g_module_close() being called twice on the same + module by unsetting it from the plugin instance when closing it + in grl_registry_unload_plugin(). + + https://bugzilla.gnome.org/show_bug.cgi?id=694390 + + src/grl-registry.c | 1 + + 1 file changed, 1 insertion(+) + +commit 2958b268b7fbffaf70740856784913b252f13527 +Author: Juan A. Suarez Romero +Date: Thu Feb 7 12:36:49 2013 +0000 + + core: Check options when decorating a media + + When decorating a media (adding missing keys in content from browse/search + operations), make sure that the source involved in decoration gets the proper + supported options. + + src/grl-source.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit 6dfc79c20bf33f0df483452ae6a4bd0f757177e9 +Author: Juan A. Suarez Romero +Date: Wed Jan 30 18:52:42 2013 +0100 + + core: Skip browsed source from resolvable sources + + When a key cannot be solved in a browse/search operation, we ask other + sources that implement resolve() and that can be solve that key to get + its value (only when GRL_RESOLVE_FULL is true). + + But it can happen that the key is supported by the source in the + browse/search operation, only that for the result it doesn't have a + value. Thus, when looking for sources implementing resolve() for that + key, we need to skip the browsed source, as we know it doesn't have a + value for the key. + + src/grl-source.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit a719f69707f4031917d98458966156ad12ac7d7e +Author: Mike Ruprecht +Date: Wed Jan 30 06:29:03 2013 -0600 + + grl-source: Fix leak of GrlOperationOptions in _get_media_from_uri() + + https://bugzilla.gnome.org/show_bug.cgi?id=692873 + + src/grl-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit e02a934699535e1b6eed5f6ca2fd3bd5a75f3aa1 +Author: Juan A. Suarez Romero +Date: Wed Jan 23 18:56:17 2013 +0000 + + core: Try next source if previous couldn't resolve a key + + The code was almost correct: there was a comment saying "try next source", but + seems we forgot to execute the "get next source". + + src/grl-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit 6272f77a076f965835dba7776b5c08ec90199f58 +Author: Nuno Araujo +Date: Sat Jan 19 11:26:16 2013 +0100 + + build: Fix the build with automake 1.13 + + In Automake 1.13, the long-deprecated macro AM_CONFIG_HEADER (deprecated + since 2002) has been removed in favour of AC_CONFIG_HEADERS. + + https://bugzilla.gnome.org/show_bug.cgi?id=692118 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5d4cdd7edc2233c8753189b16f87bec3569ec3ec +Author: Juan A. Suarez Romero +Date: Tue Jan 15 11:42:19 2013 +0000 + + net: SoupRequester is deprecated for libsoup >= 2.41.3 + + Use SoupSession instead. + + configure.ac | 6 ++++++ + libs/net/Makefile.am | 5 +++++ + libs/net/grl-net-private.h | 2 ++ + libs/net/grl-net-soup-unstable.c | 17 ++++++++++++++++- + 4 files changed, 29 insertions(+), 1 deletion(-) + +commit 68a5d15c86d99393c173fe3254fcc4d7a228bdd7 +Author: Juan A. Suarez Romero +Date: Tue Jan 15 10:59:57 2013 +0000 + + grl-inspect: Fix a couple of warnings + + Use void parameter for non-parametrized functions. + + tools/grilo-inspect/grl-inspect.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 75380838229a1dbb0e504bb96b2bd550349599a9 +Author: Juan A. Suarez Romero +Date: Sat Jan 5 19:41:02 2013 +0100 + + test-ui: Show multi-valued elements + + For all the keys with several values, show all them separated by comma. + + tools/grilo-test-ui/main.c | 27 +++++++++++++++++++++++---- + 1 file changed, 23 insertions(+), 4 deletions(-) + +commit 057b849c9659534ff51c7a0597815eb174013fd8 +Author: Bastien Nocera +Date: Fri Dec 21 14:49:47 2012 +0100 + + core: Downgrade init failure to a debug statement + + It's quite common for plugin load to fail when it lacks the + necessary API keys, especially when the plugin type isn't + supported by the application. + + Eg. we don't want Totem to warn if it cannot load the Flickr + plugin that it will not be using. + + https://bugzilla.gnome.org/show_bug.cgi?id=690613 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b3529dd4212043b2fb962410e414f65e76cdcdbb +Author: Bastien Nocera +Date: Fri Dec 21 14:39:45 2012 +0100 + + core: Explain why module could not be loaded + + Note that g_module_error() already contains the filename that + failed to be loaded. + + https://bugzilla.gnome.org/show_bug.cgi?id=690612 + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8d72ae5c147bd8cbce04a156d210b9e370c91277 +Author: Juan A. Suarez Romero +Date: Sun Dec 16 12:42:42 2012 +0000 + + test-ui: Allow filtering by type in any source + + Allows to select the kind of desired content for any source and operation. + + If the source or operation can't filter the content, then it will be ignored + and all content retrieved. + + tools/grilo-test-ui/main.c | 116 ++++++++++++++++----------------------------- + 1 file changed, 40 insertions(+), 76 deletions(-) + +commit 4cec1fd081cd4c9d0d501ab70f9f8d55a4918795 +Author: Juan A. Suarez Romero +Date: Sun Dec 16 12:39:10 2012 +0000 + + test-ui: Fix some warnings + + tools/grilo-test-ui/main.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit f3917fa0a40ce257874947c38a42a49685c0b656 +Author: Juan A. Suarez Romero +Date: Wed Dec 5 17:27:34 2012 +0000 + + core: Notify when an operation is performed over invalid operation_id + + It is actually done, but no message is actually shown to developer. + + src/grl-operation.c | 19 +++++++++++++++---- + 1 file changed, 15 insertions(+), 4 deletions(-) + +commit ad073a62533df5782ba231e282399806d998eff0 +Author: Evan Nemerson +Date: Mon Dec 3 15:39:03 2012 -0800 + + build: fix passing arguments to gnome-autogen.sh from autogen.sh + + https://bugzilla.gnome.org/show_bug.cgi?id=689577 + + autogen.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b994ca21a5e441d6a86dd65495cc9c5774263ac2 +Author: Juan A. Suarez Romero +Date: Fri Nov 30 16:52:39 2012 +0100 + + Post-release version bump to 0.2.5 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit cddf75e3ca028dcada3e0029a5de4787ef027f9e +Author: Juan A. Suarez Romero +Date: Fri Nov 30 15:17:37 2012 +0000 + + Release 0.2.4 + + AUTHORS | 1 + + NEWS | 17 +++++++++++++++++ + configure.ac | 4 ++-- + 3 files changed, 20 insertions(+), 2 deletions(-) + +commit bdeb52ad5d2e79f262bbbc030fd7a292bcc59252 +Author: Andrzej Bieniek +Date: Sun Nov 25 10:18:03 2012 +0000 + + grl-source: fixed compare_queue_element function + + Function should return 0 only when elements are equal. + + compare_queue_element function was returning 0 every time qelement->media pointer was higher or equal media pointer (qelement->media < media). + It worked couple of times then failed, depends where memory was allocated. + When it failed, wrong element in BrowseRelayCb::queue was marked as ready (in media_ready_cb). + As a consequence grilo locked up not returning all elements in grl_source_browse call. + + https://bugzilla.gnome.org/show_bug.cgi?id=689053 + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b7ad806faf1bc5d600c5555e67783ea1c34894cc +Author: Murray Cumming +Date: Wed Nov 14 10:21:30 2012 +0100 + + docs: Grammar correction: got + + examples/browsing.c | 2 +- + src/data/grl-media.c | 8 ++++---- + 2 files changed, 5 insertions(+), 5 deletions(-) + +commit c02863d75a6332a982ed48d18941a47f2de69c39 +Author: Murray Cumming +Date: Wed Nov 14 10:13:27 2012 +0100 + + docs: GrlMedia: Improve certificate/region function docs + + Based on https://bugzilla.gnome.org/show_bug.cgi?id=679686#c14 + + https://bugzilla.gnome.org/show_bug.cgi?id=688301 + + src/data/grl-media.c | 35 +++++++++++++++++++++++++++++++++-- + 1 file changed, 33 insertions(+), 2 deletions(-) + +commit 51e7a16031a0f5b31cd7a840bb4cfb995af64086 +Author: Juan A. Suarez Romero +Date: Tue Nov 13 23:13:14 2012 +0000 + + core: Extend supported keys in the filters + + Include gboolean, gfloat and GDateTime keys in the supported keys for defining + filters. + + src/grl-operation-options.c | 30 ++++++++++++++++++++++++++++++ + 1 file changed, 30 insertions(+) + +commit 5ac3cfa53f1d67590c02240147ee0334316f924f +Author: Juan A. Suarez Romero +Date: Tue Nov 13 23:12:12 2012 +0000 + + core: set source_id if really needed + + Only insert the source_id in the media if actually the source didn't insert it. + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 313cbc583ec5620a4224d83950b6ced0ff9a60cb +Author: Murray Cumming +Date: Tue Nov 13 10:27:41 2012 +0100 + + docs: Fix grammar in plugins-testing + + doc/grilo/plugins-testing.xml | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +commit 87a9dda4c5dfcfcf1c533672e342666faaa0c7d5 +Author: Jasper Lievisse Adriaanse +Date: Thu Nov 8 19:45:44 2012 +0100 + + Fix compilation with gcc 4.2 + + grl-net-mock.c: In function 'init_mock_requester': + grl-net-mock.c:206: error: 'for' loop initial declaration used outside C99 mode + + libs/net/grl-net-mock.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 6934ae3e441dc52b55425894605168ac9ab3b655 +Author: Juan A. Suarez Romero +Date: Thu Nov 8 15:11:03 2012 +0000 + + Post-release version bump to 0.2.4 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d84c8d1ead2e4a363782214106efe388ab955244 +Author: Juan A. Suarez Romero +Date: Thu Nov 8 14:59:41 2012 +0000 + + Release 0.2.3 + + NEWS | 41 +++++++++++++++++++++++++++++++++++++++++ + configure.ac | 4 ++-- + src/data/grl-data.c | 2 ++ + src/data/grl-media.h | 2 ++ + src/data/grl-related-keys.c | 6 ++++++ + src/grl-source.c | 2 ++ + 6 files changed, 55 insertions(+), 2 deletions(-) + +commit 3a3642b26e59d7f56a6940faa684e4fa6ca70aa0 +Author: Juan A. Suarez Romero +Date: Sun Nov 4 12:55:02 2012 +0000 + + build: Handle grl-net-mock-private.h file + + Include it in Makefile.am + + libs/net/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 5a64d1f579bd54944c3948bb3d97b5fcb4c59748 +Author: Juan A. Suarez Romero +Date: Mon Oct 29 18:02:17 2012 +0000 + + core: Add "supported-media" property + + This property flag for GrlSource specifies the type of media the source can + deal with. + + Thus, if our application is designed to show video content only, we could + discard all sources not providing this kind of media. + + The default value for this property, if not specified, is GRL_MEDIA_TYPE_ALL. + + doc/grilo/grilo-sections.txt | 1 + + src/Makefile.am | 2 +- + src/data/grl-media.h | 17 +++++++++++++++++ + src/grl-source.c | 43 ++++++++++++++++++++++++++++++++++++++++++- + src/grl-source.h | 2 ++ + 5 files changed, 63 insertions(+), 2 deletions(-) + +commit 1cdab86dbc6fccfc783ca44213d645b67c00fb43 +Author: Juan A. Suarez Romero +Date: Thu Nov 1 09:22:46 2012 +0100 + + test-ui: Use the right options in search/query operations + + It fixes a small bug that meant operations not really finishing. + + https://bugzilla.gnome.org/show_bug.cgi?id=687104 + + tools/grilo-test-ui/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit dacefd96bcfcbf1f1156bea0b17d2c2dbf9da35a +Author: Juan A. Suarez Romero +Date: Sat Nov 3 00:41:27 2012 +0000 + + core: core: Serialize/unserialize multivalued metadata keys + + src/data/grl-media.c | 131 ++++++++++++++++++++++++++++++++++++++++----------- + 1 file changed, 104 insertions(+), 27 deletions(-) + +commit c444d7c829b96c83d1679233c953a3dfc328528e +Author: Juan A. Suarez Romero +Date: Fri Nov 2 16:55:15 2012 +0000 + + core: Handle boolean values in GrlRelatedKeys + + src/data/grl-related-keys.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-related-keys.h | 7 +++++++ + 2 files changed, 51 insertions(+) + +commit fe2409ee0e395af0bb2588d249f877f9e023812c +Author: Juan A. Suarez Romero +Date: Fri Nov 2 16:53:35 2012 +0000 + + core: Add API to remove a key from GrlRelatedKeys set + + src/data/grl-related-keys.c | 17 +++++++++++++++++ + src/data/grl-related-keys.h | 3 +++ + 2 files changed, 20 insertions(+) + +commit f223ef8ed8ba73bedf3e00e38839927bce1236c8 +Author: Juan A. Suarez Romero +Date: Thu Nov 1 22:41:15 2012 +0000 + + core: Serialize/unserialize GDateTime metadata keys + + Dates are encoded as iso8601 format. + + src/data/grl-media.c | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +commit b6dd0e651ce0e65ae867f424dca60e87b88fab77 +Author: Juan A. Suarez Romero +Date: Thu Nov 1 11:37:17 2012 +0000 + + core: Serialize/unserialize binary metadata keys + + Values are encoded as (escaped) base64. + + src/data/grl-media.c | 32 ++++++++++++++++++++++---------- + 1 file changed, 22 insertions(+), 10 deletions(-) + +commit 64da840144713035efe0525bbc7bcbdafc08ed1e +Author: Juan A. Suarez Romero +Date: Thu Nov 1 10:29:48 2012 +0000 + + core: Serialize/unserialize gboolean metadata keys + + src/data/grl-media.c | 5 +++++ + 1 file changed, 5 insertions(+) + +commit ae6327ba4a73bf426b6ec230491e9e7f6bf63121 +Author: Mathias Hasselmann +Date: Tue Oct 23 22:44:10 2012 +0200 + + core: Add generic metadata keys from TMDB + + The TMDB plugin defines a few new metadata keys of generic + interest. They should be moved to Grilo's core to make such + data easier to use once other sources should provide + similiar information. + + This introduces following new keys together with generated + GrlMedia accessors: + + * GRL_METADATA_KEY_KEYWORD + * GRL_METADATA_KEY_PERFORMER + * GRL_METADATA_KEY_PRODUCER + * GRL_METADATA_KEY_DIRECTOR + * GRL_METADATA_KEY_ORIGINAL_TITLE + + All keys are defined as strings and there are no relations + between them. Except for "original-title" all of those keys + are multi-valued. All keys but "keyword" are video specific + keys. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=686206 + + Signed-off-by: Juan A. Suarez Romero + + bindings/vala/grilo-0.2-custom.vala | 10 ++ + doc/grilo/grilo-sections.txt | 18 +++ + src/data/grl-media-video.c | 264 ++++++++++++++++++++++++++++++++++++ + src/data/grl-media-video.h | 38 ++++++ + src/data/grl-media.c | 79 +++++++++++ + src/data/grl-media.h | 8 ++ + src/grl-metadata-key.c | 47 ++++++- + src/grl-metadata-key.h | 5 + + 8 files changed, 468 insertions(+), 1 deletion(-) + +commit 9066efc21bd9431e26ce385c99267332194dba0c +Author: Juan A. Suarez Romero +Date: Mon Oct 29 17:58:14 2012 +0000 + + build: Install 64bit libraries in proper place + + In case 'libdir' is not specified, select lib or lib64 depending on the + machine. + + configure.ac | 19 +++++++++++++++---- + 1 file changed, 15 insertions(+), 4 deletions(-) + +commit 419ba810524c534c52845d9305f44d607488a986 +Author: Mathias Hasselmann +Date: Mon Oct 22 18:46:43 2012 +0200 + + net: Enable proper log domain for mocking + + libs/net/grl-net-mock.c | 1 + + 1 file changed, 1 insertion(+) + +commit 7034107d86094462c32284d804d35517c4ed1e90 +Author: Mathias Hasselmann +Date: Mon Oct 22 18:42:05 2012 +0200 + + net: Call init_mock_requester before init_requester + + Captured must check if mocking got enabled. + + libs/net/grl-net-wc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1b86f5b56e400780c8b0e61982a8bef5a66de542 +Author: Mathias Hasselmann +Date: Mon Oct 22 18:40:49 2012 +0200 + + net: Add version field to captured mock config + + libs/net/grl-net-mock-private.h | 1 + + libs/net/grl-net-mock.c | 4 +--- + libs/net/grl-net-private.c | 7 ++++++- + 3 files changed, 8 insertions(+), 4 deletions(-) + +commit 2e748c970f4c8d58c7e0da51e0e31390b572197e +Author: Mathias Hasselmann +Date: Mon Oct 22 18:27:03 2012 +0200 + + net: Don't capture while mocking is enabled + + libs/net/grl-net-private.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit dc32625d1ae955eacb9c9f05813bd26751cce1ab +Author: Mathias Hasselmann +Date: Mon Oct 22 17:09:15 2012 +0200 + + net: Use MD5 sum instead of URL in capture files + + Some services use extraordinary long URL that exceed file system limits + + libs/net/grl-net-private.c | 11 ++++++----- + 1 file changed, 6 insertions(+), 5 deletions(-) + +commit 9737eb32eb18aa93c20b0f6daf6e2d36708ef48f +Author: Mathias Hasselmann +Date: Mon Oct 22 16:03:06 2012 +0200 + + net: Remove bogus assignment + + Lesson learned: Alway commit from IDE, so that you don't forget saving. + + libs/net/grl-net-mock.c | 2 -- + 1 file changed, 2 deletions(-) + +commit 499b0d4175107f06e9816238a9c4b75794e22618 +Author: Mathias Hasselmann +Date: Mon Oct 22 15:33:57 2012 +0200 + + net: Update author tag + + libs/net/grl-net-mock.c | 1 + + libs/net/grl-net-private.c | 1 + + libs/net/grl-net-wc.c | 1 + + 3 files changed, 3 insertions(+) + +commit ddb0065aa12b0df2b4a3db1770d816039438c38b +Author: Mathias Hasselmann +Date: Mon Oct 22 15:28:38 2012 +0200 + + net: Don't fallback to "grl-net-mock-data.ini" + + Just print a warning and disable mocking if the specified mock response file + cannot be found. + + libs/net/grl-net-mock.c | 23 +++++++++-------------- + 1 file changed, 9 insertions(+), 14 deletions(-) + +commit e3169e267a04258342f677b64b5ccb0072a96b12 +Author: Mathias Hasselmann +Date: Mon Oct 22 15:21:44 2012 +0200 + + net: Don't check GRL_NET_MOCKED for boolean values + + It's a pure filename now. + + libs/net/grl-net-mock.c | 19 ++++++------------- + 1 file changed, 6 insertions(+), 13 deletions(-) + +commit 7fcd4e3cebe2cf58b95d4fef5b6ff3bb74d33306 +Author: Mathias Hasselmann +Date: Sat Oct 20 22:01:42 2012 +0200 + + net: Simplify GRL_NET_MOCKED variable + + Always set throttling to zero in mocking mode. + + doc/grilo/plugins-testing.xml | 22 +++-------------- + libs/net/grl-net-mock-private.h | 3 --- + libs/net/grl-net-mock.c | 52 +++++++++-------------------------------- + libs/net/grl-net-wc.c | 8 ++----- + 4 files changed, 16 insertions(+), 69 deletions(-) + +commit eda45f27016c19c9b71094d6635c6893b4f31065 +Author: Mathias Hasselmann +Date: Sat Oct 20 21:55:38 2012 +0200 + + net: Always dipatch requests trough event loop + + This is to ensure consistent execution context for instant and for + non-delayed web requests. + + libs/net/grl-net-wc.c | 52 ++++++++++++++++++++++++++------------------------- + 1 file changed, 27 insertions(+), 25 deletions(-) + +commit e9d947579effd34c459463461f652c945b806b62 +Author: Mathias Hasselmann +Date: Fri Oct 19 00:05:10 2012 +0200 + + docs: Improve description of "ignored-parameters" mocks setting + + doc/grilo/plugins-testing.xml | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +commit ca7cda0626a1003c06be0b645dc46c30f931f738 +Author: Mathias Hasselmann +Date: Thu Oct 18 23:56:00 2012 +0200 + + net: -Rename grl-net-mock.h to grl-net-mock-private.h + + In general grilo uses the suffix "-private" for all the headers that + contain private functions. So it is easier to know if the functions are + public or not. + + libs/net/{grl-net-mock.h => grl-net-mock-private.h} | 6 +++--- + libs/net/grl-net-mock.c | 2 +- + libs/net/grl-net-wc.c | 2 +- + 3 files changed, 5 insertions(+), 5 deletions(-) + +commit c43ab603e701b82365c602ea45a8550eccbed963 +Author: Mathias Hasselmann +Date: Thu Oct 18 23:53:37 2012 +0200 + + net: Put the timestamp before the URL in the captured file + + So it is easier to sort the results in chronological order. + Also use monotonic instead of real time for exactly the same purpose. + + libs/net/grl-net-private.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit ac2c27e5796d05c45de1c71fc29f6cbf52f811ff +Author: Mathias Hasselmann +Date: Thu Oct 18 23:52:14 2012 +0200 + + net: Add PID to captured .ini file, as grl-net-mock-data-%PID.ini + + Thus, we can run several times the application and + capture the data without loosing previous captures. + + libs/net/grl-net-private.c | 15 +++++++++------ + 1 file changed, 9 insertions(+), 6 deletions(-) + +commit c5e6f4457749e2719d3d96c02e7e3fd9b5ace1e3 +Author: Mathias Hasselmann +Date: Thu Oct 18 23:47:22 2012 +0200 + + net: Set config file and throttling via GRL_NET_MOCKED + + Also rename grl-mock-data.ini to grl-net-mock-data.ini, to make it clear + this data is for grl-net mocking. + + doc/grilo/plugins-testing.xml | 24 +++++--- + libs/net/grl-net-mock.c | 128 +++++++++++++++++++++++------------------- + libs/net/grl-net-mock.h | 2 +- + libs/net/grl-net-wc.c | 10 +++- + 4 files changed, 93 insertions(+), 71 deletions(-) + +commit 69cd8b2aea79c0d3264cb5d338b25ef2cfb44c07 +Author: Mathias Hasselmann +Date: Thu Oct 18 22:53:11 2012 +0200 + + net: Parse GRL_NET_MOCKED only once upon initialization + + libs/net/grl-net-mock.c | 22 ++++++++++++++-------- + libs/net/grl-net-mock.h | 2 ++ + 2 files changed, 16 insertions(+), 8 deletions(-) + +commit fdef04fad5d04cca8c94af3f32b960391ea3e2d8 +Author: Mathias Hasselmann +Date: Thu Oct 18 22:41:45 2012 +0200 + + net: Use GRL_NET_CAPTURE_DIR instead of GRL_WEB_CAPTURE_DIR + + doc/grilo/plugins-testing.xml | 2 +- + libs/net/grl-net-private.c | 2 +- + libs/net/grl-net-private.h | 3 +++ + 3 files changed, 5 insertions(+), 2 deletions(-) + +commit 0c83dc1ada265c0899e232e323637f843bdb24f5 +Author: Mathias Hasselmann +Date: Thu Oct 18 22:39:19 2012 +0200 + + net: Print warning when the dump directory can't be initialized + + ...so the user is aware dump won't take place. + + libs/net/grl-net-private.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit cfd03645f0fe06101cc058ac037306a00c893e43 +Author: Mathias Hasselmann +Date: Thu Oct 18 22:36:42 2012 +0200 + + net: Move G_GNUC_INTERNAL declaration to follow documented advice. + + libs/net/grl-net-mock.h | 18 +++++++++++++----- + libs/net/grl-net-private.h | 6 ++++-- + 2 files changed, 17 insertions(+), 7 deletions(-) + +commit 30fd031b8f1dab6b56a9c4fe5e6d0157fdf1d0e7 +Author: Mathias Hasselmann +Date: Fri Oct 12 01:53:56 2012 +0200 + + log: Don't barf about missing grl-mock-data.ini all the time + + libs/net/grl-net-mock.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit c0bf2395e4c2886757755d8d5f4fe1e8218c431c +Author: Mathias Hasselmann +Date: Thu Oct 11 22:16:05 2012 +0200 + + net: Permit unthrottled mock sessions. + + doc/grilo/plugins-testing.xml | 6 ++++++ + libs/net/grl-net-mock.c | 9 +++++++++ + libs/net/grl-net-mock.h | 1 + + libs/net/grl-net-wc.c | 5 +++-- + 4 files changed, 19 insertions(+), 2 deletions(-) + +commit 34ade4c38966a4c8d74525344e21dff1732a843d +Author: Mathias Hasselmann +Date: Thu Oct 11 21:32:48 2012 +0200 + + net: Move mocking docs into API docs + + doc/grilo/plugins-testing.xml | 84 +++++++++++++++++++++++++++++++++++++++++++ + libs/net/grl-net-mock.c | 39 -------------------- + 2 files changed, 84 insertions(+), 39 deletions(-) + +commit 6886dd7ad9bf916edfc2e7506716a828739f725f +Author: Mathias Hasselmann +Date: Thu Oct 11 21:07:43 2012 +0200 + + net: Build grl-mock-data.ini from captured web requests. + + libs/net/grl-net-private.c | 39 ++++++++++++++++++++++++++++----------- + 1 file changed, 28 insertions(+), 11 deletions(-) + +commit 002764011f840821f18264d36f7e001aebdc8464 +Author: Mathias Hasselmann +Date: Thu Oct 11 20:55:48 2012 +0200 + + net: Use g_build_filename() for building capture file name. + + libs/net/grl-net-private.c | 36 ++++++++++++++++++++++-------------- + libs/net/grl-net-private.h | 2 +- + 2 files changed, 23 insertions(+), 15 deletions(-) + +commit 93d7a8730c5f321ad5ef7b9471997368b4b12eec +Author: Mathias Hasselmann +Date: Thu Oct 11 20:48:53 2012 +0200 + + net: Sanitize GRL_WEB_CAPTURE_DIR handling + + libs/net/grl-net-private.c | 14 +++++--------- + 1 file changed, 5 insertions(+), 9 deletions(-) + +commit 1ff3504eff00b9654386a5448a80ffaae5d333fd +Author: Mathias Hasselmann +Date: Thu Oct 11 20:43:33 2012 +0200 + + net: Make GRL_NET_MOCKED more intuitive + + libs/net/grl-net-mock.c | 12 ++++++++++++ + libs/net/grl-net-mock.h | 4 +--- + libs/net/grl-net-wc.c | 8 ++++---- + 3 files changed, 17 insertions(+), 7 deletions(-) + +commit 750df2abc87f84bb81bc4034eb7f762f9003e5f1 +Author: Mathias Hasselmann +Date: Thu Oct 11 20:38:08 2012 +0200 + + net: Change ignore-parameters into ignored-parameters + + libs/net/grl-net-mock.c | 60 +++++++++++++++++++++++++++++++++++++++---------- + 1 file changed, 48 insertions(+), 12 deletions(-) + +commit edd29e1ae7d68f468570ca1b47f866ba40725096 +Author: Mathias Hasselmann +Date: Thu Oct 11 20:25:21 2012 +0200 + + net: Set proper logging domain + + libs/net/grl-net-private.h | 3 +++ + libs/net/grl-net-wc.c | 1 - + 2 files changed, 3 insertions(+), 1 deletion(-) + +commit 7b168fcff60cdaf99f5967d0754777793c64bbcc +Author: Jens Georg +Date: Thu Oct 11 15:09:09 2012 +0200 + + net: Support mocking of network answers + + Mock network answers of webservices through predefined files. This is useful + for offline testing of plug-ins that provide sources from webservices. See the + header of libs/net/grl-net-mock.c for full documentation. + + libs/net/Makefile.am | 3 +- + libs/net/grl-net-mock.c | 262 +++++++++++++++++++++++++++++++++++++++ + libs/net/grl-net-mock.h | 49 ++++++++ + libs/net/grl-net-private.c | 43 +++++++ + libs/net/grl-net-private.h | 4 + + libs/net/grl-net-soup-stable.c | 6 +- + libs/net/grl-net-soup-unstable.c | 5 + + libs/net/grl-net-wc.c | 24 +++- + 8 files changed, 390 insertions(+), 6 deletions(-) + +commit ee5513f6303412a0d3e7c4ccf2dcbd43132f8405 +Author: Mathias Hasselmann +Date: Tue Oct 16 20:48:46 2012 +0200 + + Add region tags for publication and certification + + Both TMDB and IMDB publish region specific information for this metadata. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=679686 + + bindings/vala/grilo-0.2-custom.vala | 2 + + doc/grilo/grilo-sections.txt | 7 ++ + src/data/grl-media.c | 156 +++++++++++++++++++++++++++++++++++- + src/data/grl-media.h | 24 ++++++ + src/grl-metadata-key.c | 16 +++- + src/grl-metadata-key.h | 1 + + 6 files changed, 202 insertions(+), 4 deletions(-) + +commit 178f46ac39ae25940ec2d3c2204928639c6ff5e3 +Author: Juan A. Suarez Romero +Date: Fri Oct 19 17:18:04 2012 +0000 + + core: Sources always accept store_metadata() + + When the operation is performed with a source that does not implement the + operation, if GRL_WRITE_FULL was specified core will follow with other sources; + otherwise it will notify the operation failed for all the specified keys (if + developer has passed a callback). + + src/grl-source.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +commit 103d87b19490e475e9d64ccbe90cb26958708649 +Author: Juan A. Suarez Romero +Date: Fri Oct 19 15:52:26 2012 +0000 + + core: Sources always accept resolve() operation + + If the source does not implement resolve(), but the user requested the + FULL_RESOLVE flag, then Grilo will use other sources to satisfy the query. + + If the source does not implement resolve(), and user did not specified + FULL_RESOLVE, then the same media without changes will be sent through the + callback. + + This way, when a developer wants to solve a key not supported by the source, if + it neither supports resolve() then they do not need to search for a source + supporting resolve() and the key; developer can simply invoke resolve() with + the same source, specifying FULL_RESOLVE flag so the core does the job. + + src/grl-source.c | 51 ++++++++++++++++++++++++++++++---------------- + tools/grilo-test-ui/main.c | 19 ++++++----------- + 2 files changed, 39 insertions(+), 31 deletions(-) + +commit 751a7a2cde3ea007bd2871aef2e0005e551ab485 +Author: Juan A. Suarez Romero +Date: Fri Oct 19 10:01:02 2012 +0000 + + core: g_type_init() is deprecated + + For glib >= 2.35.0. + + src/grilo.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 47dc2a401577edf80b3521dff478c2aa687c38ba +Author: Antía Puentes +Date: Wed Oct 10 12:17:35 2012 +0200 + + core: Add the 'favourite' metadata property + + The new property indicates if an item was marked as + favourite or not. + + https://bugzilla.gnome.org/show_bug.cgi?id=685861 + + src/data/grl-media.c | 29 +++++++++++++++++++++++++++++ + src/data/grl-media.h | 4 ++++ + src/grl-metadata-key.c | 9 +++++++++ + src/grl-metadata-key.h | 1 + + 4 files changed, 43 insertions(+) + +commit 6269a37296d3021bc4b8f602130e6e1c37d8ab3f +Author: Antía Puentes +Date: Wed Oct 10 12:17:23 2012 +0200 + + core: Add support for boolean data in GrlData + + https://bugzilla.gnome.org/show_bug.cgi?id=685861 + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 41 +++++++++++++++++++++++++++++++++++++++++ + src/data/grl-data.h | 4 ++++ + 2 files changed, 45 insertions(+) + +commit 924cdd3718d9af87b702a9ffe65fce7055ae17bf +Author: Dominique Leuenberger +Date: Wed Oct 17 10:22:09 2012 +0200 + + object-introspection: reference libgrilo-0.2.la while building GrlNet.gir + + Fixes bug BGO#686271. + + libs/net/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit c00110039430b6f359ba780b5b281b9f1b8eeae3 +Author: Juan A. Suarez Romero +Date: Thu Oct 18 16:57:09 2012 +0200 + + core: Check valid options in operations + + This is the right fix bug #686033, instead of commit + 52da21f5443079f. + + https://bugzilla.gnome.org/show_bug.cgi?id=686033 + + src/grl-source.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 073216ae6b133a47444b029a96a339a98ab3fa64 +Author: Mathias Hasselmann +Date: Wed Oct 17 13:15:43 2012 +0200 + + core: Set proper GValue type in grl_related_keys_set_boxed() + + src/data/grl-related-keys.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 52da21f5443079fb0d5d049c38e127925281802f +Author: Juan A. Suarez Romero +Date: Wed Oct 17 09:11:05 2012 +0000 + + core: Check valid options in operations + + https://bugzilla.gnome.org/show_bug.cgi?id=686033 + + src/grl-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit 7619eb238a375652ab89ec3012984751a3cf975d +Author: Bastien Nocera +Date: Fri Oct 12 15:31:07 2012 +0200 + + doc: Fix typo in _grl_log_init_core_domains() + + https://bugzilla.gnome.org/show_bug.cgi?id=686032 + + src/grl-log.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 28049b1d2990382a4de28b5b1affa9c312ee134c +Author: Juan A. Suarez Romero +Date: Tue Oct 16 11:25:43 2012 +0000 + + core: Do not access freed structure + + Save the value in a variable because the struct can be freed. + + src/grl-source.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit bf0e0197a8e5964d9e92737edbe36f5001a9cbee +Author: Juan A. Suarez Romero +Date: Tue Oct 16 12:49:39 2012 +0200 + + core: Fix annotation in GrlStoreCb + + failed_keys list is owned by the caller. Callback shouldn't free it. + + src/grl-source.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 44abc6be32a8689e890f50b77a6301dd83257cab +Author: Juan A. Suarez Romero +Date: Tue Oct 9 11:57:59 2012 +0000 + + test-ui: Fixed a crash when searching in all sources + + Unreffing a variable in wrong place. + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 94c804d2d6a97398e8c80f66588b88ab4cd56757 +Author: Juan A. Suarez Romero +Date: Tue Oct 9 10:10:17 2012 +0000 + + test-ui: Add API key for TMDb plugin + + Just for test purpose! + + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 62b01582e01c0e462433950f1976cd28781c665e +Author: Murray Cumming +Date: Mon Oct 8 11:45:51 2012 +0200 + + duration: Document this as seconds + + src/grl-metadata-key.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 526d5ee3f1f8018ab4323b87c81e0f8e1abd233a +Author: Murray Cumming +Date: Mon Oct 8 10:13:23 2012 +0200 + + --author=Murray Cumming + + src/grl-metadata-key.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit a6baa038b4ab344f3c9768f251d6865197ddd9b9 +Author: Murray Cumming +Date: Tue Oct 2 12:35:16 2012 +0200 + + Use GRL_METADATA_KEY_INVALID instead of NULL. + + This is what the grl_metadata_key_list_new() documentation + says we should do. NULL is the same thing, but that is an internal + detail. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=685274 + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/plugins-sources.xml | 2 +- + examples/browsing.c | 2 +- + examples/efficient-metadata-resolution.c | 4 ++-- + examples/multivalues.c | 2 +- + examples/searching.c | 2 +- + 5 files changed, 6 insertions(+), 6 deletions(-) + +commit 818a8e531732b7ff0763fbb932dfebfb4a75df1f +Author: Juan A. Suarez Romero +Date: Fri Oct 5 11:26:44 2012 +0200 + + Post-release version bump to 0.2.3 + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 9db1eafb7a2dfed6f26a01450bdb39e9595e3e33 +Author: Juan A. Suarez Romero +Date: Thu Oct 4 22:02:55 2012 +0000 + + Release 0.2.2 + + AUTHORS | 1 + + NEWS | 14 ++++++++++++++ + configure.ac | 18 +++++++++--------- + libs/net/grl-net-wc.c | 4 ++++ + 4 files changed, 28 insertions(+), 9 deletions(-) + +commit 47adfb6cb7faf12e36ba66f18d9ceba3e3bd53c0 +Author: Juan A. Suarez Romero +Date: Wed Oct 3 23:54:29 2012 +0200 + + Downgrade version to 0.2.1 + + AUTHORS | 1 + + Makefile.am | 4 ++-- + NEWS | 25 ++++++++++++++++++++++ + ...grilo-0.3-custom.vala => grilo-0.2-custom.vala} | 0 + bindings/vala/{grilo-0.3.deps => grilo-0.2.deps} | 0 + .../{grilo-0.3.metadata => grilo-0.2.metadata} | 0 + ...t-0.3-custom.vala => grilo-net-0.2-custom.vala} | 0 + .../{grilo-net-0.3.deps => grilo-net-0.2.deps} | 0 + ...ilo-net-0.3.metadata => grilo-net-0.2.metadata} | 0 + bindings/vala/grilo-net-uninstalled.files.in | 2 +- + bindings/vala/grilo-uninstalled.files.in | 2 +- + configure.ac | 12 +++++------ + doc/grilo/environment-setup.xml | 2 +- + grilo-0.3.pc.in => grilo-0.2.pc.in | 0 + grilo-net-0.3.pc.in => grilo-net-0.2.pc.in | 2 +- + grilo-net-uninstalled.pc.in | 2 +- + tools/vala/Makefile.am | 2 +- + 17 files changed, 40 insertions(+), 14 deletions(-) + +commit 34865dc99a30e082c8f6d731e66ad373516239a4 +Author: Juan A. Suarez Romero +Date: Tue Oct 2 08:20:01 2012 +0000 + + doc: Sort entries in documentation + + doc/grilo/grilo-sections.txt | 594 ++++++++++++++++++++++--------------------- + 1 file changed, 298 insertions(+), 296 deletions(-) + +commit bb26ab640e335b817d1b268d9677f95ba81c80a2 +Author: Juan A. Suarez Romero +Date: Tue Oct 2 07:53:06 2012 +0000 + + doc: Update documentation + + Add grl_net_wc_request_with_headers_async() and + grl_net_wc_request_with_headers_hash_async() to documentation section. + + doc/grilo/grilo-sections.txt | 2 ++ + 1 file changed, 2 insertions(+) + +commit c2c5558ae9e1f087aee0a37ede47b84ca85506a7 +Author: Mathias Hasselmann +Date: Mon Oct 1 00:25:01 2012 +0200 + + core: Obey GRL_WRITE_NORMAL in grl_source_store() + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=685169 + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 02d9befee7c3bf172714a3627afef2c9b5e3b650 +Author: Mathias Hasselmann +Date: Sun Sep 30 21:47:29 2012 +0200 + + core: Properly pass store spec to store_relay_cb() + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=685161 + + src/grl-source.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +commit 1c288a718d930e8c5cbeff9d08f4511ca965a9ae +Author: Juan A. Suarez Romero +Date: Wed Sep 26 17:00:59 2012 +0200 + + build: Add option to disable Test UI + + configure.ac | 22 +++++++++++++++++++--- + 1 file changed, 19 insertions(+), 3 deletions(-) + +commit a9fad347ef103c5b0ca8c555e2d50bc099a76a74 +Author: Juan A. Suarez Romero +Date: Tue Sep 25 11:31:40 2012 +0200 + + net: Check if headers are NULL + + libs/net/grl-net-wc.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit bf186d0626220b8515cbf2ce2809e404ce6f0d28 +Author: Jens Georg +Date: Thu Jul 12 22:44:47 2012 +0200 + + net: Add possibility to add arbitrary HTTP headers + + Some webservices need custom HTTP headers for requests; this patch adds + a function to schedule requests with those special headers. + + Under contract for Canonical Ltd. + + https://bugzilla.gnome.org/show_bug.cgi?id=680436 + + Signed-off-by: Juan A. Suarez Romero + + libs/net/grl-net-private.h | 1 + + libs/net/grl-net-soup-stable.c | 13 ++++++ + libs/net/grl-net-soup-unstable.c | 19 ++++++++ + libs/net/grl-net-wc.c | 97 ++++++++++++++++++++++++++++++++++++++-- + libs/net/grl-net-wc.h | 16 +++++++ + 5 files changed, 143 insertions(+), 3 deletions(-) + +commit e0172c8cba65663cd8a06c10fd10757080362172 +Author: Juan A. Suarez Romero +Date: Fri Sep 14 15:15:37 2012 +0200 + + core: Increase reference in list content, not list node + + Fixes a crash when doing g_object_ref (node) instead of g_object_ref + (node->data). + + Node is a GList node containing a gobject. + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c8ccea50ebf178a4fbc2b7778a12fa7c3a1b0ef5 +Author: Juan A. Suarez Romero +Date: Fri Sep 14 15:14:47 2012 +0200 + + core: Use GRL_WARNING instead of GRL_ERROR for elements not found in the + queue + + Disturbs less the user. + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c00ad172d6f5d058c288efabf5b7ee9c0d75732a +Author: Bastien Nocera +Date: Fri Sep 7 15:49:53 2012 +0200 + + core: Load modules with G_MODULE_BIND_LOCAL + + src/grl-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1ca49cb94c616ecffb29a102e45b827685a51865 +Author: Jens Georg +Date: Fri Jul 20 17:04:46 2012 +0200 + + doc: Clarify what "site" is supposed to be + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=682793 + + src/data/grl-media.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 2076f736e6415df01cbd2894aef6ea63d0040363 +Author: Jens Georg +Date: Fri Jul 20 17:04:25 2012 +0200 + + doc: Clarify normalization of the rating + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=682793 + + src/data/grl-media.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit ca606fb1cd8e8fea10df782acc35122f0175062b +Author: Mathias Hasselmann +Date: Thu Aug 30 20:56:52 2012 +0200 + + Properly name some GType macros + + Those for GrlCaps and GrlOperationOptions had "TYPE" add the end + instead of the begin (right after the namespace). + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=683055 + + src/grl-caps.h | 15 +++++++++------ + src/grl-operation-options.h | 15 +++++++++------ + 2 files changed, 18 insertions(+), 12 deletions(-) + +commit 6016620b3d30d03cc4077cc876ad2afa4c565202 +Author: Mathias Hasselmann +Date: Tue Aug 28 10:47:13 2012 +0200 + + Avoid leak in grl_source_get_media_from_uri() + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=682855 + + src/grl-source.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit c80c75e682edc76e73e4fca5d772711226bc9d53 +Author: Jens Georg +Date: Tue Jul 17 15:35:23 2012 +0200 + + test-ui: Fix garbled UTF-8 output + + g_strdup_value_contents uses g_strescape on anything that's not ASCII + which garbles anything fancy in the UI. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=682791 + + tools/grilo-test-ui/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 90b7c9842eee77f601de01f2b1ac8abb817c1585 +Author: Mathias Hasselmann +Date: Thu Aug 16 18:51:30 2012 +0200 + + Don't crash in grl_source_get_media_from_uri() + + https://bugzilla.gnome.org/show_bug.cgi?id=682024 + + src/grl-source.c | 19 ++++++++++++------- + 1 file changed, 12 insertions(+), 7 deletions(-) + +commit dc57a5d4c73bf4383ceb18dc97a470bf7d929509 +Author: Mathias Hasselmann +Date: Thu Aug 16 13:52:58 2012 +0200 + + Add missing C++ guards + + https://bugzilla.gnome.org/show_bug.cgi?id=681992 + + src/grl-metadata-key.h | 4 ++++ + src/grl-multiple.h | 4 ++++ + 2 files changed, 8 insertions(+) + +commit b911c0f6a9e48ff562ed46173d1582478728a59f +Author: Mathias Hasselmann +Date: Thu Aug 16 12:53:41 2012 +0200 + + Avoid warning about bad pointer cast + + https://bugzilla.gnome.org/show_bug.cgi?id=681983 + + src/grl-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 592f87ce233860d080a33987e589fbc3be475e89 +Author: Mathias Hasselmann +Date: Thu Aug 16 12:55:11 2012 +0200 + + Don't freeze sync functions on failed precondition + + https://bugzilla.gnome.org/show_bug.cgi?id=681984 + + src/grl-multiple.c | 15 ++- + src/grl-source.c | 277 ++++++++++++++++++++++++++++++----------------------- + 2 files changed, 163 insertions(+), 129 deletions(-) + +commit 485c283beb56d11a1cdf52686eefe4fed97ae6df +Author: Juan A. Suarez Romero +Date: Mon Aug 13 15:18:05 2012 +0200 + + core: GrlKeyID are not GParamSpec + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=681757 + + bindings/vala/grilo-0.3-custom.vala | 92 +++++++++++++++++++++----------- + bindings/vala/grilo-uninstalled.files.in | 2 +- + src/grl-metadata-key.c | 3 -- + src/grl-source.c | 2 +- + tools/vala/grilo-test.vala | 2 +- + 5 files changed, 64 insertions(+), 37 deletions(-) + +commit 2bcba9c3f702346998ae8a02310160e6ff12270a +Author: Juan A. Suarez Romero +Date: Mon Aug 13 08:32:21 2012 +0000 + + Post-release version bump to 0.3.1 + + Makefile.am | 4 ++-- + bindings/vala/{grilo-0.2-custom.vala => grilo-0.3-custom.vala} | 0 + bindings/vala/{grilo-0.2.deps => grilo-0.3.deps} | 0 + bindings/vala/{grilo-0.2.metadata => grilo-0.3.metadata} | 0 + .../{grilo-net-0.2-custom.vala => grilo-net-0.3-custom.vala} | 0 + bindings/vala/{grilo-net-0.2.deps => grilo-net-0.3.deps} | 0 + .../vala/{grilo-net-0.2.metadata => grilo-net-0.3.metadata} | 0 + bindings/vala/grilo-net-uninstalled.files.in | 2 +- + bindings/vala/grilo-uninstalled.files.in | 2 +- + configure.ac | 10 +++++----- + doc/grilo/environment-setup.xml | 2 +- + grilo-0.2.pc.in => grilo-0.3.pc.in | 0 + grilo-net-0.2.pc.in => grilo-net-0.3.pc.in | 2 +- + grilo-net-uninstalled.pc.in | 2 +- + tools/vala/Makefile.am | 2 +- + 15 files changed, 13 insertions(+), 13 deletions(-) + +commit c20432e27e93d96ae0edc3238f958afe61cb06ff +Author: Juan A. Suarez Romero +Date: Mon Aug 13 08:17:10 2012 +0000 + + Release 0.2.0 + + AUTHORS | 1 + + NEWS | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 49 insertions(+) + +commit 4288bc5b4d1d2bcc43af708ff6abdc56f9f21d16 +Author: Juan A. Suarez Romero +Date: Mon Aug 13 08:16:52 2012 +0000 + + net: Add API version + + configure.ac | 11 ++++++++--- + grilo-net-0.2.pc.in | 4 ++-- + grilo-net-uninstalled.pc.in | 4 ++-- + 3 files changed, 12 insertions(+), 7 deletions(-) + +commit c284ab8df6179705a36cfcc57575a8236301a24e +Author: Juan A. Suarez Romero +Date: Mon Aug 13 08:15:26 2012 +0000 + + doc: Add API information + + Annotate "Since:" tag. + + src/data/grl-data.c | 10 ++++++ + src/data/grl-media.c | 13 +++++-- + src/data/grl-related-keys.c | 4 +++ + src/grl-caps.c | 19 +++++++++++ + src/grl-metadata-key.c | 4 +++ + src/grl-multiple.c | 6 ++-- + src/grl-operation-options.c | 38 ++++++++++++++++++++- + src/grl-plugin.c | 26 ++++++++++++++ + src/grl-registry.c | 54 ++++++++++++++++++----------- + src/grl-source.c | 83 +++++++++++++++++++++++++++++++++++++++++++-- + src/grl-util.c | 1 + + 11 files changed, 230 insertions(+), 28 deletions(-) + +commit 0de56ce6677d8572c53e7cedc6bbaeb0d4175d82 +Author: Juan A. Suarez Romero +Date: Mon Aug 13 08:14:25 2012 +0000 + + build: Add libtool version information + + configure.ac | 13 +++++++++++++ + libs/net/Makefile.am | 1 + + src/Makefile.am | 3 ++- + 3 files changed, 16 insertions(+), 1 deletion(-) + +commit 38da1963a3c772b367c037bb449cde58b9b1efae +Author: Juan A. Suarez Romero +Date: Fri Aug 10 12:28:35 2012 +0200 + + doc: Improve documentation + + doc/grilo/grilo-sections.txt | 36 ++++++++-- + src/data/grl-config.c | 110 +++++++++++++++++++++++++++++ + src/grl-caps.c | 31 ++++++++ + src/grl-log.c | 20 ++++++ + src/grl-operation-options.c | 75 ++++++++++++++++++++ + src/grl-operation.c | 4 +- + src/grl-plugin.c | 165 +++++++++++++++++++++++-------------------- + src/grl-range-value.c | 15 ++-- + src/grl-registry.c | 4 +- + src/grl-value-helper.c | 21 +----- + 10 files changed, 367 insertions(+), 114 deletions(-) + +commit d12292b917b1f4ac6380f20abc10f3edfc59ac36 +Author: Juan A. Suarez Romero +Date: Fri Aug 10 12:27:24 2012 +0200 + + core: Remove unused function + + grl_source_cancel() is not used. + + Cancelling is done invoking grl_operation_cancel(). + + src/grl-source.c | 49 +------------------------------------------------ + src/grl-source.h | 2 -- + 2 files changed, 1 insertion(+), 50 deletions(-) + +commit bd874eb631d1b97729b9809930678adaffc1b0ca +Author: Juan A. Suarez Romero +Date: Fri Aug 10 09:44:37 2012 +0200 + + core: Fix typos in documentation + + src/data/grl-media-image.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit fb080a15a09d77acedbeaf75471650c20ee9c49f +Author: César García Tapia +Date: Thu Aug 9 13:03:42 2012 +0200 + + vala: make caps in operation_options.new() nullable + + bindings/vala/grilo-0.2.metadata | 3 +++ + 1 file changed, 3 insertions(+) + +commit 08277434360fe204b7516be19bc3d163feb813c1 +Author: Víctor Manuel Jáquez Leal +Date: Thu Aug 9 12:40:18 2012 +0200 + + vala: make container in source.browse() nullable + + bindings/vala/grilo-0.2.metadata | 1 + + 1 file changed, 1 insertion(+) + +commit 4bf44ae369f218e9b8faf54ac32db84fb50dceda +Author: Juan A. Suarez Romero +Date: Wed Aug 8 16:22:44 2012 +0000 + + vala: Do not install VAPI files in specific vapi directory of the compiler + + Rather, install it in $(datadir)/vala/vapi place. + + bindings/vala/Makefile.am | 2 +- + configure.ac | 5 ----- + 2 files changed, 1 insertion(+), 6 deletions(-) + +commit 40db943144ea4017e28988281490e48b043b1d96 +Author: Juan A. Suarez Romero +Date: Wed Aug 8 15:52:03 2012 +0000 + + core: Fix typo in key description + + src/grl-metadata-key.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 4f046878faeccdd6548bb17471e7a22dd9d91758 +Author: Víctor Manuel Jáquez Leal +Date: Tue Aug 7 12:51:14 2012 +0200 + + grl-net: avoid a possible double free + + In the soup-unstable there was the possiblity to face a double + free if get_content() was called twice with the content parameter + set as NULL first. + + Thanks to Jens Georg for aiming at this issue. + + libs/net/grl-net-soup-unstable.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit b3be0e0f4c1543c8e2372fbc43cd238868afcd2e +Author: Juan A. Suarez Romero +Date: Mon Jul 23 13:59:35 2012 +0000 + + core: Rename some registry functions + + Rename those registry functions affecting plugins, by adding the word "plugin". + + It makes clear what the functions are about. + + doc/grilo/grilo-sections.txt | 10 +++--- + doc/grilo/writing-apps.xml | 2 +- + examples/browsing.c | 2 +- + examples/configuring-plugins.c | 2 +- + examples/efficient-metadata-resolution.c | 2 +- + examples/loading-plugins.c | 2 +- + examples/multivalues.c | 2 +- + examples/searching.c | 2 +- + src/grl-registry.c | 56 ++++++++++++++++---------------- + src/grl-registry.h | 28 ++++++++-------- + tests/metadata_source.c | 2 +- + tests/registry.c | 2 +- + tools/grilo-inspect/grl-inspect.c | 2 +- + tools/grilo-test-ui/main.c | 10 +++--- + tools/vala/grilo-test.vala | 2 +- + 15 files changed, 63 insertions(+), 63 deletions(-) + +commit 41f2fe09990e8f800f829e52867e87864d971b5f +Author: Juan A. Suarez Romero +Date: Mon Jul 23 10:36:53 2012 +0000 + + core: Rename PluginRegistry to Registry + + bindings/vala/grilo-0.2.metadata | 10 +- + bindings/vala/grilo-uninstalled.files.in | 2 +- + doc/grilo/environment-setup.xml | 4 +- + doc/grilo/grilo-docs.sgml | 2 +- + doc/grilo/grilo-sections.txt | 76 +- + doc/grilo/grilo.types | 2 +- + doc/grilo/plugins-sources.xml | 16 +- + doc/grilo/plugins-testing.xml | 8 +- + doc/grilo/writing-apps.xml | 20 +- + examples/browsing.c | 8 +- + examples/configuring-plugins.c | 14 +- + examples/efficient-metadata-resolution.c | 14 +- + examples/loading-plugins.c | 10 +- + examples/multivalues.c | 14 +- + examples/searching.c | 8 +- + src/Makefile.am | 6 +- + src/data/grl-data.c | 14 +- + src/data/grl-media.c | 14 +- + src/data/grl-related-keys.c | 10 +- + src/grilo.c | 10 +- + src/grilo.h | 2 +- + src/grl-log-priv.h | 2 +- + src/grl-log.c | 4 +- + src/grl-metadata-key-priv.h | 4 +- + src/grl-metadata-key.c | 871 +++++++++++---------- + src/grl-multiple.c | 22 +- + src/grl-operation-options.c | 8 +- + src/grl-plugin-priv.h | 2 +- + src/grl-plugin-registry.h | 278 ------- + src/grl-plugin.c | 14 +- + ...-plugin-registry-priv.h => grl-registry-priv.h} | 17 +- + src/{grl-plugin-registry.c => grl-registry.c} | 370 ++++----- + src/grl-registry.h | 272 +++++++ + src/grl-source.c | 28 +- + tests/metadata_source.c | 10 +- + tests/python/test_fs.py | 4 +- + tests/python/test_media.py | 2 +- + tests/python/test_metadata_source.py | 2 +- + tests/python/test_options.py | 4 +- + tests/python/test_plugin.py | 2 +- + tests/python/test_registry.py | 12 +- + tests/registry.c | 16 +- + tools/grilo-inspect/grl-inspect.c | 12 +- + tools/grilo-test-ui/main.c | 102 +-- + tools/js/testGrilo.js | 2 +- + tools/python/grilo-test-ui.py | 22 +- + tools/vala/grilo-test.vala | 2 +- + 47 files changed, 1174 insertions(+), 1174 deletions(-) + +commit a00b075fd6f76d2c9e7498e93bf40bfcd11b8c93 +Author: Juan A. Suarez Romero +Date: Mon Jul 16 14:37:35 2012 +0000 + + vala: Fix Vala bindings + + bindings/vala/grilo-0.2-custom.vala | 4 ---- + tools/vala/grilo-test.vala | 9 +++++++-- + 2 files changed, 7 insertions(+), 6 deletions(-) + +commit 157546f8612e0b061edcec32fd2e64c7c6ee647f +Author: Juan A. Suarez Romero +Date: Sat Jul 14 19:44:24 2012 +0000 + + doc: Improve documentation + + doc/grilo/Makefile.am | 5 +- + doc/grilo/grilo-docs.sgml | 13 +- + doc/grilo/grilo-sections.txt | 149 ++-- + doc/grilo/grilo.types | 2 - + doc/grilo/plugins-media-sources.xml | 1171 -------------------------- + doc/grilo/plugins-metadata-sources.xml | 398 --------- + doc/grilo/plugins-sources.xml | 1433 ++++++++++++++++++++++++++++++++ + libs/net/grl-net-wc.h | 5 +- + src/grl-caps.c | 7 +- + src/grl-multiple.c | 2 +- + src/grl-operation-options.c | 8 +- + src/grl-plugin-registry.c | 7 +- + src/grl-source.c | 3 +- + src/grl-source.h | 5 +- + 14 files changed, 1514 insertions(+), 1694 deletions(-) + +commit 8d162930251d03e0be8e1992fc086ff5a310ad0d +Author: Juan A. Suarez Romero +Date: Sat Jul 14 11:48:54 2012 +0000 + + core: Fix introspection annotations + + libs/net/grl-net-wc.c | 10 +++++----- + src/data/grl-related-keys.c | 1 - + src/grl-caps.c | 2 +- + src/grl-error.h | 7 ------- + src/grl-operation.c | 4 ++++ + src/grl-plugin.c | 4 ++-- + src/grl-range-value.c | 5 +++++ + src/grl-source.c | 22 +++++++++++----------- + src/grl-value-helper.c | 12 ++++++++---- + 9 files changed, 36 insertions(+), 31 deletions(-) + +commit b9b02d0cff289c8e88f3555cceda8154fd295bf3 +Author: Juan A. Suarez Romero +Date: Fri Jun 3 08:32:35 2011 +0200 + + core: Merge GrlMediaSource and GrlMetadataSource into GrlSource + + It merges both types of sources in just one, improving also the full + resolution algorithm. + + bindings/vala/grilo-0.2-custom.vala | 64 +- + bindings/vala/grilo-0.2.metadata | 50 +- + bindings/vala/grilo-uninstalled.files.in | 3 - + doc/grilo/Makefile.am | 1 - + examples/browsing.c | 14 +- + examples/efficient-metadata-resolution.c | 22 +- + examples/multivalues.c | 4 +- + examples/searching.c | 4 +- + src/Makefile.am | 15 +- + src/grilo.h | 3 +- + src/grl-error.h | 6 +- + src/grl-log-priv.h | 2 - + src/grl-log.c | 4 - + src/grl-media-source.c | 2931 ---------------------- + src/grl-media-source.h | 521 ---- + src/grl-metadata-source.c | 694 ------ + src/grl-metadata-source.h | 252 -- + src/grl-multiple.c | 82 +- + src/grl-multiple.h | 8 +- + src/grl-operation-options.c | 4 +- + src/grl-operation-options.h | 22 +- + src/grl-plugin-registry.h | 4 +- + src/grl-plugin.c | 2 +- + src/grl-source-priv.h | 75 - + src/grl-source.c | 3964 ++++++++++++++++++++++++++++-- + src/grl-source.h | 480 +++- + tools/grilo-inspect/grl-inspect.c | 13 +- + tools/grilo-test-ui/main.c | 200 +- + tools/vala/grilo-test.vala | 14 +- + 29 files changed, 4458 insertions(+), 5000 deletions(-) + +commit 6985175a7c980dbcd19000619879b1386936b806 +Author: Juan A. Suarez Romero +Date: Wed May 4 10:29:19 2011 +0000 + + core: Add API to get plugins from registry + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/grilo-sections.txt | 3 ++ + src/grl-plugin-registry.c | 65 ++++++++++++++++++++++++++++++++++++++++++-- + src/grl-plugin-registry.h | 7 +++++ + src/grl-plugin.c | 36 ++++++++++++++++++++++++ + src/grl-plugin.h | 2 ++ + tools/grilo-test-ui/main.c | 27 ++++++++---------- + 6 files changed, 121 insertions(+), 19 deletions(-) + +commit ae22e96590eed29b2a8d1c4b4bfce6fb11a1d822 +Author: Juan A. Suarez Romero +Date: Tue May 3 16:19:09 2011 +0000 + + core: Redesign source/plugin hierarchy + + Previously, hierarchy was: + + +----------------+ + | GrlMediaPlugin | + +-------.--------+ + /_\ + | + +-------------------+ + | GrlMetadataSource | + +---------.---------+ + /_\ + | + +----------------+ + | GrlMediaSource | + +----------------+ + + With the redesign, we have the new hierarchy: + + +-----------+ +-----------+ + | GrlPlugin |<>-----*| GrlSource | + +-----------+ +-----.-----+ + /_\ + | + +------------+----------+ + | | + +-------------------+ +----------------+ + | GrlMetadataSource | | GrlMediaSource | + +-------------------+ +----------------+ + + Signed-off-by: Juan A. Suarez Romero + + bindings/vala/grilo-0.2.metadata | 22 +- + bindings/vala/grilo-uninstalled.files.in | 3 +- + doc/grilo/grilo-sections.txt | 106 ++-- + doc/grilo/grilo.types | 3 +- + examples/browsing.c | 11 +- + examples/configuring-plugins.c | 4 +- + examples/efficient-metadata-resolution.c | 12 +- + examples/loading-plugins.c | 8 +- + examples/multivalues.c | 11 +- + examples/searching.c | 11 +- + src/Makefile.am | 12 +- + src/grilo.h | 2 +- + src/grl-log-priv.h | 3 +- + src/grl-log.c | 6 +- + src/grl-media-plugin-priv.h | 47 -- + src/grl-media-plugin.c | 284 --------- + src/grl-media-plugin.h | 134 ----- + src/grl-media-source.c | 488 ++++++++++----- + src/grl-media-source.h | 12 +- + src/grl-metadata-source-priv.h | 51 +- + src/grl-metadata-source.c | 997 +------------------------------ + src/grl-metadata-source.h | 96 +-- + src/grl-multiple.c | 11 +- + src/grl-plugin-priv.h | 70 +++ + src/grl-plugin-registry.c | 578 +++++++++--------- + src/grl-plugin-registry.h | 75 +-- + src/grl-plugin.c | 494 +++++++++++++++ + src/grl-plugin.h | 135 +++++ + src/grl-source-priv.h | 75 +++ + src/grl-source.c | 817 +++++++++++++++++++++++++ + src/grl-source.h | 178 ++++++ + tools/grilo-inspect/grl-inspect.c | 59 +- + tools/grilo-test-ui/main.c | 81 ++- + tools/vala/grilo-test.vala | 8 +- + 34 files changed, 2667 insertions(+), 2237 deletions(-) + +commit 1a354a48c655e23477e9949b7ea3a21c20d9c672 +Author: Juan A. Suarez Romero +Date: Fri Jul 13 07:34:21 2012 +0000 + + core: Prefix GObject macros with GRL_ + + Rename IS_GRL_foo to GRL_IS_foo. + + src/grl-caps.h | 4 ++-- + src/grl-operation-options.h | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +commit b5382e28d6765301cc64271e974cc1af35c8ceac +Author: Murray Cumming +Date: Tue Jul 10 12:38:03 2012 +0200 + + core: Avoid pedantic compiler warnings with C++. + + g++ complains about trailing commas in enums when using + -Wpedantic. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=679674 + + Signed-off-by: Juan A. Suarez Romero + + autogen.sh | 2 +- + libs/net/grl-net-wc.c | 2 +- + libs/net/grl-net-wc.h | 2 +- + src/grl-caps.h | 2 +- + src/grl-media-source.c | 4 ++-- + src/grl-media-source.h | 2 +- + src/grl-metadata-source.c | 2 +- + src/grl-metadata-source.h | 4 ++-- + src/grl-operation-options.h | 2 +- + src/grl-plugin-registry.c | 2 +- + src/grl-plugin-registry.h | 2 +- + tools/grilo-test-ui/main.c | 10 +++++----- + 12 files changed, 18 insertions(+), 18 deletions(-) + +commit 2a5b8991314744d5c85282fc7a9ef304829bf054 +Author: Mathias Hasselmann +Date: Tue Jul 10 10:29:40 2012 +0200 + + doc: Fix typos in GrlConfig description + + src/data/grl-config.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit b7f72ed49bed240a5452d9a60e15bbd038a4ccd2 +Author: Mathias Hasselmann +Date: Tue Jul 10 10:11:56 2012 +0200 + + doc: Clearify that GrlConfig are not persistant + + src/data/grl-config.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit c9121c2445462ddbe63516f69154fcb96f79c7a1 +Author: Juan A. Suarez Romero +Date: Wed Jun 20 07:00:56 2012 +0000 + + test-ui: Add filtering by type + + When performing a search, for those sources supporting it, users can restrict + the results by type. + + tools/grilo-test-ui/main.c | 125 +++++++++++++++++++++++++++++++++++++++++++-- + 1 file changed, 120 insertions(+), 5 deletions(-) + +commit d6b12abcd28c88d21a29b6a44386cc993506e64a +Author: Guillaume Emont +Date: Wed Dec 14 18:16:24 2011 +0100 + + tests: added a test of key range filter for fs + + tests/python/test_fs.py | 30 +++++++++++++++++++++++++++++- + 1 file changed, 29 insertions(+), 1 deletion(-) + +commit 40e02a11ff6d03d5d4cc54026e1c23ab3284d745 +Author: Juan A. Suarez Romero +Date: Wed Dec 14 18:16:23 2011 +0100 + + core: Add range-filtering + + Contains modifications by Guillaume Emont + + src/Makefile.am | 4 +- + src/grl-caps.c | 52 ++++++++++++ + src/grl-caps.h | 6 ++ + src/grl-operation-options-priv.h | 1 + + src/grl-operation-options.c | 171 +++++++++++++++++++++++++++++++++++++++ + src/grl-operation-options.h | 16 ++++ + src/grl-range-value.c | 92 +++++++++++++++++++++ + src/grl-range-value.h | 57 +++++++++++++ + 8 files changed, 398 insertions(+), 1 deletion(-) + +commit 730b22f76e90814dece2c38df0c33db58311c5c5 +Author: Guillaume Emont +Date: Wed Dec 14 18:16:22 2011 +0100 + + tests: added some search() and browse() tests using the fs plugin + + tests/python/test_fs.py | 239 ++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 239 insertions(+) + +commit dee5f5ee19782a2ac5123b17b488362bc2895a3a +Author: Guillaume Emont +Date: Wed Dec 14 18:16:21 2011 +0100 + + tests: added caps tests for key filters + + tests/python/test_options.py | 54 ++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 54 insertions(+) + +commit 13c3d3ee65dd687b990ba8bdcc46fd62c9cba779 +Author: Juan A. Suarez Romero +Date: Wed Dec 14 18:16:20 2011 +0100 + + core: Add filtering by equal key + + It supports filtering by equal operator, as "artist = Madonna". + + Contains modifications by Guillaume Emont + + src/grl-caps.c | 50 ++++++++++++ + src/grl-caps.h | 7 ++ + src/grl-operation-options-priv.h | 1 + + src/grl-operation-options.c | 164 +++++++++++++++++++++++++++++++++++++++ + src/grl-operation-options.h | 16 ++++ + src/grl-value-helper.c | 6 ++ + src/grl-value-helper.h | 2 + + 7 files changed, 246 insertions(+) + +commit fc3aaef7b1b5d44b78aef18d06fad5abc022b7a4 +Author: Guillaume Emont +Date: Wed Dec 14 18:16:19 2011 +0100 + + core: add a setter and getter of GrlKeyID for GValues + + src/grl-metadata-key.h | 4 ++++ + 1 file changed, 4 insertions(+) + +commit a617a92863b724c887820decd8ac3324b5291519 +Author: Guillaume Emont +Date: Wed Dec 14 18:16:18 2011 +0100 + + tests: added tests of type filtering for caps + + tests/python/test_options.py | 61 ++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 61 insertions(+) + +commit 8fd23c30b38198a26be6857c1286015d66e55fff +Author: Juan A. Suarez Romero +Date: Wed Dec 14 18:16:17 2011 +0100 + + core: Add filtering by media type + + Signed-off-by: Juan A. Suarez Romero + + src/Makefile.am | 10 +++-- + src/grl-caps.c | 31 ++++++++++++++ + src/grl-caps.h | 22 ++++++++++ + src/grl-operation-options-priv.h | 1 + + src/grl-operation-options.c | 92 +++++++++++++++++++++++++++++++++++++++- + src/grl-operation-options.h | 5 +++ + 6 files changed, 156 insertions(+), 5 deletions(-) + +commit 00ebfb42154079dd6864f8f0e08b572df4a79ecf +Author: Juan A. Suarez Romero +Date: Sun May 27 19:43:33 2012 +0000 + + core: Fix leaks + + src/data/grl-config.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 3e6193bc5e0562844e9d1b95db65cd4f5fa02636 +Author: Juan A. Suarez Romero +Date: Sat May 26 17:17:10 2012 +0000 + + test-ui: Fix leaks + + tools/grilo-test-ui/main.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit a04126262faaadd98ce871f533f38c6b954c9d42 +Author: Bastien Nocera +Date: Fri May 25 15:39:08 2012 +0100 + + test-ui: Make the test window a decent size + + https://bugzilla.gnome.org/show_bug.cgi?id=676822 + + tools/grilo-test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit 9a1a2f0856b353fbf94ead22b4a31f2ee3a4d0b0 +Author: Bastien Nocera +Date: Fri May 25 15:40:18 2012 +0100 + + test-ui: We only really support GTK+ 3.x builds + + So stop fooling ourselves, that code just doesn't work with GTK+ 2.x + + https://bugzilla.gnome.org/show_bug.cgi?id=676823 + + configure.ac | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +commit 24688ec65c57edb97ce914758cba27ab746dffe0 +Author: Juan A. Suarez Romero +Date: Wed May 23 17:15:39 2012 +0000 + + net: Get rid of grl_net_wc_set_user_agent () declaration + + "user-agent" is a implemented as property, not as a function. + + The declaration was left there by mistake. + + This is a fix over commit bcf8a576d4. + + libs/net/grl-net-wc.h | 3 --- + 1 file changed, 3 deletions(-) + +commit 3b9d0fe783a8b554f54e3c28f694c559f61a307f +Author: Juan A. Suarez Romero +Date: Mon May 21 19:05:41 2012 +0000 + + test-ui: Ask for all fast keys when browsing + + Asking for all the fast keys in a browse/search operation is the most efficient + way if you want to show all they keys. It will take just one query to the + service to solve all those keys in a row. + + For slow keys, let's use metadata() to resolve them when user clicks the item. + + tools/grilo-test-ui/main.c | 33 +++++++++------------------------ + 1 file changed, 9 insertions(+), 24 deletions(-) + +commit 89778ccaf1865f7f23cd8c9ee00d4daf7002f6cd +Author: Juan A. Suarez Romero +Date: Fri May 18 08:42:18 2012 +0000 + + vala: Add support for Vala 0.18 + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit bcf8a576d4b5caa64adca36470917defb311abec +Author: Juan A. Suarez Romero +Date: Wed May 16 13:31:10 2012 +0000 + + net: Add "user-agent" property + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=672923 + + Signed-off-by: Juan A. Suarez Romero + + libs/net/grl-net-wc.c | 23 +++++++++++++++++++++++ + libs/net/grl-net-wc.h | 3 +++ + 2 files changed, 26 insertions(+) + +commit 2762320d47d5d65dfc211c041d2c5294dc96b24f +Author: Víctor Manuel Jáquez Leal +Date: Mon Apr 30 13:21:22 2012 +0200 + + net: tune up gir build + + libs/net/Makefile.am | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +commit 6a80f062ac4814a26e2815ed99119369197ee836 +Author: Víctor Manuel Jáquez Leal +Date: Thu Apr 26 16:54:56 2012 +0200 + + net: move cache and request to a private file + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/Makefile.am | 9 + + libs/net/grl-net-private.c | 91 ++++++++ + libs/net/grl-net-private.h | 80 +++++++ + libs/net/grl-net-soup-stable.c | 186 +++++++++++++++++ + libs/net/grl-net-soup-unstable.c | 292 ++++++++++++++++++++++++++ + libs/net/grl-net-wc.c | 440 ++------------------------------------- + libs/net/grl-net-wc.h | 2 + + 7 files changed, 677 insertions(+), 423 deletions(-) + +commit c35c0b35138473e36084b40022765fd0c32479c1 +Author: Víctor Manuel Jáquez Leal +Date: Thu Apr 26 13:43:52 2012 +0200 + + net: simplify the throttling code + + Creating a typedef for a local scope closure, is overkill, make more complex + the structure of the code. + + Simple structs for simple people. + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/grl-net-wc.c | 84 +++++++++++++++++++++++++-------------------------- + 1 file changed, 42 insertions(+), 42 deletions(-) + +commit baee8a65a296f96967d798471911db42558c546b +Author: Víctor Manuel Jáquez Leal +Date: Thu Apr 26 20:13:45 2012 +0200 + + vala: specify explicitly grl-net.h + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-net-uninstalled.files.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a7f2d378afebd88877030d6bc8f1e7124dff919c +Author: Víctor Manuel Jáquez Leal +Date: Thu Apr 26 21:57:51 2012 +0200 + + net: detect in runtime use-thread-context property + + Instead of messing with autotools, it is better to know in run-time if + the required property is available. + + Revert "grl-net: Use libsoup context threads for libsoup 2.39 or above" + This reverts commit 98fb065f9d52092d2cbf29dcdc1784f9ff087e74. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 6 ------ + libs/net/Makefile.am | 5 ----- + libs/net/grl-net-wc.c | 21 ++++++++++++++++----- + 3 files changed, 16 insertions(+), 16 deletions(-) + +commit 8d94c03a445f77db717637ab5c6f2502114860d5 +Author: Juan A. Suarez Romero +Date: Thu Apr 26 17:34:14 2012 +0000 + + log: Fix up GRL_DEBUG environment variable + + Grilo relies on the default GLib log handler. + + Due to the G_MESSAGES_DEBUG change in GLib, the default handler filters out all + the messages unless G_MESSAGES_DEBUG environment variable includes the log + domain to show ('all' for all domains). + + To fix it, if GRL_DEBUG is set, Grilo log domain is added to the + G_MESSAGES_DEBUG so the messages are not filtered. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-log.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +commit 98fb065f9d52092d2cbf29dcdc1784f9ff087e74 +Author: Juan A. Suarez Romero +Date: Thu Apr 26 15:36:36 2012 +0000 + + grl-net: Use libsoup context threads for libsoup 2.39 or above + + Add SOUP_SESSION_USE_THREAD_CONTEXT to soup sessions for libsoup >= 2.39. + + Otherwise, it will not work + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 6 ++++++ + libs/net/Makefile.am | 5 +++++ + libs/net/grl-net-wc.c | 7 +++++++ + 3 files changed, 18 insertions(+) + +commit 1de8dde1aab04d69efceb70cff31bbf43b8264eb +Author: Juan A. Suarez Romero +Date: Wed Apr 25 09:42:24 2012 +0000 + + config: Add grl_config_get_source() function + + Returns the source id in the config object. + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/grilo-sections.txt | 1 + + src/data/grl-config.c | 13 +++++++++++++ + src/data/grl-config.h | 2 ++ + 3 files changed, 16 insertions(+) + +commit 0698639d02478707eccff947e0654dfbf1b2f830 +Author: Juan A. Suarez Romero +Date: Wed Apr 25 09:41:38 2012 +0000 + + doc: Fix typo in grl_config_set_source() + + It returns source id, not plugin id. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-config.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ddde75b64427d95e585cf5e98d1b1006114f6f78 +Author: Juan A. Suarez Romero +Date: Fri Apr 20 13:10:49 2012 +0000 + + core: Use g_list_free_full() when possible + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 3 +-- + src/grl-media-source.c | 3 +-- + src/grl-multiple.c | 3 +-- + 3 files changed, 3 insertions(+), 6 deletions(-) + +commit 8e570a9d94c76907239de5ed392ff901944fe51b +Author: Juan A. Suarez Romero +Date: Mon Apr 16 18:04:52 2012 +0000 + + test-ui: Add major.minor version suffix to executable + + It creates grl-test-ui-0.1 or grl-test-ui-0.2, so we can have both versions + installed in the same host. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/Makefile.am | 28 ++++++++++++++-------------- + 1 file changed, 14 insertions(+), 14 deletions(-) + +commit 479c39d28e5228bcfc9ece517f4c4effce235e29 +Author: Juan A. Suarez Romero +Date: Mon Apr 16 18:04:52 2012 +0000 + + grl-inspect: Add major.minor version suffix to executable + + It creates grl-inspect-0.1 or grl-inspect-0.2, so we can have both versions + installed in the same host. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-inspect/Makefile.am | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +commit ba3a8c0cf1f60da33919a5267524cfb8505a494f +Author: Juan A. Suarez Romero +Date: Mon Apr 16 17:53:44 2012 +0000 + + grl-inspect: Add print version option + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-inspect/grl-inspect.c | 20 ++++++++++++++++++++ + 1 file changed, 20 insertions(+) + +commit 386c8a1e96eb4c035ed9b7edf1715ab6ecbe5d11 +Author: Juan A. Suarez Romero +Date: Fri Apr 13 16:03:35 2012 +0000 + + test-ui: Show version in title + + It helps to know which version we are using. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ea29564eb555accba1932792310e24723d3fedbb +Author: Juan A. Suarez Romero +Date: Fri Apr 13 10:29:23 2012 +0000 + + test-ui: Allow children expand and fill when packaging in boxes/panes + + So resizing the main window resizes each widget. + + tools/grilo-test-ui/main.c | 42 +++++++++++++++++++++--------------------- + 1 file changed, 21 insertions(+), 21 deletions(-) + +commit a6878d68938f20c5368ed3b505e8eb7206b84173 +Author: Juan A. Suarez Romero +Date: Fri Apr 13 11:45:24 2012 +0200 + + test-ui: Fix compilation warning + + Not enough variable arguments to fit a sentinel. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e65703ebb9b7dc3476917aa63944df1b8cdc0fe9 +Author: Juan A. Suarez Romero +Date: Fri Apr 13 09:12:01 2012 +0000 + + test-ui: Do not use Gtk+ deprecated functions + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 28 ++++++++++++++-------------- + 1 file changed, 14 insertions(+), 14 deletions(-) + +commit b0a56c0015d5c032848262b1efcc380b7303ab2e +Author: Sam Thursfield +Date: Tue Oct 25 17:36:57 2011 +0100 + + core: Add GRL_METADATA_KEY_START_TIME + + This is used to specify the start offset of a logical resource inside + a larger container, such as a track in a single-file rip of an entire CD. + + https://bugzilla.gnome.org/show_bug.cgi?id=662748 + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/grilo-sections.txt | 2 ++ + src/data/grl-media.c | 13 +++++++++++++ + src/data/grl-media.h | 2 ++ + src/grl-metadata-key.c | 14 ++++++++++++++ + src/grl-metadata-key.h | 1 + + 5 files changed, 32 insertions(+) + +commit 7ab229ff98adfab77252b1826952da5769842481 +Author: Juan A. Suarez Romero +Date: Tue Apr 3 12:32:16 2012 +0000 + + test-ui: Do nothing if no element has been selected + + tools/grilo-test-ui/main.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit f1f5517567244b6f58a7c1bddf00e980c8713a60 +Author: Alberto Garcia +Date: Mon Mar 26 14:37:00 2012 +0300 + + Expand twice the value of ${libdir} in GRL_PLUGINS_DIR + + This is necessary because ${libdir} may contain more variables inside, + e.g. --libdir=\${prefix}/lib/x86_64-linux-gnu + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit fc794abcceb1d30b407e5802d459c3d67f01db5c +Author: Alberto Garcia +Date: Mon Apr 2 17:24:29 2012 +0000 + + build: Install .gir and .typelib files in the dirs reported by pkg-config + + grilo-0.2.pc.in | 4 ++-- + grilo-net-0.2.pc.in | 4 ++-- + libs/net/Makefile.am | 4 ++-- + src/Makefile.am | 4 ++-- + 4 files changed, 8 insertions(+), 8 deletions(-) + +commit ea3624ef5216f3ed0cdcbae42f5c8451eeb70341 +Author: Juan A. Suarez Romero +Date: Mon Apr 2 10:32:37 2012 +0000 + + vala: Add support for Vala 0.16 + + And get rid of support for Vala less than 0.12. + + This makes easier the management, as before 0.12 pkg-config files used a + different format. + + configure.ac | 19 +++++-------------- + 1 file changed, 5 insertions(+), 14 deletions(-) + +commit 6c4148a51efc379351697a6eca2c4086792d270c +Author: Juan A. Suarez Romero +Date: Mon Apr 2 10:31:01 2012 +0000 + + core: Fix distcheck + + grl-inspect.1 was not distributed correctly. + + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5c6f798111d6b26dc6af2985867fed19383a7119 +Author: Juan A. Suarez Romero +Date: Fri Dec 16 13:01:07 2011 +0100 + + doc: Update Copyright notice + + Signed-off-by: Juan A. Suarez Romero + + Makefile.am | 2 +- + doc/Makefile.am | 2 +- + libs/net/Makefile.am | 2 +- + libs/net/grl-net-wc.c | 2 +- + libs/net/grl-net-wc.h | 2 +- + src/grl-error.h | 2 +- + src/grl-metadata-source-priv.h | 2 +- + src/grl-multiple.h | 2 +- + src/grl-plugin-registry.h | 2 +- + src/grl-sync.c | 1 + + src/grl-util.h | 2 +- + tools/grilo-inspect/grl-inspect.c | 2 +- + 12 files changed, 12 insertions(+), 11 deletions(-) + +commit 2977ac46eda551276497882ba01f115864dfd844 +Author: Guillaume Emont +Date: Thu Sep 8 17:46:54 2011 +0200 + + vala: update binding and example for the caps and options changes + + bindings/vala/grilo-uninstalled.files.in | 2 ++ + tools/vala/grilo-test.vala | 6 +++++- + 2 files changed, 7 insertions(+), 1 deletion(-) + +commit 956d3c8b9656e4ee76d0434e80ddff970e7078f8 +Author: Guillaume Emont +Date: Tue Aug 2 13:19:23 2011 +0200 + + examples: ported to new APIs using caps and options + + examples/browsing.c | 15 ++++++++++++--- + examples/efficient-metadata-resolution.c | 25 ++++++++++++++++++++++--- + examples/multivalues.c | 14 ++++++++++++-- + examples/searching.c | 10 ++++++++-- + 4 files changed, 54 insertions(+), 10 deletions(-) + +commit 3de162e6946279fbd5a0d24ff2658a5b65783a18 +Author: Guillaume Emont +Date: Thu Apr 21 11:41:36 2011 +0200 + + tests: added first tests for options and caps + + tests/python/test_options.py | 78 ++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 78 insertions(+) + +commit ff9c5d9100d73d026bdec032c266db71d18dbe64 +Author: Guillaume Emont +Date: Mon Apr 11 12:55:26 2011 +0200 + + test-ui: ported to the new APIs with GrlOperationOptions + + Ignoring caps for now, since the test ui only use options that are not related + to caps (skip, count and flags). + + tools/grilo-test-ui/main.c | 48 +++++++++++++++++++++++++++++++--------------- + 1 file changed, 33 insertions(+), 15 deletions(-) + +commit 7eba7bfdd4e48ad24de9ab1880099ab92d5c9a25 +Author: Guillaume Emont +Date: Fri Dec 2 17:15:43 2011 +0100 + + doc: included caps and options in the documentation + + doc/grilo/grilo-docs.sgml | 6 ++++++ + doc/grilo/grilo-sections.txt | 47 ++++++++++++++++++++++++++++++++++++++++++++ + doc/grilo/grilo.types | 2 ++ + 3 files changed, 55 insertions(+) + +commit b05762d7c88a30171a9a44ea1a22fe4ab8c8effc +Author: Guillaume Emont +Date: Fri Apr 8 23:37:25 2011 +0200 + + core: make grl_multiple_*() operations use GrlOperationOptions + + src/grl-multiple.c | 74 ++++++++++++++++++++++++++++++++---------------------- + src/grl-multiple.h | 9 +++---- + 2 files changed, 48 insertions(+), 35 deletions(-) + +commit 1adb289f5dd16341f903c453f92fdd632daa6fb9 +Author: Guillaume Emont +Date: Fri Apr 8 23:36:28 2011 +0200 + + core: make media source operations use GrlOperationOptions + + src/grl-media-source.c | 251 ++++++++++++++++++++++++++++--------------------- + src/grl-media-source.h | 59 +++++------- + 2 files changed, 165 insertions(+), 145 deletions(-) + +commit 188271d492d6c37d48bf36a1568d7aac3b33eb4e +Author: Guillaume Emont +Date: Wed Apr 6 20:53:13 2011 +0200 + + core: added grl_metadata_source_get_caps() + + src/grl-metadata-source.c | 27 +++++++++++++++++++++++++++ + src/grl-metadata-source.h | 8 +++++++- + 2 files changed, 34 insertions(+), 1 deletion(-) + +commit 75b14e03b343bc34e49294fded38e9bdea6fe002 +Author: Guillaume Emont +Date: Wed Apr 6 17:00:38 2011 +0200 + + core: use GrlOperationOptions in grl_metadata_source_resolve() + + src/grl-metadata-source.c | 18 ++++++++++-------- + src/grl-metadata-source.h | 6 +++--- + 2 files changed, 13 insertions(+), 11 deletions(-) + +commit cbc0a640de241b13e720dcf6dc3b628170b4ddff +Author: Guillaume Emont +Date: Wed Apr 6 16:45:48 2011 +0200 + + core: Moved GrlMetadataResolutionFlags into grl-operation-options.h + + src/grl-metadata-source.h | 18 ++---------------- + src/grl-operation-options.h | 16 ++++++++++++++++ + 2 files changed, 18 insertions(+), 16 deletions(-) + +commit 95e0d1ed229495f8c752820b8f50be482d704721 +Author: Guillaume Emont +Date: Thu Mar 31 20:30:48 2011 +0200 + + core: added caps and operation options to build system + + src/Makefile.am | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +commit c19afb6f57782896d9880385955eaec92c6033e8 +Author: Guillaume Emont +Date: Mon Nov 28 10:05:49 2011 +0100 + + core: introducing GrlOperationOptions + + This extensible object will contain all the options that one may want to + specify to a given operation. + + src/grl-operation-options-priv.h | 2 + + src/grl-operation-options.c | 343 +++++++++++++++++++++++++++++++++++++++ + src/grl-operation-options.h | 85 ++++++++++ + 3 files changed, 430 insertions(+) + +commit 7da8c1ef20313a4541cef8eec07c3464ef9a2385 +Author: Guillaume Emont +Date: Thu Mar 24 20:56:13 2011 +0100 + + core: introduced GrlCaps + + The GrlCaps type will represent the capabilities of a given source for a given + operation. + + src/grl-caps.c | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-caps.h | 70 ++++++++++++++++++++++++++++++ + 2 files changed, 204 insertions(+) + +commit 054c7c8d353783a1769d72c3e7adee3d8bd2d146 +Author: Guillaume Emont +Date: Mon Nov 28 10:04:55 2011 +0100 + + core: add operation option keys + + These keys represent options that will be given to operations. + + src/grl-operation-options-priv.h | 39 +++++++++++++++++++++++++++++++++++++++ + 1 file changed, 39 insertions(+) + +commit 8b600784827e547cf312c987c06d6e91c68dc332 +Author: Guillaume Emont +Date: Fri Apr 1 16:56:25 2011 +0200 + + core: Added some helper functions to handle GValues + + src/Makefile.am | 4 ++- + src/grl-value-helper.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-value-helper.h | 44 +++++++++++++++++++++++++++ + 3 files changed, 127 insertions(+), 1 deletion(-) + +commit 76bb6fc28debdd063bb1f271bec40d2ff6e81cb9 +Author: Juan A. Suarez Romero +Date: Tue Dec 13 11:11:17 2011 +0000 + + test-ui: Load settings from file + + Besides the hard-coded settings in Grilo Test UI application, we load settings + stored in $HOME/.config/grilo-test-ui/grilo.conf file. + + Thus, user can store it his own settings to be used. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit ddc6b4fd62ffe3f5fe1d45a2441c30a2ec85b222 +Author: Yaakov Selkowitz +Date: Sat Dec 10 22:54:42 2011 -0600 + + Do not dist gir_DATA + + GIR files contain a shared-library attribute which varies per platform, + and therefore must not be disted; see bug 621611 for rationale. + + Fixes https://bugzilla.gnome.org/show_bug.cgi?id=665938 + + Signed-off-by: Yaakov Selkowitz + Signed-off-by: Juan A. Suarez Romero + + libs/net/Makefile.am | 4 +++- + src/Makefile.am | 4 +++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +commit 09d50a2c36f4e54e007cdfe5c0b270de6dc2aadb +Author: Guillaume Emont +Date: Fri Nov 25 13:22:15 2011 +0100 + + Ensure grl_metadata_list_key_new() is called with a sentinel + + This change triggers a compilation warning (with gcc) if the sentinel is + forgotten. + + src/grl-util.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 350d3a7c75472442313ddce160a059febb216f41 +Author: Sam Thursfield +Date: Wed Nov 23 19:03:40 2011 +0100 + + configure: Honour VAPIDIR environment variable + + configure.ac | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit d83a3e933ad81094c3e6cfc4ff4c851c5d04935e +Author: Juan A. Suarez Romero +Date: Wed Nov 23 17:00:07 2011 +0000 + + wc-test: Remove it + + Actually, this application was used as a tool to develop GrlNet, but actually + it isn't real test. So let's remove it. + + Signed-off-by: Juan A. Suarez Romero + + libs/net/Makefile.am | 12 ------- + libs/net/wc-test.c | 88 ---------------------------------------------------- + 2 files changed, 100 deletions(-) + +commit 99303e4204d5a38edee4054f0c52c42cd568eb18 +Author: Víctor Manuel Jáquez Leal +Date: Tue Nov 22 16:57:16 2011 +0100 + + build: conditional creation of grl-net.pc files + + If libsoup is not available, then the grl-net library will not be built. Hence + we shall not create the grl-net.pc files. Otherwise we will compile plugins + that will not be able to be loaded. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 68b5bfc4b1f7ab0a06e3f5614af1bdc6d7e788d7 +Author: Víctor Manuel Jáquez Leal +Date: Tue Nov 22 16:57:15 2011 +0100 + + build: avoid the export of NETCACHE variable + + NETCACHE variables is not used for compiler tasks, so the PKG_CHECK_MODULES + can be replaced by a PKG_CHECK_EXISTS, which does not export an automake + variable, as we only need to know if cache operations are supported in libsoup + given the version number. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 745ce2f77fabf1adb64dfba839ede04b43f9b383 +Author: Jens Georg +Date: Sat Oct 8 09:09:24 2011 +0200 + + core: Use full path to load plugin information + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 7bd24c1001aee2750ad7311eba454858f3594145 +Author: Sam Thursfield +Date: Thu Nov 10 19:21:26 2011 +0000 + + bindings/vala: Fix various bugs in Vala bindings + + bindings/vala/grilo-0.2-custom.vala | 60 ++++++++++++++++++------------------- + bindings/vala/grilo-0.2.metadata | 5 ++++ + 2 files changed, 35 insertions(+), 30 deletions(-) + +commit 6794b09b694469cc0f2f18b3552d253f2836fa1c +Author: Sam Thursfield +Date: Thu Nov 10 19:26:29 2011 +0000 + + core: Introspection fixes + + src/grl-media-source.c | 4 ++-- + src/grl-metadata-source.c | 2 +- + src/grl-multiple.c | 2 +- + src/grl-plugin-registry.c | 2 +- + 4 files changed, 5 insertions(+), 5 deletions(-) + +commit 5f401e69f613554fb3e3100ae46a14031742d1ca +Author: Sam Thursfield +Date: Wed Oct 26 13:57:11 2011 +0100 + + grl-net: Correctly unref operation async result + + Correct behaviour is to unref the GSimpleAsyncResult object after the call to + g_simple_async_result_complete(). It cannot be done in the async result's callback. + + https://bugzilla.gnome.org/show_bug.cgi?id=662763 + + libs/net/grl-net-wc.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 7abc1ac9b84a84fa5f1c2c0f4e9342b21f48afe0 +Author: Sam Thursfield +Date: Wed Oct 26 12:36:41 2011 +0100 + + grl-net: Fix crashes in SoupRequest error case + + https://bugzilla.gnome.org/show_bug.cgi?id=662762 + + libs/net/grl-net-wc.c | 24 ++++++++++++++++++++---- + 1 file changed, 20 insertions(+), 4 deletions(-) + +commit 5bcb8fefda8ed8a073df2572142a1ad39e4f8fb7 +Author: Guillaume Emont +Date: Thu Jul 21 22:26:02 2011 +0200 + + build: bumped needed version of GLib + + This is to ensure GDateTime is usable in introspection stuff. Note that we have + no requirement for gobject-introspection, buf if it is used, it should be in + sync with GLib anyway. + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 73372efcaca274929c38ce7e4051c9f18225a4e6 +Author: Guillaume Emont +Date: Thu Jun 9 20:30:05 2011 +0200 + + test-ui: improved display of GDateTime values + + tools/grilo-test-ui/main.c | 18 +++++++++++++++++- + 1 file changed, 17 insertions(+), 1 deletion(-) + +commit 63c499adaf7ba1a4fd173997971820c3aabef2da +Author: Guillaume Emont +Date: Fri Jun 3 18:05:20 2011 +0200 + + tests: added simple tests for media dates + + tests/python/test_media.py | 59 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 59 insertions(+) + +commit bb7e8fb55f071957f6fca255f2f27e7c34136f8d +Author: Guillaume Emont +Date: Fri Jul 22 14:23:16 2011 +0200 + + core: Added grl_date_time_from_iso8601() + + This is a helper to create a GDateTime instance from an iso 8601 formatted + string. It can be useful to plugins that receive strings in that format and for + testing. + + src/grl-util.c | 33 +++++++++++++++++++++++++++++++++ + src/grl-util.h | 2 ++ + 2 files changed, 35 insertions(+) + +commit a76bc5cfa92f52775c8f2855b1bce4ec56ff4782 +Author: Guillaume Emont +Date: Fri Jul 22 14:22:30 2011 +0200 + + core: reorganised date-related keys. + + GRL_METADATA_KEY_DATE was removed because its definition is not precise enough. + GRL_METADATA_KEY_PUBLICATION_DATE and GRL_METADATA_KEY_MODIFCATION_DATE were added. + + GDateTime *instances are not returned const any more in getters, for easier use + (GDateTime is immutable anyway). + + src/data/grl-media.c | 56 +++++++++++++++++++++++++++++++++++++++----------- + src/data/grl-media.h | 14 +++++++++---- + src/grl-metadata-key.c | 17 +++++++++++---- + src/grl-metadata-key.h | 3 ++- + 4 files changed, 69 insertions(+), 21 deletions(-) + +commit 30c1668d32d1557a4783ea8b3ab5c5808e44d047 +Author: Guillaume Emont +Date: Mon May 30 20:17:43 2011 +0200 + + core: changed type of date keys to GDateTime + + Strings could be dangerous because errors in their formatting is likely to be + detected too late. + + See also https://mail.gnome.org/archives/grilo-list/2011-June/msg00002.html. + + src/data/grl-media.c | 26 +++++++++++++------------- + src/data/grl-media.h | 8 ++++---- + src/grl-metadata-key.c | 14 +++++++------- + 3 files changed, 24 insertions(+), 24 deletions(-) + +commit 1a15e6d06ba74bef5f062be5a0a803eba9d2fff9 +Author: Guillaume Emont +Date: Mon May 30 15:29:06 2011 +0200 + + core: added support for boxed types in GrlData and GrlRelatedKeys + + src/data/grl-data.c | 69 +++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-data.h | 6 ++++ + src/data/grl-related-keys.c | 51 +++++++++++++++++++++++++++++++++ + src/data/grl-related-keys.h | 7 +++++ + 4 files changed, 133 insertions(+) + +commit 9a9672668b373f81405b81506d80fbf0537d7222 +Author: Juan A. Suarez Romero +Date: Fri Sep 23 14:27:16 2011 +0000 + + core: Use G_SEARCHPATH_SEPARATOR_S to separate paths + + Currently, it means in Unix ":" will be used as the separator for the list of + paths to search for plugins, while in Windows it will be ";". + + Signed-off-by: Juan A. Suarez Romero + + src/grilo.c | 23 +++++++---------------- + 1 file changed, 7 insertions(+), 16 deletions(-) + +commit 4e4f8ba274bc44d0c967bf367e76b96a073d5f1f +Author: Damien Lespiau +Date: Mon Sep 19 11:32:45 2011 +0100 + + windows: Fix the default directory to look for plugins + + On windows, you need to detect at runtime where you are and build the path to + the plugins directory based on where you are being run. GLib provides a + function to do just that. + + Then, you can't really use ':' to separate paths eg. C:\foo:D:\bar + + src/grilo.c | 36 ++++++++++++++++++++++++++++++++++-- + 1 file changed, 34 insertions(+), 2 deletions(-) + +commit 29c3e5d44f302001a4b58501920ebb7f5f53056b +Author: Juan A. Suarez Romero +Date: Wed Sep 7 11:15:47 2011 +0000 + + core: Mention explicitly Grilo in the command-line options + + Current command-line options affects the way Grilo uses the plugins. + + But when asking for help, it only mentions 'plugins', not 'Grilo plugins'. + + As these options can be added to other applications, possible with his own + pluggable system, this commit clearly specify that we meant Grilo plugins when + asking for help for these options. + + Signed-off-by: Juan A. Suarez Romero + + src/grilo.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 52d91e11186985a785c0682dcc166cbb7b9d127e +Author: Juan A. Suarez Romero +Date: Wed Sep 7 09:57:38 2011 +0000 + + build: Include bugzilla and homepage information into autotools init + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 651197c685cd0a40c2b98fb5c6d038563cb783de +Author: Damien Lespiau +Date: Mon Sep 5 12:44:28 2011 +0100 + + tools: Don't link against -ldl and -lpthread + + The tools don't use any of the symbols defined by those library and depending + on them should come from glib. + + tools/grilo-inspect/Makefile.am | 1 - + tools/grilo-test-ui/Makefile.am | 1 - + 2 files changed, 2 deletions(-) + +commit c40275a48fe316b47642fd4388b12e77b13f81d5 +Author: Damien Lespiau +Date: Mon Sep 5 12:44:27 2011 +0100 + + gitignore: Ignore .exe files + + .gitignore | 1 + + 1 file changed, 1 insertion(+) + +commit 05db4a5b07d56586e47da256083dae8440d62975 +Author: Damien Lespiau +Date: Mon Sep 5 12:44:26 2011 +0100 + + build: Generate DLLs when compiling for Windows + + When compiling for windows, libtool needs the -no-undefined flag. As it's a + good practice to have it anyway, add it unconditionally. + + libs/net/Makefile.am | 3 +++ + src/Makefile.am | 3 +++ + 2 files changed, 6 insertions(+) + +commit d5dc35d8156f26380a2e7b22000c705b50b73985 +Author: Juan A. Suarez Romero +Date: Mon Sep 5 16:57:10 2011 +0200 + + doc: Update NEWS file + + Include 0.1.16 and 0.1.17 releases. + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 39 +++++++++++++++++++++++++++++++++++++++ + 1 file changed, 39 insertions(+) + +commit 69650525b335a18d0457abdbe39cdcc9b418f1cd +Author: Juan A. Suarez Romero +Date: Mon Sep 5 09:43:41 2011 +0000 + + doc: Merge libraries documention into Grilo documentation + + So there is only one access point to the whole documentation. + + Partially fixes https://bugzilla.gnome.org/show_bug.cgi?id=657920 + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 1 - + doc/Makefile.am | 2 +- + doc/grilo/Makefile.am | 2 +- + doc/grilo/grilo-docs.sgml | 17 +++++++ + doc/grilo/grilo-sections.txt | 27 ++++++++++ + doc/libs/Makefile.am | 105 --------------------------------------- + doc/libs/grilo-libs-docs.sgml | 51 ------------------- + doc/libs/grilo-libs-sections.txt | 28 ----------- + 8 files changed, 46 insertions(+), 187 deletions(-) + +commit 0c439562a5576e32c3ac461a00d08edc9ccf9ac0 +Author: Juan A. Suarez Romero +Date: Mon Sep 5 08:07:35 2011 +0000 + + build: Add support for Vala 0.14 + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 21 ++++++++++++--------- + 1 file changed, 12 insertions(+), 9 deletions(-) + +commit 8d3e7ff6ed81171a5c37c51324efeffbb160f0ff +Author: Juan A. Suarez Romero +Date: Fri Sep 2 22:14:14 2011 +0000 + + core: Allow restricting the list of plugins to use + + Sometimes it is useful to restrict the list of plugins to a subset of those + installed. + + This patch provides an environment variable (GRL_PLUGIN_LIST) and a parameter + to Grilo-based applications to restrict the plugins to use. + + Applications will only see those plugins that are in the specified list, no + matter if there are other plugins also in the same location. + + Signed-off-by: Juan A. Suarez Romero + + src/Makefile.am | 3 ++- + src/grilo.c | 27 +++++++++++++++++++------ + src/grl-plugin-registry-priv.h | 32 +++++++++++++++++++++++++++++ + src/grl-plugin-registry.c | 46 +++++++++++++++++++++++++++++++++++++++++- + src/grl-plugin-registry.h | 1 + + 5 files changed, 101 insertions(+), 8 deletions(-) + +commit 961c9e20a0ffed6a8616a0bba393855e7829d241 +Author: Juan A. Suarez Romero +Date: Wed Jul 27 15:21:34 2011 +0000 + + core: Refactor the way of loading plugins + + Plugins' XML information files are loaded before the plugins themselves, so the + list of plugins and their identifiers are available to the user, who can just + load a specific subset of them. + + As those XML files are just loaded once, if user unloads and reload again some + or all plugins, there is no need to re-scan all the directories, as the plugins + locations are already loaded and known. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 382 ++++++++++++++++++++++++++-------------------- + src/grl-plugin-registry.h | 2 +- + 2 files changed, 215 insertions(+), 169 deletions(-) + +commit 303bc566051cdd2efb86a56721f7143f4d6eea0f +Author: Juan A. Suarez Romero +Date: Fri Jul 22 08:33:29 2011 +0000 + + core: install plugins XML file in the same place as the plugin itself + + Sticking together both library and xml file makes things easier to handle, + specially when loading plugins from a different place than standard. + + So far, user and/or developer can load plugins from a different place. But this + only was affecting the library files: the xml information files were still + getting from the standard place. Adding new functions and variables to specify + where to look for the xml files adds a unneeded level of complexity. + + So the simple approach is to put both files together, so the xml files can be + obtained from the same place where the library resides. + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 8 -------- + src/Makefile.am | 2 -- + src/grl-plugin-registry.c | 6 +++--- + 3 files changed, 3 insertions(+), 13 deletions(-) + +commit 832547ea7cf83fdf7bd4629d43640a36b094b800 +Author: Juan A. Suarez Romero +Date: Tue Aug 30 15:16:41 2011 +0000 + + core: Add GRL_METADATA_KEY_TRACK_NUMBER + + Add a key for Track Number. + + Add also required API in GrlMediaAudio to handle this key. + + Fixes https://bugzilla.gnome.org/show_bug.cgi?id=657549 + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media-audio.c | 26 ++++++++++++++++++++++++++ + src/data/grl-media-audio.h | 4 ++++ + src/grl-metadata-key.c | 10 ++++++++++ + src/grl-metadata-key.h | 1 + + 4 files changed, 41 insertions(+) + +commit 8b2fd3e94c41e1e1234f2eea4a06efadf6832e68 +Author: Lionel Landwerlin +Date: Wed Jun 29 14:13:39 2011 +0100 + + core: silent warnings of unused variables + + Signed-off-by: Lionel Landwerlin + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-plugin.c | 3 --- + tools/grilo-test-ui/main.c | 2 -- + 2 files changed, 5 deletions(-) + +commit e713b75a81c82186bf9fd269693398c0ac1fec7d +Author: Lionel Landwerlin +Date: Wed Jun 29 14:13:38 2011 +0100 + + media-source: manage end of search/browse with splitted sources + + When running in splitted modes (usually when dealing with websites), + if you get less results than what the user would like to get, we + currently end up in an infinite loop with the core of grilo keeping + asking for new items from a source which can't deliver anymore. + + To manage this specific case, we just check whether the plugin has + returned a remaining results number equals to 0 as well as a null + item. + + Signed-off-by: Lionel Landwerlin + + src/grl-media-source.c | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +commit d55b35c4fdcd9be982b605de007c76be5bf9041b +Author: Guillaume Emont +Date: Wed Jul 20 20:05:30 2011 +0200 + + core: skip some private functions in gobject introspection + + src/grl-metadata-source.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit c2e6746d1c95c6852da7b34561720d72b63a3aa2 +Author: Guillaume Emont +Date: Tue Jul 19 20:48:20 2011 +0200 + + core: pass the media to _expand_operation_keys() in grl_media_source_metadata(). + + As suggested by fabien. + + src/grl-media-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f987118805146a778f054332ed65418c6b8ecce5 +Author: Alberto Garcia +Date: Fri Jul 1 17:14:10 2011 +0300 + + doc: Generate a ChangeLog file from git when running make dist + + Makefile.am | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +commit 219daf4829dbd909edaafd822937f417b7fe0813 +Author: Iago Toral Quiroga +Date: Wed Jun 29 10:45:04 2011 +0200 + + doc: Fix wrong xml header + + doc/grilo/plugins-media-sources.xml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 2cc9b619344275c56ada2819cbc88667b073beaf +Author: Alberto Garcia +Date: Tue Jun 28 23:11:24 2011 +0200 + + doc: Add manpage for grl-inspect + + Signed-off-by: Iago Toral Quiroga + + Makefile.am | 2 ++ + grl-inspect.1 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 53 insertions(+) + +commit 55bbc031b56f501504339533984be25fb98ce99d +Author: Juan A. Suarez Romero +Date: Tue Jun 28 11:09:53 2011 +0000 + + doc: Provide more links in documentation + + Add cross-references. + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/plugins-media-sources.xml | 206 ++++++++++++++++++--------------- + doc/grilo/plugins-metadata-sources.xml | 39 ++++--- + 2 files changed, 131 insertions(+), 114 deletions(-) + +commit dd6f7d80b79a6e3cc1f7c84eba528b89f2e40763 +Author: Juan A. Suarez Romero +Date: Mon Jun 27 13:17:58 2011 +0000 + + doc: Update documentation + + Document the new way of cancelling operations. + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/Makefile.am | 1 + + doc/grilo/grilo-docs.sgml | 1 + + doc/grilo/grilo-sections.txt | 11 +++++++---- + doc/grilo/plugins-metadata-sources.xml | 19 +++++++++++-------- + 4 files changed, 20 insertions(+), 12 deletions(-) + +commit dd4f5255d24390f2c2cac115be8a9c9d4ee8a6da +Author: Juan A. Suarez Romero +Date: Mon Jun 27 13:16:37 2011 +0000 + + doc: Fix parameter typo + + Signed-off-by: Juan A. Suarez Romero + + src/grl-operation.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0921d7ed237638549e34c121f92b1fecb5924e55 +Author: Iago Toral Quiroga +Date: Tue Jun 28 18:31:21 2011 +0200 + + doc: Fixed typos + + doc/grilo/environment-setup.xml | 2 +- + doc/grilo/writing-apps.xml | 40 ++++++++++++++++++++-------------------- + 2 files changed, 21 insertions(+), 21 deletions(-) + +commit d2851625c673e7099d91a8693842bcb078c3913d +Author: Iago Toral Quiroga +Date: Tue Jun 28 18:16:54 2011 +0200 + + doc: Renamed files with the documentation for plugin developers. + + doc/grilo/Makefile.am | 6 +++--- + doc/grilo/grilo-docs.sgml | 6 +++--- + ...ck-start-plugins-media-sources.xml => plugins-media-sources.xml} | 0 + ...rt-plugins-metadata-sources.xml => plugins-metadata-sources.xml} | 0 + doc/grilo/{quick-start-plugins-testing.xml => plugins-testing.xml} | 0 + 5 files changed, 6 insertions(+), 6 deletions(-) + +commit a1648e6a80bb8e60e2faf6ed3c75c29abba90aa2 +Author: Iago Toral Quiroga +Date: Tue Jun 28 18:10:53 2011 +0200 + + doc: Added more information to the Quick Start chapter and + renamed it to Tutorials. + + doc/grilo/Makefile.am | 4 +- + doc/grilo/environment-setup.xml | 199 +++++++++++ + doc/grilo/grilo-docs.sgml | 18 +- + doc/grilo/quick-start-using-grilo.xml | 296 ---------------- + doc/grilo/quick-start.xml | 73 ++++ + doc/grilo/writing-apps.xml | 648 ++++++++++++++++++++++++++++++++++ + 6 files changed, 937 insertions(+), 301 deletions(-) + +commit dd0d4605c278fed07770dd6f01f8692f256fd107 +Author: Lionel Landwerlin +Date: Thu Jun 16 19:15:37 2011 +0100 + + core: introduce grilo operations + + There are several ways to make requests on grilo at the moment. You + can either use the MediaSource API (to find medias) or the + MetadataSource API (to find metadatas) or the Multiple API (to find + medias on a set of media sources). Currently MediaSource and + MetadataSource share the same API to cancel an operation, but the + Multiple API remains different. + + This patch proposes to unify all the operations and allocate their ids + at only one place. This benefits the user by making the whole API + simpler (you no longer have to remember to how to cancel your + operation, there is only one way to do it). + + This other advantage of this patch is to have a centralized place + where to find all the ongoing operations (that led to fix a memory + leak earlier), in the future that could help to debug stalled + operations. + + Signed-off-by: Lionel Landwerlin + Signed-off-by: Juan A. Suarez Romero + + src/Makefile.am | 5 +- + src/grilo.c | 4 + + src/grilo.h | 1 + + src/grl-media-source.c | 20 ++--- + src/grl-metadata-source.c | 210 +++++++++++++-------------------------------- + src/grl-metadata-source.h | 9 -- + src/grl-multiple.c | 68 ++++----------- + src/grl-multiple.h | 2 - + src/grl-operation-priv.h | 43 ++++++++++ + src/grl-operation.c | 163 +++++++++++++++++++++++++++++++++++ + src/grl-operation.h | 42 +++++++++ + tools/grilo-test-ui/main.c | 7 +- + 12 files changed, 346 insertions(+), 228 deletions(-) + +commit 920ada716b59e8a871155d3bc376f0fb297b24d7 +Author: Lionel Landwerlin +Date: Thu Jun 16 18:53:49 2011 +0100 + + core: use current thread to synchronously wait instead of main thread + + Signed-off-by: Lionel Landwerlin + + src/grl-sync.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8ee7d8bb88a9503b2678be821f64a18d0b2a9cbf +Author: Lionel Landwerlin +Date: Thu Jun 16 16:09:24 2011 +0100 + + grl-media-source: signal finished metadata() operations + + We were previously leaking metadata() operations by never signalling + them as "finished". + + Signed-off-by: Lionel Landwerlin + + src/grl-media-source.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit 87ad3e87072168ba03acf478bc22c6d495b9b496 +Author: Iago Toral Quiroga +Date: Thu Jun 16 13:35:58 2011 +0200 + + doc: Added a chapter on plugin development. + + doc/grilo/Makefile.am | 5 +- + doc/grilo/grilo-docs.sgml | 19 + + doc/grilo/quick-start-plugins-media-sources.xml | 1157 ++++++++++++++++++++ + doc/grilo/quick-start-plugins-metadata-sources.xml | 392 +++++++ + doc/grilo/quick-start-plugins-testing.xml | 99 ++ + 5 files changed, 1671 insertions(+), 1 deletion(-) + +commit 62b05b33408669f9f3bd748db5351cb9f8c7201c +Author: Juan A. Suarez Romero +Date: Thu Jun 9 15:11:12 2011 +0000 + + doc: Split code examples from documentation + + Put examples in a separated directory, so user can easily compile them, and + embed those files in the documentation. + + Signed-off-by: Juan A. Suarez Romero + + Makefile.am | 2 +- + configure.ac | 1 + + doc/grilo/quick-start-using-grilo.xml | 664 ++----------------------------- + examples/Makefile.am | 20 + + examples/browsing.c | 128 ++++++ + examples/configuring-plugins.c | 69 ++++ + examples/efficient-metadata-resolution.c | 149 +++++++ + examples/loading-plugins.c | 71 ++++ + examples/multivalues.c | 123 ++++++ + examples/searching.c | 105 +++++ + 10 files changed, 698 insertions(+), 634 deletions(-) + +commit f3bbda716318865ccc9cabebdb9613158f7b48bd +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 16:57:07 2011 +0200 + + doc: fix grilo-net documentation + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/libs/grilo-libs-sections.txt | 6 +++--- + libs/net/grl-net-wc.c | 1 + + libs/net/grl-net-wc.h | 17 +++++++++-------- + 3 files changed, 13 insertions(+), 11 deletions(-) + +commit b53f0bdd4c6108a87882a091f53cc9211cb13968 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 14:45:48 2011 +0200 + + doc: update links in quick start tutorial + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/grilo/quick-start-using-grilo.xml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 170c569181648e7f261ba63223f1d1ba96050a2c +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 14:45:19 2011 +0200 + + doc: change #GrlBox to #GrlMediaBox, because box is deprecated + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-media-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 90c0db144f99266752ca3091e0b24c701c3f9c97 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 14:37:25 2011 +0200 + + doc: fix gtk-doc type parsing + + gtk-doc demands that the object structure is declared first and afterwards the + class structure + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/data/grl-config.h | 19 +++++++++---------- + src/data/grl-data.h | 21 ++++++++++----------- + src/data/grl-media-audio.h | 16 ++++++++-------- + src/data/grl-media-box.h | 16 ++++++++-------- + src/data/grl-media-image.h | 16 ++++++++-------- + src/data/grl-media-video.h | 16 ++++++++-------- + src/data/grl-media.h | 16 ++++++++-------- + src/data/grl-related-keys.h | 20 ++++++++++---------- + 8 files changed, 69 insertions(+), 71 deletions(-) + +commit c75138ea44ccf96e77cd9c7ea7560c0f1063bd26 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 13:53:33 2011 +0200 + + doc: document missing sources files + + src/grilo.c | 2 +- + src/grl-metadata-key.c | 10 ++++++++++ + src/grl-util.c | 5 +++++ + 3 files changed, 16 insertions(+), 1 deletion(-) + +commit 8ae08552e0774a76950a50f15d35b347fe162037 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 13:52:40 2011 +0200 + + doc: update grilo-docs.sgml + + doc/grilo/grilo-docs.sgml | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit 5ea6930e1e8692cc4598d1213455c0c02c63b026 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 12:57:49 2011 +0200 + + build: ignore generated code for gtk-doc scanner + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/grilo/Makefile.am | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 10fe578007341148496ebcfda0c5539e01587c24 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 12:48:00 2011 +0200 + + doc: update grilo-sections.txt + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/grilo/grilo-sections.txt | 146 ++++++++++++++++++++++--------------------- + 1 file changed, 74 insertions(+), 72 deletions(-) + +commit 6fd79bcd12a31e238f33ba749f5dc7e0083010c3 +Author: Víctor Manuel Jáquez Leal +Date: Tue Jun 7 12:25:12 2011 +0200 + + doc: silence the gtk-doc scanner + + Hiding private functions documentation and fixing bad formatted strings. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-metadata-source.c | 204 ++++++++++++++++++++++++++-------------------- + src/grl-plugin-registry.c | 13 +-- + src/grl-plugin-registry.h | 2 +- + 3 files changed, 124 insertions(+), 95 deletions(-) + +commit d9f9b87eec701447ffecc487016c27cc56f50cf8 +Author: Iago Toral Quiroga +Date: Fri Jun 3 16:31:43 2011 +0200 + + data: Fixed documentation. + + src/data/grl-data.c | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +commit 29baf740faed352e5f545f3019ba66d6dce668fd +Author: Iago Toral Quiroga +Date: Fri Jun 3 16:00:29 2011 +0200 + + doc: Added API references where appropriate. + + doc/grilo/quick-start-using-grilo.xml | 37 ++++++++++++++++++++++++++++++++++- + 1 file changed, 36 insertions(+), 1 deletion(-) + +commit 7eae82b3c7bfcd68d1fcf73a7d7949745ab63c90 +Author: Iago Toral Quiroga +Date: Fri Jun 3 16:00:16 2011 +0200 + + doc: cleanup + + doc/grilo/grilo.types | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 178405da32e872bbd2724d66ea44b0f8c957ab34 +Author: Iago Toral Quiroga +Date: Fri Jun 3 13:14:35 2011 +0200 + + doc: Reviewed quick start guide. + + doc/grilo/quick-start-using-grilo.xml | 227 +++++++++++++++++----------------- + 1 file changed, 111 insertions(+), 116 deletions(-) + +commit ed3321e1235b18bb09bd58df88d4328ea15189d2 +Author: Iago Toral Quiroga +Date: Fri Jun 3 10:26:42 2011 +0200 + + doc: Rewrote some parts of the Overview section. + + doc/grilo/overview.xml | 91 +++++++++++++++++++++++++++----------------------- + 1 file changed, 49 insertions(+), 42 deletions(-) + +commit 208dfd72fa02565acddfb075ea5ac4ce32f5a8ba +Author: Juan A. Suarez Romero +Date: Fri May 27 10:20:06 2011 +0000 + + core: Get rid of deprecated functions + + Start from scratch in 0.2.x release cycle. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 183 -------------------------------------------- + src/data/grl-data.h | 12 --- + src/data/grl-related-keys.c | 41 ---------- + src/data/grl-related-keys.h | 6 -- + src/grl-media-source.c | 87 --------------------- + src/grl-media-source.h | 8 -- + src/grl-metadata-source.c | 62 +-------------- + src/grl-metadata-source.h | 6 -- + 8 files changed, 1 insertion(+), 404 deletions(-) + +commit a6b29392d99ac79f8fb8d78f4b6267c8e9fd8621 +Author: Juan A. Suarez Romero +Date: Mon May 23 08:23:05 2011 +0000 + + core: Do not print warning if initializing plugin fails + + If plugin is perfectly valid, but initializing it fails because no required + configuration has been provided, then log it as information instead of warning, + as it is a typical use case. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 218ba35332040f644387ee21b53e189784d4dfe6 +Author: Juan A. Suarez Romero +Date: Thu May 19 12:44:36 2011 +0200 + + build: Really require gtk+-3.0 + + Check that available gtk+-3.0 package is really >= 3.0 + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b46879c10943b9e23596dca2d8d0fe7c9c41bfaf +Author: Guillaume Emont +Date: Tue May 10 17:45:08 2011 +0200 + + core: updated GI annotations to the new GrlKeyID type + + src/data/grl-data.c | 38 +++++++++++++++++++------------------- + src/data/grl-related-keys.c | 28 ++++++++++++++-------------- + src/grl-media-source.c | 16 ++++++++-------- + src/grl-metadata-source.c | 32 ++++++++++++++++---------------- + src/grl-metadata-source.h | 2 +- + src/grl-multiple.c | 4 ++-- + src/grl-plugin-registry.c | 2 +- + 7 files changed, 61 insertions(+), 61 deletions(-) + +commit 82249d2217ac2e730a08620a8b2b2a665329ce1e +Author: Guillaume Emont +Date: Wed May 4 18:39:26 2011 +0200 + + tests: updated test_registry.py for consistency with current behaviour + + tests/python/test_registry.py | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +commit 2b237de289b24124d5786b663b44eb1ddd44f291 +Author: Guillaume Emont +Date: Tue May 3 19:52:46 2011 +0200 + + core: #define directly core metadata keys + + This required the use of the new + grl_plugin_registry_register_metadata_key_full(). + + src/grl-metadata-key.c | 756 ++++++++++++++++++++++++------------------------- + src/grl-metadata-key.h | 78 ++--- + 2 files changed, 412 insertions(+), 422 deletions(-) + +commit 398d97c1e5cb633b4453f7799055c05c1be91291 +Author: Guillaume Emont +Date: Tue May 3 19:50:12 2011 +0200 + + core: made plugin registry handle itself key id assignments + + Instead of relying on GQuarks, a similar mechanism is implemented in the plugin + registry. This gives more flexibility and allows to #define the values of core + keys, which automatically give their symbols in GObject-introspection bindings. + + src/grl-plugin-registry.c | 229 ++++++++++++++++++++++++++++++++-------------- + src/grl-plugin-registry.h | 8 +- + 2 files changed, 166 insertions(+), 71 deletions(-) + +commit 272f1e632598741eee7b6e27bf9178997916b84f +Author: Guillaume Emont +Date: Fri Apr 29 13:40:57 2011 +0200 + + core: updated recent code to the new GrlKeyID format + + src/data/grl-data.c | 32 ++++++++++++++++++++------------ + src/data/grl-related-keys.c | 16 +++++++++++----- + src/grl-metadata-key.c | 18 +++++++++--------- + src/grl-plugin-registry.c | 6 +++--- + 4 files changed, 43 insertions(+), 29 deletions(-) + +commit f99a0c5ca14ee3ccb583f7b7aafe8bffa9460f17 +Author: Juan A. Suarez Romero +Date: Wed Feb 16 09:34:16 2011 +0000 + + core: Use numbers to identify Grilo keys + + Use guint32 instead of GParamSpec for Grilo keys. + + Mostly the API remains the same. + + New functions to get the name or type of a Grilo key has been introduced. + + Main changes are: + - Introduced GRL_METADATA_KEY_INVALID definition + - grl_metadata_key_list_new() needs to end with GRL_METADATA_KEY_INVALID + instead of NULL. + - Introduced GRLKEYID_TO_POINTER and GRLPOINTER_TO_KEYID macros to + convert between GrlKeyID and gpointers. + + src/data/grl-data.c | 11 ++- + src/data/grl-media.c | 2 +- + src/grl-metadata-key.c | 131 +++++++++++++++++++-------- + src/grl-metadata-key.h | 20 +++-- + src/grl-metadata-source.c | 15 ++-- + src/grl-plugin-registry.c | 182 ++++++++++++++++++++++++++++++++++---- + src/grl-plugin-registry.h | 13 +++ + tools/grilo-inspect/grl-inspect.c | 3 +- + tools/grilo-test-ui/main.c | 14 +-- + 9 files changed, 310 insertions(+), 81 deletions(-) + +commit 8eae870a119e2c936b5fa2ea4269a8e1b155bd7f +Author: Juan A. Suarez Romero +Date: Fri May 13 16:01:24 2011 +0000 + + Start new 0.2.x development cycle + + Signed-off-by: Juan A. Suarez Romero + + Makefile.am | 4 ++-- + bindings/vala/{grilo-0.1-custom.vala => grilo-0.2-custom.vala} | 0 + bindings/vala/{grilo-0.1.deps => grilo-0.2.deps} | 0 + bindings/vala/{grilo-0.1.metadata => grilo-0.2.metadata} | 0 + .../vala/{grilo-net-0.1-custom.vala => grilo-net-0.2-custom.vala} | 0 + bindings/vala/{grilo-net-0.1.deps => grilo-net-0.2.deps} | 0 + bindings/vala/{grilo-net-0.1.metadata => grilo-net-0.2.metadata} | 0 + bindings/vala/grilo-net-uninstalled.files.in | 2 +- + bindings/vala/grilo-uninstalled.files.in | 2 +- + configure.ac | 8 ++++---- + grilo-0.1.pc.in => grilo-0.2.pc.in | 0 + grilo-net-0.1.pc.in => grilo-net-0.2.pc.in | 0 + tools/vala/Makefile.am | 2 +- + 13 files changed, 9 insertions(+), 9 deletions(-) + +commit a5f19ef95a7a5e41de5ad3b5b61ab409100d6052 +Author: Guillaume Emont +Date: Wed May 11 19:45:39 2011 +0200 + + core: ensure the default log domain is always set + + This also avoid the risky #define-ing of GRL_LOG_DOMAIN_DEFAULT in grl-log.c: + in this file, GRL_LOG_DOMAIN_DEFAULT now always refers to the actual variable, + to avoid confusions. + + src/grl-log.c | 19 ++++++++++++++----- + 1 file changed, 14 insertions(+), 5 deletions(-) + +commit 343b2d72553cf7196942cc7a575182fba48fde60 +Author: Víctor Manuel Jáquez Leal +Date: Mon May 2 13:08:34 2011 +0200 + + test-ui: replace GConf with GKeyFile + + GConf is a bloated and deprecated dependency to grilo-test-ui. This patch + replace its usage with a simple GKeyFile. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 2 +- + tools/grilo-test-ui/main.c | 89 ++++++++++++++++++++++++++++++++++++++++------ + 2 files changed, 79 insertions(+), 12 deletions(-) + +commit 874bb1582525be2b5e69bf401d61f0b537f608a2 +Author: Víctor Manuel Jáquez Leal +Date: Fri Apr 29 19:55:44 2011 +0200 + + build: check for gtk+-3.0 + + The configure script will check for gtk+-3.0 pkg-config. It it is not + available, the script will check for gtk+2.0. If both libraries are available, + gtk+-3.0 will be used. + + configure.ac | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) + +commit cee2c456d7972ea86be7a1a533775869c1593bb5 +Author: Víctor Manuel Jáquez Leal +Date: Fri Apr 29 19:38:22 2011 +0200 + + test-ui: disable resize-grip by gtk+ versions + + On gtk+-3.0 the resize-grip is handled by the window, but in gtk+-2.0 is + handled by the statusbar + + Signed-off-by: Víctor Manuel Jáquez Leal + + tools/grilo-test-ui/main.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 4b924177baa524f9189b1608eff0b6976385c94d +Author: Víctor Manuel Jáquez Leal +Date: Fri Apr 29 18:37:20 2011 +0200 + + test-ui: both gtk+-2.0 and gtk+-3.0 compliant + + Use accessors and _unref() instead of deprecated _destroy() and unsealed + attributes. + + This patch doesn't make the test-ui gtk+-3.0 compliant, but is a step in + between. + + Signed-off-by: Víctor Manuel Jáquez Leal + + tools/grilo-test-ui/main.c | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +commit 5afd4c310714222786a620a160fe05ba97f166a7 +Author: Juan A. Suarez Romero +Date: Wed Apr 20 13:55:17 2011 +0000 + + Bump to 0.1.15 + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 11 +++++++++++ + configure.ac | 2 +- + 2 files changed, 12 insertions(+), 1 deletion(-) + +commit e2c18e580073da4f6d78c855f661aa79ab60c864 +Author: Juan A. Suarez Romero +Date: Tue Apr 19 15:10:00 2011 +0000 + + core: Fix typo in GrlMedia documentation + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit acd16a370f4a5737d047a138dc4392d4fab24f29 +Author: Juan A. Suarez Romero +Date: Tue Apr 19 14:54:36 2011 +0000 + + grl-inspect: Update Grilo Inspector + + Print new operations, and support for "content-changed" notification. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-inspect/grl-inspect.c | 14 ++++++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) + +commit 53539b06cea84c4128fcadc1e213e3899a252eb6 +Author: Juan A. Suarez Romero +Date: Tue Apr 19 14:53:12 2011 +0000 + + grl-inspect: Add configuration file + + Add option "-c" to pass a file containing configuration options for sources. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-inspect/grl-inspect.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +commit 42f4809069c9e6c4bc0396d679d5d66c7c6ad881 +Author: Juan A. Suarez Romero +Date: Tue Apr 19 14:52:49 2011 +0000 + + grl-inspect: Define log domain + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-inspect/grl-inspect.c | 5 +++++ + 1 file changed, 5 insertions(+) + +commit fb3484baf873588df5ea46f2b21066569b11a250 +Author: Juan A. Suarez Romero +Date: Tue Apr 19 09:56:24 2011 +0000 + + doc: Document how to handle multi-valued keys + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/quick-start-using-grilo.xml | 170 ++++++++++++++++++++++++++++++++++ + 1 file changed, 170 insertions(+) + +commit 823e033d247d32ada546080deb783a5583521aa4 +Author: Juan A. Suarez Romero +Date: Tue Apr 19 09:55:24 2011 +0000 + + doc: Document how to configure plugins + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/quick-start-using-grilo.xml | 115 ++++++++++++++++++++++++++++++++++ + 1 file changed, 115 insertions(+) + +commit 485c5fb691525195559c809298350176138c013b +Author: Juan A. Suarez Romero +Date: Mon Apr 18 18:44:26 2011 +0000 + + doc: Update documentation + + Signed-off-by: Juan A. Suarez Romero + + doc/grilo/grilo-docs.sgml | 7 +- + doc/grilo/grilo-sections.txt | 143 +++++++++++++++++++++++++++++++++- + doc/grilo/grilo.types | 1 + + doc/grilo/quick-start-using-grilo.xml | 22 ++++-- + 4 files changed, 161 insertions(+), 12 deletions(-) + +commit 52724f1e3550cb0c1bb20e61432f74e189d676f3 +Author: Juan A. Suarez Romero +Date: Mon Apr 18 16:32:15 2011 +0000 + + doc: Update GrlNet documentation + + Include the new API added to handle the cache. + + Signed-off-by: Juan A. Suarez Romero + + doc/libs/grilo-libs-sections.txt | 2 ++ + 1 file changed, 2 insertions(+) + +commit 71fed8a247c6df4971c05a646e0fb662be28c9ea +Author: Juan A. Suarez Romero +Date: Fri Apr 15 09:18:32 2011 +0200 + + core: Ignore elements coming after operation has finished + + In a browse/search with full-resolution support operation, each media is + invoked with resolve() to solve the keys not known by media source. + + As each metadata plugin can resolve that data sooner or later than + others, the resolved medias ready to sent to the user can be in a + different order than they went sent by the media source. + + In this situation, if the operation is cancelled, we wait until the last + element is ready (the one with remaining == 0), and we send this element + notifying operation has cancelled, and finishing it. + + But it can happen that an out-of-order element comes after this last one + was sent. + + In this case, as operation has been finished, we need to kindly discard + it. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 25 +++++++++++++++++-------- + 1 file changed, 17 insertions(+), 8 deletions(-) + +commit 7bac5d92aa6e2bd8c679ffa79a9f76fe14864bc9 +Author: Juan A. Suarez Romero +Date: Thu Apr 14 13:48:22 2011 +0000 + + test-ui: Print current media on cancelled metadata() + + On metadata callback, if operation has been cancelled show anyway the current + media. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0a49a1d0ce38a6a56047f756d26d81ef723fea4e +Author: Juan A. Suarez Romero +Date: Thu Apr 14 13:47:16 2011 +0000 + + core: Do not print cancelled operations as error + + When debugging an error, notify if the error is actually a proper error or a + cancelled operation. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit a1185da30abec833d6b213e639d24b64f74f490d +Author: Juan A. Suarez Romero +Date: Wed Apr 13 18:41:19 2011 +0000 + + core: Create table to store optional information + + If plugin does not have a valid XML, we need to create anyway this table to + store some information. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit dd4942b9573461ccc2907961d6e4f95d46b6fd20 +Author: Juan A. Suarez Romero +Date: Wed Apr 13 15:20:33 2011 +0000 + + Bump to 0.1.14 + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 15 +++++++++++++++ + configure.ac | 2 +- + src/grl-media-source.c | 9 +++++++-- + src/grl-metadata-source.c | 8 +++++++- + src/grl-plugin-registry.c | 2 ++ + 5 files changed, 32 insertions(+), 4 deletions(-) + +commit a23eda81fd79f997e6247a6a0b250f9eaedd1f02 +Author: Juan A. Suarez Romero +Date: Wed Apr 13 11:52:48 2011 +0000 + + core: Plug some leaks + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit c4cb7e22ef157ce4ad98dbc195d4d851071aad70 +Author: Juan A. Suarez Romero +Date: Wed Apr 13 11:31:09 2011 +0000 + + test-ui: Plug some leaks + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 15 ++++++++++----- + 1 file changed, 10 insertions(+), 5 deletions(-) + +commit efa926404ccf01fc6bd1003a418f9988900d698c +Author: Juan A. Suarez Romero +Date: Wed Apr 6 11:20:30 2011 +0000 + + core: Cancel pending resolve() in full-resolution mode + + With GRL_RESOLVE_FULL flag, metadata/search/browse invoke resolve() to resolve + keys that they couldn't resolve. + + If the operation is cancelled, cancel all the resolve() pending to end. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 109 ++++++++++++++++++++++++++++++++++--------------- + 1 file changed, 75 insertions(+), 34 deletions(-) + +commit 97c9bd000ffc4d75c6707f793ee4bfaf201058a0 +Author: Juan A. Suarez Romero +Date: Wed Apr 6 06:42:57 2011 +0000 + + core: Make resolve() a cancellable operation + + Fixes https://bugzilla.gnome.org/show_bug.cgi?id=644383 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 6 ++++-- + src/grl-metadata-source.c | 48 +++++++++++++++++++++++++++++++++++++++-------- + src/grl-metadata-source.h | 18 +++++++++++------- + 3 files changed, 55 insertions(+), 17 deletions(-) + +commit 15d1e0d09e3c84383271a4cf9f23554fb0adaa9a +Author: Juan A. Suarez Romero +Date: Tue Apr 5 17:40:18 2011 +0000 + + core: Send operation id if operation is cancellable + + metadata() and media_from_uri() are both cancellable operations, but none of + them are sending the operation id in the callback. + + This commit fix this. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 15 +++++++++++---- + src/grl-media-source.h | 2 ++ + src/grl-multiple.c | 9 +++++---- + tools/grilo-test-ui/main.c | 3 ++- + 4 files changed, 20 insertions(+), 9 deletions(-) + +commit 7652ee713e1ce7dafe32798370747ebeb6dada07 +Author: Juan A. Suarez Romero +Date: Tue Apr 5 16:11:49 2011 +0000 + + core: Make get_media_from_uri() a cancellable operation + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 65 ++++++++++++++++++++++++++++++++++++++++++-------- + src/grl-media-source.h | 16 +++++++------ + 2 files changed, 64 insertions(+), 17 deletions(-) + +commit c64f733b2ce14d237bddc40180f7abed60a4d04c +Author: Juan A. Suarez Romero +Date: Tue Apr 5 09:42:09 2011 +0000 + + core: Move cancel() to GrlMetadataSource + + So GrlMetadataSource's methods can be cancelled too. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 23 +++-------------------- + src/grl-media-source.h | 2 +- + src/grl-metadata-source.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 7 ++++++- + src/grl-multiple.c | 4 ++-- + tools/grilo-test-ui/main.c | 3 ++- + 6 files changed, 60 insertions(+), 25 deletions(-) + +commit 7e991e7a7d3311922f71385664dbfa9a03f89698 +Author: Juan A. Suarez Romero +Date: Tue Apr 5 06:59:00 2011 +0000 + + core: Move operation handling to GrlMetadataSource + + So we can also handle metadata's operation states. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 244 +++++++++++------------------------------ + src/grl-media-source.h | 15 +-- + src/grl-metadata-source-priv.h | 26 +++++ + src/grl-metadata-source.c | 229 +++++++++++++++++++++++++++++++++++++- + src/grl-metadata-source.h | 12 +- + 5 files changed, 336 insertions(+), 190 deletions(-) + +commit a7182f9e7ddf262172a098a7192af6b51d90b103 +Author: Juan A. Suarez Romero +Date: Tue Apr 12 16:46:36 2011 +0000 + + test-ui: allow reloading of plugins + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + +commit b653bc9d15f83d5eba0171128dc72553a1ea6d74 +Author: Juan A. Suarez Romero +Date: Tue Apr 12 16:37:37 2011 +0000 + + core: Make modules resident + + Do not really unload the modules from memory when unloading the plugins. + + This will prevent problems with glib's types if plugins are reloaded again. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit f861c709c77c731efd1f8576ed07fa301b9063b3 +Author: Juan A. Suarez Romero +Date: Tue Apr 12 16:35:20 2011 +0000 + + core: Fix crash when unloading the plugins + + Remove the plugin from the list of plugins before closing the module. + Otherwise, the key will be freed so removing from hash table will crash. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 60c3262fc4c3d81ab4e21386cb05ee49fb61e619 +Author: Juan A. Suarez Romero +Date: Fri Apr 8 16:55:35 2011 +0000 + + core: Add function to load plugin by ID + + Add grl_plugin_registry_load_by_id(), which allows to load a specific plugin by + its identifier. + + Fixes https://bugzilla.gnome.org/show_bug.cgi?id=628898 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 107 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-plugin-registry.h | 4 ++ + 2 files changed, 111 insertions(+) + +commit 19ecd892b71394368d39188063c33177c9e21c35 +Author: Juan A. Suarez Romero +Date: Fri Apr 8 15:54:48 2011 +0000 + + core: Check if plugin is already loaded + + When loading a plugin, check if the plugin is already loaded. If so then skip + it and return an error. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +commit 46948e96e4e8c7f411ab42f565020644a52e2762 +Author: Juan A. Suarez Romero +Date: Fri Apr 8 15:07:21 2011 +0000 + + core: Preload available plugins' information + + When initializing Grilo, load all plugins information stored in XML files. + + This will allow to know in advance what are the plugins available in the + system. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 112 ++++++++++++++++++++++++++++++++++------------ + src/grl-plugin-registry.h | 6 +-- + 2 files changed, 87 insertions(+), 31 deletions(-) + +commit f5f867445b7eeec10728598c5ff81b07cfa45ef3 +Author: Juan A. Suarez Romero +Date: Fri Apr 1 10:57:10 2011 +0000 + + core: Allow grouping all changed medias in "content-changed" signal + + When several multimedia files change at the same time, it can be useful to send + just one signal containing all the changed medias, instead of sending one + signal per change. + + This commit changes the "content-changed" signal and related functions to send + a list of changed medias instead of one media. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-marshal.list | 2 +- + src/grl-media-source.c | 106 +++++++++++++++++++++++++++++++++------------ + src/grl-media-source.h | 5 +++ + tools/grilo-test-ui/main.c | 55 ++++++++++++----------- + 4 files changed, 115 insertions(+), 53 deletions(-) + +commit 3b12c57bd139865a957d266e58692f93910b3b9b +Author: Lionel Landwerlin +Date: Thu Apr 7 10:25:03 2011 +0100 + + grl-log: add missing domain initialization + + Signed-off-by: Lionel Landwerlin + + src/grl-log-priv.h | 1 + + src/grl-log.c | 1 + + 2 files changed, 2 insertions(+) + +commit cfea51728b3d5a36161b94571ef230506f511882 +Author: Juan A. Suarez Romero +Date: Thu Apr 7 14:45:04 2011 +0000 + + core: Fix warning + + Include header with the complained definition. + + Signed-off-by: Juan A. Suarez Romero + + src/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 7aec11bf2e9ce0b6b21cd08ad98ef9de3fd77c2b +Author: Juan A. Suarez Romero +Date: Wed Apr 6 15:35:11 2011 +0000 + + Bump to version 0.1.13 + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 14 ++++++++++++++ + configure.ac | 2 +- + src/data/grl-data.c | 10 ++++++++++ + src/data/grl-related-keys.c | 4 +++- + 4 files changed, 28 insertions(+), 2 deletions(-) + +commit 1b5c6c253d708ce73371c6c5267d26e2f13782f3 +Author: Juan A. Suarez Romero +Date: Thu Mar 31 11:42:46 2011 +0000 + + core: Use higher priorities when dealing with no IDLE_RELAY flag + + When user do not use the GRL_RESOLVE_IDLE_RELAY, usually means he needs the + results as soon as possible. + + As we relay on g_idle_add() to do our internal work, we should handle this idle + functions with higher priority in this case. + + This patch makes to use G_PRIORITY_DEFAULT_IDLE when user requests the + GRL_RESOLVE_IDLE_RELAY, while G_PRIORITY_HIGH_IDLE is used when the flag is not + set up. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=645525 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 27 ++++++++++++++++++++++----- + src/grl-metadata-source.c | 12 ++++++++++-- + 2 files changed, 32 insertions(+), 7 deletions(-) + +commit 4032c8ebd10ca83e464ca7ed7ebe3a30f431ec5e +Author: Juan A. Suarez Romero +Date: Mon Apr 4 11:43:34 2011 +0000 + + core: Deprecate "overwrite" property + + This property is not useful anymore, specially since GrlData is able to handle + multi-valued keys. + + Make it deprecated so it can be removed later. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 50 ++++++++++++++------------------------------------ + src/data/grl-data.h | 4 ++-- + 2 files changed, 16 insertions(+), 38 deletions(-) + +commit e21a4dedc948733d5b95979cfc9a26a308f1ae8e +Author: Juan A. Suarez Romero +Date: Wed Mar 30 08:24:55 2011 +0000 + + core: Do not add unknown childcount + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media-box.c | 4 ---- + 1 file changed, 4 deletions(-) + +commit 0ead0a4fe37f64f8f0701ba837178df50a4b7f0f +Author: Juan A. Suarez Romero +Date: Wed Mar 30 09:51:20 2011 +0200 + + core: Replace grl_data_get_all_single_related_keys() functions + + This name is quiet meaningless, so replace them by + grl_data_get_single_values_for_key(). + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++-- + src/data/grl-data.h | 8 ++++++-- + 2 files changed, 61 insertions(+), 4 deletions(-) + +commit bbd37c142eaeb528902fd0770184330f0ab70147 +Author: Juan A. Suarez Romero +Date: Wed Mar 30 09:50:08 2011 +0200 + + doc: Clarify grl_data_length() function + + Rewrite function documentation so it is clearer how this function works. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +commit 98281b32f637d76d0fb0bb6b0a8691b69c0f634a +Author: Juan A. Suarez Romero +Date: Wed Mar 30 09:48:17 2011 +0200 + + core: Fix grl_data_get_keys() function + + Return only those keys that are in GrlData (keys that have at least one + value). + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 15 +++++++++------ + 1 file changed, 9 insertions(+), 6 deletions(-) + +commit 0c390a0a188c9f172d1bcbbf0df5bd4ee04d89d7 +Author: Juan A. Suarez Romero +Date: Wed Mar 30 09:44:30 2011 +0200 + + core: Deprecate key_is_known() function + + Deprecate GrlData and GrlRelatedKeys key_is_known() function. + + has_key() replaces it. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 20 ++++---------------- + src/data/grl-data.h | 2 +- + src/data/grl-related-keys.c | 17 +++-------------- + src/data/grl-related-keys.h | 4 ++-- + src/grl-metadata-source.c | 2 +- + tools/grilo-test-ui/main.c | 2 +- + 6 files changed, 12 insertions(+), 35 deletions(-) + +commit 893bacf1e6b5a5eccf37af034cb8dc649e38b0c1 +Author: Juan A. Suarez Romero +Date: Wed Mar 30 09:40:28 2011 +0200 + + core: Fix grl_data_has_key() function + + Check if key has at least one value in data. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +commit 42d20ed4d7d2944c35514d03a7b33eb6ccd9ddc7 +Author: Juan A. Suarez Romero +Date: Wed Mar 30 09:32:53 2011 +0200 + + core: Do not allow empty keys + + When adding a new key into GrlData or GrlRelatedKeys, the key must have + at least one value. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 46 ++++++++++++++-------------- + src/data/grl-data.h | 2 +- + src/data/grl-related-keys.c | 73 +++++++++++++++++++-------------------------- + src/data/grl-related-keys.h | 7 ++--- + 4 files changed, 58 insertions(+), 70 deletions(-) + +commit 0cba561d6c6891bb3f1a3ff02e8bad1a6f255ac7 +Author: Juan A. Suarez Romero +Date: Wed Mar 30 18:07:39 2011 +0000 + + Bump to version 0.1.12 + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 16 ++++++++++++++++ + configure.ac | 2 +- + libs/net/grl-net-wc.c | 4 ++++ + src/data/grl-media-image.c | 20 ++++++++++++++++++++ + src/data/grl-media.c | 4 ++++ + 5 files changed, 45 insertions(+), 1 deletion(-) + +commit 6c87a766536df0ac30597084c25cf4201fbecf7d +Author: Juan A. Suarez Romero +Date: Wed Mar 30 11:50:58 2011 +0000 + + core: Fix filter_key_list() function + + This function was working bad. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=645542 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-metadata-source.c | 52 ++++++++++++++++++----------------------------- + 1 file changed, 20 insertions(+), 32 deletions(-) + +commit 3b57b73d971ad7e2047afa9aa919d836c408b3fd +Author: Juan A. Suarez Romero +Date: Wed Mar 30 11:50:30 2011 +0000 + + core: Fix filter_foo() functions + + Currently, grl_metadata_source_filter_{supported,writable,slow}() functions do + not honor what the documentation states. + + In order to bring more coherence here, this patch makes + grl_metadata_source_filter_{supported,writable}() to keep only the keys that + are {supported,writable}, and returning the removed keys in a new list. + + In the case of grl_metadata_source_filter_slow(), it does the opposite: the + list is filtered so only the fastest keys are kept; the slower ones are + returned in a list. This is done in this way because it is the most common case + of use for this function. + + This fixes https://bugzilla.gnome.org/show_bug.cgi?id=645542 + + Signed-off-by: Juan A. Suarez Romero + + src/grl-metadata-source.c | 107 +++++++++++++++++++--------------------------- + 1 file changed, 43 insertions(+), 64 deletions(-) + +commit 2414a05718730e7ad913a1fa2e0ffed81c50b4dd +Author: Juan A. Suarez Romero +Date: Fri Mar 25 14:07:43 2011 +0000 + + core: Get rid of original width/height + + Not used at all. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media-image.c | 61 ---------------------------------------------- + src/data/grl-media-image.h | 10 -------- + src/grl-metadata-key.c | 22 ----------------- + src/grl-metadata-key.h | 2 -- + 4 files changed, 95 deletions(-) + +commit d79ef1758366717079b741b2db986bae05f99c3d +Author: Lionel Landwerlin +Date: Wed Mar 23 18:00:58 2011 +0000 + + grl-metadata-source: allow set_metadata calls without callbacks + + Signed-off-by: Lionel Landwerlin + + src/grl-metadata-source.c | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +commit 74cf69cd2faabefbae6c991f18f9b7f1e1bc9b29 +Author: Simon Pena +Date: Fri Mar 18 17:46:22 2011 +0200 + + annotations: replace Grl.KeyID with GObject.ParamSpec + + src/data/grl-data.c | 38 +++++++++++++++++++------------------- + src/data/grl-related-keys.c | 28 ++++++++++++++-------------- + src/grl-plugin-registry.c | 4 ++-- + 3 files changed, 35 insertions(+), 35 deletions(-) + +commit c47abc09a49d0567a6f94b425c0480c22cbf0e51 +Author: Simon Pena +Date: Fri Mar 18 17:46:21 2011 +0200 + + annotations: skip GrlMetadataSource private functions + + src/grl-metadata-source.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit ff186c34338f3473c7489b7b9a7d0e4f4ce48024 +Author: Simon Pena +Date: Fri Mar 18 17:46:20 2011 +0200 + + annotations: added missing transfer modes + + src/data/grl-data.c | 4 ++-- + src/data/grl-related-keys.c | 3 ++- + src/grl-media-source.c | 2 ++ + src/grl-plugin-registry.c | 2 +- + 4 files changed, 7 insertions(+), 4 deletions(-) + +commit 572734ce46c5c4167adc74b2a93cf535f07ad849 +Author: Simon Pena +Date: Fri Mar 18 17:46:19 2011 +0200 + + doc: fix argument names + + Fixed some wrong/missing argument names + + src/data/grl-config.c | 5 +++-- + src/data/grl-config.h | 4 ++-- + 2 files changed, 5 insertions(+), 4 deletions(-) + +commit 5d04fb6d3c12c770d92220e7246e034390edac98 +Author: Simon Pena +Date: Fri Mar 18 17:46:18 2011 +0200 + + annotations: removed 'not-error' annotation + + src/grl-media-source.h | 8 ++++---- + src/grl-metadata-source.h | 4 ++-- + 2 files changed, 6 insertions(+), 6 deletions(-) + +commit a8ac1557431fcf819bdc404115c24d430633d8e4 +Author: Simon Pena +Date: Fri Mar 18 17:46:17 2011 +0200 + + build: added --warn-all to GI scanner + + libs/net/Makefile.am | 1 + + src/Makefile.am | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +commit 2dc94569c9c756b399923d95240b59f91b8b3ae1 +Author: Simon Pena +Date: Fri Mar 18 17:46:16 2011 +0200 + + build: raised GI required version to 0.9 + + This allows passing the --warn-all (and --warn-error) options + to GI scanner, making easier to detect annotations missing. + + Fedora 14 and Ubuntu 10.10 already ship 0.9.3, so it should be + usable there as well as within JHBuild + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1a729d9a7e7cca554a664d1d79ed833208cc67f7 +Author: Lionel Landwerlin +Date: Sun Mar 20 02:09:32 2011 +0000 + + grilo-test-ui: add local-metadata config + + Signed-off-by: Lionel Landwerlin + + tools/grilo-test-ui/main.c | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +commit 9b721ccdf89979e03a7ab439b227e0b872ca409c +Author: Michael Wood +Date: Fri Mar 18 14:00:27 2011 +0000 + + grl-media-image: Add api to access new picture related metadata + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media-image.c | 212 +++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media-image.h | 43 ++++++++- + src/data/grl-media.c | 29 +++++++ + src/data/grl-media.h | 4 + + 4 files changed, 286 insertions(+), 2 deletions(-) + +commit e133070cfdfdc058739fffeb680ab87df5eccaaf +Author: Juan A. Suarez Romero +Date: Wed Mar 23 10:20:46 2011 +0100 + + fixup + + src/grl-metadata-key.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit af52d33985cbfa3eb90f46c68180edf5d32b56c1 +Author: Lionel Landwerlin +Date: Fri Mar 18 14:00:26 2011 +0000 + + metadata-keys: add metadata keys from camera pictures + + * Creation date + * Camera model + * Flash used + * Exposure time + * Original width + * Original height + + Signed-off-by: Lionel Landwerlin + Signed-off-by: Juan A. Suarez Romero + + src/grl-metadata-key.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-key.h | 8 +++++ + 2 files changed, 95 insertions(+) + +commit 5bb49c472283dd29f74633d2418b493ceb479f21 +Author: Juan A. Suarez Romero +Date: Wed Mar 9 13:39:41 2011 +0000 + + grl-net: Use libsoup cache + + If libsoup version is newer enough, use the cache feature it provides. + + Thus, it will cache the content to speed up network access. + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 4 + + libs/net/Makefile.am | 6 + + libs/net/grl-net-wc.c | 326 +++++++++++++++++++++++++++++++++++++++++++++++++- + libs/net/grl-net-wc.h | 6 + + 4 files changed, 337 insertions(+), 5 deletions(-) + +commit 9c95a81ef4aa1fa07da0fcdbeb298587f2153c61 +Author: Juan A. Suarez Romero +Date: Thu Mar 17 22:22:35 2011 +0100 + + Bump to version 0.1.11 + + Signed-off-by: Juan A. Suarez Romero + + AUTHORS | 1 + + NEWS | 11 +++++++++++ + configure.ac | 2 +- + src/data/grl-media-video.c | 12 ++++++++++++ + 4 files changed, 25 insertions(+), 1 deletion(-) + +commit 749a70f3b4c100cba2a6e96a76473aef5d3be719 +Author: Juan A. Suarez Romero +Date: Thu Mar 17 21:21:40 2011 +0000 + + core: Add functions to handle new keys + + Add functions in GrlMediaVideo to handle season, episode and show keys. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media-video.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media-video.h | 12 ++++++++ + 2 files changed, 87 insertions(+) + +commit ee639609dab28503689a613fb843f60d1d7f9ce1 +Author: Lionel Landwerlin +Date: Wed Mar 16 22:34:40 2011 +0000 + + core: Fix segfault + + Fix segfault in grl-data. + + Signed-off-by: Lionel Landwerlin + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 919f14b83318e88d91940551491625eccbdbdda7 +Author: Lionel Landwerlin +Date: Mon Mar 14 11:31:35 2011 +0000 + + metadata-keys: add season/episode/show keys + + Signed-off-by: Lionel Landwerlin + + src/grl-metadata-key.c | 33 +++++++++++++++++++++++++++++++++ + src/grl-metadata-key.h | 3 +++ + 2 files changed, 36 insertions(+) + +commit ea1183d30fb738e1a2a6696e025f3ee05687348c +Author: Juan A. Suarez Romero +Date: Tue Mar 8 09:20:31 2011 +0100 + + core: Initialize variable + + Initialize a boolean variable that avoids to free wrongly a GError. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 26 +++++++++++++------------- + 1 file changed, 13 insertions(+), 13 deletions(-) + +commit 02a1245a3d01159655b4b14303176dda6221dc38 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 13:18:23 2011 +0100 + + Bump to version 0.1.10 + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 14 ++++++++++++++ + configure.ac | 2 +- + src/data/grl-data.c | 24 ++++++++++++++++++++++++ + src/data/grl-media-audio.c | 20 ++++++++++++++++++++ + src/data/grl-media-image.c | 8 ++++++++ + src/data/grl-media-video.c | 8 ++++++++ + src/data/grl-media.c | 28 ++++++++++++++++++++++++++++ + src/data/grl-related-keys.c | 36 ++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.c | 2 ++ + src/grl-plugin-registry.c | 4 ++++ + 10 files changed, 145 insertions(+), 1 deletion(-) + +commit b906053fdbabada407c9b89bced0edf35255eb82 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 16:55:32 2011 +0000 + + test-ui: Do not show empty values + + Do not print keys that do not have a value. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 21 ++++++++++++--------- + 1 file changed, 12 insertions(+), 9 deletions(-) + +commit 31f86d054066d5ad117e42ee8158eb231d0f31c4 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 15:39:35 2011 +0000 + + core: Fix grl_data_get_keys() + + Include also related keys in the returned list. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 18 ++++++++++++++++-- + 1 file changed, 16 insertions(+), 2 deletions(-) + +commit c4a83945824507f81402b038ebb1993dbae4de15 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 15:38:20 2011 +0000 + + core: Fix grl_data_has_key() + + When searching for a key, take in account that there are related keys. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +commit 9f9c4af92151d06540215491016ccb2c78cbfef9 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 13:09:01 2011 +0100 + + core: Add missing implementations + + Add implementations for grl_media_get_player_nth() and + grl_media_get_external_url_nth(). + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 45 insertions(+) + +commit 642c58f2b77ff312debbfdd613ec06fdfa00ce0c +Author: Juan A. Suarez Romero +Date: Fri Mar 4 13:07:15 2011 +0100 + + core: Fix some typos in documentation + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-related-keys.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit bb663f84fb57efea80ce5093c3d7c1181bf394e6 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 13:04:16 2011 +0100 + + core: Rename grl_media_get_license() parameters + + Rename from "data" to "media", as it fits better. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d8c6129cd3f1576f8aec4bf943e1d4984c101970 +Author: Juan A. Suarez Romero +Date: Fri Mar 4 12:14:42 2011 +0100 + + build: Add --enable-grl-net + + Add option to enable/disable Grilo Net library building. + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 20 +++++++++++++++++++- + 1 file changed, 19 insertions(+), 1 deletion(-) + +commit 1c68005c910dccb957945ac9ec43215e72f95032 +Author: Juan A. Suarez Romero +Date: Thu Mar 3 11:28:19 2011 +0000 + + core: Add convenience API in GrlMediaFoo + + Add some utilities in GrlMedia clases to handle multi-valued elements in those + keys that could make sense, as well as to handle correlated keys without + needing to create or handle GrlRelatedKeys. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media-audio.c | 263 ++++++++++++++++++++++--- + src/data/grl-media-audio.h | 40 +++- + src/data/grl-media-image.c | 142 ++++++++++++-- + src/data/grl-media-image.h | 31 ++- + src/data/grl-media-video.c | 178 +++++++++++++++-- + src/data/grl-media-video.h | 39 +++- + src/data/grl-media.c | 473 +++++++++++++++++++++++++++++++++------------ + src/data/grl-media.h | 108 +++++++---- + 8 files changed, 1028 insertions(+), 246 deletions(-) + +commit 58a09ac78883b05996ad547cedb6158d54d1d8c6 +Author: Juan A. Suarez Romero +Date: Thu Mar 3 11:27:49 2011 +0000 + + core: Add multi-valued API to GrlData + + The old singled-valued API is still there, but will work with the first value + of each key. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 662 ++++++++++++++++++++++++++++++++++++++++++++-------- + src/data/grl-data.h | 25 ++ + 2 files changed, 586 insertions(+), 101 deletions(-) + +commit 7ac842bc4468a36a39b45ccd6433ef1d3eda1c9a +Author: Juan A. Suarez Romero +Date: Thu Mar 3 11:27:26 2011 +0000 + + core: Create predefined relations with key "url" + + System-defined keys "url", "mime-type", "bitrate", "framerate", "height" and + "width" are correlated. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-metadata-key.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +commit 8dfe45a501a99a366b238997dd28e22dbb04ce3d +Author: Juan A. Suarez Romero +Date: Thu Mar 3 11:26:53 2011 +0000 + + core: Add new class to handle related keys and its values + + Add GrlRelatedKeys class, which helps to keep together and handling related + keys with their values. + + Signed-off-by: Juan A. Suarez Romero + + src/Makefile.am | 2 + + src/data/grl-related-keys.c | 580 ++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-related-keys.h | 153 ++++++++++++ + src/grilo.h | 1 + + 4 files changed, 736 insertions(+) + +commit 1926a5038ec873441f7a6b0877a72c3e9c5b4736 +Author: Juan A. Suarez Romero +Date: Thu Mar 3 11:26:00 2011 +0000 + + core: Add API to create relations between keys + + A couple of keys are related when getting a value for one of the keys, it is + expected that the other key has also a value. + + It is specially intended to be used with keys providing multivalued data: for + each single value in one key, there must be a value matching that single value. + This matched value can be NULL, meaning that it doesn't have actually a value, + but at least it is possible to create a relation between values in both keys. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-plugin-registry.h | 7 +++++ + 2 files changed, 86 insertions(+) + +commit 81e0a294ee649262a1ccc8c43887ee22966102c9 +Author: Juan A. Suarez Romero +Date: Thu Mar 3 17:02:41 2011 +0000 + + core: Ignore errors from metadata sources in grl_media_source_metadata() + + When invoking grl_source_metadata(), core can invoke several metadata sources + to get information from different keys. + + It can happen that some of this sources can fail with an error. As we cannot + send several errors in a shot, the best approach is to just print a warning and + ignore the error. + + From an user point of view, it means that some keys could not be solved, no + matter if due an error or because metadata cannot resolve it. + + Hence, an error in grl_media_source_metadata() means that the media source is + the one who failed. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +commit 4482871dbfcc418592ae1114a7405a9e3ca0acd5 +Author: Lionel Landwerlin +Date: Thu Mar 3 02:54:52 2011 +0000 + + media_metadata: ensure we always call the user's callback + + Even when there is no source to resolve keys. + + Signed-off-by: Lionel Landwerlin + + src/grl-media-source.c | 72 ++++++++++++++++++++++++++++++-------------------- + 1 file changed, 44 insertions(+), 28 deletions(-) + +commit 8cbc6438e8398813c4acb5ee7c4231eabb2e43c2 +Author: Juan A. Suarez Romero +Date: Fri Feb 18 13:51:15 2011 +0100 + + test-ui: Show content changes in statusbar + + Add toggle option to activate content changes notification in plugins, showing + the changes happening in status bar. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 109 ++++++++++++++++++++++++++++++++++++++++----- + 1 file changed, 98 insertions(+), 11 deletions(-) + +commit 58fc25dc111471c060dcd7ea05fae8caf68cf9b6 +Author: Guillaume Emont +Date: Mon Feb 14 17:18:24 2011 +0100 + + core: removed grl_metadata_source_setup_full_resolution_mode(). + + It has been replaced by grl_metadata_source_expand_operation_keys() and + grl_metadata_source_get_additional_sources(). + + src/grl-metadata-source-priv.h | 5 -- + src/grl-metadata-source.c | 169 ----------------------------------------- + 2 files changed, 174 deletions(-) + +commit e22b015b526cdcfed8cf4cc5e5a046b214fffe8e +Author: Guillaume Emont +Date: Thu Feb 17 22:29:22 2011 +0100 + + core: split full resolution mode setup in media source + + Make the media source code use grl_metadata_source_expand_operation_keys() and + grl_metadata_source_get_additional_sources() instead of the deprecated + grl_metadata_source_setup_full_resolution_mode(). + + This new scheme provides a "second chance" for keys the media source claims to + support but could not retrieve for a particular media, when the + GRL_RESOLVE_FULL is used. + + src/grl-media-source.c | 211 ++++++++++++++++++----------------------- + src/grl-metadata-source-priv.h | 2 +- + 2 files changed, 93 insertions(+), 120 deletions(-) + +commit 88f157a2fa5926f3a54be689192782e3d0076eee +Author: Guillaume Emont +Date: Thu Feb 17 22:24:52 2011 +0100 + + core: rewrote full resolution mode handling + + Introducing grl_metadata_source_expand_operation_keys() and + grl_metadata_source_get_additional_sources(). The first one can be used to find + out which keys to ask from the media source running the operation, and the + second one to know which metadata sources to ask for the keys the media source + could not fill. + + These two new (internal) methods deprecate + grl_metadata_source_setup_full_resolution_mode(). + + src/grl-metadata-source-priv.h | 10 ++ + src/grl-metadata-source.c | 227 +++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 237 insertions(+) + +commit dc4ddd77f55b0bc304fd436db896fd77e816c505 +Author: Guillaume Emont +Date: Tue Feb 8 18:34:36 2011 +0100 + + core: introduced grl_metadata_source_may_resolve() and corresponding vmethod. + + This deprecates grl_metadata_source_key_depends() and the key_depends() + vmethod. + To implement this, missing_in_data(), a new helper static method, has been + added. + + src/grl-metadata-source.c | 115 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 16 ++++++- + 2 files changed, 129 insertions(+), 2 deletions(-) + +commit 7223c46c2d20ca285a146d55651d572c6615446f +Author: Juan A. Suarez Romero +Date: Fri Feb 18 12:53:57 2011 +0100 + + core: Fix typo in GrlData class definition + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 253a03c2950c36ff44e99c08e648c38d008290d3 +Author: Juan A. Suarez Romero +Date: Thu Feb 10 16:38:38 2011 +0100 + + Bump to version 0.1.9 + + Signed-off-by: Juan A. Suarez Romero + + AUTHORS | 1 + + NEWS | 19 +++++++++++++++++++ + configure.ac | 2 +- + src/data/grl-config.c | 4 ++++ + src/data/grl-media.c | 4 ++++ + src/grl-media-source.c | 8 ++++++++ + 6 files changed, 37 insertions(+), 1 deletion(-) + +commit af4d843e59add89244777c4d8d1844bb0c1575bc +Author: Juan A. Suarez Romero +Date: Thu Feb 10 17:03:36 2011 +0000 + + build: Include new files in EXTRA_DIST. + + Signed-off-by: Juan A. Suarez Romero + + src/Makefile.am | 5 +++++ + 1 file changed, 5 insertions(+) + +commit 5f2c1d3a5b112663ff8a0fba42b1c347357ec2aa +Author: Juan A. Suarez Romero +Date: Tue Feb 8 09:36:24 2011 +0000 + + test-ui: notify changes + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 50 insertions(+) + +commit 9b10a74236f3b0343686efd4934e37b8720eb039 +Author: Guillaume Emont +Date: Thu Feb 10 12:29:00 2011 +0100 + + core: fix potential segfault in metadata_full_resolution_done_cb() + + When introducing the cancel notification patch, it was assumed that the source + passed to metadata_full_resolution_done_cb() is the original media source that + triggered the full resolution. This is generally wrong, and can cause a + segfault. The original source is available in cb_info->source. + + Signed-off-by: Iago Toral Quiroga + + src/grl-media-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e8f9752dd903e1ac61025e5cd26d33e0953b79f7 +Author: Juan A. Suarez Romero +Date: Wed Feb 9 09:34:52 2011 +0100 + + core: Use g_set_error() when appropriate + + Increases code readability. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-plugin-registry.c | 105 +++++++++++++++++++++------------------------- + 1 file changed, 48 insertions(+), 57 deletions(-) + +commit fab98beb8e3417b911d1d24a67d1ddaa913970cb +Author: Guillaume Emont +Date: Mon Feb 7 20:58:36 2011 +0100 + + core: fix comments cancelation->cancellation + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 7ea87b044f5ff047e9ea81a174765f086627aa82 +Author: Juan A. Suarez Romero +Date: Tue Feb 8 16:46:44 2011 +0100 + + core: Bump up required glib version + + So we can use G_TYPE_BYTE_ARRAY. + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 482a779ac5b7bd81953bf48136d078dd5500a36c +Author: Juan A. Suarez Romero +Date: Tue Feb 8 12:49:19 2011 +0000 + + test-ui: Inform about cancelled operations + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) + +commit 66d81b3591f597541be331572fbec9117794d068 +Author: Guillaume Emont +Date: Mon Feb 7 20:58:35 2011 +0100 + + core: ensure correct cancel notification + + This commit ensures that the callback (or the last callback in the case of + browse, search and query) is always called with + GRL_CORE_ERROR_OPERATION_CANCELLED set if the operation has been cancelled + (both in the cases where the source implements ->cancel() and where it + doesn't). + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 103 +++++++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 95 insertions(+), 8 deletions(-) + +commit b61cad7f2f4cafb548065617b5a0502c9416c29c +Author: Guillaume Emont +Date: Mon Feb 7 20:58:34 2011 +0100 + + core: added operation id in MetadataFullResolutionCtlCb + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 2ee06ab11b1db30bf41197603238436cf662f113 +Author: Guillaume Emont +Date: Mon Feb 7 20:58:33 2011 +0100 + + core: updated grl_media_source_cancel() documentation + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +commit 4b2da639f807a0b6a8c517d99cfc472b2e47ae1f +Author: Guillaume Emont +Date: Mon Feb 7 20:58:32 2011 +0100 + + core: added GRL_CORE_ERROR_OPERATION_CANCELLED + + Signed-off-by: Juan A. Suarez Romero + + src/grl-error.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 158953bed375168fd6c253d0388b3ed364df1580 +Author: Juan A. Suarez Romero +Date: Tue Feb 8 14:37:34 2011 +0100 + + core: Get rid of content_changed method + + This default handler is not used in any place. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 2 +- + src/grl-media-source.h | 8 +------- + 2 files changed, 2 insertions(+), 8 deletions(-) + +commit 02688fe8f32a512a1872e71e32865b2e21f04f1c +Author: Juan A. Suarez Romero +Date: Wed Feb 2 21:17:57 2011 +0100 + + test-ui: Support search all + + If search text entry is empty, perform a search all. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +commit d16ca2c10b67d770aee346c41a67ebba7e6e0384 +Author: Juan A. Suarez Romero +Date: Wed Feb 2 08:47:39 2011 +0100 + + core: Allow NULL text search() + + Searching for a NULL text returns all non-boxes elements in the source. + + Basically, it is equal as "search all elements" with no restriction. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-error.h | 2 ++ + src/grl-media-source.c | 11 ++++++++++- + src/grl-multiple.c | 4 +++- + 3 files changed, 15 insertions(+), 2 deletions(-) + +commit cf1ab2425d9f4da3b5dfeb3050e2dda7cac3a2f0 +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 3 16:41:06 2011 +0100 + + wc: raise an error when the operation is cancelled + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/grl-net-wc.c | 3 +++ + libs/net/grl-net-wc.h | 2 ++ + 2 files changed, 5 insertions(+) + +commit 81972d8db63df0608abf39df099019807524593f +Author: Fabien Lebaillif - Delamare +Date: Thu Jan 20 12:39:08 2011 +0100 + + core: Add support for binary thumbnails + + Add a new property, "thumbnail-binary", to directly store thumbnails. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-media.c | 32 ++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 4 ++++ + src/grl-metadata-key.c | 11 +++++++++++ + src/grl-metadata-key.h | 1 + + 4 files changed, 48 insertions(+) + +commit 3277b84188f9725adcbe456a82ff046d4560ec39 +Author: Fabien Lebaillif - Delamare +Date: Thu Jan 20 12:37:52 2011 +0100 + + core: Add support for binary data in GrlData + + Sometimes it is interested to handle binary data in the grilo medias. + + This add support for making it easy to take care of it. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-data.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++- + src/data/grl-data.h | 4 ++++ + 2 files changed, 60 insertions(+), 1 deletion(-) + +commit 2af67ac6606487c044eb51e9df51359e1775da5a +Author: Juan A. Suarez Romero +Date: Thu Jan 20 11:23:05 2011 +0000 + + core: Add binary API key to GrlConfig + + Add "api-key-blob" to store binary API keys. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-config.c | 26 ++++++++++++++++++++++++++ + src/data/grl-config.h | 5 +++++ + 2 files changed, 31 insertions(+) + +commit b0a0c883a436f4367472b6c143053110e40d5e6f +Author: Juan A. Suarez Romero +Date: Thu Jan 20 11:11:53 2011 +0000 + + core: Add binary support in GrlConfig + + Add grl_config_get/set_binary so configurations allow binary data. + + Based on work by Fabien Lebaillif. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-config.c | 42 ++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-config.h | 3 +++ + 2 files changed, 45 insertions(+) + +commit d41e8dfc5060e4611dda5598085e75072e072b91 +Author: Juan A. Suarez Romero +Date: Tue Feb 1 17:55:14 2011 +0100 + + core: Add a default root media in notify_change() + + If plugin use a NULL-media in notify_change(), replace it by the GrlBox that + represents the root. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +commit 130263c57dd0b2ae1748617c1f479711abefb673 +Author: Juan A. Suarez Romero +Date: Tue Feb 1 17:49:51 2011 +0100 + + core: rename notify_changed by notify_change + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.c | 40 ++++++++++++++++++++-------------------- + src/grl-media-source.h | 26 +++++++++++++------------- + src/grl-metadata-source.h | 4 ++-- + 3 files changed, 35 insertions(+), 35 deletions(-) + +commit 26b5996c5487c026d5e72bfb460d4b134702b2e4 +Author: Juan A. Suarez Romero +Date: Tue Feb 1 17:19:14 2011 +0100 + + core: Add API to handle "content-changed" signal + + Add notify_changed_start() and notify_changed_stop() functions so sources know + when they can emit the signal and when not. + + Sources that are able to emit "content-changed" signal must re-implement + notify_changed_start() and notify_changed_stop() functions. + + Added a notify_changed() function too that sources can use to send the signal. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-error.h | 4 ++- + src/grl-media-source.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 21 +++++++++++- + src/grl-metadata-source.h | 2 ++ + 4 files changed, 108 insertions(+), 2 deletions(-) + +commit 90ea9dbda671a2127353036b0fffcfb5e2097225 +Author: Juan A. Suarez Romero +Date: Tue Feb 1 16:45:31 2011 +0100 + + core: Add "content-changed" signal + + This signal is emitted by media sources (if they handle it) to notify a change + has happened in the source content. + + Depending on the source, it can provide more specific information like where + the change happened, or the kind of change (content added or content removed). + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 5 +++++ + src/Makefile.am | 23 ++++++++++++++++++++++- + src/grl-marshal.list | 1 + + src/grl-media-source.c | 40 ++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 24 +++++++++++++++++++++++- + src/grl-type-builtins.c.template | 35 +++++++++++++++++++++++++++++++++++ + src/grl-type-builtins.h.template | 24 ++++++++++++++++++++++++ + 7 files changed, 150 insertions(+), 2 deletions(-) + +commit ee0e6a573eca3d429c24880c48ed805f70a8aebb +Author: Lionel Landwerlin +Date: Tue Feb 1 15:17:42 2011 +0000 + + test-ui: make metadata cells editable + + So users can copy their content (useful for debug). + + Signed-off-by: Lionel Landwerlin + + tools/grilo-test-ui/main.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit ef3286e57efeb36801da2097fe6d75526a794561 +Author: Juan A. Suarez Romero +Date: Tue Feb 1 08:49:33 2011 +0000 + + test-ui: Do not unref NULL icon + + Check icon before unreffing it. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 990a486432cdf16f7b74846eb7715d081388e72a +Author: Juan A. Suarez Romero +Date: Thu Jan 27 21:24:11 2011 +0100 + + vala: Fix typo + + tools/vala/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 145a3deb036016ba4adb6f2e3dffdb11526d31f5 +Author: Juan A. Suarez Romero +Date: Thu Jan 27 18:00:53 2011 +0000 + + Bump to version 0.1.8 + + Signed-off-by: Juan A. Suarez Romero + + NEWS | 20 ++++++++++++++++++++ + configure.ac | 2 +- + src/data/grl-config.c | 8 ++++++++ + src/grl-media-source.c | 2 ++ + 4 files changed, 31 insertions(+), 1 deletion(-) + +commit ae0389d29c50a0edd56f362537c80313c0034cca +Author: Juan A. Suarez Romero +Date: Thu Jan 27 18:20:50 2011 +0000 + + build: add option to build tests + + Add "--enable-tests" to build tests. + + Makefile.am | 6 +++++- + configure.ac | 10 ++++++++++ + 2 files changed, 15 insertions(+), 1 deletion(-) + +commit bbe342f5e5e80108f076dcdc5672353bebcf6921 +Author: Juan A. Suarez Romero +Date: Fri Jan 21 17:57:00 2011 +0100 + + core: Update copyright note + + Signed-off-by: Juan A. Suarez Romero + + configure.ac | 2 +- + src/Makefile.am | 2 +- + src/data/grl-config.c | 4 +++- + src/data/grl-config.h | 3 ++- + src/data/grl-data.c | 2 +- + src/data/grl-data.h | 2 +- + src/data/grl-media-audio.c | 2 +- + src/data/grl-media-audio.h | 2 +- + src/data/grl-media-box.c | 2 +- + src/data/grl-media-box.h | 2 +- + src/data/grl-media-image.c | 2 +- + src/data/grl-media-image.h | 2 +- + src/data/grl-media-video.c | 2 +- + src/data/grl-media-video.h | 2 +- + src/data/grl-media.c | 2 +- + src/data/grl-media.h | 2 +- + src/grilo.c | 2 +- + src/grilo.h | 2 +- + src/grl-log.c | 2 +- + src/grl-media-plugin.c | 2 +- + src/grl-media-plugin.h | 2 +- + src/grl-media-source.c | 2 +- + src/grl-media-source.h | 2 +- + src/grl-metadata-key.c | 2 +- + src/grl-metadata-key.h | 2 +- + src/grl-metadata-source.c | 2 +- + src/grl-metadata-source.h | 2 +- + src/grl-multiple.c | 2 +- + src/grl-plugin-registry.c | 3 ++- + src/grl-util.c | 2 +- + tools/grilo-test-ui/main.c | 3 ++- + 31 files changed, 36 insertions(+), 31 deletions(-) + +commit 7446d33b18e3f8c8aceb84ce2dad8d377d576826 +Author: Juan A. Suarez Romero +Date: Fri Jan 21 12:27:40 2011 +0100 + + test-ui: Show busy cursor when operation is executing + + Change the mouse cursor to "busy" to note when an operation is being + performed, like browse or search. + + Signed-off-by: Juan A. Suarez Romero + + tools/grilo-test-ui/main.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +commit 1d6f636d938704552369ddccc1698f00e7dc1f51 +Author: Juan A. Suarez Romero +Date: Wed Jan 19 11:26:20 2011 +0000 + + core: Add definition for unknown remaining + + Define GRL_SOURCE_REMAINING_UNKNOWN to check if remaining is known or not. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-definitions.h | 4 ++++ + src/grl-media-source.h | 3 ++- + 2 files changed, 6 insertions(+), 1 deletion(-) + +commit c9d58932a81e7bab366610ddc636b830d9c24d6f +Author: Juan A. Suarez Romero +Date: Wed Jan 19 11:18:37 2011 +0000 + + core: Move GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN to definitions + + Fits better there. + + Signed-off-by: Juan A. Suarez Romero + + src/grl-definitions.h | 3 +++ + src/grl-metadata-key.c | 1 + + src/grl-metadata-key.h | 2 -- + 3 files changed, 4 insertions(+), 2 deletions(-) + +commit e7416782fbe9955148b4e51c791266b62b2b5fe7 +Author: Iago Toral Quiroga +Date: Wed Jan 19 08:34:10 2011 +0100 + + config: Provided imlementation for grl_config_has_param. + + src/data/grl-config.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit cc1b0533fc482ddcc6c4e3edd226be326104a9e1 +Author: Lionel Landwerlin +Date: Tue Jan 18 15:46:53 2011 +0000 + + config: rework code to use GKeyFile instead of GHashTable+GValue + + Signed-off-by: Lionel Landwerlin + Signed-off-by: Iago Toral Quiroga + + src/data/grl-config.c | 138 +++++++++++++++++++++------------------------- + src/data/grl-config.h | 16 +++--- + src/grl-plugin-registry.c | 6 +- + 3 files changed, 75 insertions(+), 85 deletions(-) + +commit 7750d60a23d6234aa5491a7d6e109de1a5d4e412 +Author: Jussi Kukkonen +Date: Tue Jan 18 12:57:16 2011 +0200 + + tools: fix test-ui query, refactor callbacks + + query did not work as the the callback actually called search() + if several calls were needed. Fixing was easiest by combining all + callbacks into one and keeping track of the operation type. + + Signed-off-by: Iago Toral Quiroga + + tools/grilo-test-ui/main.c | 170 ++++++++++++++++++--------------------------- + 1 file changed, 66 insertions(+), 104 deletions(-) + +commit 94914fa5b99bd692d36c9599a1cd64596c22ba0e +Author: Jussi Kukkonen +Date: Tue Jan 18 12:56:40 2011 +0200 + + tools: don't tie chunk size to max item count in test-ui + + Make sure we get at least a few search/browse/query iterations when + there are lot of results: makes it easier to notice plugin problems. + + Signed-off-by: Iago Toral Quiroga + + tools/grilo-test-ui/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 8b5663713c14f4f4f5a28f092bb94a72a742ffe7 +Author: Iago Toral Quiroga +Date: Mon Jan 17 13:49:20 2011 +0100 + + doc: Added missing documentation for 'flags' parameter in + grl_media_source_get_media_from_uri. + + src/grl-media-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit 95e5872722ae4ece4a9b20a5220438345adee32c +Author: Iago Toral Quiroga +Date: Mon Jan 17 13:41:35 2011 +0100 + + core: Added grl_media_source_get_media_from_uri_sync + + Fixes https://bugzilla.gnome.org/show_bug.cgi?id=639741 + + src/grl-media-source.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 5 +++++ + 2 files changed, 57 insertions(+) + +commit 763292631062717b3a938699e1316101f6684fdd +Author: Fabien Lebaillif - Delamare +Date: Wed Jan 12 13:40:03 2011 +0000 + + core: add username and password keys to GrlConfig + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-config.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-config.h | 10 +++++++++ + 2 files changed, 66 insertions(+) + +commit df2971ad10be9a68c27385ada9f1ec1c61d562b7 +Author: Iago Toral Quiroga +Date: Fri Jan 14 11:13:15 2011 +0100 + + core: Added padding for public structures in grl-media-video + + src/data/grl-media-video.h | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit d2ece2ed2bd0b4724e2eb98fe982eed95ccf8b25 +Author: Iago Toral Quiroga +Date: Fri Jan 14 11:11:40 2011 +0100 + + core: Added padding for public structures in grl-media-image + + src/data/grl-media-image.h | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit b382516da70edfb042100759f09e6342db0f7a29 +Author: Iago Toral Quiroga +Date: Fri Jan 14 11:09:56 2011 +0100 + + core: Added padding for public structures in grl-media-audio + + src/data/grl-media-audio.h | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit 93a915d311254760e8ce3ecfd942d418a1ed83b8 +Author: Iago Toral Quiroga +Date: Fri Jan 14 11:07:56 2011 +0100 + + core: Added padding for public structures in grl-media-box + + src/data/grl-media-box.h | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit 5eab181e62786146a1b63b95482e539829c6b8d8 +Author: Iago Toral Quiroga +Date: Fri Jan 14 11:05:58 2011 +0100 + + core: Added padding for public structures in grl-media + + src/data/grl-media.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit 812a234b220de411fd5e8cc4b6983e32e1eff97a +Author: Iago Toral Quiroga +Date: Fri Jan 14 10:33:36 2011 +0100 + + core: Added padding for public structures in grl-data + + src/data/grl-data.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 7083c2e8d0cd724fd77e63fba7e16353a8006854 +Author: Iago Toral Quiroga +Date: Fri Jan 14 10:30:31 2011 +0100 + + core: Added padding for public structures in grl-config + + src/data/grl-config.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit 9312f3d20319d7144d78e294affb15b60d792dee +Author: Iago Toral Quiroga +Date: Fri Jan 14 10:17:38 2011 +0100 + + core: Added GRL_PADDING_SMALL definiton + + src/grl-definitions.h | 4 ++++ + 1 file changed, 4 insertions(+) + +commit d7aa9bcd21a85021793788d882005890bfbf5266 +Author: Iago Toral Quiroga +Date: Thu Jan 13 18:22:58 2011 +0100 + + core: Added padding for public structures in grl-plugin-registry + + src/grl-plugin-registry.h | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +commit cd798751b5706152a2299eff5a27b39633c12e45 +Author: Iago Toral Quiroga +Date: Thu Jan 13 18:11:07 2011 +0100 + + core: Added padding for public structures in grl-metadata-source + + src/grl-metadata-source.h | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +commit c22af1fe4c336b39f978a4986ebc417197c9232a +Author: Iago Toral Quiroga +Date: Thu Jan 13 18:05:06 2011 +0100 + + core: Added padding for public structures in grl-media-source + + src/grl-media-source.h | 27 +++++++++++++++++++++++++++ + 1 file changed, 27 insertions(+) + +commit e0dc88a5d5a1401ff31a2ddb0ba92b594e5b6b30 +Author: Iago Toral Quiroga +Date: Thu Jan 13 17:53:49 2011 +0100 + + core: Added padding for public structures in grl-media-plugin + + src/grl-media-plugin.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 6714a2eddea334c4ec6537ed6c9fee301613a26a +Author: Iago Toral Quiroga +Date: Thu Jan 13 17:51:56 2011 +0100 + + core: Added grl-definitions.h + + This header file will contain some system-wise definitions. At the moment + only GRL_PADDING used to pad public structures in Grilo. + + src/Makefile.am | 3 ++- + src/grilo.h | 1 + + src/grl-definitions.h | 34 ++++++++++++++++++++++++++++++++++ + 3 files changed, 37 insertions(+), 1 deletion(-) + +commit 31ac43b0d830c2bfe62c8209592ef59371993619 +Author: Juan A. Suarez Romero +Date: Thu Jan 13 18:55:37 2011 +0000 + + core: Add API to use booleans in GrlConfig + + Add grl_config_get/set_boolean() functions. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-config.c | 20 ++++++++++++++++++++ + src/data/grl-config.h | 4 ++++ + 2 files changed, 24 insertions(+) + +commit 7fd77c3f9b6b840cfa03343ba1386a30213228ae +Author: Juan A. Suarez Romero +Date: Thu Jan 13 18:24:02 2011 +0100 + + doc: Add release where functions were introduced + + Add 'since' tag documentation, telling in which release a function was + introduced with the current signature. + + Signed-off-by: Juan A. Suarez Romero + + src/data/grl-config.c | 20 +++++++++++ + src/data/grl-data.c | 32 +++++++++++++++++ + src/data/grl-media-audio.c | 22 ++++++++++++ + src/data/grl-media-box.c | 6 ++++ + src/data/grl-media-image.c | 12 +++++++ + src/data/grl-media-video.c | 16 +++++++++ + src/data/grl-media.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grilo.c | 4 +++ + src/grl-log.c | 4 +++ + src/grl-media-plugin.c | 22 ++++++++++++ + src/grl-media-source.c | 38 ++++++++++++++++++++ + src/grl-metadata-key.c | 4 +++ + src/grl-metadata-source.c | 30 ++++++++++++++++ + src/grl-multiple.c | 7 ++++ + src/grl-plugin-registry.c | 32 +++++++++++++++++ + src/grl-util.c | 4 +++ + 16 files changed, 339 insertions(+) + +commit cf9fdde7a98ad6968fdc63eb02809571d791d2cb +Author: Juan A. Suarez Romero +Date: Wed Jan 12 16:38:24 2011 +0100 + + core: Fix typo + + Use gint instead of int. + + src/data/grl-media-image.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 64e0604371731d822b42ac69d03d6b8693ab9c59 +Author: Juan A. Suarez Romero +Date: Wed Jan 12 11:48:34 2011 +0000 + + doc: Fix documentation for grl_media_get_player() + + Documentation was referring to grl_media_get_external_player() instead of + grl_media_get_player(). + + src/data/grl-media.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b8939c59f48b337d69c6e5db97897135d50c6175 +Author: Guillaume Emont +Date: Tue Jan 11 16:29:06 2011 +0100 + + core: Updated documentation of GrlMediaSourceResultCb + + Signed-off-by: Juan A. Suarez Romero + + src/grl-media-source.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 24ab6085bd0c00b02101b2b280385372c58a82a9 +Author: Juan A. Suarez Romero +Date: Mon Jan 10 10:34:29 2011 +0100 + + Bumped to version 0.1.7 + + Signed-off-by: Juan A. Suarez Romero + + AUTHORS | 1 + + NEWS | 37 +++++++++++++++++++++++++++++++++++++ + configure.ac | 2 +- + 3 files changed, 39 insertions(+), 1 deletion(-) + +commit 096ed59d0bfbbc392a8938a13340a4670b7b761e +Author: Fabien Lebaillif - Delamare +Date: Wed Jan 5 15:15:32 2011 +0100 + + doc: fix typos + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-metadata-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit dfb336a6e5809c33ca28b0fe29483ae024e5bff4 +Author: Simon Pena +Date: Mon Dec 20 17:30:16 2010 +0100 + + python: in test-ui, convert to strings when storing media info + + Since the TreeModel stores strings, we need to get sure that + the data types being inserted are the right ones. + + tools/python/grilo-test-ui.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 07519ba327ff0406786fdc11cdb40d8f223dad38 +Author: Simon Pena +Date: Mon Dec 20 17:30:11 2010 +0100 + + python: add trivial error handling to grilo-test-ui + + Some trivial error handling is added to Python's grilo-test-ui + since currently these functions can throw an exception. + + tools/python/grilo-test-ui.py | 20 ++++++++++++++++---- + 1 file changed, 16 insertions(+), 4 deletions(-) + +commit 0aa2111dc0e9fd18bebf14004cac8a41d99f9198 +Author: Guillaume Emont +Date: Fri Dec 17 17:10:28 2010 +0100 + + configure: remove unused --enable-uninstalled option + + configure.ac | 11 ----------- + 1 file changed, 11 deletions(-) + +commit f1cc8367b82bf626ba4818e163e00e63c89df8cd +Author: Iago Toral Quiroga +Date: Mon Dec 20 10:31:46 2010 +0100 + + test-ui: Adapted to changes in grl_plugin_registry_add_config + + tools/grilo-test-ui/main.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 2dd14064adb363d5f6870353af02e428dfe4689f +Author: Iago Toral Quiroga +Date: Mon Dec 20 10:31:01 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_add_config + + src/grl-plugin-registry.c | 22 ++++++++++++++++------ + src/grl-plugin-registry.h | 5 +++-- + 2 files changed, 19 insertions(+), 8 deletions(-) + +commit 57b6ba8b987c4132f26b8a2209ce397100087374 +Author: Iago Toral Quiroga +Date: Mon Dec 20 10:29:49 2010 +0100 + + core: Added GRL_CORE_ERROR_CONFIG_FAILED + + src/grl-error.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 876c5317d8f62dc3c635159b0777054e59cba8f9 +Author: Iago Toral Quiroga +Date: Mon Dec 20 10:14:59 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_register_metadata_key + + src/grl-metadata-key.c | 87 +++++++++++++++++++++++++++++++---------------- + src/grl-plugin-registry.c | 11 +++++- + src/grl-plugin-registry.h | 3 +- + 3 files changed, 70 insertions(+), 31 deletions(-) + +commit 47ddb768595982c56e6fed291cb3267433b14691 +Author: Iago Toral Quiroga +Date: Mon Dec 20 10:14:31 2010 +0100 + + core: Added GRL_CORE_ERROR_REGISTER_METADATA_KEY_FAILED + + src/grl-error.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit c453d6cea9d8c0dd148e07eff54982154c2dda03 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:52:10 2010 +0100 + + test-ui: Adapted to changes in grl_plugin_registry_unload + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5ba5ee55e8b6301786833e5e9b836d79e7a952ed +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:51:47 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_unload + + src/grl-plugin-registry.c | 21 ++++++++++++++++----- + src/grl-plugin-registry.h | 5 +++-- + 2 files changed, 19 insertions(+), 7 deletions(-) + +commit 7368303dedbf50d61b5fb040dbdb0fe732fe0003 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:51:27 2010 +0100 + + core: Added GRL_CORE_ERROR_UNLOAD_PLUGIN_FAILED + + src/grl-error.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 8ac14da0b014dbcc43c5dd49eb238dfb84b71014 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:42:20 2010 +0100 + + test-ui: Adapted to changes in grl_plugin_registry_load_all + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ff048ad258c47ff879319fee1c9ab3a6c08478ac +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:41:45 2010 +0100 + + grl-inspect: Adapted to changes in grl_plugin_registry_load_all. + + tools/grilo-inspect/grl-inspect.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 88a7f5fcebe68fd1b371856f1121d29f5a38b547 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:41:24 2010 +0100 + + tests: Adapted to changes in grl_plugin_registry_load_all + + tests/metadata_source.c | 2 +- + tests/registry.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 4d222a457ed04df1a718dcbcd166cc885fa0e2e0 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:40:52 2010 +0100 + + core: Added GError parameter grl_plugin_registry_load_all + + src/grl-plugin-registry.c | 11 ++++++++--- + src/grl-plugin-registry.h | 3 ++- + 2 files changed, 10 insertions(+), 4 deletions(-) + +commit d2b77b297c57f0d86304a8c31004ad51b4ad4b56 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:26:10 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_load_directory + + src/grl-plugin-registry.c | 17 +++++++++++++---- + src/grl-plugin-registry.h | 3 ++- + 2 files changed, 15 insertions(+), 5 deletions(-) + +commit 9d4a9bc0750e57dcee52cb369496940fd2197df6 +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:10:33 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_load + + src/grl-plugin-registry.c | 41 ++++++++++++++++++++++++++++++++++++++--- + src/grl-plugin-registry.h | 3 ++- + 2 files changed, 40 insertions(+), 4 deletions(-) + +commit 2f948befc80c995dad9c1f84f4e5d4f978a2c05a +Author: Iago Toral Quiroga +Date: Mon Dec 20 09:09:39 2010 +0100 + + core: Added GRL_CORE_ERROR_LOAD_PLUGIN_FAILED + + src/grl-error.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit d0a0739c74aa825b5f7be8a4c219ce85ef153ed2 +Author: Iago Toral Quiroga +Date: Mon Dec 20 08:43:56 2010 +0100 + + tests: Adapted to changes in grl_plugin_registry_unregister_source. + + tests/registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 689e6837e2d40ef672b1d840128714030febaaf7 +Author: Iago Toral Quiroga +Date: Mon Dec 20 08:43:17 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_unregister_source + + src/grl-plugin-registry.c | 23 ++++++++++++++++++----- + src/grl-plugin-registry.h | 7 ++++--- + 2 files changed, 22 insertions(+), 8 deletions(-) + +commit e591f072d6f336492e03fae05f749da29083e9e6 +Author: Iago Toral Quiroga +Date: Mon Dec 20 08:42:01 2010 +0100 + + core: Added GRL_CORE_ERROR_UNREGISTER_SOURCE_FAILED + + src/grl-error.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 147942a7334c83cabeb6bc843cfda291d341cfc7 +Author: Iago Toral Quiroga +Date: Mon Dec 20 08:26:19 2010 +0100 + + core: Added GError parameter to grl_plugin_registry_register_source. + + src/grl-plugin-registry.c | 6 ++++-- + src/grl-plugin-registry.h | 3 ++- + 2 files changed, 6 insertions(+), 3 deletions(-) + +commit cd7e119849b5af48374c76036f2ebd72fe97709e +Author: Guillaume Emont +Date: Fri Dec 17 16:09:15 2010 +0100 + + README: use --enable-uninstalled for grilo-plugins' autogen, not grilo's. + + README | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 39634193c1dabb0e1a7e7de4ab2c69c16ef574ae +Author: Víctor Manuel Jáquez Leal +Date: Fri Dec 17 15:15:02 2010 +0100 + + doc: update grilo core sections + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/grilo/grilo-sections.txt | 44 +++++++++++++++++++++++++++----------------- + 1 file changed, 27 insertions(+), 17 deletions(-) + +commit 0f0cd9f36226e8f9f5f2ca3db8c4b0a6c81c64b1 +Author: Víctor Manuel Jáquez Leal +Date: Wed Dec 15 12:18:20 2010 +0100 + + doc: grilo-libs documentation + + Signed-off-by: Víctor Manuel Jáquez Leal + + https://bugzilla.gnome.org/show_bug.cgi?id=636414 + + configure.ac | 1 + + doc/Makefile.am | 2 +- + doc/libs/Makefile.am | 105 +++++++++++++++++++++++++++++++++++++++ + doc/libs/grilo-libs-docs.sgml | 51 +++++++++++++++++++ + doc/libs/grilo-libs-sections.txt | 26 ++++++++++ + 5 files changed, 184 insertions(+), 1 deletion(-) + +commit 86c19ae135ad3072ec234e88209b5c76f92c2bc9 +Author: Víctor Manuel Jáquez Leal +Date: Wed Dec 15 11:16:49 2010 +0100 + + doc: rename reference directory to grilo + + Because gtk-doc 1.14 does not support multiple source directories, the + reference subdirectory must be splitted in two: grilo core documentation and + grilo libraries documentation. + + This commit rename the reference directory to grilo, where the core documentation + will be processed. + + Signed-off-by: Víctor Manuel Jáquez Leal + + https://bugzilla.gnome.org/show_bug.cgi?id=636414 + + configure.ac | 2 +- + doc/Makefile.am | 2 +- + doc/{reference => grilo}/.gitignore | 0 + doc/{reference => grilo}/Makefile.am | 0 + doc/{reference => grilo}/grilo-docs.sgml | 0 + doc/{reference => grilo}/grilo-sections.txt | 0 + doc/{reference => grilo}/grilo.types | 0 + doc/{reference => grilo}/overview.xml | 0 + doc/{reference => grilo}/quick-start-using-grilo.xml | 0 + 9 files changed, 2 insertions(+), 2 deletions(-) + +commit 1af17ab2f080e8349280fb9b73b83972014c15fc +Author: Víctor Manuel Jáquez Leal +Date: Wed Dec 15 11:32:21 2010 +0100 + + Revert "doc: fix the gtkdoc generation" + + This reverts commit 09b5bc47eb59d7ce871a443b1c544405e727f5c6. + + Because gtk-doc 1.14 does not support multiple source directories, the + reference subdirectory must be splitted in two: grilo core documentation and + grilo libraries documentation. + + This commit reverts the automake setup removing the grl_net_wc_type from the + object scanning. + + Signed-off-by: Víctor Manuel Jáquez Leal + + https://bugzilla.gnome.org/show_bug.cgi?id=636414 + + doc/reference/Makefile.am | 21 +++++++-------------- + 1 file changed, 7 insertions(+), 14 deletions(-) + +commit 389c04158c144fdffaec05dddc8d428aeef3d8a6 +Author: Víctor Manuel Jáquez Leal +Date: Wed Dec 15 11:26:54 2010 +0100 + + Revert "doc: add the GrlNetWc definition" + + This reverts commit 0c8ac155c51bf9c509922a448c1f290daea48740. + + Because gtk-doc 1.14 does not support multiple source directories, the + reference subdirectory must be splitted in two: grilo core documentation and + grilo libraries documentation. + + This commit revert the addition of GrlNetWc in grilo core documentation, as + previous step for the documentation split. + + Signed-off-by: Víctor Manuel Jáquez Leal + + https://bugzilla.gnome.org/show_bug.cgi?id=636414 + + doc/reference/grilo-docs.sgml | 5 ----- + doc/reference/grilo-sections.txt | 26 -------------------------- + doc/reference/grilo.types | 1 - + 3 files changed, 32 deletions(-) + +commit 396a0153c8b53738a88ab778bca35655195b13d5 +Author: Juan A. Suarez Romero +Date: Wed Dec 1 13:11:44 2010 +0100 + + core: Add function to load plugin configuration from file + + grl_plugin_registry_add_config_from_file() loads a .ini-like file containing + configurations for one or more plugins. + + See GKeyFile to know more about this syntax. + + An example is: + + [plugin1] + key1 = value1 + key2 = value2 + + [plugin2] + key1 = value1 + key3 = value3 + + It fixes GB#636064. + + src/grl-error.h | 2 ++ + src/grl-plugin-registry.c | 68 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-plugin-registry.h | 4 +++ + 3 files changed, 74 insertions(+) + +commit 3962e466cab4bbd9f137e043e2d52cf2e2f0ecd0 +Author: Iago Toral Quiroga +Date: Mon Dec 13 12:23:49 2010 +0100 + + core: renamed media_from_site API to media_from_uri. + + https://bugzilla.gnome.org/show_bug.cgi?id=635394 + + src/grl-error.h | 2 +- + src/grl-media-source.c | 108 +++++++++++++++++++++++----------------------- + src/grl-media-source.h | 42 +++++++++--------- + src/grl-metadata-source.h | 5 ++- + src/grl-multiple.c | 90 +++++++++++++++++++------------------- + src/grl-multiple.h | 10 ++--- + 6 files changed, 129 insertions(+), 128 deletions(-) + +commit 2c47a7cc3ae7c3058b80673609419fafe0de91e4 +Author: Iago Toral Quiroga +Date: Fri Dec 3 09:55:41 2010 +0100 + + core: Added flags input parameter to media_from_site() APIs. + + https://bugzilla.gnome.org/show_bug.cgi?id=635394 + + src/grl-media-source.c | 18 +++++++++++++++++- + src/grl-media-source.h | 3 +++ + src/grl-multiple.c | 3 +++ + src/grl-multiple.h | 1 + + 4 files changed, 24 insertions(+), 1 deletion(-) + +commit c6c8b38688091b4ea9f5809a125405291a6516d8 +Author: Iago Toral Quiroga +Date: Thu Dec 2 19:03:00 2010 +0100 + + core: Add a list of metadata keys as input parameter for + + the media_from_site API. + + https://bugzilla.gnome.org/show_bug.cgi?id=635394 + + src/grl-media-source.c | 5 +++++ + src/grl-media-source.h | 3 +++ + src/grl-multiple.c | 4 ++++ + src/grl-multiple.h | 1 + + 4 files changed, 13 insertions(+) + +commit 564a55db1abe2bd110c0510ee8c2e8520ea17a20 +Author: Iago Toral Quiroga +Date: Thu Dec 2 09:11:08 2010 +0100 + + core: Do not use and idle destroy function for media_from_site, since + + the implementation on the plugin side is likely to be asynchronous, + use a relay callback instead. + + https://bugzilla.gnome.org/show_bug.cgi?id=635394 + + src/grl-media-source.c | 52 ++++++++++++++++++++++++++++++++++++++------------ + 1 file changed, 40 insertions(+), 12 deletions(-) + +commit b566d3ca4475b87d1f8ce8add55b08b47a6865b0 +Author: Iago Toral Quiroga +Date: Wed Dec 1 18:52:40 2010 +0100 + + core: Implemented grl_multiple_get_media_from_site(). + + This function goes through all sources that implement GRL_OP_MEDIA_FROM_SITE + looking for the first one capable of instantiating a GrlMedia object that + represents the media resource exposed by certain site URI. Basically, it is + a convenience function to exploit grl_media_source_get_media_from_site(). + + https://bugzilla.gnome.org/show_bug.cgi?id=635394 + + src/grl-error.h | 2 ++ + src/grl-multiple.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-multiple.h | 4 +++ + 3 files changed, 106 insertions(+) + +commit 93d48590067290d4792f2285e0647df20debb247 +Author: Iago Toral Quiroga +Date: Wed Dec 1 18:24:05 2010 +0100 + + core: Add support for two new operations in GrlMediaSource + - test_media_from_site + - get_media_from_site + + https://bugzilla.gnome.org/show_bug.cgi?id=635394 + + src/grl-media-source.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 36 ++++++++++++++++++ + src/grl-metadata-source.h | 22 ++++++----- + 3 files changed, 145 insertions(+), 10 deletions(-) + +commit bdf9e65e3725f8861cc3bf967337f4396d934928 +Author: Iago Toral Quiroga +Date: Wed Dec 1 18:18:27 2010 +0100 + + core: Fix compilation warning because of an unused label. + + src/grl-metadata-source.c | 1 - + 1 file changed, 1 deletion(-) + +commit bcdd81f60eda1e0a9231abef5a2e8891f8afb569 +Author: Iago Toral Quiroga +Date: Tue Nov 30 13:09:39 2010 +0100 + + core: Fixed incorrect filtering of writable and supported keys. + Bug was introduced in commit c592a85afc7c8538d91bb47b16a54c9dce8d5f46. + + src/grl-metadata-source.c | 48 ++++++++++++++++++++++++++++++++++++++--------- + 1 file changed, 39 insertions(+), 9 deletions(-) + +commit 41724a3e60f18ccbd32d2f40bd7062b377ccb637 +Author: Simón Pena +Date: Tue Nov 16 00:11:33 2010 +0100 + + python: updated grilo-test-ui + + Updated calls to get_iter in TreeStores, as they don't return + (success, iter) pairs anymore and now return either an iterator + or None. + + tools/python/grilo-test-ui.py | 30 +++++++++++++++--------------- + 1 file changed, 15 insertions(+), 15 deletions(-) + +commit d86c8fbc9bae4f4962dc475209675539231499c4 +Author: Damien Lespiau +Date: Fri Nov 12 15:24:00 2010 +0000 + + tests: fix compilation warnings in metadata_source + + Remove the const before the GList *, shutting down the warnings, + make the global variables static. + + Signed-off-by: Damien Lespiau + + tests/metadata_source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 4780062a780bb4a9d7092295717583ae980531fd +Author: Damien Lespiau +Date: Fri Nov 12 15:23:59 2010 +0000 + + wc-test: include unistd.h + + write (2) needs the inclusion of unistd.h. + + Signed-off-by: Damien Lespiau + + libs/net/wc-test.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 8b1d7db1db2567fa7bbae49d9398487deb9cca6d +Author: Víctor Manuel Jáquez Leal +Date: Tue Nov 9 13:04:18 2010 +0100 + + vala: remove deprecated --metadata parameter in vapigen + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ca15c987bb73f0051ff9808f881bd48faa728ab1 +Author: Damien Lespiau +Date: Tue Nov 2 17:10:07 2010 +0000 + + build: fix parallel build of libs/net + + Using $(top_builddir)/libs/net breaks automake's dependency between + wc-test and libgrlnet. When using recursive builds, Automake + automatically tracks the dependencies in the same directory but when + using $(top_builddir)/libs/net/libgrlnet.la it assumes the library is in + another directoy and is already build (by assuming the other directory is + before the current one in the parent's SUBDIRS). + + By removing the $(top_builddir)/libs/net in wc_test_LDADD Automake now + understands that the library is in the same directory and it should be + built before wc-test and adds the dependency which fixes parallel + builds. + + Signed-off-by: Damien Lespiau + + libs/net/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 10612f76bb211b3744f9259850a3c8e05b116c9d +Author: Simón Pena +Date: Mon Oct 4 19:09:01 2010 +0200 + + python: added plugin configuration to grilo-test-ui + + Added a configuration setup for Flickr, Youtube and Vimeo + + Signed-off-by: Simón Pena + + tools/python/grilo-test-ui.py | 34 ++++++++++++++++++++++++++++++++++ + 1 file changed, 34 insertions(+) + +commit 74feca1851862e62c8dd45393843bb92393b8e75 +Author: Simón Pena +Date: Mon Oct 4 19:09:00 2010 +0200 + + annotations: fixed GrlConfig annotations + + * grl_config_new now allows NULL sources for a plugin-wide + configuration + * grl_config_new is annotated as 'transfer none', to avoid freeing + the configuration while the plugin is valid. + + Signed-off-by: Simón Pena + + src/data/grl-config.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit c6b6d45d0e86f39c1b0e4db76802b279a9e37c91 +Author: Víctor Manuel Jáquez Leal +Date: Fri Oct 22 18:15:16 2010 +0200 + + core: rename generic_filter() into filter_key_list() + + It makes more sense. I would like to name it something like + intersect_key_list() but the function parameters doesn't follow a logical + structure for that, so I adhered to the filter semantic. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-metadata-source.c | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +commit 923a0a68cf138f2425b8e8f7546b7df31deda61f +Author: Víctor Manuel Jáquez Leal +Date: Thu Oct 21 15:34:29 2010 +0200 + + core: fix when no slow/writable keys available + + When the source doesn't have slow/writable keys (empty set) the key list is + not filtered. Also, that code is repeated in each filter type. + + This patch set to NULL the filtered key list, and the returned complement is + the passed key list. The code is isolated in the generic_filter() too. + + Finally, added a description of the function. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-metadata-source.c | 31 +++++++++++++++++-------------- + 1 file changed, 17 insertions(+), 14 deletions(-) + +commit 3f42a5f8a523909b74cceea88db1ecf0a19aab3c +Author: Víctor Manuel Jáquez Leal +Date: Thu Oct 21 14:16:27 2010 +0200 + + tests: key filter gtests for GrlMetadataSource + + Signed-off-by: Víctor Manuel Jáquez Leal + + tests/.gitignore | 1 + + tests/Makefile.am | 4 ++ + tests/metadata_source.c | 180 ++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 185 insertions(+) + +commit 4c9ead94b45328c570bf13d9a4692240674009c7 +Author: Simón Pena +Date: Mon Oct 4 19:19:01 2010 +0200 + + tests: updated GrlMetadataSource filter tests + + Updated GrlMetadataSource filter tests so that they assert that + the aggregated length of the two lists returned (the one which + passes the check and the one which doesn't) equals to the original + key list. + + Signed-off-by: Simón Pena + + tests/python/test_metadata_source.py | 18 +++++++++++++++--- + 1 file changed, 15 insertions(+), 3 deletions(-) + +commit c592a85afc7c8538d91bb47b16a54c9dce8d5f46 +Author: Simón Pena +Date: Mon Oct 4 19:19:00 2010 +0200 + + core: reworked GrlMetadataSource's filter methods + + grl_metadata_source_filter_{supported, slow, writable} methods + have a common filtering part and some specific bits each one. + + This patch extracts the common code into a generic function so + the other ones can do their checks and specific behavior, and then + do the filtering. + + Signed-off-by: Simón Pena + + src/grl-metadata-source.c | 142 ++++++++++++++-------------------------------- + 1 file changed, 44 insertions(+), 98 deletions(-) + +commit 6bbf66e58fabfedadd75203e864c438594a9a7be +Author: Juan A. Suarez Romero +Date: Mon Oct 18 18:03:17 2010 +0200 + + build: fix grilo-net building + + If grilo-net dependencies are not found, it were still trying to build + grilo-net. + + This patch fixes this problem. + + Signed-off-by: Juan A. Suarez Romero + + Makefile.am | 8 +++++--- + bindings/vala/Makefile.am | 7 ++++++- + libs/Makefile.am | 14 +++++++++++++- + libs/net/Makefile.am | 2 -- + 4 files changed, 24 insertions(+), 7 deletions(-) + +commit f2dc8784a0560b8977354bfe85e7747a270d1b33 +Author: Víctor Manuel Jáquez Leal +Date: Wed Oct 13 13:19:18 2010 +0200 + + vala: add grilo-net library bindings + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/Makefile.am | 2 +- + bindings/vala/grilo-net-0.1-custom.vala | 1 + + bindings/vala/grilo-net-0.1.deps | 1 + + bindings/vala/grilo-net-0.1.metadata | 6 ++++++ + bindings/vala/grilo-net-uninstalled.files.in | 2 ++ + bindings/vala/grilo-net-uninstalled.namespace.in | 1 + + configure.ac | 2 ++ + 7 files changed, 14 insertions(+), 1 deletion(-) + +commit 09b5bc47eb59d7ce871a443b1c544405e727f5c6 +Author: Víctor Manuel Jáquez Leal +Date: Mon Oct 4 20:39:35 2010 +0200 + + doc: fix the gtkdoc generation + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/reference/Makefile.am | 22 +++++++++++++++------- + 1 file changed, 15 insertions(+), 7 deletions(-) + +commit 0c8ac155c51bf9c509922a448c1f290daea48740 +Author: Víctor Manuel Jáquez Leal +Date: Mon Oct 4 20:38:40 2010 +0200 + + doc: add the GrlNetWc definition + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/reference/grilo-docs.sgml | 5 +++++ + doc/reference/grilo-sections.txt | 26 ++++++++++++++++++++++++++ + doc/reference/grilo.types | 1 + + 3 files changed, 32 insertions(+) + +commit 3f9983ab8a0717559cab5a30e9c4d1bbd0961f2e +Author: Víctor Manuel Jáquez Leal +Date: Mon Oct 4 20:37:57 2010 +0200 + + wc: gtkdoc documentation + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/grl-net-wc.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ + libs/net/grl-net-wc.h | 23 +++++++++++++++ + 2 files changed, 100 insertions(+) + +commit 2ae6c9099382b733e10a4a788a966b469b132217 +Author: Víctor Manuel Jáquez Leal +Date: Tue Sep 28 19:49:39 2010 +0200 + + build: libgrlnet introspection + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/Makefile.am | 29 +++++++++++++++++++++++++++++ + 1 file changed, 29 insertions(+) + +commit abbe7993d388d8df94b93222fa258557074f277e +Author: Víctor Manuel Jáquez Leal +Date: Thu Sep 16 19:46:17 2010 +0200 + + grl-net: new header file + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/Makefile.am | 3 ++- + libs/net/grl-net.h | 28 ++++++++++++++++++++++++++++ + 2 files changed, 30 insertions(+), 1 deletion(-) + +commit 488cf1195a4d5df4cbfa78d2f8fe09ed7efdb342 +Author: Víctor Manuel Jáquez Leal +Date: Thu Sep 16 17:42:39 2010 +0200 + + build: compile libs + + Signed-off-by: Víctor Manuel Jáquez Leal + + Makefile.am | 2 +- + configure.ac | 12 ++++++++++++ + 2 files changed, 13 insertions(+), 1 deletion(-) + +commit fec83d05b86f2466db48ebafea1b351d8c7b99be +Author: Víctor Manuel Jáquez Leal +Date: Thu Sep 16 17:41:55 2010 +0200 + + build: grilo-net pkg-config files + + Signed-off-by: Víctor Manuel Jáquez Leal + + Makefile.am | 4 +++- + grilo-net-0.1.pc.in | 15 +++++++++++++++ + grilo-net-uninstalled.pc.in | 15 +++++++++++++++ + 3 files changed, 33 insertions(+), 1 deletion(-) + +commit 8e3dc779ad6d11531a9128ac2f6fc6de75c78f1c +Author: Víctor Manuel Jáquez Leal +Date: Mon Sep 20 12:21:53 2010 +0200 + + build: libgrlnet + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/Makefile.am | 8 ++++++++ + libs/net/Makefile.am | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 59 insertions(+) + +commit 020c1846c35ef7cc6c81e776c47e2617b534e0a3 +Author: Víctor Manuel Jáquez Leal +Date: Mon Sep 20 12:21:28 2010 +0200 + + wc: test app + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/wc-test.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 86 insertions(+) + +commit febda43ac9477bf4a35ead6c5092074199e84d4a +Author: Víctor Manuel Jáquez Leal +Date: Mon Aug 23 10:30:11 2010 +0200 + + wc: grilo net web client + + Signed-off-by: Víctor Manuel Jáquez Leal + + libs/net/grl-net-wc.c | 493 ++++++++++++++++++++++++++++++++++++++++++++++++++ + libs/net/grl-net-wc.h | 111 ++++++++++++ + 2 files changed, 604 insertions(+) + +commit ec2dbaa9e113026decb43b52a140f89a0e51a8c4 +Author: Víctor Manuel Jáquez Leal +Date: Wed Oct 13 13:16:51 2010 +0200 + + vala: fixed regression + + Added a wrong const identifier in callback parameter + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-0.1-custom.vala | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5856d6e39bff6d1ece752e707c79c2617c729b1e +Author: Víctor Manuel Jáquez Leal +Date: Wed Oct 13 13:04:09 2010 +0200 + + vala: set domain name and fix instance positions + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-0.1-custom.vala | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +commit bfb9b545c8b3fe1b329d0a8ee65af05649d442a3 +Author: Víctor Manuel Jáquez Leal +Date: Wed Oct 13 13:01:31 2010 +0200 + + vala: add MetadataSourceSetMetadataCb + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-0.1-custom.vala | 2 ++ + bindings/vala/grilo-0.1.metadata | 1 + + 2 files changed, 3 insertions(+) + +commit eeefbc017294d6bb234e9cf30690cb5c35414d0a +Author: Víctor Manuel Jáquez Leal +Date: Mon Oct 4 20:40:13 2010 +0200 + + vala: check for libvala-0.12 instead of vala-0.12 + + This is one of the risks to be living on the edge. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit f20e99558ff2f758b2aadfe8ae9dbf6174ce549d +Author: Víctor Manuel Jáquez Leal +Date: Thu Sep 16 16:56:36 2010 +0200 + + build: improve path definition in grilo-uninstalled.pc.in + + Signed-off-by: Víctor Manuel Jáquez Leal + + grilo-uninstalled.pc.in | 15 +++++++++------ + 1 file changed, 9 insertions(+), 6 deletions(-) + +commit 88a16be2ae60f927209eec093c8f5282bae594b1 +Author: Víctor Manuel Jáquez Leal +Date: Thu Sep 16 16:51:23 2010 +0200 + + build: improve gir support in grilo-0.1.pc + + Signed-off-by: Víctor Manuel Jáquez Leal + + grilo-0.1.pc.in | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +commit e90b5bdaada793cf38f0eb58a4a8af3b531c27d2 +Author: Simón Pena +Date: Tue Sep 28 00:11:33 2010 +0200 + + annotations: Fixed transfer modes in grl-metadata-source + + Signed-off-by: Iago Toral Quiroga + + src/grl-metadata-source.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 7beebbcb8385660a7850cc5a33fb1e980ec6f83d +Author: Simón Pena +Date: Thu Sep 30 19:53:27 2010 +0200 + + annotations: removed transfer mode for 'in' args + + Input arguments don't need 'transfer none' annotations. + + Signed-off-by: Simón Pena + Signed-off-by: Iago Toral Quiroga + + src/grl-media-source.c | 16 ++++++++-------- + src/grl-metadata-source.c | 8 ++++---- + src/grl-multiple.c | 8 ++++---- + 3 files changed, 16 insertions(+), 16 deletions(-) + +commit 1bc4f2d22940ac88980a51fa3731c79dcc802dc5 +Author: Simón Pena +Date: Wed Sep 29 16:31:02 2010 +0200 + + tests: Removed setUp/tearDown code in python tests + + setUp/tearDown methods in the tests load and unload the plugins + so that each test is run in a clean environment. + + However, the current plugin mechanism doesn't allow that, and reloading + a previously loaded/unloaded plugin produces a crash. This patch + removes setUp/tearDown code, adding the plugin load in the tests constructor + but leaving the plugins loaded during all the test suite execution. While + this is a fix which allows the tests to be run, some of them will fail. + + Once that the plugin system is reworked to allow unloading/reloading, this + commit should be reverted to come back to the original behavior. + + tests/python/test_metadata_source.py | 9 ++------- + tests/python/test_plugin.py | 9 ++------- + tests/python/test_registry.py | 22 ++++++++++++++-------- + 3 files changed, 18 insertions(+), 22 deletions(-) + +commit 99ec47cd24a715c366f73d7a449e08c9df653b9e +Author: Simón Pena +Date: Wed Sep 29 16:31:01 2010 +0200 + + tests: Tested the MetadataSource class using GI + + tests/python/Makefile.am | 3 +- + tests/python/test_metadata_source.py | 99 ++++++++++++++++++++++++++++++++++++ + 2 files changed, 101 insertions(+), 1 deletion(-) + +commit 7ded0a1190cbee30a04769e2d48c9d8cd3733c52 +Author: Simón Pena +Date: Wed Sep 29 16:31:00 2010 +0200 + + tests: Tested the PluginMedia class using GI + + tests/python/Makefile.am | 3 +- + tests/python/test_plugin.py | 77 +++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 79 insertions(+), 1 deletion(-) + +commit 648523c697474051ab88091dbff23041427ceaa2 +Author: Simón Pena +Date: Wed Sep 29 16:30:59 2010 +0200 + + tests: Tested the PluginRegistry class using GI + + This patch tests the class' methods from Python using + GObject Introspection, checking functionality and bindings + at the same time. + + tests/python/Makefile.am | 3 +- + tests/python/constants.py | 50 +++++++++++++ + tests/python/test_registry.py | 158 ++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 210 insertions(+), 1 deletion(-) + +commit 585dfd314058877afe265eb103894c4bff95047e +Author: Simón Pena +Date: Wed Sep 29 16:30:58 2010 +0200 + + tests: Command line arguments can be passed to testrunner + + Test runner script now accepts command line arguments. That way, + it can be used to check individual test suites, instead of running + the full test set. While this feature isn't really necessary, it + can be helpful when designing the tests. + + tests/python/testrunner.py | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +commit a0fb48d0348eaf2eab1cbcf1bca22e75953ebed6 +Author: Simón Pena +Date: Wed Sep 29 16:30:57 2010 +0200 + + core: Updated infrastructure to support python tests + + * Update configure.ac to generate a 'util' Python class + * Added a test runner to launch Python unit tests + * Added python/ to tests' SUBDIRS + * Updated test's Makefile.am to avoid launching Python tests twice + when 'make check' is invoked + + configure.ac | 2 ++ + tests/Makefile.am | 10 ++++++---- + tests/python/Makefile.am | 22 ++++++++++++++++++++++ + tests/python/testrunner.py | 21 +++++++++++++++++++++ + tests/python/util.py.in | 9 +++++++++ + 5 files changed, 60 insertions(+), 4 deletions(-) + +commit 50fc74eab57720b34451273c3f00c597cfe5c551 +Author: Simón Pena +Date: Wed Sep 29 16:30:56 2010 +0200 + + core: Moved tests infrastructure to /tests + + As discussed in the mailing list [1, 2, 3], this patch moves + the test infrastructure from src/tests/ to tests/ + + In these discussions there was an agreement about having a python/, js/ + etc directory for each language, under tests/. The test/ directory location + wasn't agreed, but Edu Lima's reply on [4] seemed quite convincing, and + nobody opposed to it. + + [1] http://mail.gnome.org/archives/grilo-list/2010-May/msg00041.html + [2] http://mail.gnome.org/archives/grilo-list/2010-August/msg00074.html + [3] http://mail.gnome.org/archives/grilo-list/2010-August/msg00107.html + [4] http://mail.gnome.org/archives/grilo-list/2010-August/msg00106.html + + Makefile.am | 2 +- + configure.ac | 2 +- + src/Makefile.am | 2 -- + {src/tests => tests}/.gitignore | 0 + {src/tests => tests}/Makefile.am | 2 ++ + {src/tests => tests}/registry.c | 1 - + 6 files changed, 4 insertions(+), 5 deletions(-) + +commit c9e3c87e5600c0f244217b4ffd7c767664fde205 +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 29 21:54:48 2010 +0200 + + doc: enhance the documentation makefile + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/reference/Makefile.am | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +commit 04ac4ae4c9d906985c398a50bb3fe7f4579588ac +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 29 21:54:47 2010 +0200 + + doc: change the main page layout + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/reference/grilo-docs.sgml | 8 ++++++++ + 1 file changed, 8 insertions(+) + +commit 2c95e36cece2852085e94b22eb07a33f3fc7dfeb +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 29 21:54:46 2010 +0200 + + doc: new gtk-doc files + + grilo.types defines the GObject types defined in Grilo. + + grilo-sections.txt defines the sections and their grouping elements. + + Signed-off-by: Víctor Manuel Jáquez Leal + + doc/reference/grilo-sections.txt | 485 +++++++++++++++++++++++++++++++++++++++ + doc/reference/grilo.types | 21 ++ + 2 files changed, 506 insertions(+) + +commit 29a06294f3fe1fdc959680e7920b6baa84999e9a +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 29 21:54:45 2010 +0200 + + doc: trivial fixes + + Honor 80 char per line and other small fixes. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-media-source.c | 46 +++++++++++++++++++++++++++++++--------------- + src/grl-media-source.h | 10 +++++----- + src/grl-plugin-registry.c | 16 ++++++++++------ + 3 files changed, 46 insertions(+), 26 deletions(-) + +commit 6db42fbe76eb118ca863b4f8ed4f4ba6fdf86d54 +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 29 21:54:44 2010 +0200 + + doc: add more documentation to multiple search helpers + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-multiple.c | 27 +++++++++++++++++++++++---- + 1 file changed, 23 insertions(+), 4 deletions(-) + +commit 45cdfe2617998d5dc73e27c6f2aa9346f786a4e0 +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 29 21:54:43 2010 +0200 + + doc: add more documentation to grilo.c + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grilo.c | 18 ++++++++++++++++-- + 1 file changed, 16 insertions(+), 2 deletions(-) + +commit 868c291b0dec31d4ea3a4657844cbf98c10941b0 +Author: Simón Pena +Date: Wed Sep 29 21:40:48 2010 +0200 + + vala: Improved metadata + + * Added metadata information for PluginRegistry, MediaPlugin, + MediaSource MetadataSource and GrlData. + * Organized metadata file in sections to improve readability. + + bindings/vala/grilo-0.1.metadata | 51 +++++++++++++++++++++++++++++++++++++++- + 1 file changed, 50 insertions(+), 1 deletion(-) + +commit a7caf5cb5d25824bbf603fd7fdda40a6076d2486 +Author: Simón Pena +Date: Wed Sep 22 16:46:01 2010 +0200 + + build: Fixed gir build rules + + Updated gir build rules so that they depend on the current version, + instead of "0_1". For that, a GRL_MAJORMINOR_NORM has been created. + + configure.ac | 2 ++ + src/Makefile.am | 8 ++++---- + 2 files changed, 6 insertions(+), 4 deletions(-) + +commit 2659469115e76a8884e8d4d0bce7d673119e388e +Author: Simón Pena +Date: Wed Sep 22 16:46:00 2010 +0200 + + build: Define major, minor and micro version vars + + Variables storing the major, minor and micro version have been created. + grl_version and GRL_MAJORMINOR are generated now using those vars. + + configure.ac | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +commit ff67f8492d77656de4b1ffeb2c8d97e2279630e2 +Author: Chris Lord +Date: Fri Sep 24 09:19:59 2010 +0100 + + metadata-source: Don't try to free an uninitialised pointer + + In grl_metadata_source_setup_full_resolution_mode, if the key-list is NULL + then it skips to the end of the function - which frees the list and + returns. This check happens before the list is assigned (or even, in fact, + declare), so just return and avoid running g_list_free on uninitialised + memory. + + https://bugzilla.gnome.org/show_bug.cgi?id=630493 + + src/grl-metadata-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 1eaaa68f4e7132293ddcf6c6706bff3ca8262649 +Author: Simón Pena +Date: Tue Sep 21 23:49:26 2010 +0200 + + doc: Fix GrlUtil documentation + + src/grl-util.c | 1 + + 1 file changed, 1 insertion(+) + +commit 3221e5b721b2008c473ffd21e658bf659c4e37e5 +Author: Simón Pena +Date: Tue Sep 21 23:49:25 2010 +0200 + + doc: Added GrlError documentation + + src/grl-error.h | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +commit 7172f75039b79594822587cf8c94bd5d215e5479 +Author: Simón Pena +Date: Tue Sep 21 23:49:24 2010 +0200 + + doc: Skip GrlDataSync + + doc/reference/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 2da2bc1b729876ce5fc11f577ebe41330e05bb8c +Author: Simón Pena +Date: Tue Sep 21 23:49:23 2010 +0200 + + doc: Fix GrlMediaVideo typo + + src/data/grl-media-video.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5a8611480cb435f531fbfd2473937facb224a096 +Author: Simón Pena +Date: Tue Sep 21 23:49:22 2010 +0200 + + doc: Add GrlLog documentation + + src/grl-log.c | 7 +++++++ + src/grl-log.h | 12 ++++++++++++ + 2 files changed, 19 insertions(+) + +commit d03468d2489b22dd67fc0fcbae4a62626fe830e6 +Author: Simón Pena +Date: Tue Sep 21 23:49:21 2010 +0200 + + doc: Improve GrlMedia documentation + + src/data/grl-media.c | 1 + + src/data/grl-media.h | 10 +++++++++- + 2 files changed, 10 insertions(+), 1 deletion(-) + +commit fe42e96b2a51d1c628013a60ebd911d2ca0232c4 +Author: Simón Pena +Date: Tue Sep 21 23:49:20 2010 +0200 + + doc: Improve GrlMediaImage documentation + + src/data/grl-media-image.c | 9 +++++---- + src/data/grl-media-image.h | 6 ++++++ + 2 files changed, 11 insertions(+), 4 deletions(-) + +commit 1c3b0166d238eb2091fbf42abb0891ac5867165f +Author: Simón Pena +Date: Tue Sep 21 23:49:19 2010 +0200 + + doc: Improve GrlMediaAudio documentation + + src/data/grl-media-audio.c | 9 +++++---- + src/data/grl-media-audio.h | 6 ++++++ + 2 files changed, 11 insertions(+), 4 deletions(-) + +commit 90ac28faeb76fdc10488a6e360cad9a53a9e2dbe +Author: Simón Pena +Date: Tue Sep 21 20:28:21 2010 +0200 + + annotations: Fixed grl_init annotations + + src/grilo.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit e80fe473ef640c6577ce32d5fea4964f3f310598 +Author: Víctor Manuel Jáquez Leal +Date: Fri Sep 17 12:22:57 2010 +0200 + + build: detect new versions of vala + + Recently vala has multiversion support, so it would be possible have installed + different versions of it. But downstream still using the old setup. So we + shall handle both situations. + + First we check for upstream version and then we go downstream. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 24 ++++++++++++++++++++---- + 1 file changed, 20 insertions(+), 4 deletions(-) + +commit 9b619eabd23601f68f1593a3f0d3927de4b1a540 +Author: Víctor Manuel Jáquez Leal +Date: Tue Sep 7 11:05:15 2010 +0200 + + core: fix GrlLog gtkdoc documentation + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-log.h | 11 ++--------- + 1 file changed, 2 insertions(+), 9 deletions(-) + +commit a8f314fdbd9b3196b8a1e89e13da1a686ac3548c +Author: Iago Toral Quiroga +Date: Thu Sep 16 08:45:52 2010 +0200 + + core: Fix incorrect sorting of ranked plugins. + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 723f3a0e8738a3d4a78232eb6c26b459ee3a2497 +Author: Simón Pena +Date: Tue Sep 14 21:18:29 2010 +0200 + + core: Make get_sources_by_operations return a GList + + https://bugzilla.gnome.org/show_bug.cgi?id=629369 + + Signed-off-by: Iago Toral Quiroga + + src/grl-metadata-source.c | 28 +++++++++++++----------- + src/grl-multiple.c | 24 +++++---------------- + src/grl-plugin-registry.c | 45 ++++++--------------------------------- + src/grl-plugin-registry.h | 2 +- + tools/grilo-test-ui/main.c | 53 ++++++++++++++++++++++++---------------------- + 5 files changed, 57 insertions(+), 95 deletions(-) + +commit 21c8f46cb4b64c852f7d659ad5201fd178e83666 +Author: Simón Pena +Date: Tue Sep 14 21:18:28 2010 +0200 + + core: Make get_sources return a GList + + * GrlPluginRegistry's get_sources now returns a GList + * Added a compare_by_rank method to use with g_list_sort + * Updated grilo-test-ui, grl-inspect and tests to expect a GList + + https://bugzilla.gnome.org/show_bug.cgi?id=629369 + + Signed-off-by: Iago Toral Quiroga + + src/grl-plugin-registry.c | 50 ++++++++++++++++++++++++++------------- + src/grl-plugin-registry.h | 2 +- + src/tests/registry.c | 19 ++++++++------- + tools/grilo-inspect/grl-inspect.c | 17 ++++++++----- + tools/grilo-test-ui/main.c | 14 +++++++---- + 5 files changed, 65 insertions(+), 37 deletions(-) + +commit 7c0118224e46682a6cca669d69f568975f2f73e6 +Author: Iago Toral Quiroga +Date: Tue Sep 14 11:03:29 2010 +0200 + + doc: various documentation fixes. + + src/data/grl-media-image.c | 4 ++-- + src/data/grl-media.c | 4 +++- + src/grl-metadata-source.c | 4 ++-- + src/grl-metadata-source.h | 21 +++++++++++---------- + src/grl-multiple.c | 2 +- + src/grl-plugin-registry.h | 1 + + 6 files changed, 20 insertions(+), 16 deletions(-) + +commit 1f474ff1584b7ce9dbd5420452848c6be97562f9 +Author: Simón Pena +Date: Mon Sep 13 18:44:59 2010 +0200 + + doc: Updated examples to use new log system + + Signed-off-by: Iago Toral Quiroga + + doc/reference/quick-start-using-grilo.xml | 24 ++++++++++++------------ + 1 file changed, 12 insertions(+), 12 deletions(-) + +commit 73aaec958520ca70097751f2c776cb79bce8026c +Author: Simón Pena +Date: Thu Sep 9 22:08:57 2010 +0200 + + annotations: Fixed grl_data_get_keys transfer mode + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-data.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit d1efdeb270e3084147ff44c0c1d6a2cc1949b990 +Author: Simón Pena +Date: Thu Sep 9 22:08:56 2010 +0200 + + annotations: Media in cb is transfer full + + Signed-off-by: Iago Toral Quiroga + + src/grl-media-source.h | 8 ++++---- + src/grl-metadata-source.h | 4 ++-- + 2 files changed, 6 insertions(+), 6 deletions(-) + +commit 5f91bb9f022e266303a32c4b75e85d348d314293 +Author: Simón Pena +Date: Thu Sep 9 22:08:55 2010 +0200 + + annotations: Removed unnecessary annotations + + Returning "const gchar*" get annotated as (type utf8) (transfer none), + so there's no need to annotate them manually. + Besides, (allow-none) isn't needed for return values. + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-config.c | 8 ++++---- + src/data/grl-data.c | 2 +- + src/data/grl-media-audio.c | 8 ++++---- + src/data/grl-media.c | 32 ++++++++++++++++---------------- + src/grl-metadata-source.c | 6 +++--- + src/grl-plugin-registry.c | 2 +- + 6 files changed, 29 insertions(+), 29 deletions(-) + +commit 310720223a9cd46da133980677504c6f0da13957 +Author: Simón Pena +Date: Thu Sep 9 22:08:54 2010 +0200 + + annotations: Annotated 'register_metadata_key' + + Signed-off-by: Iago Toral Quiroga + + src/grl-plugin-registry.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +commit 50c58eefebd82f0843b8d3cd2a556aa70fb2682f +Author: Simón Pena +Date: Thu Sep 9 22:08:53 2010 +0200 + + core: Replaced grl-media-plugin defines with functions + + Signed-off-by: Iago Toral Quiroga + + src/grl-media-plugin.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++-- + src/grl-media-plugin.h | 78 +++++------------------------------------ + 2 files changed, 101 insertions(+), 71 deletions(-) + +commit 5805517df445374ac73e1208930d95e2f647a97d +Author: Simón Pena +Date: Thu Sep 9 22:08:52 2010 +0200 + + annotations: Fixed 'get_info_keys' annotation + + Signed-off-by: Iago Toral Quiroga + + src/grl-media-plugin.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 4b028ef85a098b9589cf38ef57446fb120425a8a +Author: Simón Pena +Date: Thu Sep 9 22:08:51 2010 +0200 + + annotations: Annotated metadata_source cb GErrors as uints + + Signed-off-by: Iago Toral Quiroga + + src/grl-metadata-source.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit b14b077888c845475d90a017ac2e49457b006d87 +Author: Simón Pena +Date: Thu Sep 9 22:08:50 2010 +0200 + + annotations: Annotated grl-metadata-source + + Signed-off-by: Iago Toral Quiroga + + src/grl-metadata-source.c | 66 ++++++++++++++++++++++++++++------------------- + src/grl-metadata-source.h | 3 ++- + 2 files changed, 41 insertions(+), 28 deletions(-) + +commit eb7d8c707f3c43cc474b5d6c9a1beb6240f3752e +Author: Simón Pena +Date: Thu Sep 9 22:08:49 2010 +0200 + + annotations: Added missing transfer modes + + Non-basic types must be annotated with a 'transfer mode', even if it + is full, for safety reasons. + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-media.c | 2 +- + src/grl-media-source.c | 10 +++++----- + src/grl-multiple.c | 2 +- + 3 files changed, 7 insertions(+), 7 deletions(-) + +commit 5404705a8d2b9c3b2fde53501f723a574901c308 +Author: Simón Pena +Date: Thu Sep 9 22:08:48 2010 +0200 + + core: Made GrlPluginInfo introspectable + + With the new g-ir-scanner, aliasing a structure must be + done before declaring it. + + Signed-off-by: Iago Toral Quiroga + + src/grl-plugin-registry.h | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 246eccca96970bd154506d5c02588c4accfb7fda +Author: Simón Pena +Date: Thu Sep 9 22:08:47 2010 +0200 + + annotations: Skipped non introspectable functions + + Signed-off-by: Iago Toral Quiroga + + src/grilo.c | 2 +- + src/grl-log.c | 6 ++++++ + src/grl-util.c | 2 +- + 3 files changed, 8 insertions(+), 2 deletions(-) + +commit fa8daa2ea879673833f33ae08aa11fe5fd166425 +Author: Simón Pena +Date: Thu Sep 9 22:08:46 2010 +0200 + + annotations: Replaced Grl.MediaSource* with Grl.MediaSource + + Signed-off-by: Iago Toral Quiroga + + src/grl-multiple.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit d7346d982b18f2f56709b98f42c62819a50467f7 +Author: Simón Pena +Date: Thu Sep 9 22:08:45 2010 +0200 + + annotations: Replaced Grl.Media* with Grl.Media + + Signed-off-by: Iago Toral Quiroga + + src/grl-media-source.c | 6 +++--- + src/grl-multiple.c | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +commit 3bd379757dea209295608ff1a43ae4e9cfb28c8d +Author: Simón Pena +Date: Thu Sep 9 22:08:44 2010 +0200 + + annotations: Replaced GObject.ParamSpec* with GObject.ParamSpec + + ParamSpecs annotations must be either 'GObject.ParamSpec' or + 'GParamSpec*', the former being preferred. + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-data.c | 26 +++++++++++++------------- + src/grl-media-source.c | 16 ++++++++-------- + src/grl-metadata-key.c | 4 ++-- + src/grl-multiple.c | 4 ++-- + src/grl-plugin-registry.c | 4 ++-- + 5 files changed, 27 insertions(+), 27 deletions(-) + +commit 4fd6f158bff2bb178b0536c8a95470c80b7b9eb9 +Author: Simón Pena +Date: Thu Sep 9 22:08:43 2010 +0200 + + annotations: Added missing colon + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-data.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 3cf151234a93747ebe6806e705cc88b930c311e1 +Author: Víctor Manuel Jáquez Leal +Date: Fri Sep 10 13:15:25 2010 +0200 + + core: document the log level mapping + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-log.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +commit a5873135582836625259faec2e9350a027badfb2 +Author: Víctor Manuel Jáquez Leal +Date: Fri Sep 10 13:14:36 2010 +0200 + + core: a missing info doesn't deserve a warning + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 04eb6a6a7b6b46343909f260ccbe853a57434c3d +Author: Víctor Manuel Jáquez Leal +Date: Fri Sep 10 13:13:48 2010 +0200 + + core: check for supported_keys implementation + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-metadata-source.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 5ae56cab0c71f9b1964260e424214fab219d230f +Author: Simón Pena +Date: Thu Sep 9 22:08:58 2010 +0200 + + core: check for 'key-depends' implementation + + src/grl-metadata-source.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +commit a3b9d3cbd8f74b3e3869e855d9b67483428ecfff +Author: Víctor Manuel Jáquez Leal +Date: Mon Sep 6 12:14:33 2010 +0200 + + core: GrlMediaPlugin doesn't need finalize() + + According to this commit: + + commit 92de127e655d6c31dbc64c3e5a389b8bc6de12c8 + Author: Iago Toral Quiroga + Date: Fri Sep 3 10:34:17 2010 +0200 + + core: Do not free plugin descriptors in GrlMediaPlugin's finalize function, + they are const members to be freed by the registry only when plugins are + unloaded, they should not be freed when a source spawned by the plugin is + unloaded. + + So there's nothing to do in the GrlMediaPlugin finalize(), then is better + remove it and have less lines of code to maintain. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-media-plugin.c | 15 --------------- + 1 file changed, 15 deletions(-) + +commit 377860ad5c1800b9ae85cdd28c58a49922cf6574 +Author: Víctor Manuel Jáquez Leal +Date: Sat Sep 4 12:19:58 2010 +0200 + + build: check hard pkg-config dependencies first + + As reported by Damien Lespiau : + + """ + PKG_CHECK_MODULES requires PKG_PROG_PKG_CONFIG, see pkg.m4: + + AC_DEFUN([PKG_CHECK_MODULES], + [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl + + The expansion of the AC_REQUIRE is done only once, the first time m4 + encounters PKG_CHECK_MODULES. + + Now the real issue is that the first occurrence of PKG_CHECK_MODULES is + in the test: + if test "x$enable_vala" != no; + + which means PKG_PROG_PKG_CONFIG is not being executed when --disable-vala + is given on the command line and thus I have the following error at + configure time. + """ + + Then, this patch makes check first the hard dependencies, and aftwards the + optional stuff. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 38 +++++++++++++++++++------------------- + 1 file changed, 19 insertions(+), 19 deletions(-) + +commit 44391196d7fc9506bce9aecdb9394203a98359e7 +Author: Simón Pena +Date: Fri Sep 3 19:10:17 2010 +0200 + + core: Remove value destroy_func from the plugins' hash table + + Removing a GrlPluginDescriptor from the plugins' hash table fails + when plugins are shutdown. + + Signed-off-by: Iago Toral Quiroga + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 59502f8a864229f084fdc5270c0349f332e9eb05 +Author: Víctor Manuel Jáquez Leal +Date: Thu Sep 2 18:53:58 2010 +0200 + + bindings: add gmodule as link dependency + + As the commit b23869 modifies the ABI exposing a GModule instance, so we need + to communicate the new linkage dependency to the bindings. + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/Makefile.am | 3 ++- + bindings/vala/grilo-0.1.deps | 1 + + src/Makefile.am | 2 +- + 3 files changed, 4 insertions(+), 2 deletions(-) + +commit 4ae19da7d5ea231b1cc1641c1eb03b01ee658c79 +Author: Iago Toral Quiroga +Date: Fri Sep 3 11:07:26 2010 +0200 + + core: Free plugin data in the registry's plugin unload function. + + src/grl-plugin-registry.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +commit 523174d1201310643d88d2b098403676a2437888 +Author: Iago Toral Quiroga +Date: Fri Sep 3 10:55:32 2010 +0200 + + test-ui: Reset combo boxes also when shutting down the plugins. + test-ui: Make sure we only free each plugin once. + + tools/grilo-test-ui/main.c | 71 +++++++++++++++++++++++++++++++++------------- + 1 file changed, 52 insertions(+), 19 deletions(-) + +commit 92de127e655d6c31dbc64c3e5a389b8bc6de12c8 +Author: Iago Toral Quiroga +Date: Fri Sep 3 10:34:17 2010 +0200 + + core: Do not free plugin descriptors in GrlMediaPlugin's finalize function, + they are const members to be freed by the registry only when plugins are + unloaded, they should not be freed when a source spawned by the plugin is + unloaded. + + src/grl-media-plugin.c | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +commit 8d29625f88252f809b6ed46d39456616404a592b +Author: Iago Toral Quiroga +Date: Thu Sep 2 15:27:32 2010 +0200 + + test-ui: reloading functionality does not work as intended. This commit + replaces plugin-reloading functionality by plugin-shutdown. + + tools/grilo-test-ui/main.c | 31 ++++++++++++++++--------------- + 1 file changed, 16 insertions(+), 15 deletions(-) + +commit 2e3b8fa9dd05bbbf2d1eb3c1a532f712836171d4 +Author: Iago Toral Quiroga +Date: Thu Sep 2 14:49:00 2010 +0200 + + core: when unloading a plugin, shutdown any sources it may have spawned. + + src/grl-plugin-registry.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 48dd489abb7b183bbd41ed64807b025a9aeff62e +Author: Iago Toral Quiroga +Date: Wed Sep 1 14:43:48 2010 +0200 + + core: unload plugins properly by calling g_module_close when appropriate. + + src/grl-plugin-registry.c | 5 +++++ + src/grl-plugin-registry.h | 3 +++ + 2 files changed, 8 insertions(+) + +commit 3b504c0c55e0a3dfd2b3bd6b086fd9be3b0dcf75 +Author: Damien Lespiau +Date: Tue Aug 24 16:48:59 2010 +0100 + + log: remove grl_log_init() calls from tools + + grl-inspect: Now that we default to only print warnings, it's actually + pretty sane to still show those warning that shows errors one should + fix. + + grl-test-ui: The default verbosity of the test UI make seeing real + warnings really hard. It's still possible to recover the verbose mode + with GRL_LOG. + + testGrilo.js: Remove the Grl.log_init() call and add Grl.init() + + grilo-test.vala: Remove Grl.log_init() + + https://bugzilla.gnome.org/show_bug.cgi?id=627864 + + Signed-off-by: Víctor Manuel Jáquez Leal + + tools/grilo-inspect/grl-inspect.c | 1 - + tools/grilo-test-ui/main.c | 1 - + tools/js/testGrilo.js | 2 +- + tools/vala/grilo-test.vala | 1 - + 4 files changed, 1 insertion(+), 4 deletions(-) + +commit 15a83305ea12c66173db1335f3fcf74b61df25d7 +Author: Damien Lespiau +Date: Thu Sep 2 14:03:25 2010 +0100 + + log: rename grl_log_init() to grl_log_configure() + + You can configure one or several log domains at run time with this API, + so it's not an initialization per se, it's closer to a configuration + string one gives to the log system. + + Along with the renaming, properly document the format of the string used + to configure log domains. + + https://bugzilla.gnome.org/show_bug.cgi?id=627864 + + doc/reference/quick-start-using-grilo.xml | 8 +++--- + src/grl-log.c | 42 +++++++++++++++++++++++++++---- + src/grl-log.h | 2 +- + 3 files changed, 42 insertions(+), 10 deletions(-) + +commit 08805ebfa6e297e7ee369639b6af012d6ebab95d +Author: Damien Lespiau +Date: Thu Sep 2 10:49:14 2010 +0100 + + log: rename the environment variable to GRL_DEBUG + + The log system uses an environment variable to override the verbosity of + log domains. Let's use GRL_DEBUG to be closer to what other gnome + libraries use (GST_DEBUG, GTK_DEBUG, CLUTTER_DEBUG). + + https://bugzilla.gnome.org/show_bug.cgi?id=627864 + + src/grl-log.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 6c71c336c4299e0dd79ad4258ddd2e3d7cca86c3 +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 1 20:12:49 2010 +0200 + + log: handle numeric level assignations + + Besides the symbolic level recognition, this patch also enable the numeric + level setting. + + Signed-off-by: Víctor Manuel Jáquez Leal + + https://bugzilla.gnome.org/show_bug.cgi?id=627864 + + src/grl-log.c | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +commit 9e958d6c32a6d61bc2947066d6ed4a0c9546a4f1 +Author: Damien Lespiau +Date: Fri Aug 20 17:54:52 2010 +0100 + + log: revamp the log system + + Current log system suffers from a few drawbacks: + + * It uses Glib's default handler for all the domains, this handler should + not be overriden by a library (imagine what can happen if every + library depends on being able to override the default log handler), + + * You can't use the common practice to break on g_log() to trace where + warnings come from because the decision of printing the message is + taken in the handler itself, + + * Other gnome libraries tend to define a single glib log domain for + the whole library. + + So, instead, use a GStreamer-like logging system, with "log domains" you + have to declare and initialize. + + This patch tries to keep the original author's intent by keeping: + + * the glib's debug levels and using them in the final g_logv(), + + * the same decoding of the string given to grl_log_init(). + + It also modifies a bit when the GRL_LOG env variable is sampled. Instead + of requiring the use to explictely call grl_log_init() to check the + GRL_LOG behing the scene, grilo now gets this variable at startup and + overrides the default verbosity level of log domains when they are + created. + + grl_log_init() can still be used to set the verbosity, it has to be + called after the log domain has been initialized which, for plugins, + means after having loaded the plugin. + + https://bugzilla.gnome.org/show_bug.cgi?id=627864 + + src/Makefile.am | 5 +- + src/data/grl-config.c | 7 +- + src/data/grl-data.c | 11 +- + src/data/grl-media.c | 14 +- + src/grilo.c | 9 +- + src/grl-log-priv.h | 46 ++++++ + src/grl-log.c | 341 +++++++++++++++++++++++++++++++++++---------- + src/grl-log.h | 246 +++++++++++++++++++++++++++++++- + src/grl-media-plugin.c | 5 +- + src/grl-media-source.c | 159 ++++++++++----------- + src/grl-metadata-source.c | 57 ++++---- + src/grl-multiple.c | 55 ++++---- + src/grl-plugin-registry.c | 53 +++---- + src/tests/registry.c | 14 +- + tools/grilo-test-ui/main.c | 59 ++++---- + 15 files changed, 785 insertions(+), 296 deletions(-) + +commit d11d54006e1a119c0d1d3cd3c1d817cc44f161ec +Author: Víctor Manuel Jáquez Leal +Date: Wed Sep 1 11:58:33 2010 +0200 + + core: rename the GRL_ERROR quark to GRL_CORE_ERROR + + In other to avoid name-space collisions with the next logging subsystem, + we are renaming grilo's error domain. + + This change also will allows us to have different kinds of error domains. + + Signed-off-by: Víctor Manuel Jáquez Leal + + https://bugzilla.gnome.org/show_bug.cgi?id=628506 + + bindings/vala/grilo-0.1.metadata | 2 +- + src/grl-error.h | 22 +++++++++++----------- + src/grl-media-source.c | 12 ++++++------ + src/grl-metadata-source.c | 8 ++++---- + src/grl-multiple.c | 2 +- + 5 files changed, 23 insertions(+), 23 deletions(-) + +commit 16834a072b9bde6a3678049dc9dcde237aa2eb46 +Author: Iago Toral Quiroga +Date: Wed Sep 1 12:48:22 2010 +0200 + + Added --enable-uninstalled flag for autogen.sh in the "Examples" section. + + README | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit df92cb1412e1c44e27c57afeab13c152062a1e10 +Author: Juan A. Suarez Romero +Date: Thu Jul 29 17:24:05 2010 +0200 + + Bumped to version 0.1.6 + + AUTHORS | 9 +++------ + NEWS | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 2 +- + 3 files changed, 68 insertions(+), 7 deletions(-) + +commit 1bbb33f76075cdfda3b480d80b2cbb2559dc1f06 +Author: Damien Lespiau +Date: Mon Aug 23 11:49:04 2010 +0100 + + gitignore: Put common ignores in the root .gitignore + + Putting common ignores in the root file makes some gitignore files + unecessary, reducing the maintainance of the .gitignore files. + + https://bugzilla.gnome.org/show_bug.cgi?id=627863 + + .gitignore | 10 ++++++++++ + doc/reference/.gitignore | 2 +- + src/.gitignore | 10 ---------- + src/tests/.gitignore | 5 ----- + tools/grilo-inspect/.gitignore | 1 + + tools/grilo-test-ui/.gitignore | 5 ----- + tools/vala/.gitignore | 2 -- + 7 files changed, 12 insertions(+), 23 deletions(-) + +commit e27101ab7098362450af7cedc7ad41a684006f51 +Author: Víctor Manuel Jáquez Leal +Date: Wed Aug 25 17:57:36 2010 +0200 + + test-ui: log everything + + In a previous patch I committed a wrong log selector. This revert + that. + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c7a99223dc547b7697b6e4bb5b859691daf9174a +Author: Simón Pena +Date: Wed Aug 25 17:08:48 2010 +0200 + + annotations: Fixed 'lookup_source' annotation + + lookup_source method must be 'transfer-none' + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit def549318aa94a881e1d3f8b7a6790c3060673ba +Author: Víctor Manuel Jáquez Leal +Date: Fri Aug 20 11:34:59 2010 +0200 + + test-ui: reload plugins functionality + + Add a menu option for reloading all the available plugins. Now, in theory, + should be possible to reload a plugin in development process without + restarting the test-ui app. + + Signed-off-by: Víctor Manuel Jáquez Leal + + tools/grilo-test-ui/main.c | 46 +++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 43 insertions(+), 3 deletions(-) + +commit 28287c7211d06f1ae2014b4c924933607d139152 +Author: Víctor Manuel Jáquez Leal +Date: Fri Aug 20 11:32:11 2010 +0200 + + core: typo + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-plugin-registry.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 1eba27545f9b40dc7025ef143034575ed6b49cc6 +Author: Víctor Manuel Jáquez Leal +Date: Thu Aug 19 20:54:41 2010 +0200 + + check: test for registry and unregistry of plugins + + Based on the patch submitted by Simón Pena + + https://bugzilla.gnome.org/show_bug.cgi?id=627207 + + x# Please enter the commit message for your changes. Lines starting + + src/tests/registry.c | 84 ++++++++++++++++++++++++++++++++++++++++++++-------- + 1 file changed, 71 insertions(+), 13 deletions(-) + +commit 721a2a499812e4abab60ee00edd9da00b44e76cd +Author: Simón Pena +Date: Wed Aug 18 20:12:47 2010 +0200 + + core: removed wrong free at GrlMediaPlugin finalize() + + GrlPluginInfo id can't be freed as it's assigned from a string in the heap. + + b.g.o. #627207 + + src/grl-media-plugin.c | 1 - + 1 file changed, 1 deletion(-) + +commit ded8237bc643cf8060df6bd3ef948ed65883e66d +Author: Simón Pena +Date: Mon Aug 16 20:03:23 2010 +0200 + + core: remove uneed frees + + Source's properties 'id' and 'name' were freed after being retrieved, and + as the getter wasn't dup'ing them, they were being double freed. + + This patch removes those uneeded frees. + + b.g.o. #627207 + + src/grl-media-source.c | 2 -- + src/grl-plugin-registry.c | 2 -- + 2 files changed, 4 deletions(-) + +commit f99ac4723247a63e920676b18e63665718be1d8f +Author: Víctor Manuel Jáquez Leal +Date: Thu Aug 19 18:32:31 2010 +0200 + + core: initialise the structure completely + + In order to silence the compiler when -Wextra is activated, the info structure + is initialise in all of its fields. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grl-plugin-registry.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit d805260e39d1c4ae28e41f9040a83a49c79a30a2 +Author: Simón Pena +Date: Tue Aug 17 22:04:38 2010 +0200 + + python: Cloned grilo-test-ui + + Created grilo-test-ui clone using Gtk and Grilo introspection + bindings with PyGObject + + Signed-off-by: Víctor Manuel Jáquez Leal + + tools/python/grilo-test-ui.py | 807 ++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 807 insertions(+) + +commit 508196b809811673fd931a02a5693f27482b2eb7 +Author: Simón Pena +Date: Tue Aug 17 22:04:37 2010 +0200 + + annotations: Annotated grl-data + + src/data/grl-data.c | 28 ++++++++++++++-------------- + 1 file changed, 14 insertions(+), 14 deletions(-) + +commit 0c81289834787441692546bd4331a654e4a4f59f +Author: Simón Pena +Date: Tue Aug 17 22:04:36 2010 +0200 + + annotations: Annotated grl-multiple + + src/grl-multiple.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +commit b758dfb40d8f24ba84174cba44ea9f1792feebb1 +Author: Simón Pena +Date: Tue Aug 17 22:04:35 2010 +0200 + + core: Make grl-metadata-key more introspection friendly + + Provided actual functions to access name and description for a + given metadata key, as macros aren't introspection friendly. + + src/grl-metadata-key.c | 28 ++++++++++++++++++++++++++++ + src/grl-metadata-key.h | 4 ++++ + 2 files changed, 32 insertions(+) + +commit daebdc455328bfbd2e42f8d0fa363fbfec82c64c +Author: Simón Pena +Date: Tue Aug 17 22:04:34 2010 +0200 + + annotations: Annotated grl-media-source callbacks + + Callbacks' GErrors have been annotated with type uint + + src/grl-media-source.h | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit becc8e0da5b881a0e32c2a5d3bee738fbb0be989 +Author: Simón Pena +Date: Tue Aug 17 22:04:33 2010 +0200 + + annotations: Annotated grl-media-source + + Again, GrlKeyIDs have been annotated as GObject.ParamSpec* (see + previous commit) + + src/grl-media-source.c | 46 +++++++++++++++++++++++----------------------- + 1 file changed, 23 insertions(+), 23 deletions(-) + +commit 036e59c602dabb121512ccd824d8b43ccbc7a508 +Author: Simón Pena +Date: Tue Aug 17 22:04:32 2010 +0200 + + annotations: Annotated grl-plugin-registry + + GrlKeyIDs have been annotated as GObject.ParamSpec*. This isn't yet + supported in GJS (but it is in PyGObject). See bug #626047 + + src/grl-plugin-registry.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +commit f06f9c2c198d53ab93c667a2de23666408b17873 +Author: Víctor Manuel Jáquez Leal +Date: Tue Aug 10 13:40:35 2010 +0200 + + vala: remove custom code for media getters/setters + + With the new functions the introspection mechanism can detect + the those symbols. No need to add them manually anymore. + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-0.1-custom.vala | 27 --------------------------- + 1 file changed, 27 deletions(-) + +commit 2f55ccd71669501b1757bdc1d8d9e1a2d78f1a9d +Author: Simón Pena +Date: Mon Aug 9 18:13:30 2010 +0200 + + annotations: Annotated grilo.c + + Added annotations to grl_init and grl_init_get_option_group + + Signed-off-by: Iago Toral Quiroga + + src/grilo.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 2568d88bd0cb4d9066e55f2f78227e9bcabc86f9 +Author: Simón Pena +Date: Mon Aug 9 18:13:29 2010 +0200 + + core: Replaced grl-media-audio defines with functions + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-media-audio.c | 130 +++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media-audio.h | 54 +++++++------------ + 2 files changed, 149 insertions(+), 35 deletions(-) + +commit 09bc861dfb487abd7c213a7ca68827a466ae767e +Author: Simón Pena +Date: Mon Aug 9 18:13:28 2010 +0200 + + core: Replaced grl-media-image defines with functions + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-media-image.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media-image.h | 21 ++++++---------- + 2 files changed, 69 insertions(+), 14 deletions(-) + +commit 23c3295fd9d9ca69ae200690d91f3515cc2d0de8 +Author: Simón Pena +Date: Mon Aug 9 18:13:27 2010 +0200 + + core: Replaced grl-media-video defines with functions + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-media-video.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media-video.h | 63 ++++-------------------------------- + 2 files changed, 87 insertions(+), 57 deletions(-) + +commit b85da2511f327a078b14f02d4585cd9c2320bed2 +Author: Simón Pena +Date: Mon Aug 9 18:13:26 2010 +0200 + + core: Replaced grl-media defines with functions + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-media.c | 526 +++++++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 409 ++++----------------------------------- + 2 files changed, 566 insertions(+), 369 deletions(-) + +commit 198ffe3950e41d5425d9cef0352e951ec088209a +Author: Simón Pena +Date: Mon Aug 9 18:13:25 2010 +0200 + + core: Replaced grl-config defines with functions + + Signed-off-by: Iago Toral Quiroga + + src/data/grl-config.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-config.h | 96 ++++---------------------------------- + 2 files changed, 136 insertions(+), 87 deletions(-) + +commit f6b08a278203875809f44a5ea3e506ad8d2ac386 +Author: Víctor Manuel Jáquez Leal +Date: Fri Aug 6 00:58:57 2010 +0200 + + autogen.sh: remove the ACLOCAL_FLAGS variable + + The user can set the ACLOCAL environment variable to override + the location of the /share/aclocal. But the assignation of + the variable ACLOCAL_FLAGS prevents the override. + + This patch also pass the autogen.sh parameters to gnome-autogen.sh. + + Signed-off-by: Víctor Manuel Jáquez Leal + + autogen.sh | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +commit 55613ba239d6571cba100bd1d3af56a63674357b +Author: Víctor Manuel Jáquez Leal +Date: Fri Aug 6 00:57:37 2010 +0200 + + build: remove unused variable + + No functional changes. + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ff6de3017ca8ca17915a933105e8adbf494f5b42 +Author: Damien Lespiau +Date: Thu Aug 5 16:50:33 2010 +0100 + + core: Default to print warning, critical and error messages only + + Grilo is *very* verbose by default. While that's very good to have debug + messages, printing debug messages by default, especially when it's a + library, is not a good idea. + + This commit makes grilo less verbose by default while keeping the option + to print debug messages through the GRL_LOG environment variable. + + Signed-off-by: Iago Toral Quiroga + + src/grilo.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit e3cb89aca099d7009c014d49443ffbfb6d7db1e9 +Author: Víctor Manuel Jáquez Leal +Date: Sun Jul 18 11:37:38 2010 +0200 + + grilo.h: the config.h shall never be exposed to the API. + + The config.h is a helper for the library compilation. It is _NOT_ + part of the API offered by the library. + + Signed-off-by: Víctor Manuel Jáquez Leal + + src/grilo.h | 6 ------ + 1 file changed, 6 deletions(-) + +commit 7c245ee8baf882c21a4bbc818342371622a07a55 +Author: Víctor Manuel Jáquez Leal +Date: Mon Jul 19 19:46:17 2010 +0200 + + vala: grl_init in vapi + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-0.1.metadata | 2 ++ + tools/vala/grilo-test.vala | 1 + + 2 files changed, 3 insertions(+) + +commit 609fb9c50e56716b1e9f0d3ad2d760bfba3c79da +Author: Víctor Manuel Jáquez Leal +Date: Sun Jul 18 00:12:49 2010 +0200 + + vala: new vapi generation machinery + + Following this scheme[1], the vapi generation now is fully + automatic. + + Besides, for sake of a correct compilation, further changes + were done: + + + As the vapi file is autogenerated with the uninstalled files, the + vapi must be generated before the vala test is compiled. + + + Set the ellipsis property to grl_list_from_va() + + + Add more custom code into the vapi. This is a _bad_ symptom, because it + means more diverging from the normal gobject code style. + + + Fix the vala test according to the new custom code. + + 1. http://git.collabora.co.uk/?p=user/edward/gst-convenience.git;a=blob;f=vala/Makefile.am + + Signed-off-by: Víctor Manuel Jáquez Leal + + Makefile.am | 2 +- + bindings/vala/Makefile.am | 72 +- + bindings/vala/grilo-0.1-custom.vala | 103 +++ + bindings/vala/{grilo-0.1 => }/grilo-0.1.metadata | 1 + + bindings/vala/grilo-0.1.vapi | 510 ----------- + bindings/vala/grilo-0.1/grilo-0.1-custom.vala | 39 - + bindings/vala/grilo-0.1/grilo-0.1.files | 3 - + bindings/vala/grilo-0.1/grilo-0.1.gi | 932 --------------------- + bindings/vala/grilo-0.1/grilo-0.1.namespace | 1 - + ...grilo-0.1.defines => grilo-uninstalled.defines} | 0 + tools/vala/grilo-test.vala | 2 +- + 11 files changed, 174 insertions(+), 1491 deletions(-) + +commit f53cd5cba869a3932fd8d46ea8c7cfa47f4afadb +Author: Víctor Manuel Jáquez Leal +Date: Sun Jul 18 00:00:51 2010 +0200 + + vala: add files template + + This new file is going to be used in the new vala vapi generation. + + No functional changes yet. + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-uninstalled.files.in | 13 +++++++++++++ + configure.ac | 1 + + 2 files changed, 14 insertions(+) + +commit 279277c46960127e9c6d4ccc4333664cfb3604b5 +Author: Víctor Manuel Jáquez Leal +Date: Sat Jul 17 23:57:13 2010 +0200 + + vala: add namespace template + + This new file is going to be used in the new vala vapi generation. + + No functional changes yet. + + Signed-off-by: Víctor Manuel Jáquez Leal + + bindings/vala/grilo-uninstalled.namespace.in | 1 + + configure.ac | 1 + + 2 files changed, 2 insertions(+) + +commit ad09925ce38607cb17be28beb38692911c5873f0 +Author: Víctor Manuel Jáquez Leal +Date: Sat Jul 17 23:50:06 2010 +0200 + + Remove ABI to uninstalled pc file + + Specify the ABI on uninstalled files makes no sense, because the + it only has value for the external consumers. + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 2 +- + grilo-0.1-uninstalled.pc.in => grilo-uninstalled.pc.in | 0 + 2 files changed, 1 insertion(+), 1 deletion(-) + +commit 1130f2c802856b4eb60babd98aec88dba1075ac3 +Author: Víctor Manuel Jáquez Leal +Date: Sat Jul 17 22:54:38 2010 +0200 + + configure.ac: check for vala tools + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 20 ++++++++++++++++++-- + 1 file changed, 18 insertions(+), 2 deletions(-) + +commit 5739cb2ea4b434f6a86d9f784583994c82b871dc +Author: Juan A. Suarez Romero +Date: Mon Jul 19 15:01:51 2010 +0200 + + Rename grl_plugin_registry_get_instance() + + grl_plugin_registry_get_default() is a more common name. + + bindings/vala/grilo-0.1.vapi | 2 +- + bindings/vala/grilo-0.1/grilo-0.1.gi | 2 +- + doc/reference/quick-start-using-grilo.xml | 8 ++++---- + src/data/grl-media.c | 6 +++--- + src/grilo.c | 2 +- + src/grl-metadata-source.c | 4 ++-- + src/grl-multiple.c | 2 +- + src/grl-plugin-registry.c | 4 ++-- + src/grl-plugin-registry.h | 2 +- + src/tests/registry.c | 4 ++-- + tools/grilo-inspect/grl-inspect.c | 2 +- + tools/grilo-test-ui/main.c | 18 +++++++++--------- + tools/js/testGrilo.js | 2 +- + tools/vala/grilo-test.vala | 2 +- + 14 files changed, 30 insertions(+), 30 deletions(-) + +commit 85a2b88db709bd5073dd2f343bd09cb300b8c2c3 +Author: Juan A. Suarez Romero +Date: Mon Jul 19 13:58:45 2010 +0200 + + core: Get rid of 'const' in return value + + const modifier in return values is usually used with strings, not other types. + + Get rid of it. + + src/grl-plugin-registry.c | 4 ++-- + src/grl-plugin-registry.h | 8 ++++---- + 2 files changed, 6 insertions(+), 6 deletions(-) + +commit af2bfe599af3e3e0886c69c40974df8ca9ce3433 +Author: Juan A. Suarez Romero +Date: Fri Jul 16 17:56:27 2010 +0200 + + core: Close module if it won't be used + + Close the module if something fails after opening it, so it is not leaking + memory. + + src/grl-plugin-registry.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit cae83df4a62e44207ef8442257c2f55f8c1e8574 +Author: Iago Toral Quiroga +Date: Mon Jul 19 12:21:49 2010 +0200 + + core: documentation fixes. + + src/grl-multiple.c | 38 ++++++++++++++++---------------------- + 1 file changed, 16 insertions(+), 22 deletions(-) + +commit dbcc6cb858dba3e7baf4177080c6804494a96eea +Author: Juan A. Suarez Romero +Date: Fri Jul 16 13:24:13 2010 +0200 + + grl-inspect: Print both Plugin and Source information detail + + Print custom-defined information fields and all available source information. + + tools/grilo-inspect/grl-inspect.c | 55 +++++++++++++++++++-------------------- + 1 file changed, 27 insertions(+), 28 deletions(-) + +commit 13782a5ff084c59e9bba7dec0fd38100f7e85126 +Author: Juan A. Suarez Romero +Date: Fri Jul 16 13:23:52 2010 +0200 + + grl-inspect: Fix leak + + Free list of sources. + + tools/grilo-inspect/grl-inspect.c | 1 + + 1 file changed, 1 insertion(+) + +commit b3346e81da62872edbb05fd8cb727f3b3926f112 +Author: Juan A. Suarez Romero +Date: Fri Jul 16 13:23:14 2010 +0200 + + grl-inspect: Introspect sources, not plugins + + Actually, grl-inspect is intended to introspect sources, not plugins. + + tools/grilo-inspect/grl-inspect.c | 68 ++++++++++++++++++++------------------- + 1 file changed, 35 insertions(+), 33 deletions(-) + +commit 14f4adf658e13346cb22a9cd8f89e827c040f52a +Author: Juan A. Suarez Romero +Date: Fri Jul 16 13:15:01 2010 +0200 + + core: Add function to get a list of defined information keys for a plugin + + As plugins can define their own custom information fields, add a new + grl_media_plugin_get_info_keys() which returns a list with those custom fields + the user can then query. + + src/grl-media-plugin.c | 23 +++++++++++++++++++++++ + src/grl-media-plugin.h | 2 ++ + 2 files changed, 25 insertions(+) + +commit a6e1fc80fbd7b4e1caf203452efe0154423cc11a +Author: Juan A. Suarez Romero +Date: Wed Jul 14 10:18:26 2010 +0200 + + grl-inspect: Show supported keys + + tools/grilo-inspect/grl-inspect.c | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + +commit 5a9e6405083844bf74e484c2b5cd76528ee5fa90 +Author: Juan A. Suarez Romero +Date: Wed Jul 14 10:00:25 2010 +0200 + + grl-inspect: Show supported operations + + tools/grilo-inspect/grl-inspect.c | 31 +++++++++++++++++++++++++++++++ + 1 file changed, 31 insertions(+) + +commit 9a7c6f340175d6f8be75774eb0c89531cb91c341 +Author: Juan A. Suarez Romero +Date: Tue Jul 13 18:56:24 2010 +0200 + + grl-inspect: Show the type of plugin + + Shows if plugin provides Media or Metadata. + + tools/grilo-inspect/grl-inspect.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit d045c692413b21273b0e00d00cf509e2447fe0be +Author: Juan A. Suarez Romero +Date: Tue Jul 13 18:38:33 2010 +0200 + + grl-inspect: Show information about a set of plugins + + Shows information from the plugins specified at command line. + + tools/grilo-inspect/grl-inspect.c | 80 ++++++++++++++++++++++++++++++++++----- + 1 file changed, 70 insertions(+), 10 deletions(-) + +commit 12e2c91a3c9c310aafb5da5cce257eed74d56056 +Author: Juan A. Suarez Romero +Date: Tue Jul 13 09:49:16 2010 +0200 + + grl-inspect: Add delay when listing sources + + As sources are dynamic, some of them can show up after a period of time. + + Add a new parameter to gst-inspect to wait for some seconds before + introspecting the available sources. + + tools/grilo-inspect/grl-inspect.c | 57 ++++++++++++++++++++++++++++++++++----- + 1 file changed, 50 insertions(+), 7 deletions(-) + +commit 8ac83a1dd041ca3c9b25d8ea374d5cb32745a66e +Author: Juan A. Suarez Romero +Date: Mon Jul 12 19:02:16 2010 +0200 + + core: Add library filename to plugin's information + + src/grl-media-plugin.c | 19 +++++++++++++++++++ + src/grl-media-plugin.h | 8 ++++++-- + src/grl-plugin-registry.c | 2 ++ + src/grl-plugin-registry.h | 4 +++- + 4 files changed, 30 insertions(+), 3 deletions(-) + +commit 37156ef125b9f675e5e228c9ae09ad5c6cc65a92 +Author: Juan A. Suarez Romero +Date: Mon Jul 12 18:43:02 2010 +0200 + + grl-inspect: Add grl-inspect utility + + This utility is very similar to gst-inspect: it allows to inspect available + sources and their features. + + configure.ac | 1 + + tools/Makefile.am | 4 ++-- + tools/grilo-inspect/Makefile.am | 30 ++++++++++++++++++++++++ + tools/grilo-inspect/grl-inspect.c | 48 +++++++++++++++++++++++++++++++++++++++ + 4 files changed, 81 insertions(+), 2 deletions(-) + +commit 927c30f42ecbe9e6871eadd6c57543599e13a4c9 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 14:49:59 2010 +0200 + + core: Add synchronous version of grl_metadata_source_set_metadata_sync() function + + src/grl-metadata-source.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 6 ++++ + 2 files changed, 79 insertions(+) + +commit bf6f126770d9b15d721d1dbe9e98769df59634c2 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 14:39:56 2010 +0200 + + core: Add synchronous version of grl_metadata_source_resolve_sync() function + + src/grl-metadata-source.c | 68 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 6 +++++ + 2 files changed, 74 insertions(+) + +commit a0cb88ae84053e345f43da464ef5d25c402d2aba +Author: Juan A. Suarez Romero +Date: Thu Jul 15 14:29:37 2010 +0200 + + core: Add synchronous version of grl_multiple_search() function + + src/grl-multiple.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-multiple.h | 6 ++++ + 2 files changed, 94 insertions(+) + +commit 141c7e1a9db7ef558e12be97dc951fc0ec20367e +Author: Juan A. Suarez Romero +Date: Thu Jul 15 14:22:06 2010 +0200 + + core: Externalize helper functions to create synchronous versions + + Move out of grl-media-source.c functions and structures used to create + synchronous functions based on asynchronous ones. + + So they can be used by other functions besides GrlMediaSource. + + src/Makefile.am | 4 +- + src/grl-media-source.c | 163 +++++++++++++++++++++---------------------------- + src/grl-sync-priv.h | 37 +++++++++++ + src/grl-sync.c | 40 ++++++++++++ + 4 files changed, 151 insertions(+), 93 deletions(-) + +commit 8f485574b04901c7c4ddcad2544e4efed5eee476 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 13:42:43 2010 +0200 + + core: Add synchronous version of grl_media_source_remove() function + + src/grl-media-source.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 5 +++++ + 2 files changed, 58 insertions(+) + +commit f3c65a98885509643405cb8aa7b28c6e7984b7d5 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 13:42:17 2010 +0200 + + core: Add synchronous version of grl_media_source_store() function + + src/grl-media-source.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 6 +++++- + 2 files changed, 63 insertions(+), 1 deletion(-) + +commit cd6eeb03e43b5dcce1877a6a280c6a03f8e13ba3 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 13:40:52 2010 +0200 + + core: Add synchronous version of grl_media_source_query() function + + src/grl-media-source.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 8 ++++++++ + 2 files changed, 64 insertions(+) + +commit 379e3863ff166be8bcf174d0521d0ecadb9aa564 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 13:40:09 2010 +0200 + + core: Add synchronous version of grl_media_source_search() function + + src/grl-media-source.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 8 ++++++++ + 2 files changed, 64 insertions(+) + +commit c5540827245123a0f13db093a0f34502eceaa899 +Author: Juan A. Suarez Romero +Date: Mon Jul 12 14:07:42 2010 +0200 + + core: Add synchronous version of grl_media_source_browse() function + + src/grl-media-source.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 8 +++++ + 2 files changed, 97 insertions(+) + +commit c5ae7759b267081aca8865e5d1a4e70919e1eebe +Author: Juan A. Suarez Romero +Date: Mon Jul 12 14:03:10 2010 +0200 + + core: Add synchronous version of grl_media_source_metadata() function + + Most of Grilo functions are asynchronous. + + But there are some cases, when user do not want to deal with asynchronous + stuff, that having the appropriate synchronous verison would be useful. + + So this patch adds this sychronous version in grl_media_source_metadata() for + free. This means that plugin author should not worry about dealing with + synchronous versions of the calls; she just implemement the asynchronous one, + as usual. Grilo will use this asynchronous version to implement a synchronous + one over it. + + While running grl_media_source_metadata_sync() function, all remaining events + and idle functions are still functions, so they will be received and executed + even when waiting for the operation to be completed. + + src/grl-media-source.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 7 ++++ + 2 files changed, 95 insertions(+) + +commit 25f081efcabeeb6026e6eb2a7822c68d044bcd01 +Author: Juan A. Suarez Romero +Date: Thu Jul 15 10:16:45 2010 +0200 + + grilo-test-ui: Add functions to authorize Flickr access + + Instead of being based on an external library, add required code in test-ui + itself to get frob, token and login link. + + Users can take a look at this code to know how to get a valid token. + + configure.ac | 5 +- + tools/grilo-test-ui/Makefile.am | 4 +- + tools/grilo-test-ui/flickr-auth.c | 257 ++++++++++++++++++++++++++++++++++++++ + tools/grilo-test-ui/flickr-auth.h | 43 +++++++ + tools/grilo-test-ui/main.c | 26 +--- + 5 files changed, 310 insertions(+), 25 deletions(-) + +commit 94bdc216e16faca154d5ebdf107822e5cfec0a1e +Author: Juan A. Suarez Romero +Date: Wed Jul 7 17:34:40 2010 +0200 + + grilo-test-ui: Ask once for Flickr's authorization + + tools/grilo-test-ui/main.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit ac2c4dc1d535d4cd4f8dd66bd3b5c0d69b92f2e0 +Author: Juan A. Suarez Romero +Date: Wed Jul 7 17:27:04 2010 +0200 + + grilo-test-ui: Add a menu item to authorize Flickr access + + tools/grilo-test-ui/main.c | 29 +++++++++++++++++++++++------ + 1 file changed, 23 insertions(+), 6 deletions(-) + +commit d000964df21a64df37aa065b6e2099b2bdc04788 +Author: Juan A. Suarez Romero +Date: Wed Jul 7 17:15:19 2010 +0200 + + grilo-test-ui: Request Flickr authorization + + Shows a window so user can authorize (if it was not done) access to his Flickr + account. + + configure.ac | 5 ++ + tools/grilo-test-ui/Makefile.am | 10 +-- + tools/grilo-test-ui/main.c | 133 +++++++++++++++++++++++++++++++++++++++- + 3 files changed, 141 insertions(+), 7 deletions(-) + +commit 58e6c92be8547b1bd7e1afc89441811d05805d8d +Author: Juan A. Suarez Romero +Date: Tue Jul 6 17:07:27 2010 +0200 + + grilo-test-ui: Load Flickr's token from gconf + + If user has set up a token in gconf (/apps/grilo-test-ui/auth-token) then it + will be used. + + configure.ac | 7 +++++-- + tools/Makefile.am | 2 +- + tools/grilo-test-ui/Makefile.am | 4 ++-- + tools/grilo-test-ui/main.c | 31 +++++++++++++++++++++++++++++-- + 4 files changed, 37 insertions(+), 7 deletions(-) + +commit 2317ad79021fca088dd46486c088ea247d65f2c4 +Author: Juan A. Suarez Romero +Date: Mon Jul 12 10:58:15 2010 +0200 + + core: Make grl_media_source_metadata() cancelable + + Asynchronous functions should be cancelable. + + src/grl-media-source.c | 28 +++++++++++++++++++++------- + src/grl-media-source.h | 14 ++++++++------ + 2 files changed, 29 insertions(+), 13 deletions(-) + +commit 0c725a07a5eac6aea6e5060c3d10f9441611ce5a +Author: Juan A. Suarez Romero +Date: Tue Jul 13 14:08:09 2010 +0200 + + core: Fix leak + + Free error. + + src/grl-metadata-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit 2abcef227c1f03dbb05aa6648b5ee799bc949392 +Author: Juan A. Suarez Romero +Date: Tue Jul 13 12:30:00 2010 +0200 + + core: Annotate GrlMetadataSetMetadataCb + + Fix a problem with gobject-introspection 0.9.3. + + src/grl-metadata-source.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ff2a0209df3fcbf5ecfa128dcca337cd5383aeb5 +Author: Joaquim Rocha +Date: Tue Jun 15 19:04:16 2010 +0200 + + grl-plugin-registry.c: Use the plugin conf dir and the plugin's ID to get its XML + + src/grl-plugin-registry.c | 29 +++++------------------------ + 1 file changed, 5 insertions(+), 24 deletions(-) + +commit ab1a42f028ab2b9029cce6d0d9b5572efaca5beb +Author: Joaquim Rocha +Date: Tue Jun 15 19:03:21 2010 +0200 + + Add plugins' configuration directory from autotools + + configure.ac | 9 +++++++++ + src/Makefile.am | 2 ++ + 2 files changed, 11 insertions(+) + +commit ed7b6ad215bfcc7d87449517f4f59e75349b6630 +Author: Juan A. Suarez Romero +Date: Mon Jul 12 11:10:31 2010 +0200 + + core: Rename function to get operation id + + Previously it was making reference to browse, while actually it would make + reference to more abstract "operation". + + src/grl-media-source.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +commit 880ad3d1ab6f70ef26916b8fefe0f9aabc9c0159 +Author: Juan A. Suarez Romero +Date: Mon Jul 12 10:24:06 2010 +0200 + + core: Rename browse_id to operation_id + + Actually, browse_id can be an identifier for browse, search or query. + + So operation_id makes more sense. + + src/grl-media-source.c | 4 ++-- + src/grl-media-source.h | 8 ++++---- + 2 files changed, 6 insertions(+), 6 deletions(-) + +commit 503afdfa9beb8c572c612a92277872df261770d3 +Author: Iago Toral Quiroga +Date: Mon Jul 12 10:16:53 2010 +0200 + + Required version of automake is 1.10. + Fixes #620143 + + autogen.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b8899ba55ae1f4c5c4edb8d060dd8aefbb007dfd +Author: Juan A. Suarez Romero +Date: Thu Jul 8 11:20:26 2010 +0200 + + Fix documentation typos + + src/grl-media-source.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit ac5f23484a1cf9c56a5ef8d9fdbc67110d6589b7 +Author: Juan A. Suarez Romero +Date: Thu Jul 8 11:18:30 2010 +0200 + + Comment grl_multiple_cancel() function + + src/grl-multiple.c | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +commit da41c19bf714f37df4d40db068f81fa870e0c253 +Author: Juan A. Suarez Romero +Date: Thu Jul 8 11:18:12 2010 +0200 + + Comment grl_multiple_search() function + + src/grl-multiple.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +commit 2d8d2c847bdb2267a5242183f50e53259bdde84f +Author: Simón Pena +Date: Wed Jul 7 18:12:43 2010 +0200 + + doc: Corrected obsolete tags + + * Removed tags no longer used + * Renamed tags "left behind", not up to date to the code + + src/data/grl-media.h | 2 +- + src/grl-plugin-registry.c | 2 +- + src/grl-plugin-registry.h | 12 ------------ + 3 files changed, 2 insertions(+), 14 deletions(-) + +commit c3999a473482db2ed5ef0f48eac76068d4393c1e +Author: Simón Pena +Date: Wed Jul 7 18:12:42 2010 +0200 + + doc: Minor corrections + + Corrected some typos and repeated words + + doc/reference/quick-start-using-grilo.xml | 8 ++++---- + src/data/grl-media.h | 2 +- + src/grl-plugin-registry.c | 6 +++--- + src/grl-plugin-registry.h | 4 ++-- + 4 files changed, 10 insertions(+), 10 deletions(-) + +commit 012f572e83213de59bb5fe718b72dc3c18d0cb8a +Author: Simón Pena +Date: Wed Jul 7 18:12:41 2010 +0200 + + doc: Added grl_init call + + Replaced g_type_init with grl_init in the examples provided + + doc/reference/quick-start-using-grilo.xml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 8b01b7aae15f2123b16eb65ad6bdbff26013d557 +Author: Juan A. Suarez Romero +Date: Mon Jul 5 17:16:26 2010 +0200 + + Remove Flickr's token + + Actually, we do not require to authenticate Flickr to use it. + + tools/grilo-test-ui/main.c | 2 -- + 1 file changed, 2 deletions(-) + +commit 9fa85828fa5cc4f6041fabbc0b231d173ad1c4c6 +Author: iain +Date: Mon Jul 5 14:16:49 2010 +0200 + + keys: Add extra system metadata keys + + Add certificate, studio and license metadata keys. + + src/data/grl-media.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-key.c | 28 ++++++++++++++++++++++ + src/grl-metadata-key.h | 41 +++++++++++++++++--------------- + 3 files changed, 113 insertions(+), 19 deletions(-) + +commit 4a74f0a7380a696e4c0766848dde1779e56ac985 +Author: Iago Toral Quiroga +Date: Mon Jul 5 13:53:01 2010 +0200 + + grilo-test-ui: Added debug traces for metadata values (useful when testing + URLs). + + tools/grilo-test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit b580c9220d8b5094543bdee09cfacfd091464c56 +Author: Iago Toral Quiroga +Date: Mon Jul 5 13:50:47 2010 +0200 + + core: added GRL_METADATA_KEY_EXTERNAL_URL and GRL_METADATA_KEY_EXTERNAL_PLAYER + + src/data/grl-media.h | 42 ++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-key.c | 19 +++++++++++++++++++ + src/grl-metadata-key.h | 2 ++ + 3 files changed, 63 insertions(+) + +commit 32adada6ab09c8622a94c08bc6fc80ebcfe2a607 +Author: Juan A. Suarez Romero +Date: Fri Jul 2 13:23:18 2010 +0200 + + Remove flickr FROB key + + It is unused. + + tools/grilo-test-ui/main.c | 1 - + 1 file changed, 1 deletion(-) + +commit a6d3c05ed90c84bffee0c5d36655db98f3d03abf +Author: Juan A. Suarez Romero +Date: Fri Jul 2 13:17:08 2010 +0200 + + Add function to get a GList from a varadic list of pointers + + grl_metadata_key_list_new() is defined as a macro for this function. + + It can be useful to create quickly a list of sources, metadata keys, etc. + + src/grl-metadata-key.c | 18 ------------------ + src/grl-metadata-key.h | 14 ++++++-------- + src/grl-util.c | 26 ++++++++++++++++++++++++++ + src/grl-util.h | 2 ++ + 4 files changed, 34 insertions(+), 26 deletions(-) + +commit 323b139d8bef1c05b68ce9667750ad82519e22c5 +Author: Juan A. Suarez Romero +Date: Thu Jun 17 16:55:26 2010 +0200 + + Add utility for services needing page_size + page_number + + Grilo relies in offset + count to make pagination. + + But there are services like Jamendo that needs the page_number and size of + page. + + For these cases, a new utility function helps user to compute page_number and + offset inside the page where she needs to start looking for data. Also it + returns an "optimal" value for page size. This optimal value is the minimum + page size needed to retrieve the data in just one query to backend. + + src/Makefile.am | 5 ++-- + src/grilo.h | 1 + + src/grl-util.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-util.h | 43 +++++++++++++++++++++++++++++ + 4 files changed, 132 insertions(+), 2 deletions(-) + +commit 9d0ad39ebe41ac4e1bff84cee1354b4b8474e262 +Author: Juan A. Suarez Romero +Date: Thu Jun 17 08:57:49 2010 +0200 + + Allow for empty values when unserializing data + + It is possible that user serializes, partially or fully, a key with an empty + string. + + In this case, unserialization should recover that value. + + src/data/grl-media.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 6c5ecbda5a3bcdb3432874edb9321b955a72ad94 +Author: Juan A. Suarez Romero +Date: Tue Jun 15 18:57:52 2010 +0200 + + Check media when resolving key dependencies + + When requesting metadata() for a media, it could be possible that one of the + requested keys depends on another key which value is already set in media + (because a previous operation already set it, or because client set it + manually). + + In this case, we can consider that the requested key can be satisfied, so it is + not needed to check if the dependent key can be provided by any source. + + src/grl-media-source.c | 11 ++++------- + src/grl-metadata-source-priv.h | 1 + + src/grl-metadata-source.c | 39 ++++++++++++++++++++++++++++++++------- + 3 files changed, 37 insertions(+), 14 deletions(-) + +commit 7088acd9e63105c66a3b560f07907b4de67be3a0 +Author: Juan A. Suarez Romero +Date: Tue Jun 15 16:59:13 2010 +0200 + + Update gtk-doc + + grl_metadata_source_key_depends() returns NULL if source is not able to resolve + the key. + + src/grl-metadata-source.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit fad9f6572b34927426b84959d96863ee5eff2fa4 +Author: Juan A. Suarez Romero +Date: Tue Jun 15 14:22:04 2010 +0200 + + Fix doc typo + + src/grl-metadata-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 435c29dfe8326ea2492f3c9b1f578b2515a2b7a0 +Author: Juan A. Suarez Romero +Date: Tue Jun 15 13:34:12 2010 +0200 + + Print key name when debugging + + It is more clear than printing the key id. + + src/grl-metadata-source.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 1e0cf1d30016ca9acb731b8d1cd3862c2c1b6abf +Author: Iago Toral Quiroga +Date: Tue Jun 15 12:47:06 2010 +0200 + + core: fixed memory leak. + + src/grl-multiple.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 7afcd8adf6310cbed3b87e274eb9ddab19a44b6c +Author: Iago Toral Quiroga +Date: Tue Jun 15 11:38:51 2010 +0200 + + test-ui: Adapted to changes in grl_multiple_search API. + + tools/grilo-test-ui/main.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit e8198c09e89fc3683887f8e7e785eea690ccf48e +Author: Iago Toral Quiroga +Date: Tue Jun 15 11:38:06 2010 +0200 + + core: Let grl_multiple_search() admit a list of target sources + core: Added explanatory comments to the code implementing grl_multiple_search() + + src/grl-multiple.c | 79 +++++++++++++++++++++++++++++++++++++----------------- + src/grl-multiple.h | 3 ++- + 2 files changed, 56 insertions(+), 26 deletions(-) + +commit 2d9287eb8f12429e02f9826ddb839b62b5e6b7da +Author: Juan A. Suarez Romero +Date: Tue Jun 15 10:21:24 2010 +0200 + + Initialize GLib type system + + src/grilo.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit e31da4b15ffa6a9a4c2581442754e30766a3fed4 +Author: Juan A. Suarez Romero +Date: Tue Jun 15 10:18:40 2010 +0200 + + Return Grilo Option group + + Add a function to get the GOptionGroup with generic options for Grilo. + + This group can be added to default application options. + + src/grilo.c | 34 +++++++++++++++++++++------------- + src/grilo.h | 4 ++++ + 2 files changed, 25 insertions(+), 13 deletions(-) + +commit c668fdb55522aeada6f692d7b8ea428774a8294c +Author: Iago Toral Quiroga +Date: Mon Jun 14 16:14:51 2010 +0200 + + [core] Changed multiple search implementation so that we guarantee + we emit as many results as requested (when possible). + + src/grl-multiple.c | 360 ++++++++++++++++++++++++++++++++++++++++------------- + 1 file changed, 275 insertions(+), 85 deletions(-) + +commit 320d41467a7c46b171a7e8c872f1c353c1ce3ed6 +Author: Iago Toral Quiroga +Date: Mon Jun 14 16:14:20 2010 +0200 + + [test-ui] Fixed compilation warning + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit dcbf9c765a7adbbb59990cad8f7a7d7325e2216b +Author: Iago Toral Quiroga +Date: Wed Jun 2 10:39:22 2010 +0200 + + [core] Revert changes to make grl_media_source_gen_browse_id protected. + This is not needed any more. + + src/Makefile.am | 3 +-- + src/grl-media-source-priv.h | 41 ----------------------------------------- + src/grl-media-source.c | 18 ++++++++++-------- + src/grl-multiple.c | 1 - + 4 files changed, 11 insertions(+), 52 deletions(-) + +commit 01c0ffc875a6482b85c47d03d4718b1c2a4705a5 +Author: Iago Toral Quiroga +Date: Wed Jun 2 10:19:37 2010 +0200 + + [test-ui] Call grl_multiple_cancel to cancel multiple search operations. + + tools/grilo-test-ui/main.c | 33 ++++++++++++++++++++------------- + 1 file changed, 20 insertions(+), 13 deletions(-) + +commit b4f8f0708fe0a1e86129fdef4ebd2ba8d0830ab9 +Author: Iago Toral Quiroga +Date: Wed Jun 2 10:18:55 2010 +0200 + + [core] Added grl_multiple_cancel + + src/grl-multiple.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++---- + src/grl-multiple.h | 2 ++ + 2 files changed, 94 insertions(+), 7 deletions(-) + +commit 1bb329c995c1407aafc5a6c7b7e2ae55a2572c8c +Author: Iago Toral Quiroga +Date: Wed Jun 2 08:51:19 2010 +0200 + + [core] Handle "no searchable sources available" situation in grl_multiple_search + + src/grl-multiple.c | 46 ++++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 42 insertions(+), 4 deletions(-) + +commit 07103d869948ecfd063bbd3d631cf02790541cc4 +Author: Iago Toral Quiroga +Date: Wed Jun 2 08:27:51 2010 +0200 + + [core] Removed trailing whitespaces + + src/grl-multiple.c | 8 ++++---- + tools/grilo-test-ui/main.c | 1 - + 2 files changed, 4 insertions(+), 5 deletions(-) + +commit 46e8997b17f502462856af9a52aa68c09e9d4756 +Author: Iago Toral Quiroga +Date: Tue Jun 1 17:01:03 2010 +0200 + + [test-ui] Fixed leaks because of unnecesary string duppings. + + tools/grilo-test-ui/main.c | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +commit 130786857b858fb7dade241cd1b80613ecc38f85 +Author: Iago Toral Quiroga +Date: Tue Jun 1 16:59:09 2010 +0200 + + [test-ui] Added support for multiple search() + + tools/grilo-test-ui/main.c | 39 +++++++++++++++++++++++++++++++-------- + 1 file changed, 31 insertions(+), 8 deletions(-) + +commit 91de9cbd997dd7f0c7aa3e7bc0daccccfaaade25 +Author: Iago Toral Quiroga +Date: Tue Jun 1 16:49:55 2010 +0200 + + [core] Added preconditions to grl_multiple_search + + src/grl-multiple.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit a40860c02ce4b1dd963346bca1a5a9d9df46f311 +Author: Iago Toral Quiroga +Date: Tue Jun 1 16:46:34 2010 +0200 + + [core] Added grl_multiple_search API. + + src/Makefile.am | 4 +- + src/grilo.h | 1 + + src/grl-multiple.c | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-multiple.h | 42 ++++++++++++++ + 4 files changed, 203 insertions(+), 1 deletion(-) + +commit f41e11180b3867c017f20bb2330ec52404949157 +Author: Iago Toral Quiroga +Date: Tue Jun 1 16:44:52 2010 +0200 + + [core] Make grl_media_source_gen_browse_id protected + + src/Makefile.am | 6 ++++-- + src/grl-media-source-priv.h | 41 +++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.c | 5 +---- + 3 files changed, 46 insertions(+), 6 deletions(-) + +commit 90514bc716d4b1f225ceeb80f7d3fc9b66d1b016 +Author: Iago Toral Quiroga +Date: Tue Jun 1 16:40:44 2010 +0200 + + [core] Do not setup auto-split when count is lower than threshold + in search and query opeations. + + src/grl-media-source.c | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +commit 9ef33e93cf62eb89fe555e065f6698c063a61b86 +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:24 2010 +0200 + + Print debug info from plugins + + tools/grilo-test-ui/main.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit 5286d2f8e7c60106b63050a0acdaf3d6bb41b412 +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:23 2010 +0200 + + Add finalize function to GrlMediaPlugin + + src/grl-media-plugin.c | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +commit 0e8616a2466b4026ca285c12402e8d989e1162ad +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:22 2010 +0200 + + Use grl_media_plugin_get_info to retrieve default info + + Uses the mentioned function when retrieving the author, description, + license and site and moves them to the header file as defines. + + src/grl-media-plugin.c | 97 -------------------------------------------------- + src/grl-media-plugin.h | 79 ++++++++++++++++++++++++++++++++++++---- + 2 files changed, 72 insertions(+), 104 deletions(-) + +commit 13d9986564209ffaa79115d19106109307f9ec7c +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:21 2010 +0200 + + Add grl_media_plugin_get_info and plugin's keys defines + + The grl_media_plugin_get_info retrieves the optional info from the plugin, + which correspond's to the plugin's XML. + + src/grl-media-plugin.c | 21 +++++++++++++++++++++ + src/grl-media-plugin.h | 12 ++++++++++++ + 2 files changed, 33 insertions(+) + +commit b4998b0f6b7016a9a446d85916c068a480bc2919 +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:20 2010 +0200 + + Get plugins' info from XML file + + Builds the XML from the library name and parses it to retrieve the + plugin's info. + + src/grl-plugin-registry.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 80 insertions(+) + +commit f05711dcee0c27ce934a4b2236d8cc3f62f31ae2 +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:19 2010 +0200 + + Use a hashtable for plugins' info + + Removes the usage of strings in the GrlPluginInfo struct (apart from the id) + and adds a hashtable for that purpose. + + Also removes the check for the plugin's name when loading it since the name + is now optional. + + src/grl-plugin-registry.c | 3 +-- + src/grl-plugin-registry.h | 28 +++++----------------------- + 2 files changed, 6 insertions(+), 25 deletions(-) + +commit 097e84fa4ad676c9bd45364ae2f01a7157b20784 +Author: Joaquim Rocha +Date: Fri Jun 11 21:38:18 2010 +0200 + + Add libxml-2.0 dependency + + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 1211b258fe8129e24bbae65793184269be40f0b5 +Author: Juan A. Suarez Romero +Date: Thu Jun 10 18:44:53 2010 +0200 + + Move g_module_supported() to grl_init() + + All requirements should be checked in grl_init(). + + src/grilo.c | 5 +++++ + src/grl-plugin-registry.c | 4 ---- + 2 files changed, 5 insertions(+), 4 deletions(-) + +commit dbc3bac313a8b6e0c435c2edac452153b94e78aa +Author: Juan A. Suarez Romero +Date: Thu Jun 10 18:40:48 2010 +0200 + + Add Grilo command-line options + + Allow all Grilo-based applications to receive command-line options affecting + Grilo. + + Right now, there is just one option: --grl-plugin-path. It allows to set the + default plugins dir, and overrides the GRL_PLUGIN_PATH envvar. + + src/grilo.c | 34 +++++++++++++++++++++++++++++----- + 1 file changed, 29 insertions(+), 5 deletions(-) + +commit 18e08afebc60a225c881e304955b19c37bf56991 +Author: Juan A. Suarez Romero +Date: Thu Jun 10 17:04:58 2010 +0200 + + Set default plugin directories in grl_init() + + Added a function to registry, grl_plugin_registry_add_directory(), to add a + directory to default list of directoies where grl_plugin_registry_load_all() + will look when loading plugins. + + In this patch, grl_plugin_load_all() does not have any "default" plugins + directory. Instead, grl_init() will use grl_plugin_registry_add_directory() to + specify the list of directories. + + These are obtained first from GRL_PLUGIN_PATH envvar if defined, and if not + then using the default plugin directory. + + Developers can add more directories just invoking + grl_plugin_registry_load_all() after initialized Grilo. + + src/grilo.c | 18 ++++++++++++++++++ + src/grl-plugin-registry.c | 47 +++++++++++++++++++++++++++-------------------- + src/grl-plugin-registry.h | 3 +++ + 3 files changed, 48 insertions(+), 20 deletions(-) + +commit 9696f6dfd8a95548ebc98d7144d87fe00d1cf5ac +Author: Juan A. Suarez Romero +Date: Thu Jun 10 14:22:07 2010 +0200 + + Add grl_init() function + + It initializes all stuff required in Grilo. + + More specifically: + + - It registers default metadata keys in the registry. + - It registers grilo media types in glib type-system. + + src/Makefile.am | 2 +- + src/grilo.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grilo.h | 6 ++++++ + src/grl-plugin-registry.c | 2 -- + tools/grilo-test-ui/main.c | 1 + + 5 files changed, 58 insertions(+), 3 deletions(-) + +commit ecf9bf4a6405915c5211636ec7d1801b043df714 +Author: Joaquim Rocha +Date: Fri Jun 11 10:36:30 2010 +0200 + + Add verifications to the beginning of functions + + src/grl-plugin-registry.c | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +commit 10398b269480ab67e0712e305d3d06ad3f2774a4 +Author: Joaquim Rocha +Date: Fri Jun 11 10:36:29 2010 +0200 + + Add verifications to the beginning of functions + + src/grl-metadata-source.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit e8745b4c0c2fad8ae6d747f2253a08f29296b89c +Author: Juan A. Suarez Romero +Date: Thu Jun 10 12:13:16 2010 +0200 + + Fix serialize() for root categories + + So far, serialization required that GrlMedia had an ID. But root categories do + have ID==NULL, so they could not be serialized. + + Fix it by allowing serialization (and unserialization too) for medias with + ID==NULL. + + src/data/grl-media.c | 62 ++++++++++++++++++++++++---------------------------- + 1 file changed, 28 insertions(+), 34 deletions(-) + +commit 39012c578c89b967bdd0c23ed60afd8fd4605a3e +Author: Juan A. Suarez Romero +Date: Mon Jun 7 17:04:45 2010 +0200 + + Check if key is NULL + + Add some checkpoints in GrlData functions to be sure key is not NULL. + + src/data/grl-data.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit e6a4ed06158a3948a600889a9ce999e09a21d34a +Author: Juan A. Suarez Romero +Date: Mon Jun 7 17:01:19 2010 +0200 + + Check that value has expected type defined in key specification + + src/data/grl-data.c | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +commit c270e0a59371336be1389837be201305d5b3c5f0 +Author: Juan A. Suarez Romero +Date: Mon Jun 7 15:32:20 2010 +0200 + + Adjust key value accordingly to the key specification + + src/data/grl-data.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +commit fc2f71ce9d239ab0f77bd8b32ac37db12ddb6a08 +Author: Juan A. Suarez Romero +Date: Mon Jun 7 14:15:17 2010 +0200 + + Refactor grl_media_unserialize() + + Use the new metadata key system to find out which type should be used for each + key. + + src/data/grl-media.c | 60 +++++++++++++++++++------------------------------- + src/grl-metadata-key.h | 1 + + 2 files changed, 24 insertions(+), 37 deletions(-) + +commit 7cae09b7683555d9718fbed13edc241758581643 +Author: Juan A. Suarez Romero +Date: Mon Jun 7 10:22:44 2010 +0200 + + [core] Rework metadata key system + + One of the initial goals of Grilo was that metadata keys should be dynamic: + besides having a pre-defined set of keys, both users and plugin's developers + should be able to add their own keys. So far, this goal was not addressed + properly. + + The aim of this patch is that users/developers can add their own keys while + keeping one of the key features of current system: comparing keys must be quick + (this is how string-based keys were discarded). + + In previously system, GrlKeyID were just numbers; in the new one, GrlKeyID are + pointers to GParamSpec. Being pointers, means that comparison can be done + quickly. + + What are the main changes? + + - No need for GRLKEYID_TO_POINTER / POINTER_TO_GRLKEYID: keys can be added + directly to GLists. + - grl_plugin_registry_lookup_metadata_key() changed: returns the GrlKeyID with + name specified. + - GRL_METADATA_KEY_FOO are still kept, but now they are variables instead of + definitions. + - No need for GrlMetadataKey: GrlKeyID has the required data. Thus + GRL_METADATA-KEY_GET_{NAME/ID/DESC} require a GrlKeyID. + - Added grl_plugin_registry_register_metadata_key (): registers a new key in + the system. Key is built as a GParamSpec. + + src/Makefile.am | 9 +- + src/data/grl-data.c | 15 ++-- + src/data/grl-media.c | 37 ++++---- + src/grl-metadata-key-priv.h | 32 +++++++ + src/grl-metadata-key.c | 214 +++++++++++++++++++++++++++++++++++++++++++- + src/grl-metadata-key.h | 142 +++++++---------------------- + src/grl-metadata-source.c | 33 +++---- + src/grl-plugin-registry.c | 111 +++++++++++------------ + src/grl-plugin-registry.h | 7 +- + tools/grilo-test-ui/main.c | 8 +- + 10 files changed, 379 insertions(+), 229 deletions(-) + +commit 596aac2525699603b09b9aa09147704f0aab4be8 +Author: Xabier Rodriguez Calvar +Date: Tue Jun 8 11:50:32 2010 +0200 + + [test-ui] Fixed horizontal scroll of metadata view + + tools/grilo-test-ui/main.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +commit 70ccf52bdb9e3671c4b538e567d22f11f9b10452 +Author: Xabier Rodriguez Calvar +Date: Tue Jun 8 11:50:09 2010 +0200 + + [test-ui] Fixed horizontal scroll of media list + + tools/grilo-test-ui/main.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +commit 1d7ed85c8fc00d2841fac4c6b687080165cd7d08 +Author: Xabier Rodriguez Calvar +Date: Tue Jun 8 10:45:32 2010 +0200 + + [test-ui] Replaced hbox with hpaned + + Now we can move bar between both panels. + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f7c347492782d61a54ddd798db882fdc067fad9b +Author: Juan A. Suarez Romero +Date: Mon Jun 7 19:53:10 2010 +0200 + + [test-ui] Show all available metadata keys + + tools/grilo-test-ui/main.c | 26 +++++++++----------------- + 1 file changed, 9 insertions(+), 17 deletions(-) + +commit d6dc9e78c10b452c3c762a4bcb845670f84cf5d5 +Author: Juan A. Suarez Romero +Date: Thu Jun 3 21:23:56 2010 +0200 + + Use GRL_KEYID_FORMAT when printing a key + + Do not force to a specific format (in this case, to %u), but use + GRL_KEYID_FORMAT instead. + + src/grl-metadata-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 0e20cd0309fb42b217bafd31e2df1d7a881f9089 +Author: Juan A. Suarez Romero +Date: Tue Jun 1 12:37:18 2010 +0200 + + Use different serializations approaches + + When using grl_media_serialize_extended() function, three different approaches + to perform serialization can be specified: + + - GRL_MEDIA_SERIALIZE_BASIC: it just uses "id" and "source" to serializes the + media. Remaining properties are ignored (equivalent to old invocation + grl_media_serialize (media, FALSE)). + + - GRL_MEDIA_SERIALIZE_FULL: it uses all properties in media to serialize + (equivalent to old invocation grl_media_serialize (media, TRUE)). + + - GRL_MEDIA_SERIALIZE_PARTIAL: it uses "id", "source", and a subset of + properties to serialize media. Remaining properties are ignored. It requires + a third parameter to specify a list of properties to be used. + + GList *keylist = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_URL, + NULL); + gchar *serial = grl_media_serialize (media, + GRL_MEDIA_SERIALIZE_PARTIAL, + keylist); + g_list_free (keylist) + + src/data/grl-media.c | 135 +++++++++++++++++++++++++++++++-------------------- + src/data/grl-media.h | 9 +++- + 2 files changed, 91 insertions(+), 53 deletions(-) + +commit f4a89f9d61b865724d018fb9f218ead8c7f29545 +Author: Juan A. Suarez Romero +Date: Tue Jun 1 12:06:59 2010 +0200 + + Add grl_media_serialize_extended() function. + + This is the function that actually will perform serialization. + + grl_media_serialize() is just a wrapper that makes a basic serialization (just + taking in account both source and id properties, getting rid of remaining + properties). + + src/data/grl-media.c | 20 ++++++++++++++++++-- + src/data/grl-media.h | 5 ++++- + 2 files changed, 22 insertions(+), 3 deletions(-) + +commit 23bb8039f928b73d06744d5f24a56c54c6008589 +Author: Juan A. Suarez Romero +Date: Tue Jun 1 11:42:25 2010 +0200 + + Use get_metadata_keys() in serialize/unserialize + + Use the new function to get all available keys. + + src/data/grl-media.c | 53 +++++++--------------------------------------------- + 1 file changed, 7 insertions(+), 46 deletions(-) + +commit 65914148e1a5d7a6ce2493b47ffe6920b82bf90b +Author: Juan A. Suarez Romero +Date: Tue Jun 1 11:41:33 2010 +0200 + + Add get all registered keys function + + This new function allows to get all available registered keys from registry. + + src/grl-plugin-registry.c | 21 +++++++++++++++++++++ + src/grl-plugin-registry.h | 2 ++ + 2 files changed, 23 insertions(+) + +commit 6df70b83f518aa5d66d8a65b258df6d8744e1b53 +Author: Juan A. Suarez Romero +Date: Thu May 27 19:55:14 2010 +0200 + + Document serialize() / unserialize() functions + + src/data/grl-media.c | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +commit 7922a67f2f13b129610cfa192401f35932644dd2 +Author: Juan A. Suarez Romero +Date: Thu May 27 17:46:58 2010 +0200 + + Unserialize all properties + + This commit improves the previous version of unserialize() function. + + Now, if the uri provided contains also properties, then they are added to the + media. + + src/data/grl-media.c | 101 ++++++++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 96 insertions(+), 5 deletions(-) + +commit 5063c4e2cee62a037c6a8e50c0e88dc80784ebba +Author: Juan A. Suarez Romero +Date: Tue May 25 20:05:53 2010 +0200 + + Serialize all properties + + This is an improvement in serialize() function. + + It allows to specify if serializing should include also all media properties. + + Thus, when unserializing it all properties can be recovered in the media, and + not only "id" and "source". + + src/data/grl-media.c | 83 +++++++++++++++++++++++++++++++++++++++++++++------- + src/data/grl-media.h | 3 +- + 2 files changed, 74 insertions(+), 12 deletions(-) + +commit da61ca03905fd367c3b236bd8424cf24c2e5a2e8 +Author: Juan A. Suarez Romero +Date: Tue May 25 16:41:55 2010 +0200 + + Do not use whitespaces in key names + + src/grl-metadata-key.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 6cfb99470a4ef658b55907108f90dc55f129ac41 +Author: Juan A. Suarez Romero +Date: Tue May 25 16:21:24 2010 +0200 + + Add unserialize() function + + This function rebuilds a Grilo Media from a URI. + + See grl_media_serialize() for more information. + + src/data/grl-media.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 2 ++ + 2 files changed, 71 insertions(+) + +commit 896c38c83ba27fba79ad73a52fb21f705e5ad481 +Author: Juan A. Suarez Romero +Date: Tue May 25 13:20:21 2010 +0200 + + Add a serializing function for medias + + It returns a string that represent a media. + + Lot of times, having a "serialized" version of a media is very useful. For + instance, one can save this serial in a list, or send it to a non-grilo + compliant application. + + Then, the media can be recovered from the serial. + + Serial follows the same scheme as an URI: + + :/// + + As it can be seen, both "id" and "source" are required in media in order to + build the serial. + + denotes the type of media we are dealing with. Thus, we will have: + + GrlMedia => "grl" + GrlMediaAudio => "grlaudio" + GrlMediaVideo => "grlvideo" + GrlMediaBox => "grlbox" + GrlMediaImage => "grlimage" + + It is worth to tell that the implementation takes in account future new medias. + Thus, if in future a GrlMediaFoo type is added, then will be "grlfoo" + for this new media, without needing changes in code. + + src/data/grl-media.c | 35 +++++++++++++++++++++++++++++++++++ + src/data/grl-media.h | 3 +++ + 2 files changed, 38 insertions(+) + +commit ebec3aac22a7edb65cff4ae90a7d94fe3e83ef08 +Author: Iago Toral Quiroga +Date: Mon May 31 11:01:25 2010 +0200 + + [test-ui] Request media description + + tools/grilo-test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit 7e1a75c1bd91495755c620c55dad8ef8ad681cfb +Author: Eduardo Lima Mitev +Date: Thu Apr 29 15:09:29 2010 +0200 + + Changes gir/typelib prefix from Grilo to Grl + + Partially fixes GB#616961. + + src/Makefile.am | 12 ++++++------ + tools/js/testGrilo.js | 14 +++++++------- + 2 files changed, 13 insertions(+), 13 deletions(-) + +commit 6887f041e9807581903b48651d75b884a1e6ea9d +Author: Juan A. Suarez Romero +Date: Wed May 12 11:49:06 2010 +0200 + + Use autosplit only if user is requesting more elements than autosplit threshold + + src/grl-media-source.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 3ac33270ff3303d770a4bf692994ce225cd28381 +Author: Juan A. Suarez Romero +Date: Fri May 7 20:03:30 2010 +0200 + + Include silent macro in extra dist + + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit ba3cdb6dd767bdd30145ad93aec17639bc77e19a +Author: Juan A. Suarez Romero +Date: Fri May 7 09:38:36 2010 +0200 + + Bumped to version 0.1.5 + + NEWS | 13 +++++++++++++ + configure.ac | 2 +- + 2 files changed, 14 insertions(+), 1 deletion(-) + +commit 06d5078beb261815ee8058c350a2e47d8f078667 +Author: Juan A. Suarez Romero +Date: Fri May 7 18:20:22 2010 +0200 + + Add silent.m4 macro + + Some old distributions, as Ubuntu Jaunty, do not have this macro file. + + m4/silent.m4 | 27 +++++++++++++++++++++++++++ + 1 file changed, 27 insertions(+) + +commit 2eb841ddda2ec27645e15aed986bdaa92530e35b +Author: Juan A. Suarez Romero +Date: Fri May 7 13:35:04 2010 +0200 + + [tests] Check allowed errors when invoking registry_load_all() method + + Some warnings when loading all plugins should be allowed in the test. Mainly, + when a directory does not contain any plugin or when a plugin is not provided + with a required configuration. + + In these cases, test should not fail. + + src/tests/registry.c | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + +commit 40c6943c8635c7266b7e0ff971424db8efb51c01 +Author: Iago Toral Quiroga +Date: Fri Apr 30 16:49:32 2010 +0200 + + [test-ui] Add Vimeo config + + tools/grilo-test-ui/main.c | 34 +++++++++++++++++++++++++++++++--- + 1 file changed, 31 insertions(+), 3 deletions(-) + +commit 2ad7ba7971ababf8fd9d2da6286fe6b3e2d7bb0a +Author: Víctor Manuel Jáquez Leal +Date: Mon Apr 26 01:45:41 2010 +0200 + + [build] add m4 directory + + Follow the m4 directory configuration recommendation + + Signed-off-by: Víctor Manuel Jáquez Leal + + Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +commit 8bd2ff6afae472cae97a969f2bafa7d267bf0c5b +Author: Víctor Manuel Jáquez Leal +Date: Mon Apr 26 11:47:12 2010 +0200 + + configure.ac: remove unused macros + + And follow the recommendations from + http://live.gnome.org/GnomeGoals/ModernAutotools + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 26 +++++++++++--------------- + 1 file changed, 11 insertions(+), 15 deletions(-) + +commit f8ca2fdf13c0ecfb2967f8b9e5301b600168056f +Author: Xabier Rodriguez Calvar +Date: Fri Apr 23 17:16:40 2010 +0200 + + [core] Create null GValue when setting null to grl_data_set_string + + src/data/grl-data.c | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) + +commit f1969a7e8254c555db3fe4c1defd89d902718306 +Author: Xabier Rodriguez Calvar +Date: Thu Apr 22 12:55:06 2010 +0200 + + [test-ui] Printing for debug the url going to be played + + tools/grilo-test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit 430c126f5a8498ef478fba8a0a902521b451a6ab +Author: Iago Toral Quiroga +Date: Tue Apr 20 17:54:17 2010 +0200 + + [core] Use string keys to identify configuration parameters + + src/data/grl-config.c | 115 ++++++++++++++++++++++++++++++++++++++++-- + src/data/grl-config.h | 136 ++++++++++++++++++++++++++------------------------ + 2 files changed, 182 insertions(+), 69 deletions(-) + +commit 9ad3225b8020765e2d34dc1c6cf6c3278582b013 +Author: Iago Toral Quiroga +Date: Tue Apr 20 17:45:44 2010 +0200 + + [core] Drop a warning if configuration objects do not have plugin information. + + src/grl-plugin-registry.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit d448eacb7deaa4f7c962f48261ba2f8d16915702 +Author: Iago Toral Quiroga +Date: Tue Apr 20 15:45:04 2010 +0200 + + Updated TODO + + TODO | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +commit 920e9cd44890c01c071343e90e952a2e61cee2f1 +Author: Iago Toral Quiroga +Date: Wed Apr 14 13:46:35 2010 +0200 + + [test-ui] Added configuration for youtube plugin. + + tools/grilo-test-ui/main.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +commit 947a79153d10a2527f00ce61a3cecbc15dc82b59 +Author: Iago Toral Quiroga +Date: Tue Apr 13 15:46:44 2010 +0200 + + [test-ui] Increased default chunk size to 100 + + tools/grilo-test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c53e6606a658504f2d3fffaec0c5227e20a8e38f +Author: Iago Toral Quiroga +Date: Tue Apr 13 15:46:09 2010 +0200 + + [core] Added FIXME comment + + src/grl-media-source.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit e12ab8c7d9f3abe76adb0e84f333062650b4b502 +Author: Iago Toral Quiroga +Date: Tue Apr 13 15:45:35 2010 +0200 + + [core] Use float type for rating key + + src/data/grl-media.c | 37 ++++++++----------------------------- + src/data/grl-media.h | 8 +++----- + 2 files changed, 11 insertions(+), 34 deletions(-) + +commit 005aaf5ea1cbc432bc4ddf97805325dececf9e64 +Author: Iago Toral Quiroga +Date: Tue Apr 13 15:45:10 2010 +0200 + + [core] Fixed set_float signature + + src/data/grl-data.c | 2 +- + src/data/grl-data.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit f26adce138110eccf0465aa7ddb37d089c9b28eb +Author: Juan A. Suarez Romero +Date: Tue Apr 13 18:04:27 2010 +0200 + + Revert "[core] resolve_async implementation" + + This reverts commit baa2a69b2001e5599c279e2889077bb868a0cc8a. + + Comitted by mistake. + + configure.ac | 3 +- + src/Makefile.am | 2 +- + src/grl-metadata-source.c | 105 ---------------------------------------------- + src/grl-metadata-source.h | 17 -------- + 4 files changed, 2 insertions(+), 125 deletions(-) + +commit 37c2fa3253055a71bdd969b7d9ed0d84ee263e9f +Author: Juan A. Suarez Romero +Date: Tue Apr 13 18:03:56 2010 +0200 + + Revert "[vala] update GI and vapi files for async methods support" + + This reverts commit 713d1badf5a6cd0168ddb4c6bf1800690d3b5d73. + + Committed by mistake. + + bindings/vala/grilo-0.1.vapi | 2 -- + bindings/vala/grilo-0.1/grilo-0.1.deps | 1 - + bindings/vala/grilo-0.1/grilo-0.1.gi | 28 ---------------------------- + 3 files changed, 31 deletions(-) + +commit 713d1badf5a6cd0168ddb4c6bf1800690d3b5d73 +Author: Víctor Manuel Jáquez Leal +Date: Sat Apr 10 17:44:06 2010 +0200 + + [vala] update GI and vapi files for async methods support + + bindings/vala/grilo-0.1.vapi | 2 ++ + bindings/vala/grilo-0.1/grilo-0.1.deps | 1 + + bindings/vala/grilo-0.1/grilo-0.1.gi | 28 ++++++++++++++++++++++++++++ + 3 files changed, 31 insertions(+) + +commit baa2a69b2001e5599c279e2889077bb868a0cc8a +Author: Víctor Manuel Jáquez Leal +Date: Mon Apr 5 16:06:17 2010 +0200 + + [core] resolve_async implementation + + resolve_async is a reimplementation of the resolve method in + GrlMetadataSource using the GAsyncResult mechanism. + + configure.ac | 3 +- + src/Makefile.am | 2 +- + src/grl-metadata-source.c | 105 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 17 ++++++++ + 4 files changed, 125 insertions(+), 2 deletions(-) + +commit 6e45e38c9a13446a95eab1a5cfed786629b11476 +Author: Víctor Manuel Jáquez Leal +Date: Sat Apr 10 16:16:01 2010 +0200 + + [vala] regenerate vapi file + + bindings/vala/grilo-0.1.vapi | 59 ++++++++++++++++++++++++++++++++++++++------ + 1 file changed, 52 insertions(+), 7 deletions(-) + +commit 8d29cfebdbcfb129725988d6a03b8fd9384a9af9 +Author: Víctor Manuel Jáquez Leal +Date: Sat Apr 10 16:06:58 2010 +0200 + + [vala] update GI file using GRILO_COMPILATION define + + bindings/vala/grilo-0.1/grilo-0.1.defines | 1 + + bindings/vala/grilo-0.1/grilo-0.1.gi | 109 +++++++++++++++++++++++++----- + 2 files changed, 92 insertions(+), 18 deletions(-) + +commit 4b2633177c38d72afdd5dddc2f9cc9154bc097c3 +Author: Iago Toral Quiroga +Date: Mon Apr 12 16:04:12 2010 +0200 + + [test-ui] Fixed wrong callback signature for registry signals. + + tools/grilo-test-ui/main.c | 12 ++++++++---- + 1 file changed, 8 insertions(+), 4 deletions(-) + +commit 52e1f1879292ff12eaedac6cb4f5e2ef51dafe3b +Author: Juan A. Suarez Romero +Date: Fri Apr 9 11:08:05 2010 +0200 + + Make sure only grilo.h can be included + + Add some definitions so if client includes other files than grilo.h an error + will be raised at building time. + + src/Makefile.am | 3 ++- + src/data/grl-config.h | 4 ++++ + src/data/grl-data.h | 4 ++++ + src/data/grl-media-audio.h | 4 ++++ + src/data/grl-media-box.h | 4 ++++ + src/data/grl-media-image.h | 4 ++++ + src/data/grl-media-video.h | 4 ++++ + src/data/grl-media.h | 4 ++++ + src/grilo.h | 4 ++++ + src/grl-error.h | 4 ++++ + src/grl-log.h | 4 ++++ + src/grl-media-plugin.h | 4 ++++ + src/grl-media-source.h | 4 ++++ + src/grl-metadata-key.h | 4 ++++ + src/grl-metadata-source.h | 4 ++++ + src/grl-plugin-registry.h | 4 ++++ + 16 files changed, 62 insertions(+), 1 deletion(-) + +commit 1dfe5eac8b040457e72973bb51aec7b14a659c0e +Author: Juan A. Suarez Romero +Date: Fri Apr 9 10:58:21 2010 +0200 + + Fix grilo.h header + + Wrong definition. + + src/grilo.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 394a81552f9fc3b336edee6596e556cb195a58b0 +Author: Víctor Manuel Jáquez Leal +Date: Tue Apr 6 18:19:32 2010 +0200 + + [build] silent compilation + + According to http://live.gnome.org/GnomeGoals/NicerBuilds + + Signed-off-by: Víctor Manuel Jáquez Leal + + configure.ac | 4 +++- + tools/vala/Makefile.am | 6 +++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +commit 19fdfea2c53b799d4366374c6100e6e722231985 +Author: Iago Toral Quiroga +Date: Tue Apr 6 17:53:05 2010 +0200 + + [doc] Added information on how to perform efficient metadata retrieval. + + doc/reference/quick-start-using-grilo.xml | 220 ++++++++++++++++++++++++++++++ + 1 file changed, 220 insertions(+) + +commit 2f530d881f7b304a79a975b0cc5f8d5cb14c9df8 +Author: Iago Toral Quiroga +Date: Tue Apr 6 09:08:35 2010 +0200 + + [doc] Added a searching example. + Added instructions for compiling programs that use Grilo. + + doc/reference/quick-start-using-grilo.xml | 114 +++++++++++++++++++++++++++++- + 1 file changed, 113 insertions(+), 1 deletion(-) + +commit a8e08ff944caca5a332e2d5a9c71e0d9d71780c6 +Author: Iago Toral Quiroga +Date: Tue Apr 6 08:48:01 2010 +0200 + + [doc] Minor fixes + + doc/reference/quick-start-using-grilo.xml | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit b1f8fc0b525ec97f1e31b835ef90f629f1c2988f +Author: Iago Toral Quiroga +Date: Tue Apr 6 08:35:02 2010 +0200 + + [doc] Minor fixes + + doc/reference/quick-start-using-grilo.xml | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +commit c17ca420376c7eac8855f3bc1a21cdb8a3ac7dd0 +Author: Iago Toral Quiroga +Date: Mon Apr 5 17:53:07 2010 +0200 + + [doc] Started a quick start section + + doc/reference/grilo-docs.sgml | 8 + + doc/reference/quick-start-using-grilo.xml | 241 ++++++++++++++++++++++++++++++ + 2 files changed, 249 insertions(+) + +commit daf099ad22db45c666fd270b1735093207b55429 +Author: Iago Toral Quiroga +Date: Mon Apr 5 16:26:25 2010 +0200 + + Added an overview section to documentation. + + doc/reference/grilo-docs.sgml | 12 +++--- + doc/reference/overview.xml | 98 +++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 103 insertions(+), 7 deletions(-) + +commit fccbfc69504a0a33102b3acea28402a5c420b417 +Author: Iago Toral Quiroga +Date: Mon Apr 5 11:46:23 2010 +0200 + + Added README contents + + README | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 104 insertions(+) + +commit 2a68d291854350bf9c2dda01899c51dd1d1e1d3b +Author: Iago Toral Quiroga +Date: Tue Mar 30 13:42:00 2010 +0200 + + Fixed syntax in doap file + + grilo.doap | 2 ++ + 1 file changed, 2 insertions(+) + +commit 244b962ce58fae59cf2da2e751a0b3ce5f30329a +Author: Iago Toral Quiroga +Date: Tue Mar 30 10:07:29 2010 +0200 + + Changed project description in doap file + + grilo.doap | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0448dc779e98bca8c0519446c13fa7adee2970b8 +Author: Iago Toral Quiroga +Date: Tue Mar 30 10:05:19 2010 +0200 + + Added doap file + + grilo.doap | 27 +++++++++++++++++++++++++++ + 1 file changed, 27 insertions(+) + +commit f92440f5b024f15a3af68b34b2f2e13407418cbd +Author: Stefan Kost +Date: Wed Mar 24 09:58:41 2010 +0200 + + configure.ac: use tmpl free gtk-doc build if possible + + The tmpl file mechanism is deprecated and only needed in legacy projects. + + configure.ac | 2 +- + src/Makefile.am | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +commit 271d562f811002a6fe25c49e846aede16e27e02f +Author: Stefan Kost +Date: Wed Mar 24 09:55:04 2010 +0200 + + gitignore: add and fill .gitignore files + + .gitignore | 16 ++++++++++++++++ + doc/reference/.gitignore | 14 ++++++++++++++ + src/.gitignore | 10 ++++++++++ + src/tests/.gitignore | 6 ++++++ + tools/grilo-test-ui/.gitignore | 6 ++++++ + tools/vala/.gitignore | 2 ++ + 6 files changed, 54 insertions(+) + +commit 33ccf549df2f41ee3fbe5f7f147ec0549968dc13 +Author: Stefan Kost +Date: Wed Mar 24 09:42:19 2010 +0200 + + [tests] Initial addition of test suite boilerplate + + configure.ac | 1 + + src/Makefile.am | 2 ++ + src/tests/Makefile.am | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ + src/tests/registry.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 131 insertions(+) + +commit 111d22e1241bd8e91fcbd659f32ceedd130933f0 +Author: José Dapena Paz +Date: Wed Mar 24 15:46:15 2010 +0100 + + [core] Don't add NULL sources to plugin registry. + + On adding sources to plugin registry, check if we're passing a + GrlMediaPlugin (i.e. when the plugin failed to be properly created) + to avoid corrupting the sources hashmap. + + src/grl-plugin-registry.c | 1 + + 1 file changed, 1 insertion(+) + +commit c72a251e7fc00a21e6a7be074ccc3eda7d1b4752 +Author: Juan A. Suarez Romero +Date: Tue Mar 23 13:08:11 2010 +0100 + + [core] Do not initialize private gobject structure. + + g_type_class_add_private() already does it. + + Thanks to Stefan Kost to notice this. + + src/grl-media-plugin.c | 1 - + src/grl-media-source.c | 1 - + src/grl-metadata-source.c | 1 - + src/grl-plugin-registry.c | 1 - + 4 files changed, 4 deletions(-) + +commit c1fd98b54e1ddbce0c924922a43e2d083b2ccbc5 +Author: Juan A. Suarez Romero +Date: Mon Mar 15 12:32:40 2010 +0100 + + [core] Increase media refcount in metadata() + + Even in the case of creating a new media, increase its refcount. + + User is in charge of unref it if the media is of non interest for him. + + src/grl-media-source.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit ac7af0ab66e0a28ec2431a2b6abc0f1934cf2642 +Author: Juan A. Suarez Romero +Date: Fri Mar 12 16:58:28 2010 +0100 + + Bumped version to 0.1.4 + + NEWS | 15 +++++++++++++++ + configure.ac | 2 +- + 2 files changed, 16 insertions(+), 1 deletion(-) + +commit e0dde72ff69ce49ce172e63621eaf28d762c71a3 +Author: Juan A. Suarez Romero +Date: Fri Mar 12 16:56:36 2010 +0100 + + [core] Rename grl_plugin_registry_get_sources_by_capabilities() to grl_plugin_registry_get_sources_by_operations() + + Adds more coherence to code. + + bindings/vala/grilo-0.1.vapi | 2 +- + bindings/vala/grilo-0.1/grilo-0.1.gi | 2 +- + src/grl-metadata-source.c | 12 ++++++------ + src/grl-plugin-registry.c | 19 ++++++++++--------- + src/grl-plugin-registry.h | 6 +++--- + tools/grilo-test-ui/main.c | 18 +++++++++--------- + 6 files changed, 30 insertions(+), 29 deletions(-) + +commit 908f4467c88db0637cb49730564178cd628d3919 +Author: Iago Toral Quiroga +Date: Fri Mar 12 11:25:18 2010 +0100 + + [core] Moved configuration keys from grl-metadata-key.h to grl-config.h + and changed configuration API to allow setting source-specific + configurations. + + src/data/grl-config.c | 32 ++++++++++++++------------------ + src/data/grl-config.h | 38 +++++++++++++++++++++++++++++++++++--- + src/grl-metadata-key.h | 16 ---------------- + src/grl-plugin-registry.c | 35 ++++++++++++++++++++++------------- + src/grl-plugin-registry.h | 4 ++-- + tools/grilo-test-ui/main.c | 4 ++-- + 6 files changed, 75 insertions(+), 54 deletions(-) + +commit 262d5c3d16a2b5716a04b537f2c8f6d5d0d5b964 +Author: Iago Toral Quiroga +Date: Fri Mar 12 09:29:57 2010 +0100 + + [doc] removed brainstorming notes, they were obsolete. + + doc/brainstorming/itoral-initial-brainstorming.txt | 210 --------------------- + .../jasuarez-initial-brainstorming.txt | 73 ------- + doc/brainstorming/to-be-discussed.txt | 51 ----- + 3 files changed, 334 deletions(-) + +commit 9261f2ce29cf0ab429b8a42252f653d7d53c23e3 +Author: Iago Toral Quiroga +Date: Fri Mar 12 09:09:39 2010 +0100 + + [core] Replaced the generic guint type for operation flags by its + corresponding type (GrlMetadataResolutionFlags or GrlMetadataWritingFlags). + + src/grl-media-source.c | 4 ++-- + src/grl-metadata-source.c | 6 +++--- + src/grl-metadata-source.h | 8 ++++---- + 3 files changed, 9 insertions(+), 9 deletions(-) + +commit 91c93e1d68d5f518103d04e979ff3008f35b3e22 +Author: Iago Toral Quiroga +Date: Fri Mar 12 09:03:18 2010 +0100 + + [core] Added a flags parameter to the set_metadata() API to allow + the user to select whether he wants to restrict the operation to + the particular source he is using, or spread the operation among + all available plugins if necessary. + + src/grl-metadata-source.c | 12 ++++++++++-- + src/grl-metadata-source.h | 13 +++++++++++++ + 2 files changed, 23 insertions(+), 2 deletions(-) + +commit b01908ba3741696f4460c36fe4ca2dc84622869f +Author: Iago Toral Quiroga +Date: Fri Mar 12 08:51:52 2010 +0100 + + [core] Use grl_plugin_registry_get_sources_by_capabilities() instead + of checking for virtual method implementations directly. + + src/grl-metadata-source.c | 12 +++--------- + 1 file changed, 3 insertions(+), 9 deletions(-) + +commit 8404761ad9afd5505b3c65626c1c3fa5f1fcd28e +Author: Iago Toral Quiroga +Date: Thu Mar 11 13:12:09 2010 +0100 + + [core] If a source cannot handle writing of all the keys specified + in a set_metadata() operation, use other sources to store the keys + if possible. + + src/grl-metadata-source.c | 285 +++++++++++++++++++++++++++++++++++++++++----- + src/grl-metadata-source.h | 7 ++ + 2 files changed, 264 insertions(+), 28 deletions(-) + +commit 99d367c87173a7bfe664331e0b5f97655f33a755 +Author: Iago Toral Quiroga +Date: Thu Mar 11 10:58:02 2010 +0100 + + [core] Add a list of failed keys to the callback of set_metadata(). + + src/grl-metadata-source.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 570f50af0412a6b93949b666240f8cb74bed4af5 +Author: Iago Toral Quiroga +Date: Thu Mar 11 09:55:02 2010 +0100 + + [core] Modified set_metadata() API to accept a list of keys. Also, + free resources when operation is fininshed. + + src/grl-metadata-source.c | 21 ++++++++++++++++++--- + src/grl-metadata-source.h | 4 ++-- + 2 files changed, 20 insertions(+), 5 deletions(-) + +commit ab52e8c532f9ce406a1f3342e3650982965b1241 +Author: Iago Toral Quiroga +Date: Wed Mar 10 16:43:13 2010 +0100 + + [core] Added GRL_ERROR_SET_METADATA_FAILED definition. + + src/grl-error.h | 1 + + 1 file changed, 1 insertion(+) + +commit 6e5e36bb404454aa6eaa6f5f99abaef775019585 +Author: Iago Toral Quiroga +Date: Wed Mar 10 10:40:49 2010 +0100 + + [core] Added support for play-count, last-played and last-position + metadata keys. + + src/data/grl-media.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-key.h | 12 +++++++++ + src/grl-plugin-registry.c | 3 +++ + 3 files changed, 78 insertions(+) + +commit 486bae040a57249773bed3fdee293d5e22babae7 +Author: Iago Toral Quiroga +Date: Wed Mar 10 08:19:40 2010 +0100 + + [core] Added APIs to modify metadata + + src/grl-metadata-source.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 50 +++++++++++++++++++++++++++++++ + 2 files changed, 126 insertions(+) + +commit a4b22a81bda45f52f280078772252acc824b7dea +Author: Víctor Manuel Jáquez Leal +Date: Mon Mar 8 14:51:11 2010 +0100 + + [build] fix distcheck + + src/Makefile.am | 11 ++++------- + 1 file changed, 4 insertions(+), 7 deletions(-) + +commit 6de7fddb8c924eb193ac160248ee33c8928558a5 +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 23:25:00 2010 +0100 + + [gtk-doc] Document GrlMediaVideo + + src/data/grl-media-video.c | 17 +++++++++++++---- + src/data/grl-media-video.h | 47 ++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 60 insertions(+), 4 deletions(-) + +commit 520f51ef7091c4ecebf999879fb797be6b467d2a +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 23:16:25 2010 +0100 + + [gtk-doc] Document GrlMediaBox + + src/data/grl-media-box.c | 30 +++++++++++++++++++++++------- + src/data/grl-media-box.h | 6 ++++++ + 2 files changed, 29 insertions(+), 7 deletions(-) + +commit c2c0c756e203c0867ee4168ac505b79af5baa356 +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 23:07:52 2010 +0100 + + [gtk-doc] Document GrlConfig + + src/data/grl-config.c | 11 ++++---- + src/data/grl-config.h | 71 +++++++++++++++++++++++++++++++++++++++++++++++---- + 2 files changed, 72 insertions(+), 10 deletions(-) + +commit 7a083fbf23c9f2050bb2093a62e1341926a0a0c8 +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 21:19:21 2010 +0100 + + [gtk-doc] Refer GrlConfig in TOC + + doc/reference/grilo-docs.sgml | 1 + + 1 file changed, 1 insertion(+) + +commit b3e5b2c275fdaff4955cc16495b14a44448c5e85 +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 21:18:56 2010 +0100 + + [gtk-doc] Document GrlMedia + + src/data/grl-media.c | 17 +++++- + src/data/grl-media.h | 169 ++++++++++++++++++++++++++++++++++++++++++++++++++- + 2 files changed, 181 insertions(+), 5 deletions(-) + +commit dc21676e514f36e70fd1a9cd0796c48c20e297c7 +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 22:36:15 2010 +0100 + + [vala] regenerate vapi file + + bindings/vala/grilo-0.1.vapi | 113 +++++++++++++++++++++++++++++++++---------- + 1 file changed, 88 insertions(+), 25 deletions(-) + +commit 8591aa58893caddd164b9174db76e84c2183a296 +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 22:35:49 2010 +0100 + + [vala] custom code for Media object + + bindings/vala/grilo-0.1/grilo-0.1-custom.vala | 25 +++++++++++++++++++------ + 1 file changed, 19 insertions(+), 6 deletions(-) + +commit c95312347959dfddf344e603a9e1c2b99930d40c +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 22:34:32 2010 +0100 + + [vala] update the GI file + + bindings/vala/grilo-0.1/grilo-0.1.gi | 117 ++++++++++++++++++++++++++--------- + 1 file changed, 87 insertions(+), 30 deletions(-) + +commit 74c07ab1acceb8d9bc5c68aa4186813224c3449f +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 17:58:36 2010 +0100 + + [build] Avoid autotools abuse + + There is no need to build an unshared library. It also makes the compilation + slower. + + configure.ac | 1 - + src/Makefile.am | 44 +++++++++++++++++++++++--------------------- + src/data/Makefile.am | 41 ----------------------------------------- + 3 files changed, 23 insertions(+), 63 deletions(-) + +commit 9aa27fddf1ee94e5e82f0807491c8af5c155965c +Author: Víctor Manuel Jáquez Leal +Date: Sun Mar 7 17:33:12 2010 +0100 + + [build] Refactor gobject-instrospection autoconf-fu + + Following the documentation in + http://live.gnome.org/GObjectIntrospection/AutotoolsIntegration + + configure.ac | 12 ++-------- + src/Makefile.am | 74 ++++++++++++++++++++++++++++++--------------------------- + 2 files changed, 41 insertions(+), 45 deletions(-) + +commit e299a64e9da323145a85253a19812eddf26d92f8 +Author: Iago Toral Quiroga +Date: Sat Mar 6 16:21:42 2010 +0100 + + Updated TODO file + + TODO | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +commit 56548caf776f71a42f088076dd095f7c34360c8e +Author: Juan A. Suarez Romero +Date: Fri Mar 5 11:58:26 2010 +0100 + + Add introspection.m4 macro + + Some distros miss this macro. + + Makefile.am | 2 ++ + autogen.sh | 1 + + m4/introspection.m4 | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 97 insertions(+) + +commit fb9466ab4cb8e3ca4596b1fd63c9291b78f39589 +Author: Eduardo Lima Mitev +Date: Thu Mar 4 23:23:43 2010 +0100 + + [js] Adds simple Javascript program to test introspected API + + tools/js/testGrilo.js | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 68 insertions(+) + +commit 528b513d5978de2c19fb1a3623f53be1c665df86 +Author: Eduardo Lima Mitev +Date: Thu Mar 4 23:22:32 2010 +0100 + + [annotations] Simple annotation to 'grl_metadata_source_supported_operations' + + To allow Javascript test to work. Currently bitwise enumerators are not + supported by GJS. + + src/grl-metadata-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit dba2c14c43e094c4bbc10b7f749c601e67eec5ec +Author: Eduardo Lima Mitev +Date: Thu Mar 4 23:18:34 2010 +0100 + + [build] Adds gobject-introspection support to build system + + configure.ac | 16 ++++++++++++++++ + src/Makefile.am | 44 ++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 60 insertions(+) + +commit a52dd20dd4bebcde68a8053dbf6072e000e649a1 +Author: Juan A. Suarez Romero +Date: Thu Mar 4 22:29:18 2010 +0100 + + Rename GrlDataVideo to GrlMediaVideo + + bindings/vala/grilo-0.1.vapi | 4 +- + bindings/vala/grilo-0.1/grilo-0.1.gi | 8 +-- + doc/reference/grilo-docs.sgml | 2 +- + src/data/Makefile.am | 4 +- + src/data/grl-data.c | 2 +- + src/data/{grl-data-video.c => grl-media-video.c} | 40 +++++++------- + src/data/{grl-data-video.h => grl-media-video.h} | 70 ++++++++++++------------ + src/grilo.h | 2 +- + tools/grilo-test-ui/main.c | 4 +- + tools/vala/grilo-test.vala | 2 +- + 10 files changed, 69 insertions(+), 69 deletions(-) + +commit 83e11ba8cee5fb6029a2aa6f9bb0e6606fe3e0ab +Author: Juan A. Suarez Romero +Date: Thu Mar 4 22:23:10 2010 +0100 + + Remame GrlDataImage to GrlMediaImage + + bindings/vala/grilo-0.1.vapi | 4 +- + bindings/vala/grilo-0.1/grilo-0.1.gi | 8 +- + doc/reference/grilo-docs.sgml | 2 +- + src/data/Makefile.am | 4 +- + src/data/grl-data-image.h | 95 ------------------------ + src/data/grl-data.c | 2 +- + src/data/{grl-data-image.c => grl-media-image.c} | 40 +++++----- + src/data/grl-media-image.h | 95 ++++++++++++++++++++++++ + src/grilo.h | 2 +- + tools/grilo-test-ui/main.c | 6 +- + 10 files changed, 129 insertions(+), 129 deletions(-) + +commit 923ad6b0ea117b77cc99344b6e77a982070eac27 +Author: Juan A. Suarez Romero +Date: Thu Mar 4 22:17:13 2010 +0100 + + Rename GrlDataBox to GrlMediaBox + + bindings/vala/grilo-0.1.vapi | 10 ++-- + bindings/vala/grilo-0.1/grilo-0.1.gi | 18 +++---- + doc/reference/grilo-docs.sgml | 2 +- + src/data/Makefile.am | 4 +- + src/data/grl-data-box.h | 79 ---------------------------- + src/data/grl-data.c | 2 +- + src/data/{grl-data-box.c => grl-media-box.c} | 46 ++++++++-------- + src/data/grl-media-box.h | 79 ++++++++++++++++++++++++++++ + src/grilo.h | 2 +- + src/grl-media-source.c | 12 ++--- + src/grl-media-source.h | 8 +-- + tools/grilo-test-ui/main.c | 18 +++---- + 12 files changed, 140 insertions(+), 140 deletions(-) + +commit 241c49f746f191a602a243778288a6f67e567147 +Author: Juan A. Suarez Romero +Date: Thu Mar 4 22:02:48 2010 +0100 + + Rename GrlDataAudio to GrlMediaAudio + + bindings/vala/grilo-0.1.vapi | 4 +- + bindings/vala/grilo-0.1/grilo-0.1.gi | 4 +- + doc/reference/grilo-docs.sgml | 2 +- + src/data/Makefile.am | 4 +- + src/data/grl-data.c | 2 +- + src/data/{grl-data-audio.c => grl-media-audio.c} | 30 +++++----- + src/data/{grl-data-audio.h => grl-media-audio.h} | 76 ++++++++++++------------ + src/grilo.h | 2 +- + tools/grilo-test-ui/main.c | 4 +- + tools/vala/grilo-test.vala | 2 +- + 10 files changed, 65 insertions(+), 65 deletions(-) + +commit 9c537f1b7f2924affee659c5bfb1a652e5adbee8 +Author: Juan A. Suarez Romero +Date: Thu Mar 4 21:55:30 2010 +0100 + + Rename GrlDataMedia to GrlMedia + + bindings/vala/grilo-0.1.vapi | 50 ++++----- + bindings/vala/grilo-0.1/grilo-0.1.gi | 56 +++++----- + doc/reference/grilo-docs.sgml | 2 +- + src/data/Makefile.am | 8 +- + src/data/grl-data-audio.c | 8 +- + src/data/grl-data-audio.h | 8 +- + src/data/grl-data-box.c | 10 +- + src/data/grl-data-box.h | 8 +- + src/data/grl-data-image.c | 8 +- + src/data/grl-data-image.h | 8 +- + src/data/grl-data-media.h | 161 ----------------------------- + src/data/grl-data-video.c | 8 +- + src/data/grl-data-video.h | 8 +- + src/data/grl-data.c | 4 +- + src/data/{grl-data-media.c => grl-media.c} | 42 ++++---- + src/data/grl-media.h | 161 +++++++++++++++++++++++++++++ + src/grilo.h | 2 +- + src/grl-media-source.c | 54 +++++----- + src/grl-media-source.h | 26 ++--- + src/grl-metadata-source.c | 16 +-- + src/grl-metadata-source.h | 16 +-- + tools/grilo-test-ui/main.c | 62 +++++------ + tools/vala/grilo-test.vala | 2 +- + 23 files changed, 364 insertions(+), 364 deletions(-) + +commit 539fe8717f2d08bafbeb69da66a63ca0693c58ac +Author: Juan A. Suarez Romero +Date: Thu Mar 4 21:32:41 2010 +0100 + + Rename GrlDataConfig to GrlConfig + + src/data/Makefile.am | 4 +- + src/data/{grl-data-config.c => grl-config.c} | 46 ++++++------ + src/data/grl-config.h | 107 +++++++++++++++++++++++++++ + src/data/grl-data-config.h | 107 --------------------------- + src/grilo.h | 2 +- + src/grl-plugin-registry.c | 6 +- + src/grl-plugin-registry.h | 6 +- + tools/grilo-test-ui/main.c | 10 +-- + 8 files changed, 144 insertions(+), 144 deletions(-) + +commit 9a80b3fb002bd13e00b1d04328318a85dc73e4fa +Author: Juan A. Suarez Romero +Date: Thu Mar 4 20:58:32 2010 +0100 + + Rename Content to Data + + Rename from GrlContent/grl_content to GrlData/grl_data. + + As Config will inherit from it, makes more sense using a generic Data name than + a Content name. + + bindings/vala/grilo-0.1.vapi | 64 ++--- + bindings/vala/grilo-0.1/grilo-0.1-custom.vala | 12 +- + bindings/vala/grilo-0.1/grilo-0.1.gi | 154 ++++++------ + configure.ac | 2 +- + doc/reference/grilo-docs.sgml | 16 +- + grilo-0.1-uninstalled.pc.in | 2 +- + src/Makefile.am | 6 +- + src/content/Makefile.am | 41 ---- + src/content/grl-content-audio.h | 114 --------- + src/content/grl-content-box.c | 132 ----------- + src/content/grl-content-box.h | 79 ------- + src/content/grl-content-config.c | 99 -------- + src/content/grl-content-config.h | 107 --------- + src/content/grl-content-image.h | 95 -------- + src/content/grl-content-media.h | 161 ------------- + src/content/grl-content-video.h | 104 --------- + src/content/grl-content.h | 122 ---------- + src/data/Makefile.am | 41 ++++ + .../grl-content-audio.c => data/grl-data-audio.c} | 40 ++-- + src/data/grl-data-audio.h | 114 +++++++++ + src/data/grl-data-box.c | 132 +++++++++++ + src/data/grl-data-box.h | 79 +++++++ + src/data/grl-data-config.c | 99 ++++++++ + src/data/grl-data-config.h | 107 +++++++++ + .../grl-content-image.c => data/grl-data-image.c} | 50 ++-- + src/data/grl-data-image.h | 95 ++++++++ + .../grl-content-media.c => data/grl-data-media.c} | 58 ++--- + src/data/grl-data-media.h | 161 +++++++++++++ + .../grl-content-video.c => data/grl-data-video.c} | 50 ++-- + src/data/grl-data-video.h | 104 +++++++++ + src/{content/grl-content.c => data/grl-data.c} | 258 ++++++++++----------- + src/data/grl-data.h | 122 ++++++++++ + src/grilo.h | 14 +- + src/grl-media-source.c | 72 +++--- + src/grl-media-source.h | 36 +-- + src/grl-metadata-source.c | 16 +- + src/grl-metadata-source.h | 16 +- + src/grl-plugin-registry.c | 6 +- + src/grl-plugin-registry.h | 6 +- + tools/grilo-test-ui/Makefile.am | 2 +- + tools/grilo-test-ui/main.c | 116 ++++----- + tools/vala/Makefile.am | 2 +- + tools/vala/grilo-test.vala | 4 +- + 43 files changed, 1555 insertions(+), 1555 deletions(-) + +commit 427c6837e8d406f54927f2c3ad8da0529b4eaf76 +Author: Juan A. Suarez Romero +Date: Tue Mar 2 18:10:10 2010 +0100 + + Set flickr configuration + + Flickr plugin requires credentials, that should be set by application. + + tools/grilo-test-ui/main.c | 23 +++++++++++++++++++++++ + 1 file changed, 23 insertions(+) + +commit f241a7ec4c7a274a98d6d018b489a1a1fa3c6832 +Author: Juan A. Suarez Romero +Date: Tue Mar 2 17:48:22 2010 +0100 + + Send configuration when loading a plugin + + When invoking plugin_init(), look up for the configuration associated with that + plugin and pass it as parameter. + + src/grl-plugin-registry.c | 6 +++++- + src/grl-plugin-registry.h | 2 +- + 2 files changed, 6 insertions(+), 2 deletions(-) + +commit 62f3c0c801280e8b1d69f79152df76d405646124 +Author: Juan A. Suarez Romero +Date: Tue Mar 2 17:14:47 2010 +0100 + + Set plugin configuration api + + Add a function to save in registry the configuration of a plugin. + + This configuration will be passed later when plugin is initialized. + + src/grl-plugin-registry.c | 27 +++++++++++++++++++++++++++ + src/grl-plugin-registry.h | 4 ++++ + 2 files changed, 31 insertions(+) + +commit 035503806a68d203f1c1926e9580b68099c4d104 +Author: Juan A. Suarez Romero +Date: Tue Mar 2 10:56:45 2010 +0100 + + Add GrlContentConfig + + This class contains configuration settings to be used by plugins. + + src/content/Makefile.am | 6 ++- + src/content/grl-content-config.c | 99 ++++++++++++++++++++++++++++++++++++ + src/content/grl-content-config.h | 107 +++++++++++++++++++++++++++++++++++++++ + src/grilo.h | 1 + + src/grl-metadata-key.h | 16 ++++++ + 5 files changed, 227 insertions(+), 2 deletions(-) + +commit 86891575eb6fef87b8e4745684ac83e2a8e99a7e +Author: Xabier Rodriguez Calvar +Date: Tue Mar 2 15:49:46 2010 +0100 + + One more fallback for the test ui to check if default app does not work + + tools/grilo-test-ui/main.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +commit 5ca821d7488066999290fc5161c164dc0879ac70 +Author: Víctor Manuel Jáquez Leal +Date: Tue Mar 2 15:15:15 2010 +0100 + + [gtk-doc] Document GrlContent + + src/content/grl-content.c | 12 ++++++------ + src/content/grl-content.h | 7 +++++++ + 2 files changed, 13 insertions(+), 6 deletions(-) + +commit 6521df6010d73d137d06cb68e0c5a87c3c483bb0 +Author: Víctor Manuel Jáquez Leal +Date: Tue Mar 2 14:38:23 2010 +0100 + + [gtk-doc] Move GrlContent into the media content section + + doc/reference/grilo-docs.sgml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 927a7c53a7fb58c83bc3b4afb80d9c0d9c11fdf0 +Author: Víctor Manuel Jáquez Leal +Date: Tue Mar 2 14:38:22 2010 +0100 + + [gtk-doc] Document GrlPluginRegistry + + src/grl-plugin-registry.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-plugin-registry.h | 67 +++++++++++++++++++++- + 2 files changed, 205 insertions(+), 2 deletions(-) + +commit 0a472d7daea7700fb66ecbf921c09010d798806e +Author: Víctor Manuel Jáquez Leal +Date: Mon Mar 1 22:56:59 2010 +0100 + + [gtk-doc] Document GrlMediaSource + + src/grl-media-source.c | 158 +++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-source.h | 133 +++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 291 insertions(+) + +commit 1c0aabf59cfc2f55f20412bb83c772490999e649 +Author: Juan A. Suarez Romero +Date: Mon Mar 1 11:05:20 2010 +0100 + + Bumped version to 0.1.3 + + NEWS | 10 ++++++++++ + configure.ac | 2 +- + 2 files changed, 11 insertions(+), 1 deletion(-) + +commit 41b83c0b57de025aaeeaff78b40eda2997722a66 +Author: Juan A. Suarez Romero +Date: Mon Mar 1 10:53:41 2010 +0100 + + Return const when getting information from plugins + + In most cases, users do not need a dupped string when getting information from + a plugin (author, description, etc.) + + src/grl-media-plugin.c | 70 +++++++++++++++++++--------------------------- + src/grl-media-plugin.h | 14 +++++----- + tools/grilo-test-ui/main.c | 3 +- + 3 files changed, 36 insertions(+), 51 deletions(-) + +commit 796ba811851dc80307af0a2163c3a484eeb8ee0b +Author: Víctor Manuel Jáquez Leal +Date: Sun Feb 28 23:18:59 2010 +0100 + + [gtk-doc] Document GrlMetadataSource + + There are several TBD, which are tokens that I don't known what they mean. + + src/grl-metadata-source.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-metadata-source.h | 60 +++++++++++++++++++++++- + 2 files changed, 175 insertions(+), 2 deletions(-) + +commit 64c2786b7e5f750b5e318ddac3810dc38e6c4962 +Author: Víctor Manuel Jáquez Leal +Date: Sun Feb 28 23:18:58 2010 +0100 + + [gtk-doc] Document GrlMediaPlugin + + src/grl-media-plugin.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/grl-media-plugin.h | 4 +++ + 2 files changed, 82 insertions(+) + +commit e53b1a25419d2b2af46f759e011b1437fb639f69 +Author: Víctor Manuel Jáquez Leal +Date: Sun Feb 28 23:18:57 2010 +0100 + + [gtk-doc] Use $(top_srcdir) variable for src path + + doc/reference/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 3f3c148d03f304a3fb2cbe52b4d71db7bb3b0e6c +Author: Juan A. Suarez Romero +Date: Fri Feb 26 13:32:08 2010 +0100 + + [vala] Install vala bindings + + bindings/vala/Makefile.am | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 5f0ea2a9536aa943b1999c5d378dcef66b768b99 +Author: Juan A. Suarez Romero +Date: Thu Feb 25 21:04:49 2010 +0100 + + Use current media if metadata() is not supported + + Usually, to get information from a media we are using metadata(). + + Nevertheless, it is possible that the source does not implement metadata(). In this case, we still have the media with the data obtained in the browse() operation (where the media was created). + + Thus, if metadata() is not supported show current available information from the media (obtained in the previous browse() operation). + + tools/grilo-test-ui/main.c | 19 +++++++++++++------ + 1 file changed, 13 insertions(+), 6 deletions(-) + +commit 427ec94da09146f3a61f27ca3c412e5fb53e7511 +Author: Juan A. Suarez Romero +Date: Thu Feb 25 20:54:18 2010 +0100 + + Use pre-defined applications to show content + + When showing images, try to use EyeOfGNOME (eog). + + When showing videos from Apple Trailers, use mplayer, setting user-agent to + "QuickTime" (in other case, videos would not be shown). + + When showing videos other than Apple Trailers, or music, use Totem. + + If some of above programs fail or are not installed, then use the default + player (depends on system). + + tools/grilo-test-ui/main.c | 56 +++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 55 insertions(+), 1 deletion(-) + +commit 3439f1abd433d7f0609f03da53d5becbbfc68ff0 +Author: Iago Toral Quiroga +Date: Thu Feb 25 12:52:40 2010 +0100 + + [core] Better checks for store() method: do not force to have + a URL if adding a container object. + + src/grl-media-source.c | 2 +- + tools/grilo-test-ui/main.c | 10 ++++++++-- + 2 files changed, 9 insertions(+), 3 deletions(-) + +commit 75df0d0eac64768027279f0456b41904c9e2909a +Author: Juan A. Suarez Romero +Date: Tue Feb 23 17:58:57 2010 +0100 + + Do not build doc if gtk-doc is disabled + + Makefile.am | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit a6276b1181350c97e6f939945efa8d3b9b5560cc +Author: Juan A. Suarez Romero +Date: Tue Feb 23 08:27:19 2010 +0100 + + Upgrade vala requirements + + Due to latest changes, bump vala requirement version to 0.7.2. + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit a2712af38684994b4b3926d54ce2da189a728f78 +Author: Iago Toral Quiroga +Date: Mon Feb 22 10:41:45 2010 +0100 + + [core] Renamed grl_plugin_registry_get_sources_by_interface to + grl_plugin_registry_get_sources_by_capabilities. + + src/grl-plugin-registry.c | 8 ++++---- + src/grl-plugin-registry.h | 6 +++--- + tools/grilo-test-ui/main.c | 18 +++++++++--------- + 3 files changed, 16 insertions(+), 16 deletions(-) + +commit 33e60b93f946876c38c7fee3457f815090068c04 +Author: Juan A. Suarez Romero +Date: Mon Feb 22 09:52:52 2010 +0100 + + Support bitrate in Audio content + + src/content/grl-content-audio.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit 02effd8cbf2875feed77f681c528e15e28f0b6f9 +Author: Juan A. Suarez Romero +Date: Mon Feb 22 09:43:54 2010 +0100 + + Add bitrate metadata + + Add key for media bitrate, measured in kbits/s. + + src/grl-metadata-key.h | 4 ++++ + src/grl-plugin-registry.c | 1 + + 2 files changed, 5 insertions(+) + +commit eb80ae9fcba0ef971d79214eae23565e9e2e050d +Author: Iago Toral Quiroga +Date: Mon Feb 22 09:01:53 2010 +0100 + + [core] Added API to find sources by interface. + + src/grl-plugin-registry.c | 79 +++++++++++++++++++++++++++---------- + src/grl-plugin-registry.h | 4 ++ + tools/grilo-test-ui/main.c | 97 +++++++++++++++++++++------------------------- + 3 files changed, 108 insertions(+), 72 deletions(-) + +commit c7c887de2564f22e3a6faed8ea48a014d02f79cd +Author: Iago Toral Quiroga +Date: Mon Feb 22 08:31:23 2010 +0100 + + [core] Implemented plugin rankings. + + src/grl-media-plugin.c | 6 +++ + src/grl-media-plugin.h | 1 + + src/grl-metadata-source.c | 2 +- + src/grl-plugin-registry.c | 96 +++++++++++++++++++++++++++++++++++++++++++++- + src/grl-plugin-registry.h | 15 +++++++- + tools/grilo-test-ui/main.c | 6 +-- + 6 files changed, 119 insertions(+), 7 deletions(-) + +commit a7f67e26eeba64f34045334487e62e870de98c1c +Author: Juan A. Suarez Romero +Date: Fri Feb 19 21:05:43 2010 +0100 + + Bump version to 0.1.2 + + NEWS | 12 ++++++++++++ + configure.ac | 2 +- + 2 files changed, 13 insertions(+), 1 deletion(-) + +commit dd013b9e551064d408b9f372095c6d4d260b7859 +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 18 13:56:58 2010 +0100 + + Custom documentation main page + + doc/reference/grilo-docs.sgml | 68 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 68 insertions(+) + +commit 80537f4d9432c3b795f8dbe775d8e4cbe4f42bb8 +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 18 13:56:57 2010 +0100 + + Ignore files for documentation + + doc/reference/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0e8df448f3525d139ab143bd7925444b7986205c +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 18 13:01:32 2010 +0100 + + Initial support to gtk-doc + + Makefile.am | 4 +- + configure.ac | 8 ++++ + doc/Makefile.am | 8 ++++ + doc/reference/Makefile.am | 102 ++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 121 insertions(+), 1 deletion(-) + +commit aa8e963b789ae5831abc299d64b7a90d65129b31 +Author: Juan A. Suarez Romero +Date: Tue Feb 16 12:49:09 2010 +0100 + + Get rid of release version + + Do not include release into version. + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5aa2e4a603910710b7e2d840f49e60c16a5f3255 +Author: Víctor Manuel Jáquez Leal +Date: Tue Feb 16 13:01:22 2010 +0100 + + [vala] make distcheck compliant + + Add missing EXTRA_DIST autoconf-fu kata for vala tool compilation + + tools/vala/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +commit 713e200971ae7b81d0bd579066cd5a490e1e9499 +Author: Juan A. Suarez Romero +Date: Mon Feb 15 20:20:06 2010 +0100 + + Fix leak + + src/content/grl-content.c | 1 + + 1 file changed, 1 insertion(+) + +commit 72b13f00ff0c33675c371355ee659167b645b7a9 +Author: Juan A. Suarez Romero +Date: Mon Feb 15 19:32:05 2010 +0100 + + get_{id,name,description}() returns const gchar* + + Returning a newly-allocated string in + grl_metadata_source_get_{name,id,description}() functions was creating some + leaks. + + The point is that in most of the functions, a const gchar* is more sensitive, + as usually the returned string is either used to print it, or to pass to + function that already dups it. + + src/grl-media-source.c | 12 ++++-------- + src/grl-metadata-source.c | 27 +++++++++------------------ + src/grl-metadata-source.h | 6 +++--- + tools/grilo-test-ui/main.c | 9 ++++++--- + 4 files changed, 22 insertions(+), 32 deletions(-) + +commit 9d2f4638eed53c08bba7af223f90fb26793c3a76 +Author: Víctor Manuel Jáquez Leal +Date: Fri Feb 12 12:05:54 2010 +0100 + + [vala] autoconf-fu for the vala tool sample + + bindings/Makefile.am | 2 +- + configure.ac | 3 ++- + tools/Makefile.am | 6 +++++- + tools/vala/Makefile.am | 38 ++++++++++++++++++++++++++++++++++++++ + 4 files changed, 46 insertions(+), 3 deletions(-) + +commit 56f3bc4bf761f9cdf2dde3b3b4fce2062a45913a +Author: Víctor Manuel Jáquez Leal +Date: Fri Feb 12 12:05:53 2010 +0100 + + [vala] First vala sample tool + + tools/vala/grilo-test.vala | 92 ++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 92 insertions(+) + +commit abedaea83ca7da18045cffcadb19c67904773545 +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 11 00:00:04 2010 +0100 + + Vapi regenerated + + bindings/vala/grilo-0.1.vapi | 31 +++++++++++++++++++++---------- + 1 file changed, 21 insertions(+), 10 deletions(-) + +commit 0672da58048247af1190543901c87adf0e4aecf4 +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 11 00:00:03 2010 +0100 + + Custom code for delegates + + bindings/vala/grilo-0.1/grilo-0.1-custom.vala | 11 +++++++++++ + bindings/vala/grilo-0.1/grilo-0.1.metadata | 5 +++++ + 2 files changed, 16 insertions(+) + +commit 304c1c85fdc64de6b71d06a094426344d52df89e +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 11 00:00:02 2010 +0100 + + Custom code for macros + + bindings/vala/grilo-0.1/grilo-0.1-custom.vala | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +commit ff6a64a14517411ba9f40cb093d7e23e182f17cd +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 11 00:00:01 2010 +0100 + + Regenerate vapi file + + bindings/vala/grilo-0.1.vapi | 209 ++++++++++++++++++++--------------- + bindings/vala/grilo-0.1/grilo-0.1.gi | 49 +++++++- + 2 files changed, 163 insertions(+), 95 deletions(-) + +commit 07dc71db77e31d4af293e1938777ab3ea8297ee8 +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 11 00:00:00 2010 +0100 + + Add the metadata file + + bindings/vala/grilo-0.1/grilo-0.1.metadata | 3 +++ + 1 file changed, 3 insertions(+) + +commit 234f10fae539d7e26e710ac3a17949f36738aa3e +Author: Víctor Manuel Jáquez Leal +Date: Wed Feb 10 23:59:59 2010 +0100 + + Name the error enum as GrlError + + In this way we can mark the enum as an error domain in vala. + + src/grl-error.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit f327e63c41cbcfc2c8b32442d06834ee0196edcf +Author: Juan A. Suarez Romero +Date: Wed Feb 10 13:08:54 2010 +0100 + + Downgrade Vala version requirements + + Downgrade required version to 0.3.4, that comes with Debian Stable. + + Right now, we do not have any reason to need 0.7.5. If in future we need it, + then we will upgrade it. + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 9e6a51f45718cb2aa77a2aa5f3156a959bf8b4ed +Author: Juan A. Suarez Romero +Date: Tue Feb 9 21:45:25 2010 +0100 + + Fix previous commit + + I'm sorry :) + + tools/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 73a03b1f3f4ab50c3d83f8435b1519ba9cd602b3 +Author: Juan A. Suarez Romero +Date: Tue Feb 9 21:43:03 2010 +0100 + + Fix build files + + Update configure.ac and Makefile.am to reflect the change from test-ui to grilo-test-ui. + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit aceae66e95c724227906b14ade2b60f106194cae +Author: Juan A. Suarez Romero +Date: Tue Feb 9 19:38:38 2010 +0100 + + Rename test-ui to grilo-test-ui + + tools/{test-ui => grilo-test-ui}/Makefile.am | 0 + tools/{test-ui => grilo-test-ui}/TODO | 0 + tools/{test-ui => grilo-test-ui}/main.c | 0 + 3 files changed, 0 insertions(+), 0 deletions(-) + +commit 15dcb5c09eb28b0053d4d0a96b081e4e64521185 +Author: Víctor Manuel Jáquez Leal +Date: Tue Feb 9 15:48:23 2010 +0100 + + rename the binary to grilo-test-ui + + It's a good idea to know which ui are we testing. + + tools/test-ui/Makefile.am | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 0d558f9880e90796ccdf1adcb2fb456cf9462ecd +Author: Víctor Manuel Jáquez Leal +Date: Tue Feb 9 14:17:40 2010 +0100 + + Add a menu + + Just to be gentle with people with minimalistic window-managers, + add a simple menu in the test application with the file->quit + + tools/test-ui/main.c | 38 +++++++++++++++++++++++++++++++++++++- + 1 file changed, 37 insertions(+), 1 deletion(-) + +commit 74af8888372fc922995c22ba453b95f29c973bb7 +Author: Juan A. Suarez Romero +Date: Tue Feb 9 19:30:33 2010 +0100 + + Connect source signals before loading them + + It makes more sense to connect signals to source-added/source-removed before + loading the plugins. + + In the same way, makes more sense to build the UI before loading the plugins. + + Thanks to Victor Jaquez. + + tools/test-ui/main.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 4dd84ebe0e21ec4ca566fde54ceb8f142613424f +Author: Juan A. Suarez Romero +Date: Tue Feb 9 00:36:14 2010 +0100 + + Add content dir in uninstalled pkg-config + + grilo-0.1-uninstalled.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 9f2a2bed3aa97dbfcb84b0dcdc4d4938b2ac45ce +Author: Juan A. Suarez Romero +Date: Mon Feb 8 18:50:51 2010 +0100 + + Get rid of plugins requirements + + We do not need to check for plugins requirements. + + configure.ac | 6 ------ + 1 file changed, 6 deletions(-) + +commit 8091b5c93377b4655b17066fe534f56e1d36e6d1 +Author: Juan A. Suarez Romero +Date: Fri Feb 5 19:29:09 2010 +0100 + + Rename project + + Change name from "Media Store" to Grilo. + + Change prefixes from "ms" to "grl". + + Makefile.am | 2 +- + TODO | 2 +- + autogen.sh | 2 +- + bindings/vala/Makefile.am | 2 +- + bindings/vala/grilo-0.1.vapi | 366 ++++++++++ + bindings/vala/grilo-0.1/grilo-0.1.files | 3 + + bindings/vala/grilo-0.1/grilo-0.1.gi | 759 +++++++++++++++++++++ + bindings/vala/grilo-0.1/grilo-0.1.namespace | 1 + + bindings/vala/media-store-0.1.vapi | 366 ---------- + .../vala/media-store-0.1/media-store-0.1.files | 3 - + bindings/vala/media-store-0.1/media-store-0.1.gi | 759 --------------------- + .../vala/media-store-0.1/media-store-0.1.namespace | 1 - + configure.ac | 26 +- + ...ninstalled.pc.in => grilo-0.1-uninstalled.pc.in | 8 +- + grilo-0.1.pc.in | 14 + + media-store-0.1.pc.in | 14 - + src/Makefile.am | 50 +- + src/content/Makefile.am | 26 +- + .../{ms-content-audio.c => grl-content-audio.c} | 38 +- + src/content/grl-content-audio.h | 107 +++ + src/content/grl-content-box.c | 132 ++++ + src/content/grl-content-box.h | 79 +++ + .../{ms-content-image.c => grl-content-image.c} | 48 +- + src/content/grl-content-image.h | 95 +++ + .../{ms-content-media.c => grl-content-media.c} | 53 +- + src/content/grl-content-media.h | 161 +++++ + .../{ms-content-video.c => grl-content-video.c} | 48 +- + src/content/grl-content-video.h | 104 +++ + src/content/{ms-content.c => grl-content.c} | 193 +++--- + src/content/grl-content.h | 115 ++++ + src/content/ms-content-audio.h | 90 --- + src/content/ms-content-box.c | 132 ---- + src/content/ms-content-box.h | 74 -- + src/content/ms-content-image.h | 83 --- + src/content/ms-content-media.h | 123 ---- + src/content/ms-content-video.h | 87 --- + src/content/ms-content.h | 90 --- + src/{media-store.h => grilo.h} | 32 +- + src/{ms-error.h => grl-error.h} | 24 +- + src/{ms-log.c => grl-log.c} | 38 +- + src/{ms-log.h => grl-log.h} | 8 +- + ...media-plugin-priv.h => grl-media-plugin-priv.h} | 17 +- + src/grl-media-plugin.c | 138 ++++ + src/grl-media-plugin.h | 96 +++ + src/{ms-media-source.c => grl-media-source.c} | 698 +++++++++---------- + src/grl-media-source.h | 253 +++++++ + src/{ms-metadata-key.c => grl-metadata-key.c} | 10 +- + src/grl-metadata-key.h | 132 ++++ + ...ta-source-priv.h => grl-metadata-source-priv.h} | 16 +- + ...{ms-metadata-source.c => grl-metadata-source.c} | 359 +++++----- + src/grl-metadata-source.h | 169 +++++ + ...{ms-plugin-registry.c => grl-plugin-registry.c} | 170 ++--- + src/grl-plugin-registry.h | 163 +++++ + src/ms-media-plugin.c | 134 ---- + src/ms-media-plugin.h | 82 --- + src/ms-media-source.h | 238 ------- + src/ms-metadata-key.h | 132 ---- + src/ms-metadata-source.h | 152 ----- + src/ms-plugin-registry.h | 125 ---- + tools/test-ui/Makefile.am | 2 +- + tools/test-ui/main.c | 422 ++++++------ + 61 files changed, 4055 insertions(+), 3811 deletions(-) + +commit bb7ee6d94a34c4fe5ed3d2202af535ff69f01aaf +Author: Juan A. Suarez Romero +Date: Fri Feb 5 12:09:58 2010 +0100 + + Update AUTHORS + + Add Victor Jáquez Leal as Vala bindings' author. + + Add contributions to each author. + + AUTHORS | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit f568bc099df5fb4ec5ad58d0e70c4cfb7968e12f +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 4 12:19:27 2010 +0100 + + autoconf-fu magic for vala bindigs + + Makefile.am | 2 +- + bindings/Makefile.am | 5 +++++ + bindings/vala/Makefile.am | 2 ++ + configure.ac | 26 ++++++++++++++++++++++++++ + 4 files changed, 34 insertions(+), 1 deletion(-) + +commit d30002c2119e027ab02349dadb877126e424220d +Author: Víctor Manuel Jáquez Leal +Date: Thu Feb 4 12:19:26 2010 +0100 + + import initial vala bindings + + Also are imported the files needed for the automatic binding generation. + + bindings/vala/media-store-0.1.vapi | 366 ++++++++++ + .../vala/media-store-0.1/media-store-0.1.files | 3 + + bindings/vala/media-store-0.1/media-store-0.1.gi | 759 +++++++++++++++++++++ + .../vala/media-store-0.1/media-store-0.1.namespace | 1 + + 4 files changed, 1129 insertions(+) + +commit 9ff6d63636e881ab8d73036077d669aa6066e71b +Author: Iago Toral +Date: Fri Feb 5 11:55:32 2010 +0100 + + [test-ui] Implemented support for content removal. + + tools/test-ui/main.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++-- + 1 file changed, 76 insertions(+), 2 deletions(-) + +commit 0fe76b552115ba47a6d45207814d046502ea2fec +Author: Iago Toral +Date: Fri Feb 5 11:54:47 2010 +0100 + + Added support for content removal operations. + + src/ms-error.h | 1 + + src/ms-media-source.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ + src/ms-media-source.h | 20 +++++++++++++++ + src/ms-metadata-source.h | 1 + + 4 files changed, 85 insertions(+) + +commit 871f67b540fb707ab81869951741205fcbcd1577 +Author: Iago Toral +Date: Thu Feb 4 10:08:17 2010 +0100 + + [test-ui] Do not let toolbar buttons expand. + + tools/test-ui/main.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 58df9fa85aa1a688dec502c673e3ca108912bc14 +Author: Iago Toral +Date: Thu Feb 4 10:03:05 2010 +0100 + + [test-ui] Implemented support for adding content to sources that + support MS_OP_STORE or MS_OP_STORE_PARENT. + + tools/test-ui/main.c | 143 +++++++++++++++++++++++++++++++++++++++++++++++++-- + 1 file changed, 138 insertions(+), 5 deletions(-) + +commit e6d7ee3267a0692fbdf4cb481ef9fc4dac1859a9 +Author: Iago Toral +Date: Thu Feb 4 10:02:17 2010 +0100 + + Implemented ms_media_source_store(). + + src/ms-media-source.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ + src/ms-media-source.h | 35 ++++++++++++++++------ + src/ms-metadata-source.h | 14 +++++---- + 3 files changed, 112 insertions(+), 15 deletions(-) + +commit beb5ae48321ec6ae65300e2207e8dfe0f17bdeb7 +Author: Iago Toral +Date: Thu Feb 4 10:01:30 2010 +0100 + + Added MS_ERROR_STORE_FAILED + + src/ms-error.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 9721715cc20b34e404bee6fec99a67f4cefb9295 +Author: Iago Toral +Date: Thu Feb 4 05:59:14 2010 +0100 + + [test-ui] Moved last_url from 'view' to 'ui_state' + + tools/test-ui/main.c | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +commit da91773e4c823f04e0a0e8ba75606e3441f21d22 +Author: Iago Toral +Date: Thu Feb 4 05:34:43 2010 +0100 + + [test-ui] do no assume that search/query results cannot be containers. + + tools/test-ui/main.c | 22 +++++++++++++++++----- + 1 file changed, 17 insertions(+), 5 deletions(-) + +commit f7f418d760e388ad1e4e50544f709810daad74ab +Author: Juan A. Suarez Romero +Date: Tue Feb 2 20:10:44 2010 +0100 + + [test-ui] Add Show button + + Add a button to display the selected image, video or audio. + + The item will be open with default external application. + + tools/test-ui/main.c | 33 ++++++++++++++++++++++++++++++++- + 1 file changed, 32 insertions(+), 1 deletion(-) + +commit 3c39651458ecbc460544618ddfdde4d635707b9d +Author: Iago Toral +Date: Mon Feb 1 18:38:14 2010 +0100 + + [test-ui] Added support for "query" operations + + tools/test-ui/main.c | 148 +++++++++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 137 insertions(+), 11 deletions(-) + +commit 2f0320d31a84c46fa22c3a55c33bd63a04cf25a5 +Author: Juan A. Suarez Romero +Date: Fri Jan 29 10:34:22 2010 +0100 + + Update document + + Proposal to get rid of slow_keys() function + + doc/brainstorming/to-be-discussed.txt | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit 9714566333fcabdd2c446229c08a888af01edc6e +Author: Iago Toral +Date: Fri Jan 29 12:54:06 2010 +0100 + + [test-ui] Cosmetic changes to debug traces + + tools/test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit db0bf4dbaf087ea25719bfb3d37b87a37bf86f42 +Author: Iago Toral +Date: Fri Jan 29 12:52:56 2010 +0100 + + [test-ui] Added G_LOG_DOMAIN definition + + tools/test-ui/main.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit 781f6d9650080f9ba7af1c7eda12f668847cb376 +Author: Iago Toral +Date: Fri Jan 29 12:43:44 2010 +0100 + + [test-ui] Free icon pixbufs + + tools/test-ui/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit e34be0adafce535d81d059ca2875e746144baae0 +Author: Juan A. Suarez Romero +Date: Thu Jan 28 21:10:09 2010 +0100 + + Get rid of get_framerate() in Image class + + Framerate only makes sense in Videos, not Images. + + src/content/ms-content-image.h | 2 -- + 1 file changed, 2 deletions(-) + +commit f09ea34289d45de68ba8441659cfa4020ff953a2 +Author: Iago Toral +Date: Thu Jan 28 17:26:46 2010 +0100 + + [test-ui] Updated TODO + + tools/test-ui/TODO | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +commit f1f187bcc4fd12ef278df1a8178180fd0fa44621 +Author: Iago Toral +Date: Thu Jan 28 17:25:41 2010 +0100 + + [test-ui] Ignore metadata results for items that are not the one + currently selected. + + tools/test-ui/main.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit 83b827db5777dc3b0d8c35d1e4879f1e9b7072f1 +Author: Iago Toral +Date: Thu Jan 28 16:56:49 2010 +0100 + + Added debug trace to keep track of memory disposal + + src/content/ms-content-media.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit aae0aeb2b2a5444bd7f8135186b9e752274e43eb +Author: Iago Toral +Date: Thu Jan 28 16:56:05 2010 +0100 + + [test-ui] Added comments on memory management + + tools/test-ui/main.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit f2c85e8bf784c3f7e03debc4ed509705e9100932 +Author: Iago Toral +Date: Thu Jan 28 16:12:35 2010 +0100 + + [test-ui] Improved code for memmory management + + tools/test-ui/main.c | 174 ++++++++++++++++++++++++++++++++++----------------- + 1 file changed, 117 insertions(+), 57 deletions(-) + +commit 895e9def4f7eb84e4822e87fdddc856449d52a11 +Author: Juan A. Suarez Romero +Date: Mon Jan 25 10:21:37 2010 +0100 + + Update todo + + It would be helpful to group plugins (or have a way to do it). + + doc/brainstorming/to-be-discussed.txt | 24 ++++++++++++++++++++++++ + 1 file changed, 24 insertions(+) + +commit 1a047b0481a98ccf4e15d0893ca536ab878afffc +Author: Juan A. Suarez Romero +Date: Fri Jan 22 18:18:18 2010 +0100 + + Fix previous commit + + src/ms-media-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 13ef0e753432df0e7b7dfaf3cdd6d12bedf8b00e +Author: Juan A. Suarez Romero +Date: Fri Jan 22 17:49:39 2010 +0100 + + Fix some warnings + + Initalize some pointers to NULL in ms-media-source.c + + src/ms-media-source.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +commit 7174c43d5a868be5216556f67508b9a85ee60537 +Author: Juan A. Suarez Romero +Date: Fri Jan 22 16:12:13 2010 +0100 + + Define MS_NAME + + Define it in configure.ac, to simplify Makefile.am + + Its current value is "media-store-0.1". + + configure.ac | 8 ++++++- + media-store-0.1-uninstalled.pc.in | 4 ++-- + media-store-0.1.pc.in | 4 ++-- + src/Makefile.am | 44 +++++++++++++++++++-------------------- + src/content/Makefile.am | 2 +- + tools/test-ui/Makefile.am | 2 +- + 6 files changed, 35 insertions(+), 29 deletions(-) + +commit ea1688efc8353d6949cc5334966b1a461edfae2c +Author: Iago Toral +Date: Fri Jan 22 13:03:27 2010 +0100 + + Improved memory management + + src/ms-media-source.c | 17 +++++++++++++++++ + src/ms-metadata-source.c | 3 ++- + 2 files changed, 19 insertions(+), 1 deletion(-) + +commit fd8f165db98e8aafd28c80eafb0974102916bcc7 +Author: Iago Toral +Date: Fri Jan 22 10:50:16 2010 +0100 + + Force substitution of builddir for older Automake versions. + + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +commit 2050e61ab37031a1bd2667376b499de200f0c18a +Author: Iago Toral +Date: Fri Jan 22 10:23:48 2010 +0100 + + [test-ui] Proper refreshing of search combo when dealing with + dynamic sources. + + tools/test-ui/main.c | 31 ++++++++++++++++++++----------- + 1 file changed, 20 insertions(+), 11 deletions(-) + +commit afded3e6a92c5394234b737ae450d563b524924e +Author: Juan A. Suarez Romero +Date: Thu Jan 21 21:13:29 2010 +0100 + + Fix distcheck + + src/Makefile.am | 6 +++--- + src/content/Makefile.am | 4 ++-- + 2 files changed, 5 insertions(+), 5 deletions(-) + +commit 162bf21255c0d51134602e30c5482dab42896e2f +Author: Juan A. Suarez Romero +Date: Thu Jan 21 19:48:14 2010 +0100 + + Add headers directories with "-I" argument + + src/Makefile.am | 5 ++++- + src/content/Makefile.am | 1 + + src/content/ms-content-audio.h | 2 +- + src/content/ms-content-box.h | 2 +- + src/content/ms-content-image.h | 2 +- + src/content/ms-content-media.h | 2 +- + src/content/ms-content-video.h | 2 +- + src/content/ms-content.h | 2 +- + src/media-store.h | 12 ++++++------ + src/ms-media-source.h | 6 +++--- + src/ms-metadata-source.h | 6 +++--- + src/ms-plugin-registry.h | 4 ++-- + tools/test-ui/Makefile.am | 3 ++- + 13 files changed, 27 insertions(+), 22 deletions(-) + +commit ce31f9197c98ed54ca4a959f9177924535ec15ae +Author: Iago Toral +Date: Thu Jan 21 19:18:56 2010 +0100 + + [test-ui] Use source name instead of plugin name + + tools/test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 54c93ecc2ab04043fa1201fca4497600ef8d7778 +Author: Juan A. Suarez Romero +Date: Thu Jan 21 18:47:43 2010 +0100 + + Add pkgconfig file + + Makefile.am | 3 +++ + configure.ac | 1 + + media-store-0.1.pc.in | 14 ++++++++++++++ + 3 files changed, 18 insertions(+) + +commit a32389d218afed4a0dad4050d0374666b6b67a39 +Author: Juan A. Suarez Romero +Date: Thu Jan 21 18:18:00 2010 +0100 + + Add ABI version (0.1) to uninstalled.pc + + configure.ac | 2 +- + media-store-uninstalled.pc.in => media-store-0.1-uninstalled.pc.in | 0 + 2 files changed, 1 insertion(+), 1 deletion(-) + +commit 2d7bd2859b292a95647707e2de02c18e5d51a59d +Author: Juan A. Suarez Romero +Date: Thu Jan 21 17:56:38 2010 +0100 + + Use PACKAGE_NAME variable in Makefile.am + + Thus, if we change project name, libraries will change accordingly. + + src/Makefile.am | 14 +++++++------- + src/content/Makefile.am | 2 +- + tools/test-ui/Makefile.am | 2 +- + 3 files changed, 9 insertions(+), 9 deletions(-) + +commit 852079f6f97f840a1a3ade0c749537a9165ab43b +Author: Juan A. Suarez Romero +Date: Thu Jan 21 17:02:55 2010 +0100 + + Fix pkgconfig file (uninstalled version) + + media-store-uninstalled.pc.in | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit b8a21f9263d3ffcb98da81b006a29493c1649c0d +Author: Juan A. Suarez Romero +Date: Thu Jan 21 16:33:19 2010 +0100 + + Add ABI to libraries and specific directories + + Adding ABI as suffix will avoid conflicts with different versions in system. + + Current ABI is 0.1. + + src/Makefile.am | 31 ++++++++++++++++--------------- + src/content/Makefile.am | 2 +- + tools/test-ui/Makefile.am | 2 +- + 3 files changed, 18 insertions(+), 17 deletions(-) + +commit 42312e66ca60e5e77f73918b701810a1be84a1b2 +Author: Juan A. Suarez Romero +Date: Thu Jan 21 14:04:06 2010 +0100 + + Merge libcontent into libmedia-store + + So now only one library is needed. + + src/Makefile.am | 4 +++- + src/content/Makefile.am | 6 ++++-- + tools/test-ui/Makefile.am | 13 ++++++------- + 3 files changed, 13 insertions(+), 10 deletions(-) + +commit 290e40850446ccf55dd584f4f49e81ee5ed0d2a7 +Author: Juan A. Suarez Romero +Date: Thu Jan 21 13:49:21 2010 +0100 + + Create libmedia-store instead of libmediastore + + configure.ac | 40 +++++++++++++++++++++++++++------------- + src/Makefile.am | 12 ++++++------ + tools/test-ui/Makefile.am | 2 +- + 3 files changed, 34 insertions(+), 20 deletions(-) + +commit c2302053483a23273f6e19cdeb5321928b6bcfad +Author: Iago Toral +Date: Thu Jan 21 09:38:17 2010 +0100 + + [test-ui] Implement support for dynamic sources + + tools/test-ui/main.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 58 insertions(+), 1 deletion(-) + +commit 85da56e740beeb490d7725286c41e3fee8812287 +Author: Iago Toral +Date: Thu Jan 21 09:37:51 2010 +0100 + + Emit source-removed signal when appropriate. + + src/ms-plugin-registry.c | 1 + + 1 file changed, 1 insertion(+) + +commit 21bce9e84abe8e67cb4f94e68f69634d55e0b80a +Author: Iago Toral +Date: Wed Jan 20 17:47:16 2010 +0100 + + Added support for dynamic sources. + + src/ms-plugin-registry.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++-- + src/ms-plugin-registry.h | 1 + + 2 files changed, 58 insertions(+), 2 deletions(-) + +commit 117ab7fe77fbbacf34e2110d8e2049feb0b0ff84 +Author: Iago Toral +Date: Wed Jan 20 17:46:07 2010 +0100 + + Added debug traces for some memory freeing operations + + src/ms-media-source.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit fc31c94cc224e1a1b97d74001e1e434162eaf39b +Author: Iago Toral +Date: Wed Jan 20 17:44:24 2010 +0100 + + [test-ui] Improved memory management + + tools/test-ui/main.c | 38 +++++++++++++++++++++++++++++++------- + 1 file changed, 31 insertions(+), 7 deletions(-) + +commit bf30d171ebd60af585991dcc9bf9099819c94406 +Author: Juan A. Suarez Romero +Date: Wed Jan 20 16:01:54 2010 +0100 + + Include src dir with -I flag + + src/content/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 9f87347c1e678483e99eca7ee19923e219c7355b +Author: Iago Toral +Date: Wed Jan 20 14:01:34 2010 +0100 + + Implemented auto-split for MsMediaSource. + + src/ms-media-source.c | 371 ++++++++++++++++++++++++++++++++++++++++---------- + src/ms-media-source.h | 4 + + 2 files changed, 303 insertions(+), 72 deletions(-) + +commit 8a0cd9f109ed974aeb354c596b6df186edab10bd +Author: Iago Toral +Date: Wed Jan 20 14:01:02 2010 +0100 + + Cosmetic changes + + src/ms-metadata-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 4ada6aaf4ba8c2ceb2340c959a42872bb4f17548 +Author: Juan A. Suarez Romero +Date: Wed Jan 20 10:25:00 2010 +0000 + + Use package name as base name for place where to install plugins + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit adc1840c16bbab39bef8ba93292e031eb1bb8a44 +Author: Juan A. Suarez Romero +Date: Wed Jan 20 10:22:11 2010 +0000 + + Install header files + + src/Makefile.am | 36 ++++++++++++++++++++++++------------ + src/content/Makefile.am | 24 +++++++++++++++++------- + 2 files changed, 41 insertions(+), 19 deletions(-) + +commit 3f92fe1d29fc2e39c9ab684385a263ba6e7de026 +Author: Juan A. Suarez Romero +Date: Wed Jan 20 09:47:50 2010 +0000 + + Use absolute paths in Makefile.am + + Use vars "top_builddir" and "top_srcdir" to make references of building and + source paths, respectively. + + src/Makefile.am | 2 +- + tools/test-ui/Makefile.am | 26 +++++++++++++------------- + 2 files changed, 14 insertions(+), 14 deletions(-) + +commit 53a31c973eb3f42b87fa26c00076d3f0553ea9bf +Author: Juan A. Suarez Romero +Date: Tue Jan 19 18:38:47 2010 +0000 + + Use plugins dir as default value for MS_PLUGIN_PATH. + + configure.ac | 11 ++++++++++- + src/ms-plugin-registry.c | 8 +++++--- + 2 files changed, 15 insertions(+), 4 deletions(-) + +commit d4e9ec06107d5ca981c5053fd8a3074025cc2e24 +Author: Juan A. Suarez Romero +Date: Tue Jan 19 15:56:28 2010 +0000 + + Install plugins into separated directory. + + configure.ac | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 86a7151c7a79eb95c7619a46065e5df96264428c +Author: Iago Toral +Date: Tue Jan 19 12:14:14 2010 +0100 + + [test-ui] Request childcount when browsing + + tools/test-ui/main.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +commit d96ea88bdbaef06c392061d2e216912da9a91f60 +Author: Iago Toral +Date: Tue Jan 19 12:09:38 2010 +0100 + + Fixed wrong cancellation handling in the idle relay callback + when cancelling exactly when the last element is emitted. + + src/ms-media-source.c | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +commit c15e8231931391161bfa95c2a16c523b2adb9cee +Author: Juan A. Suarez Romero +Date: Tue Jan 19 11:39:08 2010 +0000 + + Do not check for gettext + + Right now, we are not using any kind of internationalization. + + configure.ac | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +commit 91fa6a7ff3087fea81c3f1cb44247f37a2ea2bdf +Author: Juan A. Suarez Romero +Date: Tue Jan 19 11:34:39 2010 +0000 + + Remove po directory. + + Right now, we do not use it. + + po/Makefile.in.in | 270 ------------------------------------------------------ + 1 file changed, 270 deletions(-) + +commit e7f5a19152bfe01b93dbfc23be3bf09590163fa4 +Author: Juan A. Suarez Romero +Date: Tue Jan 19 11:32:58 2010 +0000 + + Improve distclean target. + + Some files were still kept with distclean (mainly, *.in files). + + src/Makefile.am | 2 ++ + src/content/Makefile.am | 2 ++ + 2 files changed, 4 insertions(+) + +commit 63568af68bbb8df1ddebff760fb557572ed79346 +Author: Juan A. Suarez Romero +Date: Tue Jan 19 11:28:13 2010 +0000 + + Remove autom4te.cache in distclean. + + Makefile.am | 3 +++ + 1 file changed, 3 insertions(+) + +commit 30ddf0bb95bcb4fccfe649a4c5289077d5b1f4cc +Author: Juan A. Suarez Romero +Date: Mon Jan 18 20:36:48 2010 +0100 + + Exit program after closing main window. + + tools/test-ui/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit dd5060990a14c84b48add3fcbbb6552f230cb923 +Author: Juan A. Suarez Romero +Date: Mon Jan 18 13:28:47 2010 +0100 + + Add MS_RESOLVE_ERROR + + src/ms-error.h | 1 + + 1 file changed, 1 insertion(+) + +commit 16b0dc3e1a94386609f70bcdc5547d1a1ad8eb53 +Author: Iago Toral +Date: Mon Jan 18 13:59:57 2010 +0100 + + [test-ui] Do not let widgets expand if they don't need to. + + tools/test-ui/main.c | 13 +++++++++---- + 1 file changed, 9 insertions(+), 4 deletions(-) + +commit e56df2ed8fe92a9a662982bf72bad9f4b49f2763 +Author: Iago Toral +Date: Mon Jan 18 13:24:56 2010 +0100 + + [test-ui] Request MS_METADATA_KEY_RATING in metadata operation + + tools/test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit 09567bc5f818ee5b146707b89265795482e8ac3e +Author: Iago Toral +Date: Mon Jan 18 13:24:13 2010 +0100 + + Added support for rating key in MsContentMedia + + src/content/ms-content-media.c | 29 +++++++++++++++++++++++++++++ + src/content/ms-content-media.h | 5 +++++ + 2 files changed, 34 insertions(+) + +commit 505340bf2ce915ae913fe4df76790ae8b55c89e6 +Author: Iago Toral +Date: Mon Jan 18 12:07:46 2010 +0100 + + Added MS_METADATA_KEY_RATING + + src/ms-metadata-key.h | 4 ++++ + src/ms-plugin-registry.c | 1 + + 2 files changed, 5 insertions(+) + +commit 4268e0d585dac2b05b2cdad4e4902919eccc932e +Author: Iago Toral +Date: Mon Jan 18 12:02:41 2010 +0100 + + [test-ui] Request sit key in metadata operation + + tools/test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit c9e60637e93f41db95b4b16ae06a3b9e58b19e5f +Author: Iago Toral +Date: Mon Jan 18 11:24:13 2010 +0100 + + Cosmetic changes + + src/ms-media-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit f682b28751fe6273d8a89de10807405a214aa18b +Author: Iago Toral +Date: Mon Jan 18 11:21:57 2010 +0100 + + Control the case when sources emit results with remaining=0 + more than once for the same operation (which is wrong). If this is + detected drop a warning message and avoid crashing. + + src/ms-media-source.c | 60 +++++++++++++++++++++++++++++++++++++++++++++------ + 1 file changed, 54 insertions(+), 6 deletions(-) + +commit 42f76682479760fd387a82056b58910db62c6aaa +Author: Iago Toral +Date: Mon Jan 18 10:20:20 2010 +0100 + + [test-ui] Request MIME type in metadata queries + + tools/test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit 9b937dbe8c3c7f68fcfaa0f7e97019bf07c32d8a +Author: Iago Toral +Date: Sun Jan 17 04:33:25 2010 +0100 + + [test-ui] Fixed critical warning when trying to get contents + from NULL GValue. + + tools/test-ui/main.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 903933bdb42b8fe326e9b89ab51281f8070fd9f0 +Author: Iago Toral +Date: Sun Jan 17 04:24:06 2010 +0100 + + Fixed various issues with operation cancelling. + Implemented cancellation in youtube plugin. + Ensure that results are sent in appropriate order if MS_RESOLVE_FULL is used. + + src/ms-media-source.c | 416 ++++++++++++++++++++++++++++++++++++++------------ + src/ms-media-source.h | 7 + + 2 files changed, 323 insertions(+), 100 deletions(-) + +commit 3174122f16e5d93aad1c1d0a0ca16142a102f0dd +Author: Iago Toral +Date: Sat Jan 16 18:22:43 2010 +0100 + + [test-ui] Added license header to main.c + + tools/test-ui/main.c | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + +commit 9ecaa3b06c2c3976f0c0a880a1b3ca2cc30e8552 +Author: Iago Toral +Date: Sat Jan 16 18:16:53 2010 +0100 + + Added operation cancellation support (browse, search and query). + + src/ms-media-source.c | 285 +++++++++++++++++++++++++++++++++++--------------- + src/ms-media-source.h | 5 + + tools/test-ui/main.c | 208 ++++++++++++++++++++---------------- + 3 files changed, 322 insertions(+), 176 deletions(-) + +commit d5700e91d3254fb3db6a56bc4b243a3e4e1e86a8 +Author: Juan A. Suarez Romero +Date: Fri Jan 15 12:14:42 2010 +0100 + + Add error code for failing query. + + src/ms-error.h | 1 + + 1 file changed, 1 insertion(+) + +commit f687c299b13332d16152cae1865403a7b5beb18c +Author: Juan A. Suarez Romero +Date: Thu Jan 14 18:20:37 2010 +0100 + + Fix ms_content_set. + + Value can be set if overwrite is FALSE but there is no old value. + + src/content/ms-content.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f5bd76e02a759673629b273a2e00102c6fa51da9 +Author: Juan A. Suarez Romero +Date: Thu Jan 14 18:06:24 2010 +0100 + + Internally store unknown values for childcount as NULL. + + src/content/ms-content-box.c | 50 ++++++++++++++++++++++++++++++++++++++++++++ + src/content/ms-content-box.h | 8 ++----- + 2 files changed, 52 insertions(+), 6 deletions(-) + +commit 1eff2428fd0ed259e399ddc3dc5225e12d48c382 +Author: Juan A. Suarez Romero +Date: Thu Jan 14 17:46:08 2010 +0100 + + Fix preconditions for ms_content_ operations. + + src/content/ms-content.c | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +commit f35228fadddc5e56a306b14339f27fc839d66852 +Author: Juan A. Suarez Romero +Date: Thu Jan 14 17:42:23 2010 +0100 + + Specify if old values can be replaced when setting values in MsContent. + + src/content/ms-content.c | 142 +++++++++++++++++++++++++++++++++++++++++------ + src/content/ms-content.h | 2 + + 2 files changed, 126 insertions(+), 18 deletions(-) + +commit 4627e77f64597de7b275b2b0b8bd8cda773fd7b9 +Author: Iago Toral +Date: Thu Jan 14 17:23:20 2010 +0100 + + Disable search button while browse/search operations are on going + + tools/test-ui/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 4e8e2be54e7834bb83ad34ed5e6fb9af17941e87 +Author: Iago Toral +Date: Thu Jan 14 17:22:02 2010 +0100 + + Renames IS_MS_* macros to MS_IS_* + + src/content/ms-content-audio.h | 4 ++-- + src/content/ms-content-box.h | 4 ++-- + src/content/ms-content-image.h | 4 ++-- + src/content/ms-content-media.h | 4 ++-- + src/content/ms-content-video.h | 4 ++-- + src/content/ms-content.h | 4 ++-- + src/ms-media-plugin.c | 16 ++++++++-------- + src/ms-media-plugin.h | 4 ++-- + src/ms-media-source.c | 8 ++++---- + src/ms-media-source.h | 4 ++-- + src/ms-metadata-source.c | 20 ++++++++++---------- + src/ms-metadata-source.h | 4 ++-- + src/ms-plugin-registry.h | 4 ++-- + tools/test-ui/main.c | 10 +++++----- + 14 files changed, 47 insertions(+), 47 deletions(-) + +commit b184e56a836544ac2e341ed5d1a04ed2f4388db7 +Author: Iago Toral +Date: Thu Jan 14 17:08:16 2010 +0100 + + Disable back button if browse or search operations are on going. + + tools/test-ui/main.c | 85 +++++++++++++++++++++++++++++----------------------- + 1 file changed, 47 insertions(+), 38 deletions(-) + +commit a06ab644d11e5ac00e89db3f0af4ed6d8807c343 +Author: Iago Toral +Date: Thu Jan 14 16:46:11 2010 +0100 + + test-ui: separate UI widgets from UI state. + + tools/test-ui/main.c | 39 +++++++++++++++++++++++---------------- + 1 file changed, 23 insertions(+), 16 deletions(-) + +commit 0aa835217a61115ddfb9b9f2e75c36eba075d492 +Author: Iago Toral +Date: Thu Jan 14 16:33:11 2010 +0100 + + Split search() in two: search() and query(), the former seach + by text while the latter uses a plugin dependent filter. + + src/ms-media-source.c | 117 +++++++++++++++++++++++++++++++++++++++++++++-- + src/ms-media-source.h | 27 ++++++++++- + src/ms-metadata-source.h | 3 +- + tools/test-ui/main.c | 2 - + 4 files changed, 140 insertions(+), 9 deletions(-) + +commit 36dc02eebaaf344a358c18c60dc761368e1be1bd +Author: Iago Toral +Date: Thu Jan 14 12:39:57 2010 +0100 + + Set the object type properly in the browse_cb (test-ui) + + tools/test-ui/main.c | 5 +++++ + 1 file changed, 5 insertions(+) + +commit caab7eaf21a7cae6486156fca8730ae5ed3bd7b2 +Author: Iago Toral +Date: Thu Jan 14 11:58:00 2010 +0100 + + Added traces to keep track of finished operations (browse & search) + + tools/test-ui/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +commit 29a26c1becb39dfa9fa335ac0149d1c367e7f9d8 +Author: Juan A. Suarez Romero +Date: Wed Jan 13 19:20:52 2010 +0100 + + Fix ms_content_key_is_known() function. + + src/content/ms-content.c | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) + +commit 84fa16c3bbc1099dd6d43fbf0c79036898eceb31 +Author: Juan A. Suarez Romero +Date: Wed Jan 13 19:17:33 2010 +0100 + + Implement get/set floats in MsContent. + + src/content/ms-content.c | 39 +++++++++++++++++++++++++++++++++++++++ + src/content/ms-content.h | 2 ++ + 2 files changed, 41 insertions(+) + +commit 081fb3bd8b12a86427bec35e4d549c4cac743821 +Author: Juan A. Suarez Romero +Date: Wed Jan 13 13:41:14 2010 +0100 + + Refactor ms_content_get_keys so it returns a GList instead of an array. + + src/content/ms-content.c | 36 ++++++------------------------------ + src/content/ms-content.h | 2 +- + tools/test-ui/main.c | 17 ++++++++++------- + 3 files changed, 17 insertions(+), 38 deletions(-) + +commit 44d1b75413f006e41430c0b64bcf35fd8157794f +Author: Juan A. Suarez Romero +Date: Wed Jan 13 13:39:29 2010 +0100 + + Add macros to convert between MsKeyID and gpointer. + + src/content/ms-content.c | 10 +++++----- + src/ms-metadata-key.c | 2 +- + src/ms-metadata-key.h | 7 +++++-- + src/ms-metadata-source.c | 20 ++++++++++---------- + 4 files changed, 21 insertions(+), 18 deletions(-) + +commit 49215c1d7f7a448415707de49d0bd5b2483e0e2b +Author: Juan A. Suarez Romero +Date: Wed Jan 13 12:32:17 2010 +0100 + + Add function ms_content_key_is_known. + + This function returns TRUE if the key has a value. + + src/content/ms-content.c | 19 +++++++++++++++++++ + src/content/ms-content.h | 1 + + 2 files changed, 20 insertions(+) + +commit 3f66940b3614d71d99d9b84e77d8643b4d96dd21 +Author: Juan A. Suarez Romero +Date: Wed Jan 13 19:28:15 2010 +0100 + + Include libcontent.la. + + tools/test-ui/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 53ec9259e919b58abfa92303ded9271bd8d6835b +Author: Iago Toral +Date: Wed Jan 13 18:26:02 2010 +0100 + + If metadata() is calles with a NULL media, transparently create + a media with a NULL object-id and pass that to the plugins. + + src/ms-media-source.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +commit 4074c913b509323d6a9cae0cc5472c860082b157 +Author: Iago Toral +Date: Wed Jan 13 18:19:08 2010 +0100 + + Replace the object_id parameter with a MsContentMedia in browse() + + src/ms-media-source.c | 14 +++++++++++--- + src/ms-media-source.h | 4 ++-- + tools/test-ui/main.c | 35 ++++++++++++++++++----------------- + 3 files changed, 31 insertions(+), 22 deletions(-) + +commit 8ad6ba66d08f0692879faeb3cfda861dd23440b4 +Author: Iago Toral +Date: Wed Jan 13 17:45:16 2010 +0100 + + Added search functionality to the test-ui + + tools/test-ui/main.c | 258 +++++++++++++++++++++++++++++++++++++++++++-------- + 1 file changed, 220 insertions(+), 38 deletions(-) + +commit e9d7b8310b2e4408a0c88d5fdf446e2800dbe8ba +Author: Iago Toral +Date: Wed Jan 13 11:53:23 2010 +0100 + + Fixed critical warning due to invalid unref of a NULL object + + src/ms-media-source.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit b96a30d2f9e6e45818cf6ac6aefa3fdf9ee81028 +Author: Iago Toral +Date: Wed Jan 13 11:37:21 2010 +0100 + + Modified the browse chunk size to test youtube's automatic chunking + + tools/test-ui/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 5f9a1dfe7508ef606103c12a7c28446f33e9c3da +Author: Iago Toral +Date: Wed Jan 13 08:08:38 2010 +0100 + + Updated TODO file + + TODO | 3 +++ + 1 file changed, 3 insertions(+) + +commit a4a05861c61c2e9ed923cf50162ecb8f8c1cd7c6 +Author: Iago Toral +Date: Tue Jan 12 13:16:03 2010 +0100 + + In test-ui, do not execute metadata operations for the same item + more than once + + tools/test-ui/main.c | 53 +++++++++++++++++++++++++++++++++++----------------- + 1 file changed, 36 insertions(+), 17 deletions(-) + +commit 9b371c7054309fb39b196b17077e3c634d6ae09a +Author: Iago Toral +Date: Tue Jan 12 12:33:09 2010 +0100 + + Simplified code in test-ui + + tools/test-ui/main.c | 9 ++------- + 1 file changed, 2 insertions(+), 7 deletions(-) + +commit 4aac5c3752b3304ce31cf5ab71d11439cee00927 +Author: Iago Toral +Date: Tue Jan 12 12:28:36 2010 +0100 + + Enabled image content in filesystem plugin and test-ui + + tools/test-ui/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 7de6996ccbc5c127015923b5ab8d196ab0865c43 +Author: Iago Toral +Date: Tue Jan 12 12:27:47 2010 +0100 + + Added ms-content-image.h to media-store.h + + src/media-store.h | 1 + + 1 file changed, 1 insertion(+) + +commit 2afa87040446effff362704d926f085c54deab19 +Author: Iago Toral +Date: Tue Jan 12 12:24:04 2010 +0100 + + Prepared file-system plugin and test-ui for proper categorization + of contents, including image contents. + + tools/test-ui/main.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +commit f07dfda739069ead679c8f42a56e513a57fd6388 +Author: Juan A. Suarez Romero +Date: Tue Jan 12 12:21:04 2010 +0100 + + Add a new image content media to store image media. + + src/content/Makefile.am | 1 + + src/content/ms-content-image.c | 89 ++++++++++++++++++++++++++++++++++++++++++ + src/content/ms-content-image.h | 85 ++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 175 insertions(+) + +commit 5497e8409cf0209bf4b091b48e38a2d36d09d973 +Author: Iago Toral +Date: Tue Jan 12 12:02:42 2010 +0100 + + Make MsMediaSource::metadata accept a MsContentMedia argument instead + of a plin object identifier. + + src/ms-media-source.c | 6 +++--- + src/ms-media-source.h | 4 ++-- + tools/test-ui/main.c | 33 ++++++++++++++++++++------------- + 3 files changed, 25 insertions(+), 18 deletions(-) + +commit 3fdc2e8d5b92a36435e8cb87d615715efdee278e +Author: Iago Toral +Date: Tue Jan 12 11:03:27 2010 +0100 + + implemented browsing by chunks (up to a maxinum of 200 results + to avoid spamming) + + tools/test-ui/main.c | 53 ++++++++++++++++++++++++++++++++++++++++++++-------- + 1 file changed, 45 insertions(+), 8 deletions(-) + +commit 8ff7bc4002a40830c649c7e712829550ca054adf +Author: Iago Toral +Date: Tue Jan 12 10:33:33 2010 +0100 + + Icons for audio and video content in test-ui. + Proper use os MsContent hierarchy in filesystem plugin. + + tools/test-ui/main.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +commit 4aae1e0acf680480fea2fb9c6f6800e5329429f5 +Author: Iago Toral +Date: Tue Jan 12 10:20:52 2010 +0100 + + Fixed bug in error management + + tools/test-ui/main.c | 1 + + 1 file changed, 1 insertion(+) + +commit f6fcac70b9de5395b36499a06c4607d0b2cb49b5 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 21:14:42 2010 +0100 + + Make MsContentMedia the heart of system. + + As GtkWidget is the heart in Gtk+ (all gtk__new functions returns a + GtkWidget instead of Gtk), do the same here. + + src/content/ms-content-audio.c | 6 +++--- + src/content/ms-content-audio.h | 2 +- + src/content/ms-content-box.c | 6 +++--- + src/content/ms-content-box.h | 2 +- + src/content/ms-content-video.c | 6 +++--- + src/content/ms-content-video.h | 2 +- + src/ms-media-source.c | 14 +++++++------- + src/ms-media-source.h | 4 ++-- + src/ms-metadata-source.c | 8 ++++---- + src/ms-metadata-source.h | 8 ++++---- + tools/test-ui/main.c | 10 ++++++---- + 11 files changed, 35 insertions(+), 33 deletions(-) + +commit 969f3b06d25db1c9fad162fe16d9f92b86f18463 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 17:15:22 2010 +0100 + + Youtube plugin should manage MsContentBox and MsContentVideo. + + src/content/ms-content-media.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b4d697c46c14985f8b04c25a10af7bb83fd82c38 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 16:32:48 2010 +0100 + + Register new keys. + + src/ms-plugin-registry.c | 3 +++ + 1 file changed, 3 insertions(+) + +commit a815b6a73c4ec7e82562216a7236c509570abb07 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 16:29:21 2010 +0100 + + Add MsContentBox to store multiple items, like a list. + + src/content/Makefile.am | 3 +- + src/content/ms-content-audio.c | 4 +-- + src/content/ms-content-box.c | 82 ++++++++++++++++++++++++++++++++++++++++++ + src/content/ms-content-box.h | 78 ++++++++++++++++++++++++++++++++++++++++ + src/content/ms-content-media.c | 17 +-------- + src/content/ms-content-media.h | 1 - + src/content/ms-content-video.c | 4 +-- + src/content/ms-content.c | 75 +------------------------------------- + src/content/ms-content.h | 3 +- + src/media-store.h | 3 ++ + tools/test-ui/main.c | 2 +- + 11 files changed, 173 insertions(+), 99 deletions(-) + +commit 1f4547a9f2f9d6fe8a5f362c9c3c5153b4d5f542 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 13:28:33 2010 +0100 + + Add new set/get methods. + + src/content/ms-content-media.h | 40 ++++++++++++++++++++++++++++------------ + 1 file changed, 28 insertions(+), 12 deletions(-) + +commit 5aaef89bd6921910ff9d25e419e939e01deabaa3 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 13:21:44 2010 +0100 + + Add a new video content media to store video media. + + src/content/Makefile.am | 3 +- + src/content/ms-content-video.c | 89 ++++++++++++++++++++++++++++++++++++++++++ + src/content/ms-content-video.h | 87 +++++++++++++++++++++++++++++++++++++++++ + src/ms-metadata-key.h | 12 ++++++ + 4 files changed, 190 insertions(+), 1 deletion(-) + +commit 777ba0b25bf273a3305402433dba59e9520e3f60 +Author: Juan A. Suarez Romero +Date: Mon Jan 11 12:29:54 2010 +0100 + + Add a new audio content media to store audio-only media. + + src/content/Makefile.am | 3 +- + src/content/ms-content-audio.c | 80 +++++++++++++++++++++++++++++++++++++ + src/content/ms-content-audio.h | 90 ++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 172 insertions(+), 1 deletion(-) + +commit 6ab3db21e86534820adf93459390c36f7bf1ffa9 +Author: Iago Toral +Date: Tue Jan 12 08:48:32 2010 +0100 + + Fixed critical warning in test-ui + + tools/test-ui/main.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 8ca892766b07ec802afab99fc2025446ffa6638e +Author: Iago Toral +Date: Tue Jan 12 08:40:17 2010 +0100 + + Fixed backwards navigation in test-ui + + tools/test-ui/main.c | 39 +++++++++++++++++++-------------------- + 1 file changed, 19 insertions(+), 20 deletions(-) + +commit 5e53d9efffbbdc30a451ad9a3672d35b4e5a0fc8 +Author: Iago Toral +Date: Tue Jan 12 08:39:47 2010 +0100 + + Fixed --enable-debug option + + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 3d8134243f9c9e9d4db98fb5a2ed78c29811121d +Author: Iago Toral +Date: Mon Jan 11 13:28:43 2010 +0100 + + Better default sizing for main view components in test-ui + + tools/test-ui/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 8b32c90d1d85c52cdc9e83f3e483039168539ae3 +Author: Iago Toral +Date: Mon Jan 11 13:23:40 2010 +0100 + + Added metadata support to test-ui + + tools/test-ui/main.c | 171 ++++++++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 162 insertions(+), 9 deletions(-) + +commit 24f7c181c5bf7eb380cf38c5f98c6c115900db1f +Author: Iago Toral +Date: Mon Jan 11 12:18:51 2010 +0100 + + Added a back button to the test-ui + + tools/test-ui/main.c | 83 ++++++++++++++++++++++++++++++++++++++++++++-------- + 1 file changed, 70 insertions(+), 13 deletions(-) + +commit 0f0d2fb212484ddf4690f7d0036e2482e6908d5f +Author: Juan A. Suarez Romero +Date: Mon Jan 11 11:23:30 2010 +0100 + + Fix CFLAGS + + tools/test-ui/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 7e53ea0e7ddd3cf05c7958ea6098f14d4dcfee1c +Author: Iago Toral +Date: Fri Jan 8 18:18:01 2010 +0100 + + Reduced browse count to 50 (otherwise Youtube complains) + + tools/test-ui/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 402dafa5bdc679e97d527dfe078708faebfeef58 +Author: Iago Toral +Date: Fri Jan 8 18:14:19 2010 +0100 + + Added TODO file for test-ui + + tools/test-ui/TODO | 2 ++ + 1 file changed, 2 insertions(+) + +commit a47032a88009664cb26ff2a2e1946e7e09eeba38 +Author: Iago Toral +Date: Fri Jan 8 18:10:46 2010 +0100 + + Started implementation of a basic test UI + + Makefile.am | 2 +- + configure.ac | 11 +- + tools/Makefile.am | 25 +++++ + tools/test-ui/Makefile.am | 30 +++++ + tools/test-ui/main.c | 275 ++++++++++++++++++++++++++++++++++++++++++++++ + 5 files changed, 341 insertions(+), 2 deletions(-) + +commit c91da5f20294ad9d6b1487a1fbde4128329065bd +Author: Juan A. Suarez Romero +Date: Thu Jan 7 14:09:31 2010 +0100 + + Use MsMetadataResolutionFlags instead of guint for flags. + + src/ms-media-source.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 5584901b737177fcc40246f92e25ff077717d207 +Author: Juan A. Suarez Romero +Date: Thu Jan 7 13:13:53 2010 +0100 + + Use MsMetadataResolutionFlags instead of guint. + + src/ms-media-source.c | 6 +++--- + src/ms-media-source.h | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) + +commit a735e4b8d987cb71a8718ff1ab6c055259b9344a +Author: Juan A. Suarez Romero +Date: Mon Feb 8 18:34:12 2010 +0100 + + Add new keys + + src/ms-metadata-key.h | 4 ++++ + src/ms-plugin-registry.c | 1 + + 2 files changed, 5 insertions(+) + +commit 8edd6671d9defa6a7ce3c3929f2ae609d53f52ef +Author: Iago Toral +Date: Thu Jan 7 00:46:18 2010 +0100 + + Fixed typo + + src/ms-metadata-key.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b96cafaf3e03737f64fecead87f6bbdf00ddcae5 +Author: Iago Toral +Date: Thu Jan 7 00:42:36 2010 +0100 + + Updated TODO + + TODO | 11 ----------- + 1 file changed, 11 deletions(-) + +commit a45d0718edbe044a1404e20f71bda63dbf1ce767 +Author: Iago Toral +Date: Thu Jan 7 00:26:10 2010 +0100 + + Moved metadata() method from MsMetadataSource to MsMediaSource + + src/ms-media-source.c | 222 +++++++++++++++++++++++++++++++++++++++++++++ + src/ms-media-source.h | 24 +++++ + src/ms-metadata-source.c | 231 ----------------------------------------------- + src/ms-metadata-source.h | 24 ----- + 4 files changed, 246 insertions(+), 255 deletions(-) + +commit 67fc41fabf881d2f3ae367823144f9aadd751a9c +Author: Iago Toral +Date: Tue Jan 5 17:05:37 2010 +0100 + + Fixed leak with variable 'name' + + src/ms-metadata-source.c | 1 + + 1 file changed, 1 insertion(+) + +commit f3726b96ead88e4a01ed4b86af26e675f6375626 +Author: Iago Toral +Date: Tue Jan 5 17:04:37 2010 +0100 + + Better memory management (full resolution mode) + + src/ms-media-source.c | 30 ++++++++++++++++++++++++++++++ + src/ms-metadata-source.c | 30 +++++++++++++++++++++--------- + 2 files changed, 51 insertions(+), 9 deletions(-) + +commit b2cf38dcc26b9481552de33f53472e71ef0cd046 +Author: Iago Toral +Date: Tue Jan 5 16:15:06 2010 +0100 + + Better memory management (browse and search) + + src/ms-media-source.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 49 insertions(+), 1 deletion(-) + +commit ca7f947a8647b8757f0b7ce7b0571a6977a37cbb +Author: Iago Toral +Date: Mon Jan 4 16:29:42 2010 +0100 + + Better memory management. + + src/ms-media-source.c | 2 +- + src/ms-metadata-source.c | 94 ++++++++++++++++++++++++++++++++++++++++++++---- + 2 files changed, 89 insertions(+), 7 deletions(-) + +commit 873374db7ca4918ec10130e1f112795e3c5ecc65 +Author: Iago Toral +Date: Mon Jan 4 15:47:23 2010 +0100 + + Cosmetic changes + + src/ms-media-plugin.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +commit f22dfb61152eb3e1914c0aa6159c68832f1bc018 +Author: Iago Toral +Date: Mon Jan 4 15:19:19 2010 +0100 + + Allow plugin developers to access the operation flags, that could be + handy in certain scenarios. + + src/ms-media-source.c | 2 ++ + src/ms-media-source.h | 2 ++ + src/ms-metadata-source.c | 2 ++ + src/ms-metadata-source.h | 2 ++ + 4 files changed, 8 insertions(+) + +commit 2fbb4aeff32d9d69e7007637afc09c261c0af824 +Author: Iago Toral +Date: Mon Jan 4 15:15:21 2010 +0100 + + Added support for fast keys resolution to browse, search and resolve. + + src/ms-media-source.c | 38 +++++++++++++++++++++++++++----------- + src/ms-metadata-source.c | 24 ++++++++++++++++++++---- + src/ms-metadata-source.h | 1 + + 3 files changed, 48 insertions(+), 15 deletions(-) + +commit 5e32a7debbb43a8f27150ac0769db2879ff587ed +Author: Iago Toral +Date: Sun Jan 3 18:43:57 2010 +0100 + + Updated TODO + + TODO | 1 + + 1 file changed, 1 insertion(+) + +commit befaf17500906ea1bdc572be8e7c57cae4c1ec79 +Author: Iago Toral +Date: Sun Jan 3 18:41:07 2010 +0100 + + More flexible handling of key filtering methods + + src/ms-metadata-source.c | 39 +++++++++++++++++++++++++++++---------- + src/ms-metadata-source.h | 8 ++++++-- + 2 files changed, 35 insertions(+), 12 deletions(-) + +commit 71e3dad7a35a46ab1d378d1536f27a5bbbe3a7c6 +Author: Iago Toral +Date: Sun Jan 3 18:35:18 2010 +0100 + + Updated TODO file + + TODO | 13 ++++++++++--- + 1 file changed, 10 insertions(+), 3 deletions(-) + +commit d42b358eecb318de06a40b43529666a6b0562f18 +Author: Iago Toral +Date: Sun Jan 3 18:04:26 2010 +0100 + + Updated TODO file + + TODO | 9 +++------ + 1 file changed, 3 insertions(+), 6 deletions(-) + +commit 7550ba6c606f33ccf0a563e1a5ec84afd5245502 +Author: Iago Toral +Date: Sun Jan 3 17:57:47 2010 +0100 + + Removed traces + + src/ms-metadata-source.c | 3 --- + 1 file changed, 3 deletions(-) + +commit 199e79ad3145a5cee67edcb636bcc3df07111549 +Author: Iago Toral +Date: Sun Jan 3 17:55:32 2010 +0100 + + Added support for defining and filtering slow keys + + src/ms-metadata-source.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ + src/ms-metadata-source.h | 13 ++++++++--- + 2 files changed, 70 insertions(+), 3 deletions(-) + +commit 684f10d9063fe25c69aef6408504234e3782a08b +Author: Iago Toral +Date: Sat Jan 2 18:14:32 2010 +0100 + + Added childcount metadata key. + Added implementation of childcount in youtube source (browse only) + + src/ms-metadata-key.h | 5 +++++ + src/ms-plugin-registry.c | 1 + + 2 files changed, 6 insertions(+) + +commit db8f0eab5b03f047fe6236838a0a3fbd83e52ab6 +Author: Iago Toral +Date: Fri Jan 1 18:14:00 2010 +0100 + + Added logging support + + src/Makefile.am | 3 +- + src/media-store.h | 1 + + src/ms-log.c | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/ms-log.h | 34 +++++++++++++ + 4 files changed, 183 insertions(+), 1 deletion(-) + +commit b668efc8eb7abc2ec85817d75a17e045fd018fac +Author: Iago Toral +Date: Fri Jan 1 16:17:12 2010 +0100 + + Added proper G_LOG_DOMAIN definitions + + src/ms-media-plugin.c | 3 +++ + src/ms-media-source.c | 3 +++ + src/ms-metadata-source.c | 3 +++ + src/ms-plugin-registry.c | 3 +++ + 4 files changed, 12 insertions(+) + +commit 4521da5648c3d8ddb43914863595ccf77723e3d8 +Author: Iago Toral +Date: Wed Dec 30 12:04:37 2009 +0100 + + updated + + TODO | 6 ++++++ + 1 file changed, 6 insertions(+) + +commit bfd5c25208d664275f4f84df5744d1f68eaa88a7 +Author: Iago Toral +Date: Wed Dec 30 11:57:41 2009 +0100 + + Added for NULLwhen attempting to set the source property on the + media (could be NULL in case of an empty result set). + + src/ms-media-source.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +commit b2a62794d44543b809ef41082d0f48d6b375821c +Author: Iago Toral +Date: Wed Dec 30 11:16:37 2009 +0100 + + Minor changes to assertionsin public APIs. + + src/ms-media-source.c | 6 ++++-- + src/ms-metadata-source.c | 8 ++++---- + 2 files changed, 8 insertions(+), 6 deletions(-) + +commit c53f92a8acf157d85520e995e7261cc712455f8d +Author: Iago Toral +Date: Wed Dec 30 10:33:37 2009 +0100 + + Updated TODO file + + TODO | 2 -- + 1 file changed, 2 deletions(-) + +commit 84babf81a9504ee6e81d6d5e44306bd3e4b0d0eb +Author: Iago Toral +Date: Wed Dec 30 10:32:18 2009 +0100 + + Added assertions to public APIs. + + src/ms-media-plugin.c | 12 +++ + src/ms-media-source.c | 98 ++++++++++-------- + src/ms-metadata-source.c | 262 ++++++++++++++++++++++++++--------------------- + src/ms-plugin-registry.c | 30 ++++-- + 4 files changed, 233 insertions(+), 169 deletions(-) + +commit b0c75e4dcf13a6a4d38085adae132d376b8e1458 +Author: Iago Toral +Date: Wed Dec 30 09:39:35 2009 +0100 + + Implemented support for informing on supported operations. + + src/ms-media-source.c | 28 ++++++++++++++++++++++++++++ + src/ms-metadata-source.c | 23 ++++++++++++++++++++++- + src/ms-metadata-source.h | 12 ++++++++++++ + 3 files changed, 62 insertions(+), 1 deletion(-) + +commit 14e6b8ef69bbfe4e64eca969d7c3ee4de6557d9a +Author: Iago Toral +Date: Wed Dec 30 08:22:42 2009 +0100 + + Updated TODO file + + TODO | 3 --- + 1 file changed, 3 deletions(-) + +commit a9a475076b06d6158181f1b1e6171bef44228588 +Author: Iago Toral +Date: Tue Dec 29 10:26:10 2009 +0100 + + Renamed Metadata Resolution Flags to make them shorter. + Always hook a relay callback for browse/search operations and use it + to set the source property for each result. + + src/ms-media-source.c | 83 ++++++++++++++++++++++++++++++------------------ + src/ms-metadata-source.c | 33 ++++++++++++++++++- + src/ms-metadata-source.h | 10 ++++-- + 3 files changed, 91 insertions(+), 35 deletions(-) + +commit c77956a948a0b7c4a6978d2c344749600b7f1f80 +Author: Iago Toral +Date: Tue Dec 29 10:25:26 2009 +0100 + + Added new constructor so that we can create MsContentMedia containers. + + src/content/ms-content-media.c | 15 +++++++++++++++ + src/content/ms-content-media.h | 1 + + 2 files changed, 16 insertions(+) + +commit 2951eacfacc7176c0b5c284d797a548e4c7e5453 +Author: Iago Toral +Date: Mon Dec 28 12:49:20 2009 +0100 + + Updated TODO file + + TODO | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +commit bcccf4cf33674b46deaf40aa5be870f99ea85907 +Author: Iago Toral +Date: Mon Dec 28 12:48:24 2009 +0100 + + Added a root category level to the youtube source. + Added provisional support for category type elements to MsContent. + + src/content/ms-content-media.c | 4 ++- + src/content/ms-content.c | 77 ++++++++++++++++++++++++++++++++++++++++-- + src/content/ms-content.h | 3 +- + 3 files changed, 80 insertions(+), 4 deletions(-) + +commit 0b13ca19d759d17dea323a1deb64aa489b38cb57 +Author: Iago Toral +Date: Mon Dec 28 10:01:58 2009 +0100 + + Implemented relay support for idle callback result post-processing in both + browse and search operations. + + src/ms-media-source.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++-- + src/ms-metadata-source.c | 4 ++- + src/ms-metadata-source.h | 1 + + 3 files changed, 86 insertions(+), 3 deletions(-) + +commit d2c42c1facf7a82fb9c0e05f3a8ff50e02527f97 +Author: Iago Toral +Date: Sat Dec 26 18:27:47 2009 +0100 + + Cosmetic changes + + src/ms-media-source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 820a4d39ca898e2ee04a9703978ff7eb7b324534 +Author: Iago Toral +Date: Sat Dec 26 18:27:14 2009 +0100 + + Implemented async in base class for metadata source resolve + + src/ms-metadata-source.c | 26 ++++++++++++++++++++------ + src/ms-metadata-source.h | 13 +++++++++---- + 2 files changed, 29 insertions(+), 10 deletions(-) + +commit 184f19c91f8897352f5afe7b8b02676d4674fd94 +Author: Iago Toral +Date: Fri Dec 25 21:40:00 2009 +0100 + + Updated TODO file + + TODO | 3 +++ + 1 file changed, 3 insertions(+) + +commit a1a1fa96c86b2314f02e463b36128e2b47b5c4f5 +Author: Iago Toral +Date: Fri Dec 25 21:37:15 2009 +0100 + + Call subclass impl of browse, search and metadata in idle call. + Also, pass parameters for the subclass operation in a structure for + convenience. + + src/ms-media-source.c | 60 +++++++++++++++++++++++++++++++++++++----------- + src/ms-media-source.h | 42 +++++++++++++++++++++------------ + src/ms-metadata-source.c | 22 ++++++++++++++---- + src/ms-metadata-source.h | 14 +++++++---- + 4 files changed, 102 insertions(+), 36 deletions(-) + +commit 85064a972e84739a3ffd71ef8aa6f8fdc8348eaa +Author: Iago Toral +Date: Wed Dec 23 10:49:45 2009 +0100 + + Updated + + TODO | 1 + + 1 file changed, 1 insertion(+) + +commit 73237da63711dff887814a78fd8b2ccaad73d0d6 +Author: Iago Toral +Date: Wed Dec 23 10:42:48 2009 +0100 + + Fixed wrong guard in ms-error.h + Removed trailing blank lines in media-store.h + + src/media-store.h | 2 -- + src/ms-error.h | 6 +++--- + 2 files changed, 3 insertions(+), 5 deletions(-) + +commit c458deb33682059415217d4479a0571a1ffd719a +Author: Iago Toral +Date: Wed Dec 23 10:27:55 2009 +0100 + + Added new error code for "media not found" + + src/ms-error.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +commit 4bf659579fa231b741a28e64fa81446793510d11 +Author: Iago Toral +Date: Tue Dec 22 13:29:54 2009 +0100 + + Added date key + + src/ms-metadata-key.h | 4 ++++ + src/ms-plugin-registry.c | 1 + + 2 files changed, 5 insertions(+) + +commit 4ca9b4d6054485557deccb3f4dfbfaaddfdf2127 +Author: Iago Toral +Date: Tue Dec 22 12:22:30 2009 +0100 + + Added content header files + + src/media-store.h | 2 ++ + 1 file changed, 2 insertions(+) + +commit 2344dc3e81a8eb1cb0e00bcab6f7464fb246475f +Author: Iago Toral +Date: Tue Dec 22 12:02:21 2009 +0100 + + Added header file for error definitions + + src/Makefile.am | 1 + + src/media-store.h | 1 + + src/ms-error.h | 34 ++++++++++++++++++++++++++++++++++ + 3 files changed, 36 insertions(+) + +commit 156aae112dc48c754ffb341cde59c278d375ce8e +Author: Iago Toral +Date: Tue Dec 22 11:25:49 2009 +0100 + + Added duration key + + src/ms-metadata-key.h | 4 ++++ + src/ms-plugin-registry.c | 1 + + 2 files changed, 5 insertions(+) + +commit d15d59aed977089c6770a27dd81dd792b1451d1b +Author: Iago Toral +Date: Tue Dec 22 09:43:37 2009 +0100 + + Fixed wrong path in .pc file + + media-store-uninstalled.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit e430ccb996056da427ce1272196d4d96b419e426 +Author: Iago Toral +Date: Mon Dec 21 13:04:25 2009 +0100 + + Handle browse-id generation in base classes + + src/ms-media-source.c | 42 +++++++++++++++++++++++++++++++----------- + src/ms-media-source.h | 48 ++++++++++++++++++++++++++---------------------- + 2 files changed, 57 insertions(+), 33 deletions(-) + +commit 8725de87b2dd0284d41d3e887377923c63c31279 +Author: Iago Toral +Date: Mon Dec 21 12:37:01 2009 +0100 + + Added TODO file + + TODO | 2 ++ + 1 file changed, 2 insertions(+) + +commit fe7a572402dec908baf81620af5bb257093e0920 +Author: Iago Toral +Date: Mon Dec 21 12:33:24 2009 +0100 + + Added uninstalled pkg-config support. + Fixed config.h includes + + Makefile.am | 2 +- + configure.ac | 1 + + media-store-uninstalled.pc.in | 14 ++++++++++++++ + src/Makefile.am | 1 + + src/media-store.h | 40 ++++++++++++++++++++++++++++++++++++++++ + src/ms-media-plugin.h | 4 ---- + src/ms-media-source.h | 4 ---- + src/ms-metadata-key.h | 4 ---- + src/ms-metadata-source.h | 4 ---- + src/ms-plugin-registry.h | 4 ---- + 10 files changed, 57 insertions(+), 21 deletions(-) + +commit 3fb32da851e1324a3095122ac8346baafaeb9db7 +Author: Iago Toral +Date: Mon Dec 21 11:31:30 2009 +0100 + + Fixed header comments + + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 37129cbd482af312abd3e2890a11a0738c3bf88c +Author: Iago Toral +Date: Mon Dec 21 11:23:14 2009 +0100 + + Added missing file + + src/ms-metadata-source-priv.h | 53 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 53 insertions(+) + +commit e5128842d2f9b95d3048c8c874630b25cb8c6a46 +Author: Iago Toral +Date: Mon Dec 21 11:11:18 2009 +0100 + + Allow defining several plugin paths in MS_PLUGIN_PATH. Also, added + API for loading plugins from a specific direcotry path. + + src/ms-plugin-registry.c | 44 +++++++++++++++++++++++++++++++++++--------- + src/ms-plugin-registry.h | 1 + + 2 files changed, 36 insertions(+), 9 deletions(-) + +commit f6620a86267e04132de1fcb592c1bed90a3b549d +Author: Iago Toral +Date: Mon Dec 21 10:49:26 2009 +0100 + + Added support for full resolution in metadata_get + + src/ms-media-source.c | 6 +-- + src/ms-metadata-source.c | 130 ++++++++++++++++++++++++++++++++++++++++++++--- + src/ms-metadata-source.h | 4 +- + 3 files changed, 129 insertions(+), 11 deletions(-) + +commit 557b71dac961b114ad72e233f02e5337e2aaab77 +Author: Iago Toral +Date: Mon Dec 21 09:12:56 2009 +0100 + + Moved full resolution support to MsMetadataSource + + src/Makefile.am | 2 +- + src/ms-media-source.c | 280 ++++++++++------------------------------------- + src/ms-metadata-source.c | 164 +++++++++++++++++++++++++++ + 3 files changed, 221 insertions(+), 225 deletions(-) + +commit 26f50b694e0cd76470f9880ea27fa7b819a450d6 +Author: Iago Toral +Date: Mon Dec 21 08:25:48 2009 +0100 + + Added full metadata resolution support to search interface + + src/ms-media-source.c | 384 ++++++++++++++++++++++++++++---------------------- + 1 file changed, 214 insertions(+), 170 deletions(-) + +commit 4b62975a2165e7adc4467206dd869d1ef07dbe09 +Author: Juan A. Suarez Romero +Date: Fri Dec 18 13:20:41 2009 +0100 + + Prefix with MS. + + Prefix every issue with "MS" (media-store). So MS is the namespace. + + src/Makefile.am | 12 +- + src/content/Makefile.am | 4 +- + src/content/content-media.h | 102 ---------------- + src/content/content.h | 84 ------------- + .../{content-media.c => ms-content-media.c} | 36 +++--- + src/content/ms-content-media.h | 102 ++++++++++++++++ + src/content/{content.c => ms-content.c} | 128 ++++++++++---------- + src/content/ms-content.h | 85 +++++++++++++ + src/media-plugin.h | 86 ------------- + src/media-source.h | 124 ------------------- + src/metadata-key.h | 100 --------------- + src/metadata-source.h | 133 -------------------- + ...{media-plugin-priv.h => ms-media-plugin-priv.h} | 12 +- + src/{media-plugin.c => ms-media-plugin.c} | 42 +++---- + src/ms-media-plugin.h | 86 +++++++++++++ + src/{media-source.c => ms-media-source.c} | 126 +++++++++---------- + src/ms-media-source.h | 124 +++++++++++++++++++ + src/ms-metadata-key.c | 43 +++++++ + src/ms-metadata-key.h | 100 +++++++++++++++ + src/{metadata-source.c => ms-metadata-source.c} | 130 ++++++++++---------- + src/ms-metadata-source.h | 134 +++++++++++++++++++++ + src/{plugin-registry.c => ms-plugin-registry.c} | 109 +++++++++-------- + src/ms-plugin-registry.h | 127 +++++++++++++++++++ + src/plugin-registry.h | 127 ------------------- + 24 files changed, 1100 insertions(+), 1056 deletions(-) + +commit ad8a19adcd3cf51279cedf9f56ed89c2938023f9 +Author: Iago Toral +Date: Fri Dec 18 13:14:54 2009 +0100 + + Use GList instead of KeyID arrays for APIs + + src/Makefile.am | 1 + + src/media-source.c | 77 +++++++++++++-------------------------------------- + src/media-source.h | 6 ++-- + src/metadata-key.h | 6 ++++ + src/metadata-source.c | 24 ++++++++-------- + src/metadata-source.h | 16 +++++------ + 6 files changed, 52 insertions(+), 78 deletions(-) + +commit c537fabcdfc2d6e044fd9fdb40c6b44974b84686 +Author: Iago Toral +Date: Fri Dec 18 11:53:30 2009 +0100 + + Proper error management in full resolution method + + src/media-source.c | 20 +++++++++++++++----- + 1 file changed, 15 insertions(+), 5 deletions(-) + +commit 5767da2a2ef28e0534531a7b039808fdcff6b2d6 +Author: Iago Toral +Date: Fri Dec 18 11:44:10 2009 +0100 + + Implemented async metadata resolution based on metadata + + src/media-source.c | 98 ++++++++++++++++++++++++++++++++++++++------------- + src/metadata-source.c | 11 ++++-- + src/metadata-source.h | 15 ++++++-- + 3 files changed, 95 insertions(+), 29 deletions(-) + +commit 2d9df272e23854a31ed1f5a84088db7e3b83bb23 +Author: Iago Toral +Date: Fri Dec 18 10:41:44 2009 +0100 + + Fixed build errors after merging with Content interface + + src/plugin-registry.c | 4 ++++ + 1 file changed, 4 insertions(+) + +commit bb64968a109398f4d5984a8ba97f939d26fa30bf +Author: Iago Toral +Date: Fri Dec 18 10:21:30 2009 +0100 + + Fixed merge + + src/metadata-key.h | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +commit 63d89b53cc01de76b1101225659dc47c46a23d6a +Author: Iago Toral +Date: Fri Dec 18 10:15:36 2009 +0100 + + some more work on key dependency resolution + + src/media-source.c | 49 +++++++++++++++++++++++++++++++++++++++---------- + src/metadata-key.h | 8 ++++++++ + src/metadata-source.c | 4 +++- + src/plugin-registry.c | 2 ++ + 4 files changed, 52 insertions(+), 11 deletions(-) + +commit 600c11470d86b47de41af5f2510639c68b81c36e +Author: Juan A. Suarez Romero +Date: Thu Dec 17 19:47:55 2009 +0100 + + Fix merge commit. + + Merge done previously was not right, as I forgot to make sure everything was + working fine. Fixed now. + + src/media-source.c | 8 +++----- + src/metadata-key.h | 8 +++++--- + src/metadata-source.c | 4 ++-- + src/metadata-source.h | 5 +++-- + 4 files changed, 13 insertions(+), 12 deletions(-) + +commit 2f9dd3c351d4eda90dc943a2ce6e39dc87e68d51 +Author: Juan A. Suarez Romero +Date: Thu Dec 17 19:46:56 2009 +0100 + + Define get/set thumbnail methods. + + Create methods to get/set thumbnails. + + src/content/content-media.h | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 60551ff991d42a339da986baff511400b65a96af +Author: Juan A. Suarez Romero +Date: Thu Dec 17 19:45:30 2009 +0100 + + Use KeyID definition. + + Now keys are defined as KeyID instead of gint. + + src/content/content.c | 36 ++++++++++++++++++------------------ + src/content/content.h | 20 ++++++++++---------- + 2 files changed, 28 insertions(+), 28 deletions(-) + +commit 923055296a49942efb5d7f1af6ee66f5a978ffb8 +Merge: 52283f2 5a00fbe +Author: Juan A. Suarez Romero +Date: Thu Dec 17 17:21:46 2009 +0100 + + Merge branch 'content' + + Conflicts resolved: + src/metadata-key.h + test/Makefile.am + test/youtube-source.c + +commit 5a00fbee3a64d4c8d0c6dc5901fc69eb148c908f +Author: Juan A. Suarez Romero +Date: Thu Dec 17 17:00:00 2009 +0100 + + Add source property. + + Add source-id property to store the source providing the content. + + src/content/content-media.h | 4 ++++ + src/metadata-key.h | 4 ++++ + 2 files changed, 8 insertions(+) + +commit 52283f2954aa891fff108783eeccbc9389344eb2 +Author: Iago Toral +Date: Thu Dec 17 16:29:26 2009 +0100 + + Added metadata based metadata resolution for full resolution browsing. + Included example with fake-metadata-source. + + src/media-source.c | 42 ++++++++++++++++++++++++++++-------------- + src/metadata-source.c | 9 +++++++++ + src/metadata-source.h | 5 +++++ + 3 files changed, 42 insertions(+), 14 deletions(-) + +commit 3c3a319ce93bf0fb863f4c5ba8eeceee52c59512 +Author: Juan A. Suarez Romero +Date: Thu Dec 17 15:46:56 2009 +0100 + + Comment functions. + + Add gtk-doc comments in every function. + + src/content/content-media.c | 15 ++++++ + src/content/content.c | 111 +++++++++++++++++++++++++++++++++++++++++++- + 2 files changed, 125 insertions(+), 1 deletion(-) + +commit 3db40d31d4121a8223b3cd5ac7b2dc9c4f252348 +Author: Juan A. Suarez Romero +Date: Thu Dec 17 15:46:17 2009 +0100 + + Add copyright headers. + + Add appropriate copyright headers in every file. + + src/content/content-media.c | 24 ++++++++++++++++++++++++ + src/content/content-media.h | 24 ++++++++++++++++++++++++ + src/content/content.c | 25 +++++++++++++++++++++++++ + src/content/content.h | 24 ++++++++++++++++++++++++ + 4 files changed, 97 insertions(+) + +commit cfd98045823dce7a95f31e016909e1cd7fc4b1dd +Author: Juan A. Suarez Romero +Date: Wed Dec 16 13:33:17 2009 +0100 + + Use integers keys. + + Use the new type of keys, represented as integers instead of strings. + + src/content/content-media.c | 40 ++++++++++++++++++++++++++ + src/content/content-media.h | 70 +++++++++++++++++++++++++++++++++++++++++++++ + src/content/content.c | 68 ++++++++++++++++++++++++++++--------------- + src/content/content.h | 22 +++++++------- + src/metadata-key.h | 46 +++++++++++++++++++---------- + 5 files changed, 197 insertions(+), 49 deletions(-) + +commit 5dd9235b3c1df55c93e6a9d97b3c7ffa024d224a +Author: Iago Toral +Date: Wed Dec 16 13:16:44 2009 +0100 + + started development of full-resolution method (for browse only) + + src/media-source.c | 226 +++++++++++++++++++++++++++++++++++++++++++++++++- + src/media-source.h | 4 +- + src/metadata-source.c | 39 ++++++++- + src/metadata-source.h | 14 +++- + src/plugin-registry.c | 18 ++++ + src/plugin-registry.h | 2 + + 6 files changed, 295 insertions(+), 8 deletions(-) + +commit 65a03975e0eec107f77213780431dcd04db4df95 +Author: Iago Toral +Date: Tue Dec 15 16:09:59 2009 +0100 + + Improved metadata-key support + + src/metadata-key.h | 23 ++++++++++++++--------- + src/metadata-source.c | 8 +++++++- + src/metadata-source.h | 15 ++++++--------- + src/plugin-registry.c | 8 +++++++- + src/plugin-registry.h | 2 ++ + 5 files changed, 36 insertions(+), 20 deletions(-) + +commit 0c26204078788542dfdc6cf46204654a4a0f25c1 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 13:09:02 2009 +0100 + + Update AUTHORS. + + Add myself, of course :-) + + AUTHORS | 2 ++ + 1 file changed, 2 insertions(+) + +commit 749b7414b85b9874106fa6ece2078bbb81721b4b +Merge: d8cdc8a 24cf8c4 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 13:08:12 2009 +0100 + + Merge branch 'master' into content + +commit 24cf8c4b878423194944c3a9531c2562dc2ae622 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 13:06:41 2009 +0100 + + Update todo notes. + + Considerer the case of using MetadataKey structure along the framework. + + doc/brainstorming/to-be-discussed.txt | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +commit d8cdc8a4f73505353fc1220edada8e81063740f1 +Author: Juan A. Suarez Romero +Date: Tue Dec 15 12:43:11 2009 +0100 + + Add ContentMedia class. + + This class is higher level than Content. + + It understands keys like author, title, id, url, and so on, providing a high + level api. + + src/content/Makefile.am | 3 ++- + src/content/content.c | 24 ++++++++++++++++++++++++ + src/content/content.h | 2 ++ + 3 files changed, 28 insertions(+), 1 deletion(-) + +commit 0412b0468082e9ff6a5927a44e6afe24911e3d67 +Author: Iago Toral +Date: Tue Dec 15 12:12:07 2009 +0100 + + Fixed wrong property definition + + src/metadata-source.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8e407949bb652e0b5ab337063e605439a418672e +Author: Iago Toral +Date: Tue Dec 15 11:43:01 2009 +0100 + + Added + + doc/brainstorming/to-be-discussed.txt | 9 +++++++++ + 1 file changed, 9 insertions(+) + +commit a361049578f2b8363882b43b68ac2e3e395d72c8 +Author: Iago Toral +Date: Tue Dec 15 11:16:10 2009 +0100 + + Added initial brainstorming information + + doc/brainstorming/itoral-initial-brainstorming.txt | 210 +++++++++++++++++++++ + 1 file changed, 210 insertions(+) + +commit 3c24173aaa8b8e1bef66fa970df688bf2331e5ef +Author: Juan A. Suarez Romero +Date: Tue Dec 15 10:42:13 2009 +0100 + + Move Content class to subdir. + + Avoiding messing up with files, put Content and related classes in its own + directory. + + configure.ac | 1 + + src/Makefile.am | 7 ++++--- + src/content/Makefile.am | 18 ++++++++++++++++++ + src/{ => content}/content.c | 0 + src/{ => content}/content.h | 0 + src/media-source.h | 2 +- + 6 files changed, 24 insertions(+), 4 deletions(-) + +commit 0b60e6dd149a5120989dc164fe6eedaaa918b15a +Author: Juan A. Suarez Romero +Date: Tue Dec 15 10:03:52 2009 +0100 + + Add notes from initial brainstorming. + + Adding notes about Juan's brainstorming. + + .../jasuarez-initial-brainstorming.txt | 73 ++++++++++++++++++++++ + 1 file changed, 73 insertions(+) + +commit 29555a1c09ea5f3ca653af8b3ce4906981b80787 +Author: Juan A. Suarez Romero +Date: Mon Dec 14 18:21:39 2009 +0100 + + Use Content class in sources. + + Use the new Content class in the sources. + + More specific Content types will be created in future. + + src/content.c | 25 +++++++++++++++++++++++-- + src/content.h | 18 ++++++++++-------- + src/media-source.h | 4 ++-- + 3 files changed, 35 insertions(+), 12 deletions(-) + +commit 6de0d0eb5eed70114c10127f5c8aedcd427195d4 +Author: Juan A. Suarez Romero +Date: Mon Dec 14 15:07:32 2009 +0100 + + Add content_set_{int,string} functions. + + Add helper functions to set content value. + + src/content.c | 90 +++++++++++++++++++++++++++++++++++------------------------ + src/content.h | 48 ++++++++++++++++--------------- + 2 files changed, 79 insertions(+), 59 deletions(-) + +commit 4e69640f4f536ab6d099a93d1ba78e3e0b9e7855 +Author: Juan A. Suarez Romero +Date: Mon Dec 14 14:02:43 2009 +0100 + + Add Content class. + + This is the base class to manage Content. + + src/Makefile.am | 3 +- + src/content.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + src/content.h | 54 +++++++++++++++++++++++++++++++++ + 3 files changed, 149 insertions(+), 1 deletion(-) + +commit 03baa2f94f496c5813dbe9012cbc51fb973fcc28 +Author: Iago Toral +Date: Mon Dec 14 11:52:18 2009 +0100 + + First commit + + AUTHORS | 1 + + COPYING | 504 ++++++++++++++++++++++++++++++++++++++++++++++++ + ChangeLog | 0 + INSTALL | 236 +++++++++++++++++++++++ + Makefile.am | 27 +++ + NEWS | 0 + README | 0 + autogen.sh | 21 ++ + configure.ac | 101 ++++++++++ + po/Makefile.in.in | 270 ++++++++++++++++++++++++++ + src/Makefile.am | 24 +++ + src/media-plugin-priv.h | 46 +++++ + src/media-plugin.c | 119 ++++++++++++ + src/media-plugin.h | 86 +++++++++ + src/media-source.c | 85 ++++++++ + src/media-source.h | 122 ++++++++++++ + src/metadata-key.h | 63 ++++++ + src/metadata-source.c | 212 ++++++++++++++++++++ + src/metadata-source.h | 109 +++++++++++ + src/plugin-registry.c | 199 +++++++++++++++++++ + src/plugin-registry.h | 123 ++++++++++++ + 21 files changed, 2348 insertions(+) diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..23e5f25 --- /dev/null +++ b/INSTALL @@ -0,0 +1,236 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free +Software Foundation, Inc. + +This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + +These are generic installation instructions. + + 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 only 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. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. 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. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. 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. + +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=c89 CFLAGS=-O2 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 must use a version of `make' that +supports the `VPATH' variable, such as 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 `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have 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. + +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'. + + 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. + + 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'. + +Optional Features +================= + +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. + +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). Here is a another example: + + /bin/bash ./configure CONFIG_SHELL=/bin/bash + +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent +configuration-related scripts to be executed by `/bin/bash'. + +`configure' Invocation +====================== + +`configure' recognizes the following options to control how it operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--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. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..21b87bb --- /dev/null +++ b/Makefile.am @@ -0,0 +1,58 @@ +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010, 2011 Igalia S.L. All rights reserved. + +ACLOCAL_AMFLAGS = -I m4 + +SUBDIRS = src libs bindings po tools doc examples + +if ENABLE_TESTS +SUBDIRS += tests +endif + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = grilo-0.3.pc + +if BUILD_GRILO_NET +pkgconfig_DATA += grilo-net-0.3.pc +endif + +if BUILD_GRILO_PLS +pkgconfig_DATA += grilo-pls-0.3.pc +endif + +MAINTAINERCLEANFILES = \ + $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ + $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ + $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ + $(srcdir)/gtk-doc.make \ + $(srcdir)/m4/gtk-doc.m4 \ + $(srcdir)/m4/intltool.m4 \ + $(srcdir)/omf.make \ + $(srcdir)/xmldocs.make + +DISTCLEANFILES = $(MAINTAINERCLEANFILES) + +EXTRA_DIST = \ + $(shell find "$(top_srcdir)" -type f -name meson.build ! -path "$(top_srcdir)/grilo-*" ) \ + meson_options.txt \ + ./m4/introspection.m4 + +DISTCHECK_CONFIGURE_FLAGS= \ + --enable-grl-net \ + --enable-grl-pls \ + --enable-gtk-doc \ + --enable-introspection \ + --enable-test-ui \ + --enable-vala + +distclean-local: + -rm -rf autom4te.cache + +dist-hook: + +-include $(top_srcdir)/git.mk +-include $(top_srcdir)/release.mk diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..5eb83b5 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,994 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010, 2011 Igalia S.L. All rights reserved. + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@ENABLE_TESTS_TRUE@am__append_1 = tests +@BUILD_GRILO_NET_TRUE@am__append_2 = grilo-net-0.3.pc +@BUILD_GRILO_PLS_TRUE@am__append_3 = grilo-pls-0.3.pc +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ + $(am__configure_deps) $(am__DIST_COMMON) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = grilo-net-uninstalled.pc \ + grilo-net-${GRL_MAJORMINOR}.pc grilo-pls-uninstalled.pc \ + grilo-pls-${GRL_MAJORMINOR}.pc grilo-uninstalled.pc \ + grilo-${GRL_MAJORMINOR}.pc +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" +DATA = $(pkgconfig_DATA) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ + $(LISP)config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +DIST_SUBDIRS = src libs bindings po tools doc examples tests +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(srcdir)/grilo-${GRL_MAJORMINOR}.pc.in \ + $(srcdir)/grilo-net-${GRL_MAJORMINOR}.pc.in \ + $(srcdir)/grilo-net-uninstalled.pc.in \ + $(srcdir)/grilo-pls-${GRL_MAJORMINOR}.pc.in \ + $(srcdir)/grilo-pls-uninstalled.pc.in \ + $(srcdir)/grilo-uninstalled.pc.in AUTHORS COPYING ChangeLog \ + INSTALL NEWS README TODO compile config.guess config.sub \ + install-sh ltmain.sh missing +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +GZIP_ENV = --best +DIST_ARCHIVES = $(distdir).tar.xz +DIST_TARGETS = dist-xz +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = src libs bindings po tools doc examples $(am__append_1) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = grilo-0.3.pc $(am__append_2) $(am__append_3) +MAINTAINERCLEANFILES = \ + $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ + $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ + $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ + $(srcdir)/gtk-doc.make \ + $(srcdir)/m4/gtk-doc.m4 \ + $(srcdir)/m4/intltool.m4 \ + $(srcdir)/omf.make \ + $(srcdir)/xmldocs.make + +DISTCLEANFILES = $(MAINTAINERCLEANFILES) +EXTRA_DIST = \ + $(shell find "$(top_srcdir)" -type f -name meson.build ! -path "$(top_srcdir)/grilo-*" ) \ + meson_options.txt \ + ./m4/introspection.m4 + +DISTCHECK_CONFIGURE_FLAGS = \ + --enable-grl-net \ + --enable-grl-pls \ + --enable-gtk-doc \ + --enable-introspection \ + --enable-test-ui \ + --enable-vala + +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +grilo-net-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/grilo-net-uninstalled.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +grilo-net-${GRL_MAJORMINOR}.pc: $(top_builddir)/config.status $(srcdir)/grilo-net-${GRL_MAJORMINOR}.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +grilo-pls-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/grilo-pls-uninstalled.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +grilo-pls-${GRL_MAJORMINOR}.pc: $(top_builddir)/config.status $(srcdir)/grilo-pls-${GRL_MAJORMINOR}.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +grilo-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/grilo-uninstalled.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +grilo-${GRL_MAJORMINOR}.pc: $(top_builddir)/config.status $(srcdir)/grilo-${GRL_MAJORMINOR}.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz + $(am__post_remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-tarZ: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build/sub \ + && ../../configure \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + --srcdir=../.. --prefix="$$dc_install_base" \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile $(DATA) config.h +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-local distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-pkgconfigDATA + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-pkgconfigDATA + +.MAKE: $(am__recursive_targets) all install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + clean-libtool cscope cscopelist-am ctags ctags-am dist \ + dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ + dist-tarZ dist-xz dist-zip distcheck distclean \ + distclean-generic distclean-hdr distclean-libtool \ + distclean-local distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-pkgconfigDATA install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-pkgconfigDATA + +.PRECIOUS: Makefile + + +distclean-local: + -rm -rf autom4te.cache + +dist-hook: + +-include $(top_srcdir)/git.mk +-include $(top_srcdir)/release.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e2b8d01 --- /dev/null +++ b/NEWS @@ -0,0 +1,1075 @@ +NEW in 0.3.6 +============ + * Last release with Autotools included + + * Updated translations + * Italian + + * Bugs fixed and enhancements: + * issue !1 - Add tooling to have GrlData to register a + metadata-key if needed with the new APIs + grl_data_set_for_id() and grl_data_add_for_id + * Add support to build of grl-inspect with Python3 + +NEW in 0.3.5 +============ + * New translations + * Croatian + * Romanian + * Slovenian + + * Updated translations + * Hungarian + * Romanian + * Friulian + * Indonesian + * Spanish + * German + * Czech + * Chinese + * Swedish + * Polish + * Brazilian Portuguese + * Catalan + * Turkish + * Danish + + * Bugs fixed: + * !10 - Add support to g_autoptr + * !9 - Use GMenu and GAction on grilo-test-ui + * #4 - Include meson in releases + * #2 - Add missing metadata-keys to vala bindings + + * Contributors to this release: + 1PunMan + Anders Jonsson + Andika Triwidada + Ask Hjorth Larsen + Balázs Meskó + Christophe Fergeau + Claude Paroz + Daniel Mustieles + Daniel Șerbănescu + Emin Tufan Çetin + Fabio Tomat + gogo + Jordi Mas + Marek Cernocky + Mario Blättermann + Matej Urbančič + Piotr Drąg + Rafael Fontenelle + veer + Victor Toso + Xavi Ivars + Yi-Jyun Pan + Yi-Soo An + +NEW in 0.3.4 +============ + * Add Nepali translation + * Updated Esperanto translation + + * Bugs fixed: + * BGO#707643 - flickr: populate GrlMediaImage with EXIF data + * BGO#778612 - Meson build has incomplete introspection and docs + + * Contributors to this release: + Emmanuele Bassi + Jan Alexander Steffens (heftig) + Kristjan SCHMIDT + Pawan Chitrakar + Rafael Fonseca + Victor Toso + +NEW in 0.3.3 +============ + * Support to Meson build included + * Updated Travis CI to use docker and support meson builds + * Updated translations + + * Bugs fixed: + * BGO#771339 - Test: tracker-backend.vala:211: Falling back to bus backend + * BGO#773422 - net: Always return an error on failure + * BGO#774394 - gir break since commit 463d94d6022d + * BGO#774578 - test_net_wc_throttling_cb: assertion failed + * BGO#775950 - Add Meson build support in grilo core + + * Contributors to this release: + Alexander Shopov + Bastien Nocera + David King + Dominique Leuenberger + Juan A. Suarez Romero + Marinus Schraal + Victor Toso + liushuyu + + +NEW in 0.3.2 +============ + + * Updated translations + + * Bugs fixed: + * BGO#766386 - GrlSource resolution functions don't declare taking + ownership of media param + * BGO#769331 - Fix throttling in core and lua-factory + * BGO#769830 - Fix annotation + + * Contributors to this release: + Adrien Plazas + Andika Triwidada + Bastien Nocera + Juan A. Suarez Romero + Mathieu Bridon + Piotr Drąg + Reinout van Schouwen + Victor Toso + +NEW in 0.3.1 +============ + + * Updated translations + * Added new keys: GRL_METADATA_KEY_ALBUM_DISC_NUMBER, + GRL_METADATA_KEY_COMPOSER, GRL_METADATA_KEY_ALBUM_ARTIST + * Deprecated GRL_NET errors in favour of GRL_IO errors + + * Bugs fixed: + * BGO#732879 - AcoustID source + * BGO#760426 - [PATCH] grl-inspect-0.3 --help and grl-launch-0.3 --help + shows translated characters as question marks on some locales + * BGO#760648 - filename leaks in grl_registry_load_plugin_directory + * BGO#761820 - configure doesn't fail if libsoup not available + * BGO#761868 - [PATCH] add album disc key + * BGO#763009 - [PATCH] add several audio related keys + * BGO#764077 - Cancellation doesn't work + + * Contributors to this release: + Alexandre Franke + Anders Jonsson + Andika Triwidada + Ask Hjorth Larsen + Aurimas Černius + Balázs Meskó + Bastien Nocera + Bernd Homuth + Chao-Hsiung Liao + Cédric Valmary + Daniel Mustieles + Dušan Kazik + Efstathios Iosifidis + Enrico Nicoletto + Fabio Tomat + Fran Dieguez + Inaki Larranaga Murgoitio + Juan A. Suarez Romero + Kjartan Maraas + Marek Černocký + Marinus Schraal + Matej Urbančič + Milo Casagrande + Pedro Albuquerque + Piotr Drąg + Rūdolfs Mazurs + Seong-ho Cho + Tim Lunn + Ting-Wei Lan + Victor Toso + Yosef Or Boczko + Yuri Myasoedov + Мирослав Николић + + +NEW in 0.3.0 +============ + + * New major version + * Updated i18n translations + * "last-played-time" now is a GDateTime key, instead of string + * Support builtin plugins + * Get rid of XML plugin definitions + * New way of defining plugins (GRL_PLUGIN_DEFINE) + * Plugins must be explicitly activated after loading them + * Merge GrlMedia{Audio,Video,Image,Box} in GrlMedia + * Bugs fixed: + * BGO#686175 - "last-played-time" declared as string, instead of date-time + * BGO#745676 - core: Fix warning when unloading a plugin that failed to load + * BGO#747026 - core: Add a way to load builtin plugins + * BGO#747029 - source: Only replace source ID in notify if unset + * BGO#747953 - Information leak via plain text HTTP connection + * BGO#748455 - Some cleanup I made in grilo, I want to implement a test for + GrlMediaContainer in a separate branch + * BGO#748550 - Unregister custom keys on grl_registry_unload_plugin + * BGO#748873 - Documentation and precondition fixes for media resolution + * BGO#748896 - src: Try all GrlSources in grl_multiple_get_media_from_uri() + * BGO#749587 - Fix make distcheck. + * BGO#749887 - Fix coverity bugs + * BGO#754093 - grilo-plugins tests fail if build machine has no internet + connectivity + * BGO#754401 - grilo-test-ui: Fix warning about deprecated gtk-menu-images + * BGO#755368 - 'make clean' removes Vala .deps files + * BGO#755433 - grl_pls_browse_sync() is not introspectable + * BGO#755516 - build: fix build due syntax error + * BGO#755551 - remove media specifiers as subclasses + * BGO#755702 - Show better configuration information + * BGO#758654 - Fix tracker serialisation + * BGO#758655 - grl-launch fixes + * BGO#759295 - Get rid of XML plugins descriptors + + * Contributors to this release: + Alexandre Franke + Anders Jonsson + Andika Triwidada + Ask Hjorth Larsen + Aurimas Černius + Balázs Úr + Bastien Nocera + Bernd Homuth + Chao-Hsiung Liao + Claudio Arseni + Cédric Valmary + Daniel Mustieles + Dušan Kazik + Emmanuele Bassi + GNOME Translation Robot + George Sedov + Inaki Larranaga Murgoitio + Juan A. Suarez Romero + Marek Černocký + Matej Urbančič + Mathieu Duponchelle + Muhammet Kara + Olav Vitters + Pedro Albuquerque + Philip Withnall + Piotr Drąg + Rūdolfs Mazurs + Samir Ribic + Seong-ho Cho + Tom Tryfonidis + Victor Toso + Xavier Claessens + Yosef Or Boczko + Милош Поповић + + +NEW in 0.2.12 +============= + + * Add man pages for grilo-test-ui and grl-launch + * Modernized Vala bindings + * Sources are network aware + * Added new keys: GRL_METADATA_KEY_MB_TRACK_ID, GRL_METADATA_KEY_MB_ARTIST_ID, + GRL_METADATA_KEY_MB_RECORDING_ID, GRL_METADATA_KEY_EPISODE_TITLE, + GRL_METADATA_KEY_AUDIO_TRACK + * Added new functions: grl_data_set_int64(), grl_data_get_int64(), + grl_data_add_int64(), grl_media_audio_set_mb_artist_id(), + grl_media_audio_set_mb_recording_id(), grl_media_audio_set_mb_track_id(), + grl_media_audio_add_mb_artist_id(), grl_media_audio_get_mb_artist_id(), + grl_media_audio_get_mb_artist_id_nth(), + grl_media_audio_get_mb_recording_id(), grl_media_audio_get_mb_track_id(), + grl_media_video_set_episode_title(), grl_media_video_get_episode_title(), + grl_related_keys_set_int64(), grl_related_keys_get_int64() + * Deprecated functions: grl_operation_options_set_flags() [for + grl_operation_options_set_resolution_flags()], + grl_operation_options_get_resolution_flags() [for + grl_operation_options_get_resolution_flags()]. + * Added new plugin register function: GRL_PLUGIN_REGISTER_FULL() + * Renamed GrlOperationOptions "flags" to "resolution-flags" + * Several fixes, including: + * BGO#724308 - Make it possible to pass "flags" to "remove() + * BGO#725148 - Automatic network awareness + * BGO#730663 - vala bindings: all defines in grl-definitions.h are missing + in the bindings + * BGO#732878 - Include mb-track-id and mb-artist-id metadata key + * BGO#740113 - Fix compilation warning + * BGO#740128 - Add missing GRL_OP_STORE to supported ops + * BGO#740186 - Modernize vala bindings + * BGO#740761 - Correct "file size" metadata key + * BGO#740942 - core: Fix excessive ref'ing when registering new keys + * BGO#740943 - core: Add register_keys plugin function + * BGO#741020 - core: Add tag to grl_operation_options_get_key_range_filter + * BGO#741081 - data/grl-media-audio.c: Non-void function should return a + value + * BGO#741207 - Minor fixes at local-metadata and thetvdb + * BGO#741230 - MusicBrainz source to Grilo + * BGO#741315 - Vala bindings build fixes + * BGO#741605 - core: Make the property name match the metadata key name + * BGO#742645 - error: ENABLE_VAPIGEN does not appear in AM_CONDITIONAL + * BGO#743351 - core: Make grl_init_get_option_group() available to bindings + * BGO#743353 - core: Fix grl_init() when using the GOptionGroup instead + * BGO#744168 - core: Add "audio-track" property + * BGO#744408 - Memory leak in get_additional_sources + * Added/updated support for i18n + * Punjabi + * Swedish + * Turkish + + * Contributors to this release: + A S Alam + Adrião Morão + Alberto Garcia + Anders Jonsson + Bastien Nocera + Juan A. Suarez Romero + Marc-André Lureau + Muhammet Kara + Sebastian Keller + Ting-Wei Lan + Victor Toso + + +NEW in 0.2.11 +============= + + * Fixes in build system + * Generate AUTHORS file automatically + * Added new keys: GRL_METADATA_KEY_TITLE_FROM_FILENAME, + GRL_METADATA_KEY_MB_ALBUM_ID + * Added new tool: grl-launch, to run Grilo operations from command line + * Several fixes, including + * BGO#706877 - Let TheMovieDb resolver perform searches based on file name + * BGO#726698 - core: More cleanups + * BGO#727223 - Add grl-launch tool + * BGO#728812 - GrlPlsFilterFunc is missing from the doc + * BGO#730003 - core: Fix reference to renamed functions + * BGO#730548 - GRL_METADATA_KEY_INVALID is missing in the Vala bindings + * BGO#731282 - Add GRL_METADATA_KEY_MB_ALBUM_ID to core keys + * BGO#733232 - rhythmbox crashes while using jamendo due to double free in + libgrilo + * BGO#733285 - gboolean grl_initialized should be reset to FALSE in + grl_deinit + * Added/updated support for i18n + * Basque (new) + * Greek + * Serbian + * Turkish (new) + + * Contributors to this release: + Andres Gomez + Bastien Nocera + Inaki Larranaga Murgoitio + Juan A. Suarez + Juan A. Suarez Romero + MarMav + Muhammet Kara + Olav Vitters + Oliver Krylow + Piotr Drąg + Simon Wenner + Victor Toso + Xavier Claessens + Мирослав Николић + + +NEW in 0.2.10 +============= + + * Increase glib requirement to 2.34 or greater + * Added new property in GrlSource: "source-tags" + * Added new signal in GrlRegistry: "metadata-key-added" + * Added new functions: grl_media_{set,get}_size() + * Added new key: GRL_METADATA_KEY_SIZE + * Updated man page + * Several fixes, including: + * BGO#629002 - Add GRL_METADATA_KEY_SIZE + * BGO#724019 - core: Add "source-tags" property + * BGO#724648 - Vala dependency is not correctly detected + * BGO#724658 - test-ui: Fix crasher on exit + * BGO#724660 - Warnings on exit + * BGO#724871 - Warning fixes + * BGO#725419 - core: Add names to all the timeouts and idles + * BGO#726197 - grilo should not ignore ${libdir} and hardcode lib64 + * BGO#726340 - core: Add guards for public API + * Added/Updated support for i18n + * Swedish (new) + + * Contributors to this release: + Bastien Nocera + Juan A. Suarez Romero + Marcus Lundblad + Ryan Lortie + + +NEW in 0.2.9 +============ + + * Several fixes, including + * BGO#724620 - core: Fix introspection scanner warnings + * BGO#724540 - pls: Return an error when the entry media is of the wrong type + * BGO#724430 - Remove check for libvala in configure.ac + + * Contributors to this release: + Bastien Nocera + Colin Walters + Juan A. Suarez Romero + + +NEW in 0.2.8 +============ + + * Added support for Vala 0.22 and 0.24 + * Bump required libglib version to 2.32 + * Added new core function: grl_deinit() + * Added new property in GrlSource: "source-icon" + * Added a new library: Grilo Playlist, to handle playlists as containers + * Several fixes, including + * BGO#657926 - add per-source icon + * BGO#695303 - new feature: grilo playlist library + * BGO#709208 - search instead of browse vs upnp server that does not support + search via parentID + * BGO#709651 - Double free when running tests + * BGO#710185 - grilo-inspect leaves empty directories in /tmp + * BGO#722358 - Add grl_registry_add_config_from_resource + * BGO#722398 - core: Add unit to duration + * BGO#722407 - Grilo build | `GLib.Icon' could not be found + * BGO#723077 - Use the GrlSource::source-icon property in grilo-test-ui + * BGO#723191 - Support Vala 0.24 + * BGO#723989 - Misc build fixes + * BGO#724018 - core: Fix "Since" in GrlSource::source-icon docs + * Added/Updated support for i18n + * Catalan (new) + * Catalan Valencian (new) + * Chinese + * Esperanto (new) + * German + * Greek + * Hebrew (new) + * Hungarian (new) + * Malayalam + * Norwegian bokmål + * Portuguese + * Tajik + * Ukrainian (new) + * Contributors to this release: + Alban Browaeys + Anish A + Bastien Nocera + Carles Ferrando + Colin Walters + Daniel Korostil + Dominique Leuenberger + Efstathios Iosifidis + Emanuele Aina + Fernando Carvalho + Gabor Kelemen + Gil Forcada + Jacobo Aragunde Pérez + Juan A. Suarez Romero + Kjartan Maraas + Kristjan SCHMIDT + Mateu Batle + Victor Ibragimov + Victor Manuel Jaquez Leal + Wolfgang Stöggl + Wylmer Wang + Yosef Or Boczko + + +NEW in 0.2.7 +============ + + * Added Travis CI support for building + * Bump required libsoup version to 2.4 + * Re-factored Grilo Net library and fixed several bugs + * Show 'slow' keys in grl-inspect + * Updates in documentation + * Added new core function: grl_operation_set_data_full() + * Several fixes, including + * BGO#700478 - grilo-test-ui-0.2 segfaults + * BGO#704804 - typo in src/grl-registry.c + * BGO#705944 - core: Add grl_operation_set_data_full() + * BGO#706132 - build: Various srcdir != builddir fixes + * BGO#706412 - filesystem plugin filters all on GRL_FILTER_TYPE_NONE (patch) + * BGO#706487 - doc: Updates and fixes + * BGO#706491 - build: Switch to git.mk to keep the .gitignore file updated + * BGO#706495 - core: Use g_clear_error()/g_clear_object()/g_list_free_full() + * BGO#706805 - libgrlnet mock data facility's ignored-parameters feature + crashes for queries without parameters. + * LP#1224410 - Last.fm plugin causes file descriptor starvation + * Added/Updated support for i18n + * Assamese (new) + * Brazilian Portuguese + * Chinese simplified (new) + * Czech + * Danish (new) + * French (new) + * Galician + * German (new) + * Indonesian (new) + * Italian (new) + * Japanese (new) + * Korean (new) + * Latvian (new) + * Lithuanian (new) + * Norwegian bokmål (new) + * Polish + * Punjabi (new) + * Russian (new) + * Serbian + * Slovak (new) + * Slovenian + * Spanish + * Traditional Chinese (new) + + * Contributors to this release: + Alexandre Franke + Andika Triwidada + A S Alam + Ask H. Larsen + Aurimas Černius + Bastien Nocera + Benjamin Steinwender + Chao-Hsiung Liao + Christian Kirbach + Claudio Arseni + Colin Walters + Dušan Kazik + Emanuele Aina + Enrico Nicoletto + Evgeny Bobkin + Fran Diéguez + Jiro Matsuzawa + Juan A. Suarez Romero + Kenneth Nielsen + Kjartan Maraas + leo + Marek Černocký + Matej Urbančič + Nilamdyuti Goswami + Nishio Futoshi + Piotr Drąg + Rafael Ferreira + Rūdolfs Mazurs + Seong-ho Cho + Мирослав Николић + 甘露(Gan Lu) + + +NEW in 0.2.6 +============ + + * Fixed GrlNet cache + * Added support for Vala 0.20 + * Improved test-ui + * Some fixes, including + * BGO#696860 - filesystem: Add support for non-file URIs + * BGO#697175 - Grilo's flickr plugin using OAuth + * BGO#700310 - Soup HTTP cache size incorrectly set + * BGO#700311 - Use a different cache per plugin + * Added new functions in GrlConfig + * grl_config_get_api_token_secret() + * grl_config_set_api_token_secret() + * Added support for i18n + * Brazilian + * Czech + * Galician + * Greek + * Polish + * Serbian + * Slovenian + * Spanish + * Tajik + * Improved grl-inspect + * Print list of available keys + * Show more information about plugins + + * Contributors to this release: + Alberto Garcia + Bastien Nocera + Dimitris Spingos + Fran Diéguez + Juan A. Suarez Romero + Kalev Lember + Marek Černocký + Marek Chalupa + Martin Srebotnjak + Matej Urbančič + Miguel Rodriguez Núñez + Piotr Drąg + Rafael Ferreira + Sergio Villar Senin + Victor Ibragimov + Мирослав Николић + + +NEW in 0.2.5 +============ + + * Fixed compilation problem with gcc 4.2 + * Removed some warnings + * Several changes in test-ui + * Add filtering by type + * Print multi-valued elements + * Several fixes, including: + * BGO#689577 - autogen.sh does not pass all arguments correctly to gnome-autogen.sh + * BGO#690612 - grilo: Explain why module could not be loaded + * BGO#690613 - grilo: Downgrade init failure to a debug statement + * BGO#692118 - [PATCH] Fix build with automake 1.13 + * BGO#692873 - GrlOperationOptions leaked in grl_source_get_media_from_uri() + * BGO#694390 - Assertion when calling grl_registry_unload_plugin() twice + + * Contributors to this release: + * Bastien Nocera + * Evan Nemerson + * Juan A. Suarez Romero + * Mike Ruprecht + * Nuno Araujo + + +NEW in 0.2.4 +============ + + * Fixed compilation problem with gcc 4.2 + * Improved documetation + * Added support for boolean, float and datetime keys in filters + * Some fixes in core, including: + * BGO#688301 - docs: GrlMedia: Improve certificate/region function docs + * BGO#689053 - grl-source: fix compare_queue_element function + + * Contributors to this release: + * Andrzej Bieniek + * Jasper Lievisse Adriaanse + * Juan A. Suarez Romero + * Murray Cumming + + +NEW in 0.2.3 +============ + + * Added TMDb plugin in the Test UI program + * grl_source_resolve() can be invoked with sources that do not implement it + * grl_source_store_metadata() can be invoked with sources that do not + implement it + * Added support for mocking network answers, for testing purpose + * Added support for capturing network content, for testing purpose + * Improved (de)serialization: support all metadata key types and multi-valued + elements + * Added new keys: GRL_METADATA_KEY_FAVOURITE, GRL_METADATA_KEY_REGION, + GRL_METADATA_KEY_KEYWORD, GRL_METADATA_KEY_PERFORMER, + GRL_METADATA_KEY_PRODUCER, GRL_METADATA_KEY_DIRECTOR, + GRL_METADATA_KEY_ORIGINAL_TITLE + * Sources can expose the type of media they can handle + * Improved documentation + * Several fixes, including + * BGO#679686 - GRL_METADATA_KEY_CERTIFICATE doesn't consider regional + ratings + * BGO#685274 - Use GRL_METADATA_KEY_INVALID instead of NULL with + grl_metadata_key_list_new() + * BGO#685861 - Add GRL_METADATA_KEY_FAVOURITE + * BGO#685967 - Support mocking of network answers + * BGO#686032 - doc: Fix typo in _grl_log_init_core_domains() + * BGO#686033 - core: Don't crash with NULL options in _resolve() + * BGO#686206 - Move generic TMDB metadata keys to libgrilo. + * BGO#686271 - linking issue on ARM + * BGO#687104 - Searching all doesn't finalizes + + * Contributors to this release: + * Antía Puentes + * Bastien Nocera + * Dominique Leuenberger + * Jens Georg + * Juan A. Suarez Romero + * Mathias Hasselmann + * Murray Cumming + * Murray Cumming + + +NEW in 0.2.2 +============ + + * Rename macro from GRL_CAPS_TYPE to GRL_TYPE_CAPS + * Sort entries in documentation + * Several fixes, including: + * BGO#680436 - net: Add possibility to set custom HTTP headers on requests + + * Contributors to this release: + * Jens Georg + * Juan A. Suarez Romero + * Mathias Hasselmann + + +NEW in 0.2.1 +============ + + * Use G_MODULE_BIND_LOCAL to load modules + * Less disturbances using warnings instead of errors + * Add option to disable Test UI + * Several fixes, including: + * BGO#681757 - grilo-tests / pointer from int + * BGO#681983 - Pointer cast warning in grl-source.c + * BGO#681984 - sync source functions freeze on bad pre-conditions + * BGO#681992 - C++ guards missing in some header files + * BGO#682024 - Uninitialized data access in grl_source_get_media_from_uri() + * BGO#682791 - Fix display of non-ASCII strings in test-ui + * BGO#682793 - Clarify some documentations + * BGO#682855 - Memory leak in grl_source_test_media_from_uri_sync() + * BGO#685161 - grl_source_store() causes segfault if the plugin reports an error + * BGO#685169 - grl_source_store() doesn't obey GRL_WRITE_NORMAL + + * Contributors to this release: + * Bastien Nocera + * Jens Georg + * Juan A. Suarez Romero + * Mathias Hasselmann + + +NEW in 0.2.0 +============ + + * Merged GrlMediaSource and GrlMetadataSource in one GrlSource + * Improvements in the full resolution algorithm + * Added operation options and source capabilities + * Added filtering capabilities + * Added GRL_METADATA_KEY_START_TIME key + * Added GRL_METADATA_KEY_PUBLICATION_DATE key + * Added GRL_METADATA_KEY_MODIFICATION_DATE key + * Removed GRL_METADATA_KEY_DATE + * Changes in API names + * Added support for Vala 0.14 - 0.18 + * Added support for Windows building + * Fixes in the Test UI + * Use GDateTime for date-based keys + * Use numbers to identify metadata keys + * Improvements in Grilo Net library + * Improvements in Vala bindings + * Improvements in documentation + * Improvements in the build system + * Several fixes, including: + * BGO#662748 - tracker plugin: support multiple resources in a larger fil + * BGO#662762 - critical when HTTP request fails + * BGO#662763 - Bad unref in grl-net + * BGO#665938 - Do not dist gir_DATA + * BGO#672923 - Make it possible to override the user-agent in GrlNetWc + * BGO#676822 - test-ui: Make the test window a decent size + * BGO#676823 - test-ui: We only really support GTK+ 3.x builds + * BGO#679674 - Remove trailing commas from enums + + * Contributors to this release: + Alberto Garcia + Bastien Nocera + César García Tapia + Damien Lespiau + Guillaume Emont + Iago Toral Quiroga + Jens Georg + Juan A. Suarez Romero + Lionel Landwerlin + Mathias Hasselmann + Murray Cumming + Sam Thursfield + Víctor Manuel Jáquez Leal + Yaakov Selkowitz + + +NEW in 0.1.17 +============= + + * Minor improvements in documentation + * Well-manage end of search/browse in splitted sources + * Minor fixes in build system + * Install XML files in the same place as libraries + * Restrict loading of a subset of plugins + * Added support for Vala 0.14 + * Fixed some bugs, including: + * BGO#657549 - add GRL_METADATA_KEY_TRACK_NUMBER + * BGO#657920 - Add Grilo documentation + + * Contributors to this release: + Guillaume Emont + Juan A. Suarez Romero + Lionel Landwerlin + + +NEW in 0.1.16 +============= + + * Several fixes + * Minor improvements in build system + * Make Test UI compliant with Gtk+ 3.0 + * Test UI no more long needs GConf + * Lots of updates in documentation + * Added manpage for grl-inspect tool + * Added new API to handle operation cancellation + + * Contributors to this release: + Alberto Garcia + Guillaume Emont + Iago Toral Quiroga + Juan A. Suarez Romero + Lionel Landwerlin + Víctor Manuel Jáquez Leal + + +NEW in 0.1.15 +============= + + * Several fixes + * Updated documentation + * Updated grl-inspect tool + + * Contributors to this release: + Juan A. Suarez Romero + + +NEW in 0.1.14 +============= + + * Several fixes, including: + * BGO#628898 - Grilo could do with a function to load a plugin by ID + * BGO#644383 - [feature-request] Metadata request are not cancellable + * Re-worked "content-changed" signal: several elements can be sent in just one + signal + * Operations in GrlMetadataSource are now cancellable too. + + * Contributors to this release: + Juan A. Suarez Romero + Lionel Landwerlin + + +NEW in 0.1.13 +============= + + * Do not store keys without values in GrlData + * Deprecated grl_data_key_is_known() + * Deprecated GrlData "overwrite" property + * Renamed grl_data_get_single_related_keys() + * Some fixes, including: + * BGO#645525 - CPU load and grilo requests + + * Contributors to this release: + Juan A. Suarez Romero + + +NEW in 0.1.12 +============= + + * Several fixes and improvements, including fixes for: + * BGO#645542 - grl_metadata_source_set_metadata() broken + * Added support for caching in GrlNet + * Added new metadata keys suited for camera pictures + * Improved GObject Introspection support + + * Contributors to this release: + Juan A. Suarez Romero + Lionel Landwerlin + Michael Wood + Simon Pena + + +NEW in 0.1.11 +============= + + * Fixed a segmentation fault + * Added new keys + + * Contributors to this release: + Juan A. Suarez Romero + Lionel Landwerlin + + +NEW in 0.1.10 +============= + + * Several fixes + * Deprecated grl_metadata_source_key_depends() in benefit of grl_metadata_source_may_resolve() + * Rewritten full resolution mode to handle correctly metadata sources + * Added support for multi-valued keys. + + * Contributors to this release: + Guillaume Emont + Juan A. Suarez Romero + Lionel Landwerlin + + +NEW in 0.1.9 +============ + + * Several fixes + * Added support for content-changed notifications + * Added support for NULL-text search (aka search all) + * Added support for cancelled operations notification + * Added support for binary data in GrlConfig and GrlData + * Added new configuration key: api-key-blob + * Added new metadata key: thumbnail-binary + + * Contributors to this release: + Fabien Lebaillif - Delamare + Guillaume Emont + Juan A. Suarez Romero + Lionel Landwerlin + Víctor Manuel Jáquez Leal + + +NEW in 0.1.8 +============ + + * Several fixes + * Improved documentation + * Reworked GrlConfig + * Added new types and functions in GrlConfig + * Added padded for public structures + * Added sync version of grl_media_source_get_media_from_uri() + * Several fixes and improvements in test-ui + + * Contributors to this release: + Fabien Lebaillif - Delamare + Guillaume Emont + Iago Toral Quiroga + Juan A. Suarez Romero + Jussi Kukkonen + Lionel Landwerlin + + +NEW in 0.1.7 +============ + + * Several fixes, including fixes for: + * GB#627864 - log: Revamp the log system + * GB#628506 - rename the GRL_ERROR quark to GRL_CORE_ERROR + * GB#629369 - Make get_sources and get_sources_by_operations accessible from + JavaScript + * GB#630493 - Using full resolution during searches will cause an + uninitialised pointer access + * GB#635394 - Add ability to get video URL from page URL, or URL + * Added Grilo Net Web Client (GrlNetWc) + * Implemented grl_multiple_get_media_from_site(): build a GrlMedia from given + a site url + * Implemented grl_plugin_registry_add_config_from_file(): load plugin + configuration from a file + * Added a GError parameter to GrlPluginRegistry functions that can fail + * Added new GrlCoreError + * Log system revamp + * Improved documentation + * Improved gobject introspection annotations + * Improved Vala bindings + * Using functions instead of definitions in grl-media-plugin + * Updated tests infrastructure + * Added new python tests using gobject introspection + + * Contributors to this release: + Chris Lord + Damien Lespiau + Fabien Lebaillif - Delamare + Guillaume Emont + Iago Toral Quiroga + Juan A. Suarez Romero + Simon Pena + Víctor Manuel Jáquez Leal + + +NEW in 0.1.6 +============ + + * Several fixes, including fixes for GB#620143, GB#62047 and GB#627207 + * Use SILENCE mode when building + * Added (un)serialization API to GrlMedia + * New metadata key system based on GParamSpec + * Added API to get all available keys + * Added API to initialize Grilo + * Added API to search in several plugins at the same time + * Added API with utility functions + * Added command-line options + * Use XML to define plugins + * Added new keys: external-url, external-player, studio, certificate and license + * grl_media_source_metadata() is cancelable + * Handle flickr authorization in test-ui + * Added synchronous functions for the asynchronous partners + * Added grl-inspect utility + * Renamed grl_plugin_registry_get_instance() to grl_plugin_registry_get_default() + * Improved Vala bindings + * Improved GObject introspection support + + * Contributors to this release: + Damien Lespiau + Eduardo Lima Mitev + Iago Toral Quiroga + iain + Joaquim Rocha + Juan A. Suarez Romero + Simón Pena + Víctor Manuel Jáquez Leal + Xabier Rodriguez Calvar + + +NEW in 0.1.5 +============ + + * Several fixes + * Added initial support for tests + * Code moved to gnome.org + * Added new documentation: overview, quick start, examples, ... + * Updated Vala bindings + * Changed GrlConfig: now keys are strings instead of GrlKeyID + * Improved build system + * Added Vimeo plugin support to test-ui + + * Contributors to this release: + Iago Toral Quiroga + José Dapena Paz + Juan A. Suarez Romero + Stefan Kost + Víctor Manuel Jáquez Leal + Xabier Rodriguez Calvar + + +NEW in 0.1.4 +============ + + * Improved documentation + * General improvements in code + * Added configuration api for plugins + * Refactored content classes + * Added introspection support in build system, and a Javascript sample that + uses it + * Aded new api to modify content + * Added new keys: play-count, last-played and last-position + * Renamed grl_plugins_get_sources_by_capabilities() to + grl_plugins_get_sources_by_operations() + + * Contributors to this release: + Eduardo Lima Mitev + Iago Toral Quiroga + Juan A. Suarez Romero + Víctor Manuel Jáquez Leal + Xabier Rodriguez Calvar + + +NEW in 0.1.3 +============ + + * Added ranks to plugins + * Added functions to search sources by capabilities + * Added a new metadata key: Bitrate + * Test-UI: some improvements + * Documentation: add gtk-doc for GrlMediaPlugin and GrlMetadataSource + + * Contributors to this release: + Iago Toral Quiroga + Juan A. Suarez Romero + Víctor Manuel Jáquez Leal + + +NEW in 0.1.2 +============ + + * Improved Vala bindings + * Fixed some bugs + * Started initial support for gtk-doc + + * Contributors to this release: + Juan A. Suarez Romero + Víctor Manuel Jáquez Leal + + +NEW in 0.1.1 +============ + + * First release + + * Contributors to this release: + Iago Toral + Juan A. Suarez Romero + Víctor Manuel Jáquez Leal + diff --git a/README b/README new file mode 100644 index 0000000..1f534df --- /dev/null +++ b/README @@ -0,0 +1,96 @@ +Thanks for using Grilo! + +=== What is Grilo? === + +Grilo is a framework for browsing and searching media content from various +sources using a single API. + +=== Where can I find more? === + +We have a wiki page at +https://wiki.gnome.org/Projects/Grilo + +You can subscribe to our mailing list: +http://mail.gnome.org/mailman/listinfo/grilo-list + +You can join us on the IRC: +#grilo on GIMPNet + +=== How do I start? === + +If you are using Ubuntu you can install binary packages by configuring +our PPA, check the wiki page above for details. Otherwise you have +to download Grilo's source code from GNOME's repository and build it +-don't worry, it takes only a few seconds-, see the section below +if you want to do that. + +Once you have Grilo installed, you may want to play around with the +examples (See section "Examples") or check its documentation +and tutorials (See section "Documentation"). + +=== Building from git === + +$ git clone git://git.gnome.org/grilo +$ cd grilo +$ ./autogen.sh +$ make + +=== Examples === + +If you are looking for some example to play with you can try grilo-test-ui, +a simple GTK+ based test application for testing purposes. You can find it +under tools/grilo-test-ui. It allows users to: + +1) Browse predefined content categories from browseable sources (like +"Youtube", "Jamendo" or "UPnP"). +2) Search content by text on searchable sources (like "Youtube", "Jamanedo" +or "Flickr"). +3) Query sources using source-specific syntax (for sources implementing +this feature). +4) Organize and define the source's content hierarchy (for sources +implementing this feature like "bookmarks" or +"podcasts"). +5) Check available metadata for the media. + +For this application to work you need some Grilo plugins that act as media +sources, that is, plugins that provide the actual content that you will +browse and search using the application. You can get a bunch of plugins for +Grilo from the grilo-plugins package here: + +http://git.gnome.org/browse/grilo-plugins + +If you are looking for a step-by-step guide from beginning to end, here it is: + +# Building Grilo + +$ git clone git://git.gnome.org/grilo +$ cd grilo +$ ./autogen.sh +$ make + +# Building Grilo Plugins and setting GRL_PLUGIN_PATH + +$ export PKG_CONFIG_PATH=$PWD:$PKG_CONFIG_PATH +$ cd .. +$ git clone git://git.gnome.org/grilo-plugins +$ cd grilo-plugins +$ ./autogen.sh +$ make +$ make install + +# Running grilo-test-ui + +$ cd ../grilo +$ tools/grilo-test-ui/grilo-test-ui + +=== Documentation === + +If you are looking for documentation you should add the --enable-gtk-doc +option to the autogen.sh execution: + +$ ./autogen.sh --enable-gtk-doc +$ make + +Then point your browser to open the file doc/reference/html/index.html + +Enjoy! diff --git a/TODO b/TODO new file mode 100644 index 0000000..3a45819 --- /dev/null +++ b/TODO @@ -0,0 +1,13 @@ +- Handle GRL_RESOLVE_FULL when a certain key can be resolved by several plugins. + -> Use alternative plugins if the selected one fails to resolve the key. +- Consider using GAsync callback interface for callback implementations. + -> Also check issues for binding development related to this. +- Consider using the Ethos GObject plugin framework to replace our current +in-house plugin system. +- Multiple-plugin operations (i.e. search by text on all plugins). +- Python bindings +- Consider a more flexible post-processing mechanism for query +operations (browse, search, etc). + -> We have to figure out if that's really necessary. +- Improve configuration interface + -> Use strings for config keys diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..7041165 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,11129 @@ +# generated automatically by aclocal 1.15.1 -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# Copyright (C) 2002-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.15' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.15.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.15.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], + [$1], [CXX], [depcc="$CXX" am_compiler_list=], + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], + [$1], [UPC], [depcc="$UPC" am_compiler_list=], + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( + [--enable-dependency-tracking], + [do not reject slow dependency extractors]) +AS_HELP_STRING( + [--disable-dependency-tracking], + [speeds up one-time build])]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each '.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi +dnl The trailing newline in this macro's definition is deliberate, for +dnl backward compatibility and to allow trailing 'dnl'-style comments +dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. +]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], + am_maintainer_other[ make rules and dependencies not useful + (and sometimes confusing) to the casual installer])], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_CC_C_O +# --------------- +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC +# to automatically call this. +AC_DEFUN([_AM_PROG_CC_C_O], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( + [whether $CC understands -c and -o together], + [am_cv_prog_cc_c_o], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i]) +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) + +# For backward compatibility. +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2009-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +# +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], + + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/intltool.m4]) +# gnome-common.m4 +# +# serial 3 +# + +AU_DEFUN([GNOME_DEBUG_CHECK], +[ + AX_CHECK_ENABLE_DEBUG([no],[GNOME_ENABLE_DEBUG]) +], +[[$0: This macro is deprecated. You should use AX_CHECK_ENABLE_DEBUG instead and +replace uses of GNOME_ENABLE_DEBUG with ENABLE_DEBUG. +See: http://www.gnu.org/software/autoconf-archive/ax_check_enable_debug.html#ax_check_enable_debug]]) + +dnl GNOME_MAINTAINER_MODE_DEFINES () +dnl define DISABLE_DEPRECATED +dnl +AU_DEFUN([GNOME_MAINTAINER_MODE_DEFINES], +[ + AC_REQUIRE([AM_MAINTAINER_MODE]) + + DISABLE_DEPRECATED="" + if test $USE_MAINTAINER_MODE = yes; then + DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP" + for DOMAIN in $DOMAINS; do + DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" + done + fi + + AC_SUBST(DISABLE_DEPRECATED) +], +[[$0: This macro is deprecated. All of the modules it disables deprecations for +are obsolete. Remove it and all uses of DISABLE_DEPRECATED.]]) + +# gnome-compiler-flags.m4 +# +# serial 4 +# + +dnl GNOME_COMPILE_WARNINGS +dnl Turn on many useful compiler warnings and substitute the result into +dnl WARN_CFLAGS +dnl For now, only works on GCC +dnl Pass the default value of the --enable-compile-warnings configure option as +dnl the first argument to the macro, defaulting to 'yes'. +dnl Additional warning/error flags can be passed as an optional second argument. +dnl +dnl For example: GNOME_COMPILE_WARNINGS([maximum],[-Werror=some-flag -Wfoobar]) +AU_DEFUN([GNOME_COMPILE_WARNINGS],[ + dnl ****************************** + dnl More compiler warnings + dnl ****************************** + + AC_ARG_ENABLE(compile-warnings, + AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], + [Turn on compiler warnings]),, + [enable_compile_warnings="m4_default([$1],[yes])"]) + + if test "x$GCC" != xyes; then + enable_compile_warnings=no + fi + + warning_flags= + realsave_CFLAGS="$CFLAGS" + + dnl These are warning flags that aren't marked as fatal. Can be + dnl overridden on a per-project basis with -Wno-foo. + base_warn_flags=" \ + -Wall \ + -Wstrict-prototypes \ + -Wnested-externs \ + " + + dnl These compiler flags typically indicate very broken or suspicious + dnl code. Some of them such as implicit-function-declaration are + dnl just not default because gcc compiles a lot of legacy code. + dnl We choose to make this set into explicit errors. + base_error_flags=" \ + -Werror=missing-prototypes \ + -Werror=implicit-function-declaration \ + -Werror=pointer-arith \ + -Werror=init-self \ + -Werror=format-security \ + -Werror=format=2 \ + -Werror=missing-include-dirs \ + -Werror=return-type \ + " + + dnl Additional warning or error flags provided by the module author to + dnl allow stricter standards to be imposed on a per-module basis. + dnl The author can pass -W or -Werror flags here as they see fit. + additional_flags="m4_default([$2],[])" + + case "$enable_compile_warnings" in + no) + warning_flags="-w" + ;; + minimum) + warning_flags="-Wall" + ;; + yes|maximum|error) + warning_flags="$base_warn_flags $base_error_flags $additional_flags" + ;; + *) + AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) + ;; + esac + + if test "$enable_compile_warnings" = "error" ; then + warning_flags="$warning_flags -Werror" + fi + + dnl Check whether GCC supports the warning options + for option in $warning_flags; do + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $option" + AC_MSG_CHECKING([whether gcc understands $option]) + AC_TRY_COMPILE([], [], + has_option=yes, + has_option=no,) + CFLAGS="$save_CFLAGS" + AC_MSG_RESULT([$has_option]) + if test $has_option = yes; then + tested_warning_flags="$tested_warning_flags $option" + fi + unset has_option + unset save_CFLAGS + done + unset option + CFLAGS="$realsave_CFLAGS" + AC_MSG_CHECKING(what warning flags to pass to the C compiler) + AC_MSG_RESULT($tested_warning_flags) + + AC_ARG_ENABLE(iso-c, + AS_HELP_STRING([--enable-iso-c], + [Try to warn if code is not ISO C ]),, + [enable_iso_c=no]) + + AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) + complCFLAGS= + if test "x$enable_iso_c" != "xno"; then + if test "x$GCC" = "xyes"; then + case " $CFLAGS " in + *[\ \ ]-ansi[\ \ ]*) ;; + *) complCFLAGS="$complCFLAGS -ansi" ;; + esac + case " $CFLAGS " in + *[\ \ ]-pedantic[\ \ ]*) ;; + *) complCFLAGS="$complCFLAGS -pedantic" ;; + esac + fi + fi + AC_MSG_RESULT($complCFLAGS) + + WARN_CFLAGS="$tested_warning_flags $complCFLAGS" + AC_SUBST(WARN_CFLAGS) +], +[[$0: This macro is deprecated. You should use AX_COMPILER_FLAGS instead and +eliminate use of --enable-iso-c. +See: http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html#ax_compiler_flags]]) + +dnl For C++, do basically the same thing. + +AU_DEFUN([GNOME_CXX_WARNINGS],[ + AC_ARG_ENABLE(cxx-warnings, + AS_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] + [Turn on compiler warnings.]),, + [enable_cxx_warnings="m4_default([$1],[minimum])"]) + + AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) + warnCXXFLAGS= + if test "x$GXX" != xyes; then + enable_cxx_warnings=no + fi + if test "x$enable_cxx_warnings" != "xno"; then + if test "x$GXX" = "xyes"; then + case " $CXXFLAGS " in + *[\ \ ]-Wall[\ \ ]*) ;; + *) warnCXXFLAGS="-Wall -Wno-unused" ;; + esac + + ## -W is not all that useful. And it cannot be controlled + ## with individual -Wno-xxx flags, unlike -Wall + if test "x$enable_cxx_warnings" = "xyes"; then + warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" + fi + fi + fi + AC_MSG_RESULT($warnCXXFLAGS) + + AC_ARG_ENABLE(iso-cxx, + AS_HELP_STRING([--enable-iso-cxx], + [Try to warn if code is not ISO C++ ]),, + [enable_iso_cxx=no]) + + AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) + complCXXFLAGS= + if test "x$enable_iso_cxx" != "xno"; then + if test "x$GXX" = "xyes"; then + case " $CXXFLAGS " in + *[\ \ ]-ansi[\ \ ]*) ;; + *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; + esac + + case " $CXXFLAGS " in + *[\ \ ]-pedantic[\ \ ]*) ;; + *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; + esac + fi + fi + AC_MSG_RESULT($complCXXFLAGS) + + WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" + AC_SUBST(WARN_CXXFLAGS) +], +[[$0: This macro is deprecated. You should use AX_COMPILER_FLAGS instead and +eliminate use of --enable-iso-cxx. +See: http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html#ax_compiler_flags]]) + +# -*- mode: autoconf -*- +# +# gtk-doc.m4 - configure macro to check for gtk-doc +# Copyright (C) 2003 James Henstridge +# 2007-2017 Stefan Sauer +# +# 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 3 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, see . +# +# As a special exception, the above copyright owner gives unlimited +# permission to copy, distribute and modify the configure scripts that +# are the output of Autoconf when processing the Macro. You need not +# follow the terms of the GNU General Public License when using or +# distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. + +# serial 2 + +dnl Usage: +dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) +AC_DEFUN([GTK_DOC_CHECK], +[ + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first + AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first + + ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"]) + AC_MSG_CHECKING([for gtk-doc]) + PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no]) + AC_MSG_RESULT($have_gtk_doc) + + if test "$have_gtk_doc" = "no"; then + AC_MSG_WARN([ + You will not be able to create source packages with 'make dist' + because $gtk_doc_requires is not found.]) + fi + + dnl check for tools we added during development + dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that + dnl may not be writable by the user. Currently, automake requires that the + dnl test name must end in '.test'. + dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638 + AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test]) + AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check]) + AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) + AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) + + dnl for overriding the documentation installation directory + AC_ARG_WITH([html-dir], + AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, + [with_html_dir='${datadir}/gtk-doc/html']) + HTML_DIR="$with_html_dir" + AC_SUBST([HTML_DIR]) + + dnl enable/disable documentation building + AC_ARG_ENABLE([gtk-doc], + AS_HELP_STRING([--enable-gtk-doc], + [use gtk-doc to build documentation [[default=no]]]),, + [enable_gtk_doc=no]) + + AC_MSG_CHECKING([whether to build gtk-doc documentation]) + AC_MSG_RESULT($enable_gtk_doc) + + if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then + AC_MSG_ERROR([ + You must have $gtk_doc_requires installed to build documentation for + $PACKAGE_NAME. Please install gtk-doc or disable building the + documentation by adding '--disable-gtk-doc' to '[$]0'.]) + fi + + dnl don't check for glib if we build glib + if test "x$PACKAGE_NAME" != "xglib"; then + dnl don't fail if someone does not have glib + PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:]) + fi + + dnl enable/disable output formats + AC_ARG_ENABLE([gtk-doc-html], + AS_HELP_STRING([--enable-gtk-doc-html], + [build documentation in html format [[default=yes]]]),, + [enable_gtk_doc_html=yes]) + AC_ARG_ENABLE([gtk-doc-pdf], + AS_HELP_STRING([--enable-gtk-doc-pdf], + [build documentation in pdf format [[default=no]]]),, + [enable_gtk_doc_pdf=no]) + + if test -z "$GTKDOC_MKPDF"; then + enable_gtk_doc_pdf=no + fi + + if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 + fi + AC_SUBST([AM_DEFAULT_VERBOSITY]) + + AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes]) + AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) + AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) + AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) + AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) + AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) +]) + +dnl -*- mode: autoconf -*- +dnl Copyright 2009 Johan Dahlin +dnl +dnl This file is free software; the author(s) gives unlimited +dnl permission to copy and/or distribute it, with or without +dnl modifications, as long as this notice is preserved. +dnl + +# serial 1 + +m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], +[ + AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first + AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first + AC_BEFORE([LT_INIT],[$0])dnl setup libtool first + + dnl enable/disable introspection + m4_if([$2], [require], + [dnl + enable_introspection=yes + ],[dnl + AC_ARG_ENABLE(introspection, + AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], + [Enable introspection for this build]),, + [enable_introspection=auto]) + ])dnl + + AC_MSG_CHECKING([for gobject-introspection]) + + dnl presence/version checking + AS_CASE([$enable_introspection], + [no], [dnl + found_introspection="no (disabled, use --enable-introspection to enable)" + ],dnl + [yes],[dnl + PKG_CHECK_EXISTS([gobject-introspection-1.0],, + AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) + PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], + found_introspection=yes, + AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) + ],dnl + [auto],[dnl + PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) + dnl Canonicalize enable_introspection + enable_introspection=$found_introspection + ],dnl + [dnl + AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) + ])dnl + + AC_MSG_RESULT([$found_introspection]) + + INTROSPECTION_SCANNER= + INTROSPECTION_COMPILER= + INTROSPECTION_GENERATE= + INTROSPECTION_GIRDIR= + INTROSPECTION_TYPELIBDIR= + if test "x$found_introspection" = "xyes"; then + INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` + INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` + INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` + INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` + INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" + INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` + INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` + INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection + fi + AC_SUBST(INTROSPECTION_SCANNER) + AC_SUBST(INTROSPECTION_COMPILER) + AC_SUBST(INTROSPECTION_GENERATE) + AC_SUBST(INTROSPECTION_GIRDIR) + AC_SUBST(INTROSPECTION_TYPELIBDIR) + AC_SUBST(INTROSPECTION_CFLAGS) + AC_SUBST(INTROSPECTION_LIBS) + AC_SUBST(INTROSPECTION_MAKEFILE) + + AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") +]) + + +dnl Usage: +dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) + +AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], +[ + _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) +]) + +dnl Usage: +dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) + + +AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], +[ + _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) +]) + +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 2014 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool 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 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool 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, see . +]) + +# serial 58 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_PREPARE_CC_BASENAME +# ----------------------- +m4_defun([_LT_PREPARE_CC_BASENAME], [ +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in @S|@*""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} +])# _LT_PREPARE_CC_BASENAME + + +# _LT_CC_BASENAME(CC) +# ------------------- +# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, +# but that macro is also expanded into generated libtool script, which +# arranges for $SED and $ECHO to be set by different means. +m4_defun([_LT_CC_BASENAME], +[m4_require([_LT_PREPARE_CC_BASENAME])dnl +AC_REQUIRE([_LT_DECL_SED])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl +func_cc_basename $1 +cc_basename=$func_cc_basename_result +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl +dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl +m4_require([_LT_CMD_TRUNCATE])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options that allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld=$lt_cv_prog_gnu_ld + +old_CC=$CC +old_CFLAGS=$CFLAGS + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from 'configure', and 'config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# 'config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain=$ac_aux_dir/ltmain.sh +])# _LT_PROG_LTMAIN + + + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the 'libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to 'config.status' so that its +# declaration there will have the same value as in 'configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags='_LT_TAGS'dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into 'config.status', and then the shell code to quote escape them in +# for loops in 'config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# '#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test 0 = "$lt_write_fail" && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +'$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test 0 != $[#] +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try '$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try '$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test yes = "$silent" && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options that allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST + fi + + cfgfile=${ofile}T + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# Generated automatically by $as_me ($PACKAGE) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +_LT_COPYING +_LT_LIBTOOL_TAGS + +# Configured defaults for sys_lib_dlsearch_path munging. +: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + cat <<'_LT_EOF' >> "$cfgfile" + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +_LT_PREPARE_MUNGE_PATH_LIST +_LT_PREPARE_CC_BASENAME + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +m4_ifndef([AC_PROG_GO], [ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_GO. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +m4_defun([AC_PROG_GO], +[AC_LANG_PUSH(Go)dnl +AC_ARG_VAR([GOC], [Go compiler command])dnl +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl +_AC_ARG_VAR_LDFLAGS()dnl +AC_CHECK_TOOL(GOC, gccgo) +if test -z "$GOC"; then + if test -n "$ac_tool_prefix"; then + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) + fi +fi +if test -z "$GOC"; then + AC_CHECK_PROG(GOC, gccgo, gccgo, false) +fi +])#m4_defun +])#m4_ifndef + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([AC_PROG_GO], + [LT_LANG(GO)], + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "$LT_MULTI_MODULE"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test 0 = "$_lt_result"; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS=$save_LDFLAGS + ]) + + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + 10.[[012]][[,.]]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test yes = "$lt_cv_apple_cc_single_mod"; then + _lt_dar_single_mod='$single_module' + fi + if test yes = "$lt_cv_ld_exported_symbols_list"; then + _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' + fi + if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES([TAG]) +# --------------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test yes = "$lt_cv_ld_force_load"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + m4_if([$1], [CXX], +[ if test yes != "$lt_cv_apple_cc_single_mod"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script that will find a shell with a builtin +# printf (that we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case $ECHO in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], + [Search for dependent libraries within DIR (or the compiler's sysroot + if not specified).])], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case $with_sysroot in #( + yes) + if test yes = "$GCC"; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([$with_sysroot]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and where our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test no = "$enable_libtool_lock" || enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out what ABI is being produced by ac_compile, and set mode + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE=32 + ;; + *ELF-64*) + HPUX_IA64_MODE=64 + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test yes = "$lt_cv_prog_gnu_ld"; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +mips64*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + emul=elf + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + emul="${emul}32" + ;; + *64-bit*) + emul="${emul}64" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *MSB*) + emul="${emul}btsmip" + ;; + *LSB*) + emul="${emul}ltsmip" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *N32*) + emul="${emul}n32" + ;; + esac + LD="${LD-ld} -m $emul" + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test yes != "$lt_cv_cc_needs_belf"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS=$SAVE_CFLAGS + fi + ;; +*-*solaris*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD=${LD-ld}_sol2 + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks=$enable_libtool_lock +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +: ${AR_FLAGS=cru} +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test 0 -eq "$ac_status"; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test 0 -ne "$ac_status"; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + bitrig* | openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test yes = "[$]$2"; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS +]) + +if test yes = "[$]$2"; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring=ABCD + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n "$lt_cv_sys_max_cmd_len"; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test yes = "$cross_compiling"; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test yes != "$enable_dlopen"; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen=load_add_on + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen=LoadLibrary + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ + lt_cv_dlopen=dyld + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + tpf*) + # Don't try to run any link tests for TPF. We know it's impossible + # because TPF is a cross-compiler, and we know how we open DSOs. + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + lt_cv_dlopen_self=no + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen=shl_load], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen=dlopen], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test no = "$lt_cv_dlopen"; then + enable_dlopen=no + else + enable_dlopen=yes + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS=$CPPFLAGS + test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS=$LDFLAGS + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS=$LIBS + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test yes = "$lt_cv_dlopen_self"; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links=nottested +if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test no = "$hard_links"; then + AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", + [Define to the sub-directory where libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then + + # We can hardcode non-existent directories. + if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && + test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || + test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP"; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_PREPARE_MUNGE_PATH_LIST +# --------------------------- +# Make sure func_munge_path_list() is defined correctly. +m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], +[[# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x@S|@2 in + x) + ;; + *:) + eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" + ;; + x:*) + eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" + ;; + *) + eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" + ;; + esac +} +]])# _LT_PREPARE_PATH_LIST + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test yes = "$GCC"; then + case $host_os in + darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; + *) lt_awk_arg='/^libraries:/' ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; + *) lt_sed_strip_eq='s|=/|/|g' ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary... + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + # ...but if some path component already ends with the multilib dir we assume + # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). + case "$lt_multi_os_dir; $lt_search_path_spec " in + "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) + lt_multi_os_dir= + ;; + esac + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" + elif test -n "$lt_multi_os_dir"; then + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS = " "; FS = "/|\n";} { + lt_foo = ""; + lt_count = 0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo = "/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +AC_ARG_VAR([LT_SYS_LIBRARY_PATH], +[User-defined run-time library search path.]) + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[[4-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a[(]lib.so.V[)]' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[23]].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[[3-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # Don't embed -rpath directories since the linker doesn't support them. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + + # Ideally, we could use ldconfig to report *all* directores which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd* | bitrig*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], + [Detected run-time system search path for libraries]) +_LT_DECL([], [configure_time_lt_sys_library_path], [2], + [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program that can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$1"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac]) +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program that can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test no = "$withval" || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i +cat conftest.i conftest.i >conftest2.i +: ${lt_DD:=$DD} +AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], +[if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: +fi]) +rm -f conftest.i conftest2.i conftest.out]) +])# _LT_PATH_DD + + +# _LT_CMD_TRUNCATE +# ---------------- +# find command to truncate a binary pipe +m4_defun([_LT_CMD_TRUNCATE], +[m4_require([_LT_PATH_DD]) +AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], +[printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +lt_cv_truncate_bin= +if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" +fi +rm -f conftest.i conftest2.i conftest.out +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) +_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], + [Command to truncate a binary pipe]) +])# _LT_CMD_TRUNCATE + + +# _LT_CHECK_MAGIC_METHOD +# ---------------------- +# how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_MAGIC_METHOD], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +AC_CACHE_CHECK([how to recognize dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[[4-9]]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[[45]]*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd* | bitrig*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM=$NM +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi]) +if test no != "$lt_cv_path_NM"; then + NM=$lt_cv_path_NM +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test : != "$DUMPBIN"; then + NM=$DUMPBIN + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], + [lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest*]) +if test yes != "$lt_cv_path_mainfest_tool"; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# _LT_DLL_DEF_P([FILE]) +# --------------------- +# True iff FILE is a Windows DLL '.def' file. +# Keep in sync with func_dll_def_p in the libtool script +AC_DEFUN([_LT_DLL_DEF_P], +[dnl + test DEF = "`$SED -n dnl + -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace + -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments + -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl + -e q dnl Only consider the first "real" line + $1`" dnl +])# _LT_DLL_DEF_P + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM=-lm) + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test yes = "$GCC"; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test ia64 = "$host_cpu"; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Gets list of data symbols to import. + lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + # Adjust the below global symbol transforms to fixup imported variables. + lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" + lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" + lt_c_name_lib_hook="\ + -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ + -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" +else + # Disable hooks by default. + lt_cv_sys_global_symbol_to_import= + lt_cdecl_hook= + lt_c_name_hook= + lt_c_name_lib_hook= +fi + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +$lt_cdecl_hook\ +" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +$lt_c_name_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" + +# Transform an extracted symbol line into symbol name with lib prefix and +# symbol address. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +$lt_c_name_lib_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function, + # D for any global variable and I for any imported variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ +" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ +" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ +" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ +" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS=conftstm.$ac_objext + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test yes = "$pipe_works"; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], + [Transform the output of nm into a list of symbols to manually relocate]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], + [The name lister interface]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test yes = "$GXX"; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + if test ia64 != "$host_cpu"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64, which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test yes = "$GCC"; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + case $cc_basename in + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64, which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ F* | *Sun*Fortran*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Intel*\ [[CF]]*Compiler*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + *Portland\ Group*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ' (' and ')$', so one must not match beginning or + # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', + # as well as any symbol that contains 'd'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test yes != "$GCC"; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd* | bitrig*) + with_gnu_ld=no + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test yes = "$with_gnu_ld"; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test yes = "$lt_use_gnu_ld_interface"; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='$wl' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test ia64 != "$host_cpu"; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test linux-dietlibc = "$host_os"; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test no = "$tmp_diet" + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + nagfor*) # NAGFOR 5.3 + tmp_sharedflag='-Wl,-shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + tcc*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' + ;; + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then + aix_use_runtimelinking=yes + break + fi + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # traditional, no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + ;; + esac + + if test yes = "$GCC"; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag="$shared_flag "'$wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + ;; + + hpux10*) + if test yes,no = "$GCC,$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test yes,no = "$GCC,$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) + ;; + esac + fi + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS=$save_LDFLAGS]) + if test yes = "$lt_cv_irix_exported_symbol"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(ld_shlibs, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + osf3*) + if test yes = "$GCC"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test yes = "$GCC"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test yes = "$GCC"; then + wlarc='$wl' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='$wl' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. GCC discards it without '$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test yes = "$GCC"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test sequent = "$host_vendor"; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test sni = "$host_vendor"; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting $shlibpath_var if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC=$CC +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report what library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC=$lt_save_CC +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +if test -n "$CXX" && ( test no != "$CXX" && + ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || + (test g++ != "$CXX"))); then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_caught_CXX_error"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test yes = "$GXX"; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test yes = "$GXX"; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test yes = "$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='$wl' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + ;; + esac + + if test yes = "$GXX"; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag=$shared_flag' $wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + # The "-G" linker flag allows undefined symbols. + _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared + # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes,no = "$GXX,$with_gnu_ld"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test yes,no = "$GXX,$with_gnu_ld"; then + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require '-G' NOT '-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no + + _LT_TAGVAR(GCC, $1)=$GXX + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test yes != "$_lt_caught_CXX_error" + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case @S|@2 in + .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; + *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF +package foo +func foo() { +} +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case $prev$p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test x-L = "$p" || + test x-R = "$p"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test no = "$pre_test_object_deps_done"; then + case $prev in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)=$prev$p + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test no = "$pre_test_object_deps_done"; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)=$p + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)=$p + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test no = "$F77"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_disable_F77"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)=$G77 + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test yes != "$_lt_disable_F77" + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test no = "$FC"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_disable_FC"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test yes != "$_lt_disable_FC" + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)=$LD +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_GO_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Go compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_GO_CONFIG], +[AC_REQUIRE([LT_PROG_GO])dnl +AC_LANG_SAVE + +# Source file extension for Go test sources. +ac_ext=go + +# Object file extension for compiled Go test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="package main; func main() { }" + +# Code to be used in simple link tests +lt_simple_link_test_code='package main; func main() { }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GOC-"gccgo"} +CFLAGS=$GOFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)=$LD +_LT_CC_BASENAME([$compiler]) + +# Go did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GO_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code=$lt_simple_compile_test_code + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_GO +# ---------- +AC_DEFUN([LT_PROG_GO], +[AC_CHECK_TOOL(GOC, gccgo,) +]) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # + +m4_defun([AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f "$lt_ac_sed" && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test 10 -lt "$lt_ac_count" && break + lt_ac_count=`expr $lt_ac_count + 1` + if test "$lt_ac_count" -gt "$lt_ac_max"; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine what file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS + +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software +# Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 8 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option '$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl 'shared' nor 'disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], + [_LT_WITH_AIX_SONAME([aix])]) + ]) +])# _LT_SET_OPTIONS + + + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the 'shared' and +# 'disable-shared' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the 'static' and +# 'disable-static' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the 'fast-install' +# and 'disable-fast-install' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the 'fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the 'disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_AIX_SONAME([DEFAULT]) +# ---------------------------------- +# implement the --with-aix-soname flag, and support the `aix-soname=aix' +# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT +# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. +m4_define([_LT_WITH_AIX_SONAME], +[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl +shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[[5-9]]*,yes) + AC_MSG_CHECKING([which variant of shared library versioning to provide]) + AC_ARG_WITH([aix-soname], + [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], + [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], + [case $withval in + aix|svr4|both) + ;; + *) + AC_MSG_ERROR([Unknown argument to --with-aix-soname]) + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname], + [AC_CACHE_VAL([lt_cv_with_aix_soname], + [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) + with_aix_soname=$lt_cv_with_aix_soname]) + AC_MSG_RESULT([$with_aix_soname]) + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + +_LT_DECL([], [shared_archive_member_spec], [0], + [Shared archive member basename, for filename based shared library versioning on AIX])dnl +])# _LT_WITH_AIX_SONAME + +LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) +LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) +LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' +# LT_INIT options. +# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [pic_mode=m4_default([$1], [default])]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) + +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software +# Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59, which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) + +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 4179 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4.6]) +m4_define([LT_PACKAGE_REVISION], [2.4.6]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4.6' +macro_revision='2.4.6' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) + +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software +# Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) + +# nls.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software +dnl Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_PREREQ([2.50]) + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE([nls], + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT([$USE_NLS]) + AC_SUBST([USE_NLS]) +]) + +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 11 (pkg-config-0.29.1) + +dnl Copyright © 2004 Scott James Remnant . +dnl Copyright © 2012-2015 Dan Nicholson +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, but +dnl WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl As a special exception to the GNU General Public License, if you +dnl distribute this file as part of a program that contains a +dnl configuration script generated by Autoconf, you may include it under +dnl the same distribution terms that you use for the rest of that +dnl program. + +dnl PKG_PREREQ(MIN-VERSION) +dnl ----------------------- +dnl Since: 0.29 +dnl +dnl Verify that the version of the pkg-config macros are at least +dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's +dnl installed version of pkg-config, this checks the developer's version +dnl of pkg.m4 when generating configure. +dnl +dnl To ensure that this macro is defined, also add: +dnl m4_ifndef([PKG_PREREQ], +dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) +dnl +dnl See the "Since" comment for each macro you use to see what version +dnl of the macros you require. +m4_defun([PKG_PREREQ], +[m4_define([PKG_MACROS_VERSION], [0.29.1]) +m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, + [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) +])dnl PKG_PREREQ + +dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) +dnl ---------------------------------- +dnl Since: 0.16 +dnl +dnl Search for the pkg-config tool and set the PKG_CONFIG variable to +dnl first found in the path. Checks that the version of pkg-config found +dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is +dnl used since that's the first version where most current features of +dnl pkg-config existed. +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi +fi[]dnl +])dnl PKG_PROG_PKG_CONFIG + +dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +dnl ------------------------------------------------------------------- +dnl Since: 0.18 +dnl +dnl Check to see whether a particular set of modules exists. Similar to +dnl PKG_CHECK_MODULES(), but does not set variables or print errors. +dnl +dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +dnl only at the first occurence in configure.ac, so if the first place +dnl it's called might be skipped (such as if it is within an "if", you +dnl have to call PKG_CHECK_EXISTS manually +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_default([$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + +dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +dnl --------------------------------------------- +dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting +dnl pkg_failed based on the result. +m4_define([_PKG_CONFIG], +[if test -n "$$1"; then + pkg_cv_[]$1="$$1" + elif test -n "$PKG_CONFIG"; then + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], + [pkg_failed=yes]) + else + pkg_failed=untried +fi[]dnl +])dnl _PKG_CONFIG + +dnl _PKG_SHORT_ERRORS_SUPPORTED +dnl --------------------------- +dnl Internal check to see if pkg-config supports short errors. +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])dnl _PKG_SHORT_ERRORS_SUPPORTED + + +dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +dnl [ACTION-IF-NOT-FOUND]) +dnl -------------------------------------------------------------- +dnl Since: 0.4.0 +dnl +dnl Note that if there is a possibility the first call to +dnl PKG_CHECK_MODULES might not happen, you should be sure to include an +dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + m4_default([$4], [AC_MSG_ERROR( +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT])[]dnl + ]) +elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])[]dnl + ]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + $3 +fi[]dnl +])dnl PKG_CHECK_MODULES + + +dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +dnl [ACTION-IF-NOT-FOUND]) +dnl --------------------------------------------------------------------- +dnl Since: 0.29 +dnl +dnl Checks for existence of MODULES and gathers its build flags with +dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags +dnl and VARIABLE-PREFIX_LIBS from --libs. +dnl +dnl Note that if there is a possibility the first call to +dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to +dnl include an explicit call to PKG_PROG_PKG_CONFIG in your +dnl configure.ac. +AC_DEFUN([PKG_CHECK_MODULES_STATIC], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +_save_PKG_CONFIG=$PKG_CONFIG +PKG_CONFIG="$PKG_CONFIG --static" +PKG_CHECK_MODULES($@) +PKG_CONFIG=$_save_PKG_CONFIG[]dnl +])dnl PKG_CHECK_MODULES_STATIC + + +dnl PKG_INSTALLDIR([DIRECTORY]) +dnl ------------------------- +dnl Since: 0.27 +dnl +dnl Substitutes the variable pkgconfigdir as the location where a module +dnl should install pkg-config .pc files. By default the directory is +dnl $libdir/pkgconfig, but the default can be changed by passing +dnl DIRECTORY. The user can override through the --with-pkgconfigdir +dnl parameter. +AC_DEFUN([PKG_INSTALLDIR], +[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) +m4_pushdef([pkg_description], + [pkg-config installation directory @<:@]pkg_default[@:>@]) +AC_ARG_WITH([pkgconfigdir], + [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, + [with_pkgconfigdir=]pkg_default) +AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) +m4_popdef([pkg_default]) +m4_popdef([pkg_description]) +])dnl PKG_INSTALLDIR + + +dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) +dnl -------------------------------- +dnl Since: 0.27 +dnl +dnl Substitutes the variable noarch_pkgconfigdir as the location where a +dnl module should install arch-independent pkg-config .pc files. By +dnl default the directory is $datadir/pkgconfig, but the default can be +dnl changed by passing DIRECTORY. The user can override through the +dnl --with-noarch-pkgconfigdir parameter. +AC_DEFUN([PKG_NOARCH_INSTALLDIR], +[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) +m4_pushdef([pkg_description], + [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) +AC_ARG_WITH([noarch-pkgconfigdir], + [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, + [with_noarch_pkgconfigdir=]pkg_default) +AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) +m4_popdef([pkg_default]) +m4_popdef([pkg_description]) +])dnl PKG_NOARCH_INSTALLDIR + + +dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, +dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +dnl ------------------------------------------- +dnl Since: 0.28 +dnl +dnl Retrieves the value of the pkg-config variable for the given module. +AC_DEFUN([PKG_CHECK_VAR], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl + +_PKG_CONFIG([$1], [variable="][$3]["], [$2]) +AS_VAR_COPY([$1], [pkg_cv_][$1]) + +AS_VAR_IF([$1], [""], [$5], [$4])dnl +])dnl PKG_CHECK_VAR + +dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, +dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], +dnl [DESCRIPTION], [DEFAULT]) +dnl ------------------------------------------ +dnl +dnl Prepare a "--with-" configure option using the lowercase +dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and +dnl PKG_CHECK_MODULES in a single macro. +AC_DEFUN([PKG_WITH_MODULES], +[ +m4_pushdef([with_arg], m4_tolower([$1])) + +m4_pushdef([description], + [m4_default([$5], [build with ]with_arg[ support])]) + +m4_pushdef([def_arg], [m4_default([$6], [auto])]) +m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) +m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) + +m4_case(def_arg, + [yes],[m4_pushdef([with_without], [--without-]with_arg)], + [m4_pushdef([with_without],[--with-]with_arg)]) + +AC_ARG_WITH(with_arg, + AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, + [AS_TR_SH([with_]with_arg)=def_arg]) + +AS_CASE([$AS_TR_SH([with_]with_arg)], + [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], + [auto],[PKG_CHECK_MODULES([$1],[$2], + [m4_n([def_action_if_found]) $3], + [m4_n([def_action_if_not_found]) $4])]) + +m4_popdef([with_arg]) +m4_popdef([description]) +m4_popdef([def_arg]) + +])dnl PKG_WITH_MODULES + +dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, +dnl [DESCRIPTION], [DEFAULT]) +dnl ----------------------------------------------- +dnl +dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES +dnl check._[VARIABLE-PREFIX] is exported as make variable. +AC_DEFUN([PKG_HAVE_WITH_MODULES], +[ +PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) + +AM_CONDITIONAL([HAVE_][$1], + [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) +])dnl PKG_HAVE_WITH_MODULES + +dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, +dnl [DESCRIPTION], [DEFAULT]) +dnl ------------------------------------------------------ +dnl +dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after +dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make +dnl and preprocessor variable. +AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], +[ +PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) + +AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], + [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) +])dnl PKG_HAVE_DEFINE_WITH_MODULES + +dnl vapigen.m4 +dnl +dnl Copyright 2012 Evan Nemerson +dnl +dnl This library is free software; you can redistribute it and/or +dnl modify it under the terms of the GNU Lesser General Public +dnl License as published by the Free Software Foundation; either +dnl version 2.1 of the License, or (at your option) any later version. +dnl +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl Lesser General Public License for more details. +dnl +dnl You should have received a copy of the GNU Lesser General Public +dnl License along with this library; if not, write to the Free Software +dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +# VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND_INTROSPECTION], [DEFAULT]) +# -------------------------------------- +# Check vapigen existence and version +# +# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation +AC_DEFUN([VAPIGEN_CHECK], +[ + AS_IF([test "x$3" != "xyes"], [ + m4_provide_if([GOBJECT_INTROSPECTION_CHECK], [], [ + m4_provide_if([GOBJECT_INTROSPECTION_REQUIRE], [], [ + AC_MSG_ERROR([[You must call GOBJECT_INTROSPECTION_CHECK or GOBJECT_INTROSPECTION_REQUIRE before using VAPIGEN_CHECK unless using the FOUND_INTROSPECTION argument is "yes"]]) + ]) + ]) + ]) + + AC_ARG_ENABLE([vala], + [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[ + AS_IF([test "x$4" = "x"], [ + enable_vala=auto + ], [ + enable_vala=$4 + ]) + ]) + + AS_CASE([$enable_vala], [no], [enable_vala=no], + [yes], [ + AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ + AC_MSG_ERROR([Vala bindings require GObject Introspection]) + ]) + ], [auto], [ + AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ + enable_vala=no + ]) + ], [ + AC_MSG_ERROR([Invalid argument passed to --enable-vala, should be one of @<:@no/auto/yes@:>@]) + ]) + + AS_IF([test "x$2" = "x"], [ + vapigen_pkg_name=vapigen + ], [ + vapigen_pkg_name=vapigen-$2 + ]) + AS_IF([test "x$1" = "x"], [ + vapigen_pkg="$vapigen_pkg_name" + ], [ + vapigen_pkg="$vapigen_pkg_name >= $1" + ]) + + PKG_PROG_PKG_CONFIG + + PKG_CHECK_EXISTS([$vapigen_pkg], [ + AS_IF([test "$enable_vala" = "auto"], [ + enable_vala=yes + ]) + ], [ + AS_CASE([$enable_vala], [yes], [ + AC_MSG_ERROR([$vapigen_pkg not found]) + ], [auto], [ + enable_vala=no + ]) + ]) + + AC_MSG_CHECKING([for vapigen]) + + AS_CASE([$enable_vala], + [yes], [ + VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name` + VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen + AS_IF([test "x$2" = "x"], [ + VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name` + ], [ + VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name` + ]) + ]) + + AC_MSG_RESULT([$enable_vala]) + + AC_SUBST([VAPIGEN]) + AC_SUBST([VAPIGEN_VAPIDIR]) + AC_SUBST([VAPIGEN_MAKEFILE]) + + AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$enable_vala" = "xyes") +]) + diff --git a/bindings/Makefile.am b/bindings/Makefile.am new file mode 100644 index 0000000..86de8f0 --- /dev/null +++ b/bindings/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = vala + +-include $(top_srcdir)/git.mk diff --git a/bindings/Makefile.in b/bindings/Makefile.in new file mode 100644 index 0000000..897dde4 --- /dev/null +++ b/bindings/Makefile.in @@ -0,0 +1,677 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = bindings +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = vala +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign bindings/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign bindings/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/bindings/meson.build b/bindings/meson.build new file mode 100644 index 0000000..72a2f7e --- /dev/null +++ b/bindings/meson.build @@ -0,0 +1,10 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +if enable_vala + subdir('vala') +endif diff --git a/bindings/vala/Grl-0.3.metadata b/bindings/vala/Grl-0.3.metadata new file mode 100644 index 0000000..c59ffd8 --- /dev/null +++ b/bindings/vala/Grl-0.3.metadata @@ -0,0 +1,15 @@ +// vapigen has issues with the callbacks +PluginDescriptor skip=true + +Source.browse#method name="do_browse" +Source.query#method name="do_query" +Source.remove#method name="do_remove" +Source.resolve#method name="do_resolve" +Source.search#method name="do_search" +Source.store#method name="do_store" +Source.store_metadata#method name="do_store_metadata" +Source.supported_operations#method name="get_supported_operations" +*.callback delegate_target_cname="user_data" + + +SourceStoreSpec.user_data type="string" \ No newline at end of file diff --git a/bindings/vala/GrlNet-0.3.metadata b/bindings/vala/GrlNet-0.3.metadata new file mode 100644 index 0000000..73465ad --- /dev/null +++ b/bindings/vala/GrlNet-0.3.metadata @@ -0,0 +1,3 @@ +Wc.request_with_headers_hash_async finish_name="grl_net_wc_request_finish" +Wc.request_with_headers_async skip=false +Wc.request_with_headers_async finish_name="grl_net_wc_request_finish" diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am new file mode 100644 index 0000000..2176f1b --- /dev/null +++ b/bindings/vala/Makefile.am @@ -0,0 +1,33 @@ +EXTRA_DIST = +CLEANFILES = + +VAPIGEN_VAPIS = grilo-@GRL_MAJORMINOR@.vapi grilo-net-@GRL_MAJORMINOR@.vapi + +if ENABLE_VAPIGEN +-include $(VAPIGEN_MAKEFILE) + +grilo-@GRL_MAJORMINOR@.vapi: $(top_builddir)/src/Grl-@GRL_MAJORMINOR@.gir grilo-@GRL_MAJORMINOR@-custom.vala grilo-@GRL_MAJORMINOR@.deps Grl-@GRL_MAJORMINOR@.metadata + +grilo_@GRL_MAJORMINOR_NORM@_vapi_DEPS = gio-2.0 +grilo_@GRL_MAJORMINOR_NORM@_vapi_METADATADIRS = $(srcdir) +grilo_@GRL_MAJORMINOR_NORM@_vapi_FILES = $(srcdir)/grilo-@GRL_MAJORMINOR@-custom.vala $(top_builddir)/src/Grl-@GRL_MAJORMINOR@.gir + +if BUILD_GRILO_NET +grilo-net-@GRL_MAJORMINOR@.vapi: $(top_builddir)/libs/net/GrlNet-@GRL_MAJORMINOR@.gir grilo-net-@GRL_MAJORMINOR@-custom.vala grilo-net-@GRL_MAJORMINOR@.deps GrlNet-@GRL_MAJORMINOR@.metadata + +grilo_net_@GRL_MAJORMINOR_NORM@_vapi_DEPS = gio-2.0 +grilo_net_@GRL_MAJORMINOR_NORM@_vapi_METADATADIRS = $(srcdir) +grilo_net_@GRL_MAJORMINOR_NORM@_vapi_FILES = $(srcdir)/grilo-net-@GRL_MAJORMINOR@-custom.vala $(top_builddir)/libs/net/GrlNet-@GRL_MAJORMINOR@.gir +endif + +vapidir = $(datadir)/vala/vapi +vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps) + +endif + +EXTRA_DIST += Grl-@GRL_MAJORMINOR@.metadata grilo-@GRL_MAJORMINOR@.deps grilo-@GRL_MAJORMINOR@-custom.vala +EXTRA_DIST += GrlNet-@GRL_MAJORMINOR@.metadata grilo-net-@GRL_MAJORMINOR@.deps grilo-net-@GRL_MAJORMINOR@-custom.vala + +CLEANFILES += $(VAPIGEN_VAPIS) + +-include $(top_srcdir)/git.mk diff --git a/bindings/vala/Makefile.in b/bindings/vala/Makefile.in new file mode 100644 index 0000000..b5d7f36 --- /dev/null +++ b/bindings/vala/Makefile.in @@ -0,0 +1,572 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = bindings/vala +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(vapidir)" +DATA = $(vapi_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRA_DIST = Grl-@GRL_MAJORMINOR@.metadata grilo-@GRL_MAJORMINOR@.deps \ + grilo-@GRL_MAJORMINOR@-custom.vala \ + GrlNet-@GRL_MAJORMINOR@.metadata \ + grilo-net-@GRL_MAJORMINOR@.deps \ + grilo-net-@GRL_MAJORMINOR@-custom.vala +CLEANFILES = $(VAPIGEN_VAPIS) +VAPIGEN_VAPIS = grilo-@GRL_MAJORMINOR@.vapi grilo-net-@GRL_MAJORMINOR@.vapi +@ENABLE_VAPIGEN_TRUE@grilo_@GRL_MAJORMINOR_NORM@_vapi_DEPS = gio-2.0 +@ENABLE_VAPIGEN_TRUE@grilo_@GRL_MAJORMINOR_NORM@_vapi_METADATADIRS = $(srcdir) +@ENABLE_VAPIGEN_TRUE@grilo_@GRL_MAJORMINOR_NORM@_vapi_FILES = $(srcdir)/grilo-@GRL_MAJORMINOR@-custom.vala $(top_builddir)/src/Grl-@GRL_MAJORMINOR@.gir +@BUILD_GRILO_NET_TRUE@@ENABLE_VAPIGEN_TRUE@grilo_net_@GRL_MAJORMINOR_NORM@_vapi_DEPS = gio-2.0 +@BUILD_GRILO_NET_TRUE@@ENABLE_VAPIGEN_TRUE@grilo_net_@GRL_MAJORMINOR_NORM@_vapi_METADATADIRS = $(srcdir) +@BUILD_GRILO_NET_TRUE@@ENABLE_VAPIGEN_TRUE@grilo_net_@GRL_MAJORMINOR_NORM@_vapi_FILES = $(srcdir)/grilo-net-@GRL_MAJORMINOR@-custom.vala $(top_builddir)/libs/net/GrlNet-@GRL_MAJORMINOR@.gir +@ENABLE_VAPIGEN_TRUE@vapidir = $(datadir)/vala/vapi +@ENABLE_VAPIGEN_TRUE@vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign bindings/vala/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign bindings/vala/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-vapiDATA: $(vapi_DATA) + @$(NORMAL_INSTALL) + @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(vapidir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(vapidir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(vapidir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(vapidir)" || exit $$?; \ + done + +uninstall-vapiDATA: + @$(NORMAL_UNINSTALL) + @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(vapidir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(vapidir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-vapiDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-vapiDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + cscopelist-am ctags-am distclean distclean-generic \ + distclean-libtool distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip install-vapiDATA installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags-am uninstall uninstall-am uninstall-vapiDATA + +.PRECIOUS: Makefile + + +@ENABLE_VAPIGEN_TRUE@-include $(VAPIGEN_MAKEFILE) + +@ENABLE_VAPIGEN_TRUE@grilo-@GRL_MAJORMINOR@.vapi: $(top_builddir)/src/Grl-@GRL_MAJORMINOR@.gir grilo-@GRL_MAJORMINOR@-custom.vala grilo-@GRL_MAJORMINOR@.deps Grl-@GRL_MAJORMINOR@.metadata + +@BUILD_GRILO_NET_TRUE@@ENABLE_VAPIGEN_TRUE@grilo-net-@GRL_MAJORMINOR@.vapi: $(top_builddir)/libs/net/GrlNet-@GRL_MAJORMINOR@.gir grilo-net-@GRL_MAJORMINOR@-custom.vala grilo-net-@GRL_MAJORMINOR@.deps GrlNet-@GRL_MAJORMINOR@.metadata + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/bindings/vala/grilo-0.3-custom.vala b/bindings/vala/grilo-0.3-custom.vala new file mode 100644 index 0000000..68b9e8e --- /dev/null +++ b/bindings/vala/grilo-0.3-custom.vala @@ -0,0 +1,129 @@ +namespace Grl { + + public struct MetadataKey { + [CCode (cname ="GRL_METADATA_KEY_INVALID")] + public static Grl.KeyID INVALID; + [CCode (cname ="GRL_METADATA_KEY_ALBUM")] + public static Grl.KeyID ALBUM; + [CCode (cname ="GRL_METADATA_KEY_ARTIST")] + public static Grl.KeyID ARTIST; + [CCode (cname ="GRL_METADATA_KEY_AUTHOR")] + public static Grl.KeyID AUTHOR; + [CCode (cname ="GRL_METADATA_KEY_BITRATE")] + public static Grl.KeyID BITRATE; + [CCode (cname ="GRL_METADATA_KEY_CERTIFICATE")] + public static Grl.KeyID CERTIFICATE; + [CCode (cname ="GRL_METADATA_KEY_CHILDCOUNT")] + public static Grl.KeyID CHILDCOUNT; + [CCode (cname ="GRL_METADATA_KEY_PUBLICATION_DATE")] + public static Grl.KeyID PUBLICATION_DATE; + [CCode (cname ="GRL_METADATA_KEY_DESCRIPTION")] + public static Grl.KeyID DESCRIPTION; + [CCode (cname ="GRL_METADATA_KEY_DURATION")] + public static Grl.KeyID DURATION; + [CCode (cname ="GRL_METADATA_KEY_EXTERNAL_PLAYER")] + public static Grl.KeyID EXTERNAL_PLAYER; + [CCode (cname ="GRL_METADATA_KEY_EXTERNAL_URL")] + public static Grl.KeyID EXTERNAL_URL; + [CCode (cname ="GRL_METADATA_KEY_FRAMERATE")] + public static Grl.KeyID FRAMERATE; + [CCode (cname ="GRL_METADATA_KEY_GENRE")] + public static Grl.KeyID GENRE; + [CCode (cname ="GRL_METADATA_KEY_HEIGHT")] + public static Grl.KeyID HEIGHT; + [CCode (cname ="GRL_METADATA_KEY_ID")] + public static Grl.KeyID ID; + [CCode (cname ="GRL_METADATA_KEY_LAST_PLAYED")] + public static Grl.KeyID LAST_PLAYED; + [CCode (cname ="GRL_METADATA_KEY_LAST_POSITION")] + public static Grl.KeyID LAST_POSITION; + [CCode (cname ="GRL_METADATA_KEY_LICENSE")] + public static Grl.KeyID LICENSE; + [CCode (cname ="GRL_METADATA_KEY_LYRICS")] + public static Grl.KeyID LYRICS; + [CCode (cname ="GRL_METADATA_KEY_MIME")] + public static Grl.KeyID MIME; + [CCode (cname ="GRL_METADATA_KEY_PLAY_COUNT")] + public static Grl.KeyID PLAY_COUNT; + [CCode (cname ="GRL_METADATA_KEY_RATING")] + public static Grl.KeyID RATING; + [CCode (cname ="GRL_METADATA_KEY_REGION")] + public static Grl.KeyID REGION; + [CCode (cname ="GRL_METADATA_KEY_SITE")] + public static Grl.KeyID SITE; + [CCode (cname ="GRL_METADATA_KEY_SOURCE")] + public static Grl.KeyID SOURCE; + [CCode (cname ="GRL_METADATA_KEY_STUDIO")] + public static Grl.KeyID STUDIO; + [CCode (cname ="GRL_METADATA_KEY_THUMBNAIL")] + public static Grl.KeyID THUMBNAIL; + [CCode (cname ="GRL_METADATA_KEY_THUMBNAIL_BINARY")] + public static Grl.KeyID THUMBNAIL_BINARY; + [CCode (cname ="GRL_METADATA_KEY_TITLE")] + public static Grl.KeyID TITLE; + [CCode (cname ="GRL_METADATA_KEY_URL")] + public static Grl.KeyID URL; + [CCode (cname ="GRL_METADATA_KEY_WIDTH")] + public static Grl.KeyID WIDTH; + [CCode (cname ="GRL_METADATA_KEY_SEASON")] + public static Grl.KeyID SEASON; + [CCode (cname ="GRL_METADATA_KEY_EPISODE")] + public static Grl.KeyID EPISODE; + [CCode (cname ="GRL_METADATA_KEY_EPISODE_TITLE")] + public static Grl.KeyID EPISODE_TITLE; + [CCode (cname ="GRL_METADATA_KEY_SHOW")] + public static Grl.KeyID SHOW; + [CCode (cname ="GRL_METADATA_KEY_CREATION_DATE")] + public static Grl.KeyID CREATION_DATE; + [CCode (cname ="GRL_METADATA_KEY_CAMERA_MODEL")] + public static Grl.KeyID CAMERA_MODEL; + [CCode (cname ="GRL_METADATA_KEY_ORIENTATION")] + public static Grl.KeyID ORIENTATION; + [CCode (cname ="GRL_METADATA_KEY_FLASH_USED")] + public static Grl.KeyID FLASH_USED; + [CCode (cname ="GRL_METADATA_KEY_EXPOSURE_TIME")] + public static Grl.KeyID EXPOSURE_TIME; + [CCode (cname ="GRL_METADATA_KEY_ISO_SPEED")] + public static Grl.KeyID ISO_SPEED; + [CCode (cname ="GRL_METADATA_KEY_TRACK_NUMBER")] + public static Grl.KeyID TRACK_NUMBER; + [CCode (cname ="GRL_METADATA_KEY_MODIFICATION_DATE")] + public static Grl.KeyID MODIFICATION_DATE; + [CCode (cname ="GRL_METADATA_KEY_START_TIME")] + public static Grl.KeyID START_TIME; + [CCode (cname ="GRL_METADATA_KEY_KEYWORD")] + public static Grl.KeyID KEYWORD; + [CCode (cname ="GRL_METADATA_KEY_PERFORMER")] + public static Grl.KeyID PERFORMER; + [CCode (cname ="GRL_METADATA_KEY_PRODUCER")] + public static Grl.KeyID PRODUCER; + [CCode (cname ="GRL_METADATA_KEY_DIRECTOR")] + public static Grl.KeyID DIRECTOR; + [CCode (cname ="GRL_METADATA_KEY_ORIGINAL_TITLE")] + public static Grl.KeyID ORIGINAL_TITLE; + [CCode (cname ="GRL_METADATA_KEY_MB_ALBUM_ID")] + public static Grl.KeyID MB_ALBUM_ID; + [CCode (cname ="GRL_METADATA_KEY_MB_TRACK_ID")] + public static Grl.KeyID MB_TRACK_ID; + [CCode (cname ="GRL_METADATA_KEY_MB_ARTIST_ID")] + public static Grl.KeyID MB_ARTIST_ID; + [CCode (cname ="GRL_METADATA_KEY_MB_RECORDING_ID")] + public static Grl.KeyID MB_RECORDING_ID; + [CCode (cname ="GRL_METADATA_KEY_AUDIO_TRACK")] + public static Grl.KeyID AUDIO_TRACK; + [CCode (cname ="GRL_METADATA_KEY_ALBUM_DISC_NUMBER")] + public static Grl.KeyID ALBUM_DISC_NUMBER; + [CCode (cname ="GRL_METADATA_KEY_COMPOSER")] + public static Grl.KeyID COMPOSER; + [CCode (cname ="GRL_METADATA_KEY_ALBUM_ARTIST")] + public static Grl.KeyID ALBUM_ARTIST; + + [CCode (cname ="GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN")] + public static uint CHILDCOUNT_UNKNOWN; + + [CCode (cname ="GRL_SOURCE_REMAINING_UNKNOWN")] + public static uint REMAINING_UNKNOWN; + + public static GLib.List list_new (Grl.KeyID p, ...); + } +} diff --git a/bindings/vala/grilo-0.3.deps b/bindings/vala/grilo-0.3.deps new file mode 100644 index 0000000..d03a373 --- /dev/null +++ b/bindings/vala/grilo-0.3.deps @@ -0,0 +1,2 @@ +gmodule-2.0 +gio-2.0 diff --git a/bindings/vala/grilo-net-0.3-custom.vala b/bindings/vala/grilo-net-0.3-custom.vala new file mode 100644 index 0000000..12db62c --- /dev/null +++ b/bindings/vala/grilo-net-0.3-custom.vala @@ -0,0 +1 @@ +// grl-net custom code diff --git a/bindings/vala/grilo-net-0.3.deps b/bindings/vala/grilo-net-0.3.deps new file mode 100644 index 0000000..cd10dfd --- /dev/null +++ b/bindings/vala/grilo-net-0.3.deps @@ -0,0 +1 @@ +gio-2.0 diff --git a/bindings/vala/meson.build b/bindings/vala/meson.build new file mode 100644 index 0000000..3190f00 --- /dev/null +++ b/bindings/vala/meson.build @@ -0,0 +1,31 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +vapidir = join_paths([ + prefix, + get_option('datadir'), + 'vala', + 'vapi', +]) + +vala_sources = [ # LIBRARY, GIR, DEPS + ['grilo-@0@'.format(grl_majorminor), grl_gir[0], ['gmodule-2.0', 'gio-2.0']], + ['grilo-net-@0@'.format(grl_majorminor), grlnet_gir[0], ['gio-2.0']], +] + +foreach s: vala_sources + custom_vala = '@0@-custom.vala'.format(s[0]) + lib = s[0] + gir = s[1] + deps = s[2] + + gnome.generate_vapi(lib, + sources: [custom_vala, gir], + packages: deps, + install: true) +endforeach + diff --git a/compile b/compile new file mode 100755 index 0000000..de0005d --- /dev/null +++ b/compile @@ -0,0 +1,348 @@ +#!/bin/sh +# Wrapper for compilers which do not understand '-c -o'. + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Written by Tom Tromey . +# +# 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, 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, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +nl=' +' + +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" "" $nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ + file=$1 + case $file in + / | /[!/]*) # absolute file, and not a UNC file + if test -z "$file_conv"; then + # lazily determine how to convert abs files + case `uname -s` in + MINGW*) + file_conv=mingw + ;; + CYGWIN*) + file_conv=cygwin + ;; + *) + file_conv=wine + ;; + esac + fi + case $file_conv/,$2, in + *,$file_conv,*) + ;; + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; + cygwin/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) + file=`winepath -w "$file" || echo "$file"` + ;; + esac + ;; + esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ + func_file_conv "$1" + if test -z "$lib_path"; then + lib_path=$file + else + lib_path="$lib_path;$file" + fi + linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ + lib=$1 + found=no + save_IFS=$IFS + IFS=';' + for dir in $lib_path $LIB + do + IFS=$save_IFS + if $shared && test -f "$dir/$lib.dll.lib"; then + found=yes + lib=$dir/$lib.dll.lib + break + fi + if test -f "$dir/$lib.lib"; then + found=yes + lib=$dir/$lib.lib + break + fi + if test -f "$dir/lib$lib.a"; then + found=yes + lib=$dir/lib$lib.a + break + fi + done + IFS=$save_IFS + + if test "$found" != yes; then + lib=$lib.lib + fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ + # Assume a capable shell + lib_path= + shared=: + linker_opts= + for arg + do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + eat=1 + case $2 in + *.o | *.[oO][bB][jJ]) + func_file_conv "$2" + set x "$@" -Fo"$file" + shift + ;; + *) + func_file_conv "$2" + set x "$@" -Fe"$file" + shift + ;; + esac + ;; + -I) + eat=1 + func_file_conv "$2" mingw + set x "$@" -I"$file" + shift + ;; + -I*) + func_file_conv "${1#-I}" mingw + set x "$@" -I"$file" + shift + ;; + -l) + eat=1 + func_cl_dashl "$2" + set x "$@" "$lib" + shift + ;; + -l*) + func_cl_dashl "${1#-l}" + set x "$@" "$lib" + shift + ;; + -L) + eat=1 + func_cl_dashL "$2" + ;; + -L*) + func_cl_dashL "${1#-L}" + ;; + -static) + shared=false + ;; + -Wl,*) + arg=${1#-Wl,} + save_ifs="$IFS"; IFS=',' + for flag in $arg; do + IFS="$save_ifs" + linker_opts="$linker_opts $flag" + done + IFS="$save_ifs" + ;; + -Xlinker) + eat=1 + linker_opts="$linker_opts $2" + ;; + -*) + set x "$@" "$1" + shift + ;; + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) + func_file_conv "$1" + set x "$@" -Tp"$file" + shift + ;; + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) + func_file_conv "$1" mingw + set x "$@" "$file" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift + done + if test -n "$linker_opts"; then + linker_opts="-link$linker_opts" + fi + exec "$@" $linker_opts + exit 1 +} + +eat= + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand '-c -o'. +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file 'INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ + icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) + func_cl_wrapper "$@" # Doesn't return... + ;; +esac + +ofile= +cfile= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + # So we strip '-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no '-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # '.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use '[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..717b228 --- /dev/null +++ b/config.guess @@ -0,0 +1,1476 @@ +#!/bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2017 Free Software Foundation, Inc. + +timestamp='2017-08-08' + +# This file 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 3 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, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# +# Please send patches to . + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2017 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ + /sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || \ + echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + earmv*) + arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` + machine=${arch}${endian}-unknown + ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently (or will in the future) and ABI. + case "${UNAME_MACHINE_ARCH}" in + earm*) + os=netbsdelf + ;; + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # Determine ABI tags. + case "${UNAME_MACHINE_ARCH}" in + earm*) + expr='s/^earmv[0-9]/-eabi/;s/eb$//' + abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}${abi}" + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:LibertyBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:Sortix:*:*) + echo ${UNAME_MACHINE}-unknown-sortix + exit ;; + *:Redox:*:*) + echo ${UNAME_MACHINE}-unknown-redox + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE=alpha ;; + "EV4.5 (21064)") + UNAME_MACHINE=alpha ;; + "LCA4 (21066/21068)") + UNAME_MACHINE=alpha ;; + "EV5 (21164)") + UNAME_MACHINE=alphaev5 ;; + "EV5.6 (21164A)") + UNAME_MACHINE=alphaev56 ;; + "EV5.6 (21164PC)") + UNAME_MACHINE=alphapca56 ;; + "EV5.7 (21164PC)") + UNAME_MACHINE=alphapca57 ;; + "EV6 (21264)") + UNAME_MACHINE=alphaev6 ;; + "EV6.7 (21264A)") + UNAME_MACHINE=alphaev67 ;; + "EV6.8CB (21264C)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8AL (21264B)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8CX (21264D)") + UNAME_MACHINE=alphaev68 ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE=alphaev69 ;; + "EV7 (21364)") + UNAME_MACHINE=alphaev7 ;; + "EV7.9 (21364A)") + UNAME_MACHINE=alphaev79 ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH=i386 + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH=x86_64 + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/lslpp ] ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH=hppa2.0n ;; + 64) HP_ARCH=hppa2.0w ;; + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = hppa2.0w ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH=hppa2.0w + else + HP_ARCH=hppa64 + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; + esac + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + *:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + e2k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + k1om:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + mips64el:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + openrisc*:Linux:*:*) + echo or1k-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:* | or1k*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; + riscv32:Linux:*:* | riscv64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configure will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + SX-ACE:SUPER-UX:*:*) + echo sxace-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc + fi + fi + elif test "$UNAME_PROCESSOR" = i386 ; then + # Avoid executing cc on OS X 10.9, as it ships with a stub + # that puts up a graphical alert prompting to install + # developer tools. Any system running Mac OS X 10.7 or + # later (Darwin 11 and later) is required to have a 64-bit + # processor. This is not true of the ARM version of Darwin + # that Apple uses in portable devices. + UNAME_PROCESSOR=x86_64 + fi + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = x86; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-*:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-*:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + NSX-*:NONSTOP_KERNEL:*:*) + echo nsx-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = 386; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; + amd64:Isilon\ OneFS:*:*) + echo x86_64-unknown-onefs + exit ;; +esac + +cat >&2 </dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..8028b02 --- /dev/null +++ b/config.h.in @@ -0,0 +1,82 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* The domain to use with gettext */ +#undef GETTEXT_PACKAGE + +/* Grilo Net library version */ +#undef GRLNET_VERSION + +/* Grilo Pls library version */ +#undef GRLPLS_VERSION + +/* library major.minor version */ +#undef GRL_MAJORMINOR + +/* framework name */ +#undef GRL_NAME + +/* Plugins directory */ +#undef GRL_PLUGINS_DIR + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* OAuth available */ +#undef HAVE_OAUTH + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#undef LT_OBJDIR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION diff --git a/config.sub b/config.sub new file mode 100755 index 0000000..f4bafc1 --- /dev/null +++ b/config.sub @@ -0,0 +1,1836 @@ +#!/bin/sh +# Configuration validation subroutine script. +# Copyright 1992-2017 Free Software Foundation, Inc. + +timestamp='2017-04-02' + +# This file 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 3 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, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches to . +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2017 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ + kopensolaris*-gnu* | cloudabi*-eabi* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze*) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | ba \ + | be32 | be64 \ + | bfin \ + | c4x | c8051 | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | e2k | epiphany \ + | fido | fr30 | frv | ft32 \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia16 | ia64 \ + | ip2k | iq2000 \ + | k1om \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa32r6 | mipsisa32r6el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64r6 | mipsisa64r6el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ + | ns16k | ns32k \ + | open8 | or1k | or1knd | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pru \ + | pyramid \ + | riscv32 | riscv64 \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | visium \ + | wasm32 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + leon|leon[3-9]) + basic_machine=sparc-$basic_machine + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | ba-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | c8051-* | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | e2k-* | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ + | ip2k-* | iq2000-* \ + | k1om-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa32r6-* | mipsisa32r6el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64r6-* | mipsisa64r6el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | or1k*-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pru-* \ + | pyramid-* \ + | riscv32-* | riscv64-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | visium-* \ + | wasm32-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + asmjs) + basic_machine=asmjs-unknown + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + e500v[12]) + basic_machine=powerpc-unknown + os=$os"spe" + ;; + e500v[12]-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + os=$os"spe" + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + leon-*|leon[3-9]-*) + basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; + mingw32) + basic_machine=i686-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + moxiebox) + basic_machine=moxie-unknown + os=-moxiebox + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i686-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + nsx-tandem) + basic_machine=nsx-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + wasm32) + basic_machine=wasm32-unknown + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* | -cloudabi* | -sortix* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -ios) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + c8051-*) + os=-elf + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + pru-*) + os=-elf + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 0000000..c530160 --- /dev/null +++ b/configure @@ -0,0 +1,16895 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for grilo 0.3.6. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: http://bugzilla.gnome.org/enter_bug.cgi?product=grilo;component=core +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='grilo' +PACKAGE_TARNAME='grilo' +PACKAGE_VERSION='0.3.6' +PACKAGE_STRING='grilo 0.3.6' +PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=grilo;component=core' +PACKAGE_URL='https://wiki.gnome.org/Projects/Grilo' + +ac_unique_file="src/grilo.h" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +builddir +abs_top_builddir +GETTEXT_PACKAGE +ALL_LINGUAS +INTLTOOL_PERL +GMSGFMT +MSGFMT +MSGMERGE +XGETTEXT +INTLTOOL_POLICY_RULE +INTLTOOL_SERVICE_RULE +INTLTOOL_THEME_RULE +INTLTOOL_SCHEMAS_RULE +INTLTOOL_CAVES_RULE +INTLTOOL_XML_NOMERGE_RULE +INTLTOOL_XML_RULE +INTLTOOL_KBD_RULE +INTLTOOL_XAM_RULE +INTLTOOL_UI_RULE +INTLTOOL_SOUNDLIST_RULE +INTLTOOL_SHEET_RULE +INTLTOOL_SERVER_RULE +INTLTOOL_PONG_RULE +INTLTOOL_OAF_RULE +INTLTOOL_PROP_RULE +INTLTOOL_KEYS_RULE +INTLTOOL_DIRECTORY_RULE +INTLTOOL_DESKTOP_RULE +intltool__v_merge_options_0 +intltool__v_merge_options_ +INTLTOOL_V_MERGE_OPTIONS +INTLTOOL__v_MERGE_0 +INTLTOOL__v_MERGE_ +INTLTOOL_V_MERGE +INTLTOOL_EXTRACT +INTLTOOL_MERGE +INTLTOOL_UPDATE +USE_NLS +ENABLE_VAPIGEN_FALSE +ENABLE_VAPIGEN_TRUE +VAPIGEN_MAKEFILE +VAPIGEN_VAPIDIR +VAPIGEN +HAVE_INTROSPECTION_FALSE +HAVE_INTROSPECTION_TRUE +INTROSPECTION_MAKEFILE +INTROSPECTION_LIBS +INTROSPECTION_CFLAGS +INTROSPECTION_TYPELIBDIR +INTROSPECTION_GIRDIR +INTROSPECTION_GENERATE +INTROSPECTION_COMPILER +INTROSPECTION_SCANNER +GTK_DOC_USE_REBASE_FALSE +GTK_DOC_USE_REBASE_TRUE +GTK_DOC_USE_LIBTOOL_FALSE +GTK_DOC_USE_LIBTOOL_TRUE +GTK_DOC_BUILD_PDF_FALSE +GTK_DOC_BUILD_PDF_TRUE +GTK_DOC_BUILD_HTML_FALSE +GTK_DOC_BUILD_HTML_TRUE +ENABLE_GTK_DOC_FALSE +ENABLE_GTK_DOC_TRUE +HAVE_GTK_DOC_FALSE +HAVE_GTK_DOC_TRUE +GTKDOC_DEPS_LIBS +GTKDOC_DEPS_CFLAGS +HTML_DIR +GTKDOC_MKPDF +GTKDOC_REBASE +GTKDOC_CHECK_PATH +GTKDOC_CHECK +ENABLE_TESTS_FALSE +ENABLE_TESTS_TRUE +BUILD_GRILO_PLS_FALSE +BUILD_GRILO_PLS_TRUE +TOTEM_PL_PARSER_LIBS +TOTEM_PL_PARSER_CFLAGS +BUILD_GRILO_NET_FALSE +BUILD_GRILO_NET_TRUE +NET_LIBS +NET_CFLAGS +BUILD_GRILO_TEST_UI_FALSE +BUILD_GRILO_TEST_UI_TRUE +HAVE_OAUTH_FALSE +HAVE_OAUTH_TRUE +OAUTH_LIBS +OAUTH_CFLAGS +GTU_LIBS +GTU_CFLAGS +GLIB_MKENUMS +GLIB_GENMARSHAL +DEPS_LIBS +DEPS_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +GRL_PLUGINS_DIR +GRL_NAME +GRL_MAJORMINOR_NORM +GRL_MAJORMINOR +DISABLE_DEPRECATED +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +WARN_CFLAGS +GRLPLS_LT_VERSION +GRLNET_LT_VERSION +GRL_LT_VERSION +GRLPLS_VERSION +GRLNET_VERSION +CPP +LT_SYS_LIBRARY_PATH +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +DLLTOOL +OBJDUMP +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_aix_soname +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_compile_warnings +enable_iso_c +enable_maintainer_mode +enable_test_ui +enable_grl_net +enable_grl_pls +enable_debug +enable_tests +with_html_dir +enable_gtk_doc +enable_gtk_doc_html +enable_gtk_doc_pdf +enable_introspection +enable_vala +enable_nls +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +LT_SYS_LIBRARY_PATH +CPP +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +DEPS_CFLAGS +DEPS_LIBS +GTU_CFLAGS +GTU_LIBS +OAUTH_CFLAGS +OAUTH_LIBS +NET_CFLAGS +NET_LIBS +TOTEM_PL_PARSER_CFLAGS +TOTEM_PL_PARSER_LIBS +GTKDOC_DEPS_CFLAGS +GTKDOC_DEPS_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures grilo 0.3.6 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/grilo] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of grilo 0.3.6:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --enable-compile-warnings=[no/minimum/yes/maximum/error] + Turn on compiler warnings + --enable-iso-c Try to warn if code is not ISO C + --enable-maintainer-mode + enable make rules and dependencies not useful (and + sometimes confusing) to the casual installer + --enable-test-ui Build Test UI (default: auto) + --enable-grl-net Enable Grilo Net library (default: auto) + --enable-grl-pls Enable Grilo Pls library (default: auto) + --enable-debug include debug symbols + --enable-tests build unit tests + --enable-gtk-doc use gtk-doc to build documentation [[default=no]] + --enable-gtk-doc-html build documentation in html format [[default=yes]] + --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] + --enable-introspection=[no/auto/yes] + Enable introspection for this build + --enable-vala=[no/auto/yes] + build Vala bindings [default=auto] + --disable-nls do not use Native Language Support + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --with-aix-soname=aix|svr4|both + shared library versioning (aka "SONAME") variant to + provide on AIX, [default=aix]. + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot[=DIR] Search for dependent libraries within DIR (or the + compiler's sysroot if not specified). + --with-html-dir=PATH path to installed docs + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + LT_SYS_LIBRARY_PATH + User-defined run-time library search path. + CPP C preprocessor + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config + DEPS_LIBS linker flags for DEPS, overriding pkg-config + GTU_CFLAGS C compiler flags for GTU, overriding pkg-config + GTU_LIBS linker flags for GTU, overriding pkg-config + OAUTH_CFLAGS + C compiler flags for OAUTH, overriding pkg-config + OAUTH_LIBS linker flags for OAUTH, overriding pkg-config + NET_CFLAGS C compiler flags for NET, overriding pkg-config + NET_LIBS linker flags for NET, overriding pkg-config + TOTEM_PL_PARSER_CFLAGS + C compiler flags for TOTEM_PL_PARSER, overriding pkg-config + TOTEM_PL_PARSER_LIBS + linker flags for TOTEM_PL_PARSER, overriding pkg-config + GTKDOC_DEPS_CFLAGS + C compiler flags for GTKDOC_DEPS, overriding pkg-config + GTKDOC_DEPS_LIBS + linker flags for GTKDOC_DEPS, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +grilo home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +grilo configure 0.3.6 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by grilo $as_me 0.3.6, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +am__api_version='1.15' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='grilo' + VERSION='0.3.6' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + + + + + +ac_config_headers="$ac_config_headers config.h" + + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.6' +macro_revision='2.4.6' + + + + + + + + + + + + + +ltmain=$ac_aux_dir/ltmain.sh + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM=$NM +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test no != "$lt_cv_path_NM"; then + NM=$lt_cv_path_NM +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test : != "$DUMPBIN"; then + NM=$DUMPBIN + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring=ABCD + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n "$lt_cv_sys_max_cmd_len"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test yes != "$GCC"; then + reload_cmds=false + fi + ;; + darwin*) + if test yes = "$GCC"; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd* | bitrig*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test 0 -eq "$ac_status"; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test 0 -ne "$ac_status"; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + bitrig* | openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test ia64 = "$host_cpu"; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Gets list of data symbols to import. + lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + # Adjust the below global symbol transforms to fixup imported variables. + lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" + lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" + lt_c_name_lib_hook="\ + -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ + -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" +else + # Disable hooks by default. + lt_cv_sys_global_symbol_to_import= + lt_cdecl_hook= + lt_c_name_hook= + lt_c_name_lib_hook= +fi + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +$lt_cdecl_hook\ +" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +$lt_c_name_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" + +# Transform an extracted symbol line into symbol name with lib prefix and +# symbol address. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +$lt_c_name_lib_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function, + # D for any global variable and I for any imported variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ +" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ +" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ +" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ +" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS=conftstm.$ac_objext + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test yes = "$pipe_works"; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case $with_sysroot in #( + yes) + if test yes = "$GCC"; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 +$as_echo "$with_sysroot" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 +$as_echo_n "checking for a working dd... " >&6; } +if ${ac_cv_path_lt_DD+:} false; then : + $as_echo_n "(cached) " >&6 +else + printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +: ${lt_DD:=$DD} +if test -z "$lt_DD"; then + ac_path_lt_DD_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in dd; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_lt_DD" || continue +if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: +fi + $ac_path_lt_DD_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_lt_DD"; then + : + fi +else + ac_cv_path_lt_DD=$lt_DD +fi + +rm -f conftest.i conftest2.i conftest.out +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 +$as_echo "$ac_cv_path_lt_DD" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 +$as_echo_n "checking how to truncate binary pipes... " >&6; } +if ${lt_cv_truncate_bin+:} false; then : + $as_echo_n "(cached) " >&6 +else + printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +lt_cv_truncate_bin= +if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" +fi +rm -f conftest.i conftest2.i conftest.out +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 +$as_echo "$lt_cv_truncate_bin" >&6; } + + + + + + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test no = "$enable_libtool_lock" || enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out what ABI is being produced by ac_compile, and set mode + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE=32 + ;; + *ELF-64*) + HPUX_IA64_MODE=64 + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test yes = "$lt_cv_prog_gnu_ld"; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +mips64*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + emul=elf + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + emul="${emul}32" + ;; + *64-bit*) + emul="${emul}64" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *MSB*) + emul="${emul}btsmip" + ;; + *LSB*) + emul="${emul}ltsmip" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *N32*) + emul="${emul}n32" + ;; + esac + LD="${LD-ld} -m $emul" + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test yes != "$lt_cv_cc_needs_belf"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS=$SAVE_CFLAGS + fi + ;; +*-*solaris*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD=${LD-ld}_sol2 + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks=$enable_libtool_lock + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test yes != "$lt_cv_path_mainfest_tool"; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "$LT_MULTI_MODULE"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test 0 = "$_lt_result"; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + 10.[012][,.]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test yes = "$lt_cv_apple_cc_single_mod"; then + _lt_dar_single_mod='$single_module' + fi + if test yes = "$lt_cv_ld_exported_symbols_list"; then + _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' + fi + if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + pic_mode=default +fi + + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[5-9]*,yes) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } + +# Check whether --with-aix-soname was given. +if test "${with_aix_soname+set}" = set; then : + withval=$with_aix_soname; case $withval in + aix|svr4|both) + ;; + *) + as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname +else + if ${lt_cv_with_aix_soname+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_with_aix_soname=aix +fi + + with_aix_soname=$lt_cv_with_aix_soname +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +$as_echo "$with_aix_soname" >&6; } + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld=$lt_cv_prog_gnu_ld + +old_CC=$CC +old_CFLAGS=$CFLAGS + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +func_cc_basename $compiler +cc_basename=$func_cc_basename_result + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/${ac_tool_prefix}file"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac +fi + +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/file"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac +fi + +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC=$CC +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test yes = "$GCC"; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test yes = "$GCC"; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + lt_prog_compiler_pic='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static='$wl-static' + ;; + esac + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + case $cc_basename in + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static='$wl-static' + ;; + esac + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='$wl-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64, which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test yes = "$lt_cv_prog_compiler_pic_works"; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test yes = "$lt_cv_prog_compiler_static_works"; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links=nottested +if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test no = "$hard_links"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ' (' and ')$', so one must not match beginning or + # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', + # as well as any symbol that contains 'd'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test yes != "$GCC"; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd* | bitrig*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test yes = "$with_gnu_ld"; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test yes = "$lt_use_gnu_ld_interface"; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='$wl' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + export_dynamic_flag_spec='$wl--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test ia64 != "$host_cpu"; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='$wl--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + shrext_cmds=.dll + archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + export_dynamic_flag_spec='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test linux-dietlibc = "$host_os"; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test no = "$tmp_diet" + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + nagfor*) # NAGFOR 5.3 + tmp_sharedflag='-Wl,-shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + tcc*) + export_dynamic_flag_spec='-rdynamic' + ;; + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test no = "$ld_shlibs"; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then + aix_use_runtimelinking=yes + break + fi + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # traditional, no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + hardcode_direct=no + hardcode_direct_absolute=no + ;; + esac + + if test yes = "$GCC"; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag="$shared_flag "'$wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + export_dynamic_flag_spec='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' $wl-bernotok' + allow_undefined_flag=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test yes = "$lt_cv_ld_force_load"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test yes = "$GCC"; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='$wl-E' + ;; + + hpux10*) + if test yes,no = "$GCC,$with_gnu_ld"; then + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='$wl-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test yes,no = "$GCC,$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test yes = "$lt_cv_prog_compiler__b"; then + archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='$wl-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test yes = "$GCC"; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test yes = "$lt_cv_irix_exported_symbol"; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + ld_shlibs=yes + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + export_dynamic_flag_spec='$wl-E' + else + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + shrext_cmds=.dll + archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes=yes + ;; + + osf3*) + if test yes = "$GCC"; then + allow_undefined_flag=' $wl-expect_unresolved $wl\*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test yes = "$GCC"; then + allow_undefined_flag=' $wl-expect_unresolved $wl\*' + archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test yes = "$GCC"; then + wlarc='$wl' + archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='$wl' + archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. GCC discards it without '$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test yes = "$GCC"; then + whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test sequent = "$host_vendor"; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='$wl-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='$wl-z,text' + allow_undefined_flag='$wl-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='$wl-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test sni = "$host_vendor"; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='$wl-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test no = "$ld_shlibs" && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test yes = "$GCC"; then + case $host_os in + darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; + *) lt_awk_arg='/^libraries:/' ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; + *) lt_sed_strip_eq='s|=/|/|g' ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary... + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + # ...but if some path component already ends with the multilib dir we assume + # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). + case "$lt_multi_os_dir; $lt_search_path_spec " in + "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) + lt_multi_os_dir= + ;; + esac + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" + elif test -n "$lt_multi_os_dir"; then + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS = " "; FS = "/|\n";} { + lt_foo = ""; + lt_count = 0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo = "/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's|/\([A-Za-z]:\)|\1|g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + + + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a(lib.so.V)' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # Don't embed -rpath directories since the linker doesn't support them. + hardcode_libdir_flag_spec='-L$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + + # Ideally, we could use ldconfig to report *all* directores which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd* | bitrig*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test yes = "$hardcode_automatic"; then + + # We can hardcode non-existent directories. + if test no != "$hardcode_direct" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && + test no != "$hardcode_minus_L"; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test relink = "$hardcode_action" || + test yes = "$inherit_rpath"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test yes != "$enable_dlopen"; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen=load_add_on + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen=LoadLibrary + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl +else + + lt_cv_dlopen=dyld + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + tpf*) + # Don't try to run any link tests for TPF. We know it's impossible + # because TPF is a cross-compiler, and we know how we open DSOs. + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + lt_cv_dlopen_self=no + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen=shl_load +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen=dlopen +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test no = "$lt_cv_dlopen"; then + enable_dlopen=no + else + enable_dlopen=yes + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS=$CPPFLAGS + test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS=$LDFLAGS + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS=$LIBS + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test yes = "$cross_compiling"; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test yes = "$lt_cv_dlopen_self"; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test yes = "$cross_compiling"; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP"; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report what library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=0;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + + +# Grilo Net library + +GRLNET_VERSION=0.3.6 + + +cat >>confdefs.h <<_ACEOF +#define GRLNET_VERSION "$GRLNET_VERSION" +_ACEOF + + +# Grilo Pls library + +GRLPLS_VERSION=0.3.6 + + +cat >>confdefs.h <<_ACEOF +#define GRLPLS_VERSION "$GRLPLS_VERSION" +_ACEOF + + +# ---------------------------------------------------------- +# LIBTOOL VERSIONING +# ---------------------------------------------------------- + +# Libtool library version, not to confuse with API version +# see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html + +GRL_LT_VERSION=2:0:2 +GRLNET_LT_VERSION=0:5:0 +GRLPLS_LT_VERSION=0:0:0 + + + + + +# ---------------------------------------------------------- +# ENVIRONMENT CONFIGURATION +# ---------------------------------------------------------- + + + + # Check whether --enable-compile-warnings was given. +if test "${enable_compile_warnings+set}" = set; then : + enableval=$enable_compile_warnings; +else + enable_compile_warnings="maximum" +fi + + + if test "x$GCC" != xyes; then + enable_compile_warnings=no + fi + + warning_flags= + realsave_CFLAGS="$CFLAGS" + + base_warn_flags=" \ + -Wall \ + -Wstrict-prototypes \ + -Wnested-externs \ + " + + base_error_flags=" \ + -Werror=missing-prototypes \ + -Werror=implicit-function-declaration \ + -Werror=pointer-arith \ + -Werror=init-self \ + -Werror=format-security \ + -Werror=format=2 \ + -Werror=missing-include-dirs \ + -Werror=return-type \ + " + + additional_flags="" + + case "$enable_compile_warnings" in + no) + warning_flags="-w" + ;; + minimum) + warning_flags="-Wall" + ;; + yes|maximum|error) + warning_flags="$base_warn_flags $base_error_flags $additional_flags" + ;; + *) + as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5 + ;; + esac + + if test "$enable_compile_warnings" = "error" ; then + warning_flags="$warning_flags -Werror" + fi + + for option in $warning_flags; do + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $option" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5 +$as_echo_n "checking whether gcc understands $option... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + has_option=yes +else + has_option=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 +$as_echo "$has_option" >&6; } + if test $has_option = yes; then + tested_warning_flags="$tested_warning_flags $option" + fi + unset has_option + unset save_CFLAGS + done + unset option + CFLAGS="$realsave_CFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 +$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5 +$as_echo "$tested_warning_flags" >&6; } + + # Check whether --enable-iso-c was given. +if test "${enable_iso_c+set}" = set; then : + enableval=$enable_iso_c; +else + enable_iso_c=no +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5 +$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; } + complCFLAGS= + if test "x$enable_iso_c" != "xno"; then + if test "x$GCC" = "xyes"; then + case " $CFLAGS " in + *\ \ -ansi\ \ *) ;; + *) complCFLAGS="$complCFLAGS -ansi" ;; + esac + case " $CFLAGS " in + *\ \ -pedantic\ \ *) ;; + *) complCFLAGS="$complCFLAGS -pedantic" ;; + esac + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5 +$as_echo "$complCFLAGS" >&6; } + + WARN_CFLAGS="$tested_warning_flags $complCFLAGS" + + +CFLAGS+=" ${WARN_CFLAGS} -Wmissing-declarations -std=c99 " + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + + + + + DISABLE_DEPRECATED="" + if test $USE_MAINTAINER_MODE = yes; then + DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP" + for DOMAIN in $DOMAINS; do + DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" + done + fi + + + + +# ---------------------------------------------------------- +# DEFINITIONS +# ---------------------------------------------------------- + +# API version + +GRL_MAJORMINOR=0.3 +GRL_MAJORMINOR_NORM=0_3 + + + +cat >>confdefs.h <<_ACEOF +#define GRL_MAJORMINOR "$GRL_MAJORMINOR" +_ACEOF + + +# Framework name (contains API version) + +GRL_NAME="${PACKAGE_NAME}-${GRL_MAJORMINOR}" + + +cat >>confdefs.h <<_ACEOF +#define GRL_NAME "$GRL_NAME" +_ACEOF + + +# Give parameters a default value + +if test "x${prefix}" = "xNONE" ; then + prefix="${ac_default_prefix}" +fi + +if test "x${exec_prefix}" = "xNONE" ; then + exec_prefix="${prefix}" +fi + +# Plugins directory + +GRL_PLUGINS_DIR=`eval echo ${libdir}/${GRL_NAME}` + + +cat >>confdefs.h <<_ACEOF +#define GRL_PLUGINS_DIR "$GRL_PLUGINS_DIR" +_ACEOF + + +# ---------------------------------------------------------- +# DEPENDENCIES +# ---------------------------------------------------------- + +GLIB2_REQUIRED=2.44 + + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 +$as_echo_n "checking for DEPS... " >&6; } + +if test -n "$DEPS_CFLAGS"; then + pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED \\ + gobject-2.0 >= \$GLIB2_REQUIRED \\ + gmodule-2.0 >= \$GLIB2_REQUIRED \\ + gio-2.0 >= \$GLIB2_REQUIRED \\ + libxml-2.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$DEPS_LIBS"; then + pkg_cv_DEPS_LIBS="$DEPS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED \\ + gobject-2.0 >= \$GLIB2_REQUIRED \\ + gmodule-2.0 >= \$GLIB2_REQUIRED \\ + gio-2.0 >= \$GLIB2_REQUIRED \\ + libxml-2.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0" 2>&1` + else + DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$DEPS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0) were not met: + +$DEPS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables DEPS_CFLAGS +and DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables DEPS_CFLAGS +and DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS + DEPS_LIBS=$pkg_cv_DEPS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` +GLIB_MKENUMS=`pkg-config --variable=glib_mkenums glib-2.0` + + + +# ---------------------------------------------------------- +# UI Tool +# ---------------------------------------------------------- + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTU" >&5 +$as_echo_n "checking for GTU... " >&6; } + +if test -n "$GTU_CFLAGS"; then + pkg_cv_GTU_CFLAGS="$GTU_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 >= 3.0 \""; } >&5 + ($PKG_CONFIG --exists --print-errors " gtk+-3.0 >= 3.0 ") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GTU_CFLAGS=`$PKG_CONFIG --cflags " gtk+-3.0 >= 3.0 " 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GTU_LIBS"; then + pkg_cv_GTU_LIBS="$GTU_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 >= 3.0 \""; } >&5 + ($PKG_CONFIG --exists --print-errors " gtk+-3.0 >= 3.0 ") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GTU_LIBS=`$PKG_CONFIG --libs " gtk+-3.0 >= 3.0 " 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GTU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-3.0 >= 3.0 " 2>&1` + else + GTU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-3.0 >= 3.0 " 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GTU_PKG_ERRORS" >&5 + + HAVE_GTK=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_GTK=no +else + GTU_CFLAGS=$pkg_cv_GTU_CFLAGS + GTU_LIBS=$pkg_cv_GTU_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + HAVE_GTK=yes +fi + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OAUTH" >&5 +$as_echo_n "checking for OAUTH... " >&6; } + +if test -n "$OAUTH_CFLAGS"; then + pkg_cv_OAUTH_CFLAGS="$OAUTH_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oauth\""; } >&5 + ($PKG_CONFIG --exists --print-errors "oauth") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OAUTH_CFLAGS=`$PKG_CONFIG --cflags "oauth" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$OAUTH_LIBS"; then + pkg_cv_OAUTH_LIBS="$OAUTH_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oauth\""; } >&5 + ($PKG_CONFIG --exists --print-errors "oauth") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_OAUTH_LIBS=`$PKG_CONFIG --libs "oauth" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + OAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "oauth" 2>&1` + else + OAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "oauth" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$OAUTH_PKG_ERRORS" >&5 + + HAVE_OAUTH=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_OAUTH=no +else + OAUTH_CFLAGS=$pkg_cv_OAUTH_CFLAGS + OAUTH_LIBS=$pkg_cv_OAUTH_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + HAVE_OAUTH=yes +fi + + if test "x$HAVE_OAUTH" = "xyes"; then + HAVE_OAUTH_TRUE= + HAVE_OAUTH_FALSE='#' +else + HAVE_OAUTH_TRUE='#' + HAVE_OAUTH_FALSE= +fi + + +if test "x$HAVE_OAUTH" = "xyes"; then + +$as_echo "#define HAVE_OAUTH 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oauth missing, unable to configure Flickr personal accounts" >&5 +$as_echo "$as_me: WARNING: oauth missing, unable to configure Flickr personal accounts" >&2;} +fi + +# Check whether --enable-test-ui was given. +if test "${enable_test_ui+set}" = set; then : + enableval=$enable_test_ui; + case "$enableval" in + yes) + if test "x$HAVE_GTK" = "xno"; then + as_fn_error $? "gtk+-3.0 >= 3.0 not found, install it or use --disable-test-ui" "$LINENO" 5 + fi + ;; + no) + HAVE_GTK=no + ;; + esac + +fi + + + if test "x$HAVE_GTK" = "xyes"; then + BUILD_GRILO_TEST_UI_TRUE= + BUILD_GRILO_TEST_UI_FALSE='#' +else + BUILD_GRILO_TEST_UI_TRUE='#' + BUILD_GRILO_TEST_UI_FALSE= +fi + + +# ---------------------------------------------------------- +# NET LIBRARY +# ---------------------------------------------------------- + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NET" >&5 +$as_echo_n "checking for NET... " >&6; } + +if test -n "$NET_CFLAGS"; then + pkg_cv_NET_CFLAGS="$NET_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 >= 2.41.3\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsoup-2.4 >= 2.41.3") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_NET_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4 >= 2.41.3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$NET_LIBS"; then + pkg_cv_NET_LIBS="$NET_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 >= 2.41.3\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libsoup-2.4 >= 2.41.3") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_NET_LIBS=`$PKG_CONFIG --libs "libsoup-2.4 >= 2.41.3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + NET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4 >= 2.41.3" 2>&1` + else + NET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4 >= 2.41.3" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$NET_PKG_ERRORS" >&5 + + HAVE_LIBSOUP=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_LIBSOUP=no +else + NET_CFLAGS=$pkg_cv_NET_CFLAGS + NET_LIBS=$pkg_cv_NET_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + HAVE_LIBSOUP=yes +fi + +# Check whether --enable-grl_net was given. +if test "${enable_grl_net+set}" = set; then : + enableval=$enable_grl_net; + case "$enableval" in + yes | auto) + if test "x$HAVE_LIBSOUP" = "xno"; then + as_fn_error $? "libsoup-2.4 not found, install it or use --disable-grl-net" "$LINENO" 5 + fi + ;; + no) + HAVE_LIBSOUP=no + ;; + esac + +fi + + + if test "x$HAVE_LIBSOUP" = "xyes"; then + BUILD_GRILO_NET_TRUE= + BUILD_GRILO_NET_FALSE='#' +else + BUILD_GRILO_NET_TRUE='#' + BUILD_GRILO_NET_FALSE= +fi + + +# ---------------------------------------------------------- +# PLS LIBRARY +# ---------------------------------------------------------- + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOTEM_PL_PARSER" >&5 +$as_echo_n "checking for TOTEM_PL_PARSER... " >&6; } + +if test -n "$TOTEM_PL_PARSER_CFLAGS"; then + pkg_cv_TOTEM_PL_PARSER_CFLAGS="$TOTEM_PL_PARSER_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"totem-plparser >= 3.4.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "totem-plparser >= 3.4.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_TOTEM_PL_PARSER_CFLAGS=`$PKG_CONFIG --cflags "totem-plparser >= 3.4.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$TOTEM_PL_PARSER_LIBS"; then + pkg_cv_TOTEM_PL_PARSER_LIBS="$TOTEM_PL_PARSER_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"totem-plparser >= 3.4.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "totem-plparser >= 3.4.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_TOTEM_PL_PARSER_LIBS=`$PKG_CONFIG --libs "totem-plparser >= 3.4.1" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + TOTEM_PL_PARSER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "totem-plparser >= 3.4.1" 2>&1` + else + TOTEM_PL_PARSER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "totem-plparser >= 3.4.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$TOTEM_PL_PARSER_PKG_ERRORS" >&5 + + HAVE_TOTEM_PL_PARSER=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_TOTEM_PL_PARSER=no +else + TOTEM_PL_PARSER_CFLAGS=$pkg_cv_TOTEM_PL_PARSER_CFLAGS + TOTEM_PL_PARSER_LIBS=$pkg_cv_TOTEM_PL_PARSER_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + HAVE_TOTEM_PL_PARSER=yes +fi + +# Check whether --enable-grl_pls was given. +if test "${enable_grl_pls+set}" = set; then : + enableval=$enable_grl_pls; + case "$enableval" in + yes | auto) + if test "x$HAVE_TOTEM_PL_PARSER" = "xno"; then + as_fn_error $? "totem-pl-parser not found, install it or use --disable-grl-pls" "$LINENO" 5 + fi + ;; + no) + HAVE_TOTEM_PL_PARSER=no + ;; + esac + +fi + + + if test "x$HAVE_TOTEM_PL_PARSER" = "xyes"; then + BUILD_GRILO_PLS_TRUE= + BUILD_GRILO_PLS_FALSE='#' +else + BUILD_GRILO_PLS_TRUE='#' + BUILD_GRILO_PLS_FALSE= +fi + + +# ---------------------------------------------------------- +# DEBUG SUPPORT +# ---------------------------------------------------------- + +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; +else + enable_debug=yes +fi + +if test "x$enable_debug" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Configuring with debugging options enabled!\"" >&5 +$as_echo "$as_me: WARNING: \"Configuring with debugging options enabled!\"" >&2;} + CFLAGS="$CFLAGS -g3 -O0" +fi + +# ---------------------------------------------------------- +# TESTS SUPPORT +# ---------------------------------------------------------- + +# Check whether --enable-tests was given. +if test "${enable_tests+set}" = set; then : + enableval=$enable_tests; enable_tests=yes +else + enable_tests=no +fi + + + if test "x$enable_tests" = "xyes"; then + ENABLE_TESTS_TRUE= + ENABLE_TESTS_FALSE='#' +else + ENABLE_TESTS_TRUE='#' + ENABLE_TESTS_FALSE= +fi + + +# ---------------------------------------------------------- +# GTK-DOC +# ---------------------------------------------------------- + + + + + gtk_doc_requires="gtk-doc >= 1.10" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 +$as_echo_n "checking for gtk-doc... " >&6; } + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 + ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + have_gtk_doc=yes +else + have_gtk_doc=no +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 +$as_echo "$have_gtk_doc" >&6; } + + if test "$have_gtk_doc" = "no"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + You will not be able to create source packages with 'make dist' + because $gtk_doc_requires is not found." >&5 +$as_echo "$as_me: WARNING: + You will not be able to create source packages with 'make dist' + because $gtk_doc_requires is not found." >&2;} + fi + + # Extract the first word of "gtkdoc-check", so it can be a program name with args. +set dummy gtkdoc-check; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$GTKDOC_CHECK"; then + ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK +if test -n "$GTKDOC_CHECK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 +$as_echo "$GTKDOC_CHECK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + # Extract the first word of "gtkdoc-check", so it can be a program name with args. +set dummy gtkdoc-check; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GTKDOC_CHECK_PATH in + [\\/]* | ?:[\\/]*) + ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH +if test -n "$GTKDOC_CHECK_PATH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 +$as_echo "$GTKDOC_CHECK_PATH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + for ac_prog in gtkdoc-rebase +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GTKDOC_REBASE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GTKDOC_REBASE in + [\\/]* | ?:[\\/]*) + ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE +if test -n "$GTKDOC_REBASE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 +$as_echo "$GTKDOC_REBASE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$GTKDOC_REBASE" && break +done +test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" + + # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. +set dummy gtkdoc-mkpdf; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GTKDOC_MKPDF in + [\\/]* | ?:[\\/]*) + ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF +if test -n "$GTKDOC_MKPDF"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 +$as_echo "$GTKDOC_MKPDF" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +# Check whether --with-html-dir was given. +if test "${with_html_dir+set}" = set; then : + withval=$with_html_dir; +else + with_html_dir='${datadir}/gtk-doc/html' +fi + + HTML_DIR="$with_html_dir" + + + # Check whether --enable-gtk-doc was given. +if test "${enable_gtk_doc+set}" = set; then : + enableval=$enable_gtk_doc; +else + enable_gtk_doc=no +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 +$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 +$as_echo "$enable_gtk_doc" >&6; } + + if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then + as_fn_error $? " + You must have $gtk_doc_requires installed to build documentation for + $PACKAGE_NAME. Please install gtk-doc or disable building the + documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 + fi + + if test "x$PACKAGE_NAME" != "xglib"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 +$as_echo_n "checking for GTKDOC_DEPS... " >&6; } + +if test -n "$GTKDOC_DEPS_CFLAGS"; then + pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GTKDOC_DEPS_LIBS"; then + pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` + else + GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 + + : +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + : +else + GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS + GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + fi + + # Check whether --enable-gtk-doc-html was given. +if test "${enable_gtk_doc_html+set}" = set; then : + enableval=$enable_gtk_doc_html; +else + enable_gtk_doc_html=yes +fi + + # Check whether --enable-gtk-doc-pdf was given. +if test "${enable_gtk_doc_pdf+set}" = set; then : + enableval=$enable_gtk_doc_pdf; +else + enable_gtk_doc_pdf=no +fi + + + if test -z "$GTKDOC_MKPDF"; then + enable_gtk_doc_pdf=no + fi + + if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 + fi + + + if test x$have_gtk_doc = xyes; then + HAVE_GTK_DOC_TRUE= + HAVE_GTK_DOC_FALSE='#' +else + HAVE_GTK_DOC_TRUE='#' + HAVE_GTK_DOC_FALSE= +fi + + if test x$enable_gtk_doc = xyes; then + ENABLE_GTK_DOC_TRUE= + ENABLE_GTK_DOC_FALSE='#' +else + ENABLE_GTK_DOC_TRUE='#' + ENABLE_GTK_DOC_FALSE= +fi + + if test x$enable_gtk_doc_html = xyes; then + GTK_DOC_BUILD_HTML_TRUE= + GTK_DOC_BUILD_HTML_FALSE='#' +else + GTK_DOC_BUILD_HTML_TRUE='#' + GTK_DOC_BUILD_HTML_FALSE= +fi + + if test x$enable_gtk_doc_pdf = xyes; then + GTK_DOC_BUILD_PDF_TRUE= + GTK_DOC_BUILD_PDF_FALSE='#' +else + GTK_DOC_BUILD_PDF_TRUE='#' + GTK_DOC_BUILD_PDF_FALSE= +fi + + if test -n "$LIBTOOL"; then + GTK_DOC_USE_LIBTOOL_TRUE= + GTK_DOC_USE_LIBTOOL_FALSE='#' +else + GTK_DOC_USE_LIBTOOL_TRUE='#' + GTK_DOC_USE_LIBTOOL_FALSE= +fi + + if test -n "$GTKDOC_REBASE"; then + GTK_DOC_USE_REBASE_TRUE= + GTK_DOC_USE_REBASE_FALSE='#' +else + GTK_DOC_USE_REBASE_TRUE='#' + GTK_DOC_USE_REBASE_FALSE= +fi + + + +# ---------------------------------------------------------- +# GOBJECT-INTROSPECTION +# ---------------------------------------------------------- + + + + + # Check whether --enable-introspection was given. +if test "${enable_introspection+set}" = set; then : + enableval=$enable_introspection; +else + enable_introspection=auto +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 +$as_echo_n "checking for gobject-introspection... " >&6; } + + case $enable_introspection in #( + no) : + found_introspection="no (disabled, use --enable-introspection to enable)" + ;; #( + yes) : + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + : +else + as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 +fi + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + found_introspection=yes +else + as_fn_error $? "You need to have gobject-introspection >= 0.9 installed to build grilo" "$LINENO" 5 +fi + ;; #( + auto) : + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + found_introspection=yes +else + found_introspection=no +fi + enable_introspection=$found_introspection + ;; #( + *) : + as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 +$as_echo "$found_introspection" >&6; } + + INTROSPECTION_SCANNER= + INTROSPECTION_COMPILER= + INTROSPECTION_GENERATE= + INTROSPECTION_GIRDIR= + INTROSPECTION_TYPELIBDIR= + if test "x$found_introspection" = "xyes"; then + INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` + INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` + INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` + INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` + INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" + INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` + INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` + INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection + fi + + + + + + + + + + if test "x$found_introspection" = "xyes"; then + HAVE_INTROSPECTION_TRUE= + HAVE_INTROSPECTION_FALSE='#' +else + HAVE_INTROSPECTION_TRUE='#' + HAVE_INTROSPECTION_FALSE= +fi + + + + +# ---------------------------------------------------------- +# VALA BINDINGS +# ---------------------------------------------------------- + + + if test "x" != "xyes"; then : + + + +fi + + # Check whether --enable-vala was given. +if test "${enable_vala+set}" = set; then : + enableval=$enable_vala; +else + + if test "x" = "x"; then : + + enable_vala=auto + +else + + enable_vala= + +fi + +fi + + + case $enable_vala in #( + no) : + enable_vala=no ;; #( + yes) : + + if test "x" != "xyes" -a "x$found_introspection" != "xyes"; then : + + as_fn_error $? "Vala bindings require GObject Introspection" "$LINENO" 5 + +fi + ;; #( + auto) : + + if test "x" != "xyes" -a "x$found_introspection" != "xyes"; then : + + enable_vala=no + +fi + ;; #( + *) : + + as_fn_error $? "Invalid argument passed to --enable-vala, should be one of [no/auto/yes]" "$LINENO" 5 + ;; +esac + + if test "x" = "x"; then : + + vapigen_pkg_name=vapigen + +else + + vapigen_pkg_name=vapigen- + +fi + if test "x0.27" = "x"; then : + + vapigen_pkg="$vapigen_pkg_name" + +else + + vapigen_pkg="$vapigen_pkg_name >= 0.27" + +fi + + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$vapigen_pkg\""; } >&5 + ($PKG_CONFIG --exists --print-errors "$vapigen_pkg") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + + if test "$enable_vala" = "auto"; then : + + enable_vala=yes + +fi + +else + + case $enable_vala in #( + yes) : + + as_fn_error $? "$vapigen_pkg not found" "$LINENO" 5 + ;; #( + auto) : + + enable_vala=no + ;; #( + *) : + ;; +esac + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vapigen" >&5 +$as_echo_n "checking for vapigen... " >&6; } + + case $enable_vala in #( + yes) : + + VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name` + VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen + if test "x" = "x"; then : + + VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name` + +else + + VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name` + +fi + ;; #( + *) : + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vala" >&5 +$as_echo "$enable_vala" >&6; } + + + + + + if test "x$enable_vala" = "xyes"; then + ENABLE_VAPIGEN_TRUE= + ENABLE_VAPIGEN_FALSE='#' +else + ENABLE_VAPIGEN_TRUE='#' + ENABLE_VAPIGEN_FALSE= +fi + + + +# ---------------------------------------------------------- +# GETTEXT/INTLTOOL +# ---------------------------------------------------------- + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + # Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval +else + USE_NLS=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + + + + +case "$am__api_version" in + 1.01234) + as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 + ;; + *) + ;; +esac + +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +if test -n "0.40.0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5 +$as_echo_n "checking for intltool >= 0.40.0... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 +$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + as_fn_error $? "Your intltool is too old. You need intltool 0.40.0 or later." "$LINENO" 5 +fi + +# Extract the first word of "intltool-update", so it can be a program name with args. +set dummy intltool-update; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_UPDATE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE +if test -n "$INTLTOOL_UPDATE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 +$as_echo "$INTLTOOL_UPDATE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-merge", so it can be a program name with args. +set dummy intltool-merge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_MERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE +if test -n "$INTLTOOL_MERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 +$as_echo "$INTLTOOL_MERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-extract", so it can be a program name with args. +set dummy intltool-extract; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_EXTRACT in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT +if test -n "$INTLTOOL_EXTRACT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 +$as_echo "$INTLTOOL_EXTRACT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 +fi + +if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 +fi + + +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' +INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' + + + + +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' +intltool__v_merge_options_0='-q' + + + + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' +else + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' +fi + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Check the gettext tools to make sure they are GNU +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_XGETTEXT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $XGETTEXT in + [\\/]* | ?:[\\/]*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +XGETTEXT=$ac_cv_path_XGETTEXT +if test -n "$XGETTEXT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGMERGE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MSGMERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGMERGE=$ac_cv_path_MSGMERGE +if test -n "$MSGMERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGFMT=$ac_cv_path_MSGFMT +if test -n "$MSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GMSGFMT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INTLTOOL_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL +if test -n "$INTLTOOL_PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 +$as_echo "$INTLTOOL_PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_PERL"; then + as_fn_error $? "perl not found" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 +$as_echo_n "checking for perl >= 5.8.1... " >&6; } +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 +else + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 +$as_echo "$IT_PERL_VERSION" >&6; } +fi +if test "x" != "xno-xml"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 +$as_echo_n "checking for XML::Parser... " >&6; } + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + else + as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile + + + + + +GETTEXT_PACKAGE=grilo + + +cat >>confdefs.h <<_ACEOF +#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" +_ACEOF + + +# ---------------------------------------------------------- +# WORKAROUNDS +# ---------------------------------------------------------- + + + + +# ---------------------------------------------------------- +# OUTPUT +# ---------------------------------------------------------- + +if test "x$HAVE_LIBSOUP" = "xyes"; then + ac_config_files="$ac_config_files grilo-net-uninstalled.pc grilo-net-${GRL_MAJORMINOR}.pc" + +fi + +if test "x$HAVE_TOTEM_PL_PARSER" = "xyes"; then + ac_config_files="$ac_config_files grilo-pls-uninstalled.pc grilo-pls-${GRL_MAJORMINOR}.pc" + +fi + +ac_config_files="$ac_config_files Makefile grilo-uninstalled.pc grilo-${GRL_MAJORMINOR}.pc src/Makefile src/data/Makefile po/Makefile.in po/Makefile tests/Makefile tests/python/Makefile tests/python/util.py libs/Makefile libs/net/Makefile libs/pls/Makefile tools/Makefile tools/grilo-test-ui/Makefile tools/grilo-inspect/Makefile tools/grilo-launch/Makefile bindings/Makefile bindings/vala/Makefile doc/Makefile doc/grilo/Makefile doc/man/Makefile examples/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_OAUTH_TRUE}" && test -z "${HAVE_OAUTH_FALSE}"; then + as_fn_error $? "conditional \"HAVE_OAUTH\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_GRILO_TEST_UI_TRUE}" && test -z "${BUILD_GRILO_TEST_UI_FALSE}"; then + as_fn_error $? "conditional \"BUILD_GRILO_TEST_UI\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_GRILO_NET_TRUE}" && test -z "${BUILD_GRILO_NET_FALSE}"; then + as_fn_error $? "conditional \"BUILD_GRILO_NET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_GRILO_PLS_TRUE}" && test -z "${BUILD_GRILO_PLS_FALSE}"; then + as_fn_error $? "conditional \"BUILD_GRILO_PLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then + as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then + as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then + as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then + as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then + as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_VAPIGEN_TRUE}" && test -z "${ENABLE_VAPIGEN_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_VAPIGEN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + ac_config_commands="$ac_config_commands po/stamp-it" + + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by grilo $as_me 0.3.6, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +grilo home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +grilo config.status 0.3.6 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' +configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +OBJDUMP \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_import \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +lt_cv_nm_interface \ +nm_file_list_spec \ +lt_cv_truncate_bin \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +configure_time_dlsearch_path \ +configure_time_lt_sys_library_path; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' + +# See if we are running on zsh, and set the options that allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + RM='$RM' + ofile='$ofile' + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "grilo-net-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES grilo-net-uninstalled.pc" ;; + "grilo-net-${GRL_MAJORMINOR}.pc") CONFIG_FILES="$CONFIG_FILES grilo-net-${GRL_MAJORMINOR}.pc" ;; + "grilo-pls-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES grilo-pls-uninstalled.pc" ;; + "grilo-pls-${GRL_MAJORMINOR}.pc") CONFIG_FILES="$CONFIG_FILES grilo-pls-${GRL_MAJORMINOR}.pc" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "grilo-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES grilo-uninstalled.pc" ;; + "grilo-${GRL_MAJORMINOR}.pc") CONFIG_FILES="$CONFIG_FILES grilo-${GRL_MAJORMINOR}.pc" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/data/Makefile") CONFIG_FILES="$CONFIG_FILES src/data/Makefile" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; + "tests/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/python/Makefile" ;; + "tests/python/util.py") CONFIG_FILES="$CONFIG_FILES tests/python/util.py" ;; + "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; + "libs/net/Makefile") CONFIG_FILES="$CONFIG_FILES libs/net/Makefile" ;; + "libs/pls/Makefile") CONFIG_FILES="$CONFIG_FILES libs/pls/Makefile" ;; + "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; + "tools/grilo-test-ui/Makefile") CONFIG_FILES="$CONFIG_FILES tools/grilo-test-ui/Makefile" ;; + "tools/grilo-inspect/Makefile") CONFIG_FILES="$CONFIG_FILES tools/grilo-inspect/Makefile" ;; + "tools/grilo-launch/Makefile") CONFIG_FILES="$CONFIG_FILES tools/grilo-launch/Makefile" ;; + "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;; + "bindings/vala/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/vala/Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "doc/grilo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/grilo/Makefile" ;; + "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; + "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options that allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST + fi + + cfgfile=${ofile}T + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# Generated automatically by $as_me ($PACKAGE) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +# Copyright (C) 2014 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool 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 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool 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, see . + + +# The names of the tagged configurations supported by this script. +available_tags='' + +# Configured defaults for sys_lib_dlsearch_path munging. +: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shared archive member basename,for filename based shared library versioning on AIX. +shared_archive_member_spec=$shared_archive_member_spec + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm into a list of symbols to manually relocate. +global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# The name lister interface. +nm_interface=$lt_lt_cv_nm_interface + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and where our libraries should be installed. +lt_sysroot=$lt_sysroot + +# Command to truncate a binary pipe. +lt_truncate_bin=$lt_lt_cv_truncate_bin + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Detected run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path + +# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. +configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \$shlibpath_var if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# ### END LIBTOOL CONFIG + +_LT_EOF + + cat <<'_LT_EOF' >> "$cfgfile" + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain=$ac_aux_dir/ltmain.sh + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + ;; + "po/stamp-it":C) + if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then + as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 + fi + rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" + >"po/stamp-it.tmp" + sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" + + sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r po/POTFILES + } + ' "po/Makefile.in" >"po/Makefile" + rm -f "po/Makefile.tmp" + mv "po/stamp-it.tmp" "po/stamp-it" + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +echo " + +Configuration + Version : ${VERSION} + Prefix : ${prefix} + Compiler : ${CC} + + Enable debug : ${enable_debug} + Enable tests : ${enable_tests} + + Enable docs : ${enable_gtk_doc} + + Introspection support : ${found_introspection} + Vala support : ${enable_vala} + + Enable Test UI : ${HAVE_GTK} + + GrlNet support : ${HAVE_LIBSOUP} + GrlPls support : ${HAVE_TOTEM_PL_PARSER} + +" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..6c6f552 --- /dev/null +++ b/configure.ac @@ -0,0 +1,332 @@ +# +# configure.ac +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010, 2011 Igalia S.L.. All rights reserved. + +m4_define([prj_name], [grilo]) +m4_define([prj_gir_name], [Grilo]) +m4_define([grl_major_version], [0]) +m4_define([grl_minor_version], [3]) +m4_define([grl_micro_version], [6]) +m4_define([prj_version], grl_major_version.grl_minor_version.grl_micro_version) + +AC_INIT([prj_name], + [prj_version], + [http://bugzilla.gnome.org/enter_bug.cgi?product=grilo;component=core], + [prj_name], + [https://wiki.gnome.org/Projects/Grilo]) + +AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip]) + +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_SRCDIR([src/grilo.h]) + +AC_CONFIG_HEADERS([config.h]) + +AC_PROG_AWK +AC_PROG_CC +AC_PROG_INSTALL + +LT_PREREQ([2.2.6]) +LT_INIT + +AM_PROG_CC_C_O + +AC_HEADER_STDC + +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +# Grilo Net library + +GRLNET_VERSION=grl_major_version.grl_minor_version.grl_micro_version +AC_SUBST(GRLNET_VERSION) +AC_DEFINE_UNQUOTED(GRLNET_VERSION, "$GRLNET_VERSION", [Grilo Net library version]) + +# Grilo Pls library + +GRLPLS_VERSION=grl_major_version.grl_minor_version.grl_micro_version +AC_SUBST(GRLPLS_VERSION) +AC_DEFINE_UNQUOTED(GRLPLS_VERSION, "$GRLPLS_VERSION", [Grilo Pls library version]) + +# ---------------------------------------------------------- +# LIBTOOL VERSIONING +# ---------------------------------------------------------- + +# Libtool library version, not to confuse with API version +# see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html + +GRL_LT_VERSION=2:0:2 +GRLNET_LT_VERSION=0:5:0 +GRLPLS_LT_VERSION=0:0:0 + +AC_SUBST([GRL_LT_VERSION]) +AC_SUBST([GRLNET_LT_VERSION]) +AC_SUBST([GRLPLS_LT_VERSION]) + +# ---------------------------------------------------------- +# ENVIRONMENT CONFIGURATION +# ---------------------------------------------------------- + +GNOME_COMPILE_WARNINGS([maximum]) +CFLAGS+=" ${WARN_CFLAGS} -Wmissing-declarations -std=c99 " + +GNOME_MAINTAINER_MODE_DEFINES + +# ---------------------------------------------------------- +# DEFINITIONS +# ---------------------------------------------------------- + +# API version + +GRL_MAJORMINOR=grl_major_version.grl_minor_version +GRL_MAJORMINOR_NORM=grl_major_version[_]grl_minor_version +AC_SUBST(GRL_MAJORMINOR) +AC_SUBST(GRL_MAJORMINOR_NORM) +AC_DEFINE_UNQUOTED(GRL_MAJORMINOR, "$GRL_MAJORMINOR", [library major.minor version]) + +# Framework name (contains API version) + +GRL_NAME="${PACKAGE_NAME}-${GRL_MAJORMINOR}" +AC_SUBST(GRL_NAME) +AC_DEFINE_UNQUOTED(GRL_NAME, "$GRL_NAME", [framework name]) + +# Give parameters a default value + +if test "x${prefix}" = "xNONE" ; then + prefix="${ac_default_prefix}" +fi + +if test "x${exec_prefix}" = "xNONE" ; then + exec_prefix="${prefix}" +fi + +# Plugins directory + +GRL_PLUGINS_DIR=`eval echo ${libdir}/${GRL_NAME}` +AC_SUBST(GRL_PLUGINS_DIR) +AC_DEFINE_UNQUOTED(GRL_PLUGINS_DIR, "$GRL_PLUGINS_DIR", [Plugins directory]) + +# ---------------------------------------------------------- +# DEPENDENCIES +# ---------------------------------------------------------- + +GLIB2_REQUIRED=2.44 + +PKG_CHECK_MODULES(DEPS, glib-2.0 >= $GLIB2_REQUIRED \ + gobject-2.0 >= $GLIB2_REQUIRED \ + gmodule-2.0 >= $GLIB2_REQUIRED \ + gio-2.0 >= $GLIB2_REQUIRED \ + libxml-2.0) + + +GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` +GLIB_MKENUMS=`pkg-config --variable=glib_mkenums glib-2.0` +AC_SUBST(GLIB_GENMARSHAL) +AC_SUBST(GLIB_MKENUMS) + +# ---------------------------------------------------------- +# UI Tool +# ---------------------------------------------------------- + +PKG_CHECK_MODULES([GTU], [ gtk+-3.0 >= 3.0 ], + [ HAVE_GTK=yes ], + [ HAVE_GTK=no ]) + +PKG_CHECK_MODULES(OAUTH, oauth, [HAVE_OAUTH=yes], [HAVE_OAUTH=no]) + +AM_CONDITIONAL(HAVE_OAUTH, test "x$HAVE_OAUTH" = "xyes") + +if test "x$HAVE_OAUTH" = "xyes"; then + AC_DEFINE(HAVE_OAUTH, 1, [OAuth available]) +else + AC_MSG_WARN([oauth missing, unable to configure Flickr personal accounts]) +fi + +AC_ARG_ENABLE(test-ui, + AS_HELP_STRING([--enable-test-ui], + [Build Test UI (default: auto)]), + [ + case "$enableval" in + yes) + if test "x$HAVE_GTK" = "xno"; then + AC_MSG_ERROR([gtk+-3.0 >= 3.0 not found, install it or use --disable-test-ui]) + fi + ;; + no) + HAVE_GTK=no + ;; + esac + ]) + +AM_CONDITIONAL(BUILD_GRILO_TEST_UI, test "x$HAVE_GTK" = "xyes") + +# ---------------------------------------------------------- +# NET LIBRARY +# ---------------------------------------------------------- + +PKG_CHECK_MODULES(NET, libsoup-2.4 >= 2.41.3, + HAVE_LIBSOUP=yes, + HAVE_LIBSOUP=no) + +AC_ARG_ENABLE([grl_net], + AS_HELP_STRING([--enable-grl-net], + [Enable Grilo Net library (default: auto)]), + [ + case "$enableval" in + yes | auto) + if test "x$HAVE_LIBSOUP" = "xno"; then + AC_MSG_ERROR([libsoup-2.4 not found, install it or use --disable-grl-net]) + fi + ;; + no) + HAVE_LIBSOUP=no + ;; + esac + ]) + +AM_CONDITIONAL(BUILD_GRILO_NET, test "x$HAVE_LIBSOUP" = "xyes") + +# ---------------------------------------------------------- +# PLS LIBRARY +# ---------------------------------------------------------- + +PKG_CHECK_MODULES(TOTEM_PL_PARSER, totem-plparser >= 3.4.1, HAVE_TOTEM_PL_PARSER=yes, HAVE_TOTEM_PL_PARSER=no) + +AC_ARG_ENABLE([grl_pls], + AS_HELP_STRING([--enable-grl-pls], + [Enable Grilo Pls library (default: auto)]), + [ + case "$enableval" in + yes | auto) + if test "x$HAVE_TOTEM_PL_PARSER" = "xno"; then + AC_MSG_ERROR([totem-pl-parser not found, install it or use --disable-grl-pls]) + fi + ;; + no) + HAVE_TOTEM_PL_PARSER=no + ;; + esac + ]) + +AM_CONDITIONAL(BUILD_GRILO_PLS, test "x$HAVE_TOTEM_PL_PARSER" = "xyes") + +# ---------------------------------------------------------- +# DEBUG SUPPORT +# ---------------------------------------------------------- + +AC_ARG_ENABLE(debug, + [ --enable-debug include debug symbols],, + enable_debug=yes) +if test "x$enable_debug" = "xyes"; then + AC_MSG_WARN("Configuring with debugging options enabled!") + CFLAGS="$CFLAGS -g3 -O0" +fi + +# ---------------------------------------------------------- +# TESTS SUPPORT +# ---------------------------------------------------------- + +AC_ARG_ENABLE([tests], + AS_HELP_STRING([--enable-tests],[build unit tests]), + enable_tests=yes, + enable_tests=no) + +AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes") + +# ---------------------------------------------------------- +# GTK-DOC +# ---------------------------------------------------------- + +GTK_DOC_CHECK([1.10],[--flavour no-tmpl]) + +# ---------------------------------------------------------- +# GOBJECT-INTROSPECTION +# ---------------------------------------------------------- + +GOBJECT_INTROSPECTION_CHECK([0.9]) + +# ---------------------------------------------------------- +# VALA BINDINGS +# ---------------------------------------------------------- + +VAPIGEN_CHECK([0.27]) + +# ---------------------------------------------------------- +# GETTEXT/INTLTOOL +# ---------------------------------------------------------- + +IT_PROG_INTLTOOL([0.40.0]) +GETTEXT_PACKAGE=grilo +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The domain to use with gettext]) + +# ---------------------------------------------------------- +# WORKAROUNDS +# ---------------------------------------------------------- + +AC_SUBST([abs_top_builddir]) +AC_SUBST([builddir]) + +# ---------------------------------------------------------- +# OUTPUT +# ---------------------------------------------------------- + +if test "x$HAVE_LIBSOUP" = "xyes"; then + AC_CONFIG_FILES([grilo-net-uninstalled.pc grilo-net-${GRL_MAJORMINOR}.pc]) +fi + +if test "x$HAVE_TOTEM_PL_PARSER" = "xyes"; then + AC_CONFIG_FILES([grilo-pls-uninstalled.pc grilo-pls-${GRL_MAJORMINOR}.pc]) +fi + +AC_CONFIG_FILES([ + Makefile + grilo-uninstalled.pc + grilo-${GRL_MAJORMINOR}.pc + src/Makefile + src/data/Makefile + po/Makefile.in + po/Makefile + tests/Makefile + tests/python/Makefile + tests/python/util.py + libs/Makefile + libs/net/Makefile + libs/pls/Makefile + tools/Makefile + tools/grilo-test-ui/Makefile + tools/grilo-inspect/Makefile + tools/grilo-launch/Makefile + bindings/Makefile + bindings/vala/Makefile + doc/Makefile + doc/grilo/Makefile + doc/man/Makefile + examples/Makefile +]) + +AC_OUTPUT + +echo " + +Configuration + Version : ${VERSION} + Prefix : ${prefix} + Compiler : ${CC} + + Enable debug : ${enable_debug} + Enable tests : ${enable_tests} + + Enable docs : ${enable_gtk_doc} + + Introspection support : ${found_introspection} + Vala support : ${enable_vala} + + Enable Test UI : ${HAVE_GTK} + + GrlNet support : ${HAVE_LIBSOUP} + GrlPls support : ${HAVE_TOTEM_PL_PARSER} + +" diff --git a/depcomp b/depcomp new file mode 100755 index 0000000..30379e2 --- /dev/null +++ b/depcomp @@ -0,0 +1,791 @@ +#!/bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. + +# 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, 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, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by 'PROGRAMS ARGS'. + object Object file output by 'PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputting dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +# Get the directory component of the given path, and save it in the +# global variables '$dir'. Note that this directory component will +# be either empty or ending with a '/' character. This is deliberate. +set_dir_from () +{ + case $1 in + */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; + *) dir=;; + esac +} + +# Get the suffix-stripped basename of the given path, and save it the +# global variable '$base'. +set_base_from () +{ + base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` +} + +# If no dependency file was actually created by the compiler invocation, +# we still have to create a dummy depfile, to avoid errors with the +# Makefile "include basename.Plo" scheme. +make_dummy_depfile () +{ + echo "#dummy" > "$depfile" +} + +# Factor out some common post-processing of the generated depfile. +# Requires the auxiliary global variable '$tmpdepfile' to be set. +aix_post_process_depfile () +{ + # If the compiler actually managed to produce a dependency file, + # post-process it. + if test -f "$tmpdepfile"; then + # Each line is of the form 'foo.o: dependency.h'. + # Do two passes, one to just change these to + # $object: dependency.h + # and one to simply output + # dependency.h: + # which is needed to avoid the deleted-header problem. + { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" + sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" + } > "$depfile" + rm -f "$tmpdepfile" + else + make_dummy_depfile + fi +} + +# A tabulation character. +tab=' ' +# A newline character. +nl=' +' +# Character ranges might be problematic outside the C locale. +# These definitions help. +upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ +lower=abcdefghijklmnopqrstuvwxyz +digits=0123456789 +alpha=${upper}${lower} + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Avoid interferences from the environment. +gccflag= dashmflag= + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then + # This is just like msvc7 but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvc7 +fi + +if test "$depmode" = xlc; then + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. + gccflag=-qmakedep=gcc,-MF + depmode=gcc +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. +## (see the conditional assignment to $gccflag above). +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). Also, it might not be +## supported by the other compilers which use the 'gcc' depmode. +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The second -e expression handles DOS-style file names with drive + # letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the "deleted header file" problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. +## Some versions of gcc put a space before the ':'. On the theory +## that the space means something, we add a space to the output as +## well. hp depmode also adds that space, but also prefixes the VPATH +## to the object. Take care to not repeat it in the output. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like '#:fec' to the end of the + # dependency line. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ + | tr "$nl" ' ' >> "$depfile" + echo >> "$depfile" + # The second pass generates a dummy entry for each header file. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" + ;; + +xlc) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts '$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + set_dir_from "$object" + set_base_from "$object" + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + aix_post_process_depfile + ;; + +tcc) + # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 + # FIXME: That version still under development at the moment of writing. + # Make that this statement remains true also for stable, released + # versions. + # It will wrap lines (doesn't matter whether long or short) with a + # trailing '\', as in: + # + # foo.o : \ + # foo.c \ + # foo.h \ + # + # It will put a trailing '\' even on the last line, and will use leading + # spaces rather than leading tabs (at least since its commit 0394caf7 + # "Emit spaces for -MD"). + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. + # We have to change lines of the first kind to '$object: \'. + sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" + # And for each line of the second kind, we have to emit a 'dep.h:' + # dummy dependency, to avoid the deleted-header problem. + sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" + rm -f "$tmpdepfile" + ;; + +## The order of this option in the case statement is important, since the +## shell code in configure will try each of these formats in the order +## listed in this file. A plain '-MD' option would be understood by many +## compilers, so we must ensure this comes after the gcc and icc options. +pgcc) + # Portland's C compiler understands '-MD'. + # Will always output deps to 'file.d' where file is the root name of the + # source file under compilation, even if file resides in a subdirectory. + # The object file name does not affect the name of the '.d' file. + # pgcc 10.2 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using '\' : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + set_dir_from "$object" + # Use the source, not the object, to determine the base name, since + # that's sadly what pgcc will do too. + set_base_from "$source" + tmpdepfile=$base.d + + # For projects that build the same source file twice into different object + # files, the pgcc approach of using the *source* file root name can cause + # problems in parallel builds. Use a locking strategy to avoid stomping on + # the same $tmpdepfile. + lockdir=$base.d-lock + trap " + echo '$0: caught signal, cleaning up...' >&2 + rmdir '$lockdir' + exit 1 + " 1 2 13 15 + numtries=100 + i=$numtries + while test $i -gt 0; do + # mkdir is a portable test-and-set. + if mkdir "$lockdir" 2>/dev/null; then + # This process acquired the lock. + "$@" -MD + stat=$? + # Release the lock. + rmdir "$lockdir" + break + else + # If the lock is being held by a different process, wait + # until the winning process is done or we timeout. + while test -d "$lockdir" && test $i -gt 0; do + sleep 1 + i=`expr $i - 1` + done + fi + i=`expr $i - 1` + done + trap - 1 2 13 15 + if test $i -le 0; then + echo "$0: failed to acquire lock after $numtries attempts" >&2 + echo "$0: check lockdir '$lockdir'" >&2 + exit 1 + fi + + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + set_dir_from "$object" + set_base_from "$object" + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" + # Add 'dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in 'foo.d' instead, so we check for that too. + # Subdirectories are respected. + set_dir_from "$object" + set_base_from "$object" + + if test "$libtool" = yes; then + # Libtool generates 2 separate objects for the 2 libraries. These + # two compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir$base.o.d # libtool 1.5 + tmpdepfile2=$dir.libs/$base.o.d # Likewise. + tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + # Same post-processing that is required for AIX mode. + aix_post_process_depfile + ;; + +msvc7) + if test "$libtool" = yes; then + showIncludes=-Wc,-showIncludes + else + showIncludes=-showIncludes + fi + "$@" $showIncludes > "$tmpdepfile" + stat=$? + grep -v '^Note: including file: ' "$tmpdepfile" + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The first sed program below extracts the file names and escapes + # backslashes for cygpath. The second sed program outputs the file + # name when reading, but also accumulates all include files in the + # hold buffer in order to output them again at the end. This only + # works with sed implementations that can handle large buffers. + sed < "$tmpdepfile" -n ' +/^Note: including file: *\(.*\)/ { + s//\1/ + s/\\/\\\\/g + p +}' | $cygpath_u | sort -u | sed -n ' +s/ /\\ /g +s/\(.*\)/'"$tab"'\1 \\/p +s/.\(.*\) \\/\1:/ +H +$ { + s/.*/'"$tab"'/ + G + p +}' >> "$depfile" + echo >> "$depfile" # make sure the fragment doesn't end with a backslash + rm -f "$tmpdepfile" + ;; + +msvc7msys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for ':' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. + "$@" $dashmflag | + sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this sed invocation + # correctly. Breaking it into two sed invocations is a workaround. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + # makedepend may prepend the VPATH from the source file name to the object. + # No need to regex-escape $object, excess matching of '.' is harmless. + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process the last invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed '1,2d' "$tmpdepfile" \ + | tr ' ' "$nl" \ + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E \ + | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + | sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" + echo "$tab" >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..3429f09 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,14 @@ +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2011 Igalia S.L. All rights reserved. + +SUBDIRS = man + +if ENABLE_GTK_DOC +SUBDIRS += grilo +endif + +-include $(top_srcdir)/git.mk diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 0000000..d203dd3 --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,685 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2011 Igalia S.L. All rights reserved. +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@ENABLE_GTK_DOC_TRUE@am__append_1 = grilo +subdir = doc +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = man grilo +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = man $(am__append_1) +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign doc/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/grilo/Makefile.am b/doc/grilo/Makefile.am new file mode 100644 index 0000000..5c186a3 --- /dev/null +++ b/doc/grilo/Makefile.am @@ -0,0 +1,129 @@ +## Process this file with automake to produce Makefile.in + +# We require automake 1.6 at least. +AUTOMAKE_OPTIONS = 1.6 + +# This is a blank Makefile.am for using gtk-doc. +# Copy this to your project's API docs directory and modify the variables to +# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples +# of using the various options. + +# The name of the module, e.g. 'glib'. +DOC_MODULE=grilo + +# Uncomment for versioned docs and specify the version of the module, e.g. '2'. +#DOC_MODULE_VERSION=2 + + +# The top-level SGML file. You can change this if you want to. +DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml + +# The directory containing the source code. Relative to $(srcdir). +# gtk-doc will search all .c & .h files beneath here for inline comments +# documenting the functions and macros. +# e.g. DOC_SOURCE_DIR=../../../gtk +DOC_SOURCE_DIR=$(top_srcdir)/src $(top_srcdir)/libs + +# Extra options to pass to gtkdoc-scangobj. Not normally needed. +SCANGOBJ_OPTIONS= + +# Extra options to supply to gtkdoc-scan. +# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" +SCAN_OPTIONS= + +# Extra options to supply to gtkdoc-mkdb. +# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml +MKDB_OPTIONS=--sgml-mode --output-format=xml + +# Extra options to supply to gtkdoc-mktmpl +# e.g. MKTMPL_OPTIONS=--only-section-tmpl +MKTMPL_OPTIONS= + +# Extra options to supply to gtkdoc-mkhtml +MKHTML_OPTIONS= + +# Extra options to supply to gtkdoc-fixref. Not normally needed. +# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html +FIXXREF_OPTIONS=--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html + +# Used for dependencies. The docs will be rebuilt if any of these change. +# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h +# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c +HFILE_GLOB= +CFILE_GLOB= + +# Extra header to include when scanning, which are not under DOC_SOURCE_DIR +# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h +EXTRA_HFILES= + +# Header files to ignore when scanning. Use base file name, no paths +# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h +IGNORE_HFILES=config.h \ + grl-log-priv.h \ + grl-marshal.h \ + grl-metadata-key-priv.h \ + grl-net-mock-private.h \ + grl-operation-options-priv.h \ + grl-operation-priv.h \ + grl-plugin-priv.h \ + grl-registry-priv.h \ + grl-sync-priv.h \ + grl-type-builtins.h + +# Images to copy into HTML directory. +# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png +HTML_IMAGES= + +program_listings = \ + configuring-plugins.c \ + browsing.c \ + searching.c \ + multivalues.c \ + efficient-metadata-resolution.c + +%.c: $(top_srcdir)/examples/%.c + cp -f $< $@ + +html-build.stamp: $(program_listings) + +# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). +# e.g. content_files=running.sgml building.sgml changes-2.0.sgml +content_files=overview.xml \ + quick-start.xml \ + environment-setup.xml \ + writing-apps.xml \ + plugins-sources.xml \ + plugins-testing.xml + +# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded +# These files must be listed here *and* in content_files +# e.g. expand_content_files=running.sgml +expand_content_files= + +# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. +# Only needed if you are using gtkdoc-scangobj to dynamically query widget +# signals and properties. +# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) +# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) +GTKDOC_CFLAGS=-I$(top_srcdir)/src -I$(top_srcdir)/src/data $(DEPS_CFLAGS) +GTKDOC_LIBS=$(top_builddir)/src/lib@GRL_NAME@.la $(DEPS_LIBS) + +# This includes the standard gtk-doc make rules, copied by gtkdocize. +include $(top_srcdir)/gtk-doc.make + +# Other files to distribute +# e.g. EXTRA_DIST += version.xml.in +EXTRA_DIST += + +# Files not to distribute +# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types +# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt +DISTCLEANFILES = *.o *.stamp $(DOC_MODULE).* $(program_listings) + +# Comment this out if you want your docs-status tested during 'make check' +if ENABLE_GTK_DOC +#TESTS_ENVIRONMENT = cd $(srcsrc) && +#TESTS = $(GTKDOC_CHECK) +endif + +-include $(top_srcdir)/git.mk diff --git a/doc/grilo/Makefile.in b/doc/grilo/Makefile.in new file mode 100644 index 0000000..8defa64 --- /dev/null +++ b/doc/grilo/Makefile.in @@ -0,0 +1,922 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# -*- mode: makefile -*- +# +# gtk-doc.make - make rules for gtk-doc +# Copyright (C) 2003 James Henstridge +# 2004-2007 Damon Chaplin +# 2007-2017 Stefan Sauer +# +# 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 3 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, see . + +#################################### +# Everything below here is generic # +#################################### +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc/grilo +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/gtk-doc.make +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +# We require automake 1.6 at least. +AUTOMAKE_OPTIONS = 1.6 + +# This is a blank Makefile.am for using gtk-doc. +# Copy this to your project's API docs directory and modify the variables to +# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples +# of using the various options. + +# The name of the module, e.g. 'glib'. +DOC_MODULE = grilo + +# Uncomment for versioned docs and specify the version of the module, e.g. '2'. +#DOC_MODULE_VERSION=2 + +# The top-level SGML file. You can change this if you want to. +DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml + +# The directory containing the source code. Relative to $(srcdir). +# gtk-doc will search all .c & .h files beneath here for inline comments +# documenting the functions and macros. +# e.g. DOC_SOURCE_DIR=../../../gtk +DOC_SOURCE_DIR = $(top_srcdir)/src $(top_srcdir)/libs + +# Extra options to pass to gtkdoc-scangobj. Not normally needed. +SCANGOBJ_OPTIONS = + +# Extra options to supply to gtkdoc-scan. +# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" +SCAN_OPTIONS = + +# Extra options to supply to gtkdoc-mkdb. +# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml +MKDB_OPTIONS = --sgml-mode --output-format=xml + +# Extra options to supply to gtkdoc-mktmpl +# e.g. MKTMPL_OPTIONS=--only-section-tmpl +MKTMPL_OPTIONS = + +# Extra options to supply to gtkdoc-mkhtml +MKHTML_OPTIONS = + +# Extra options to supply to gtkdoc-fixref. Not normally needed. +# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html +FIXXREF_OPTIONS = --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html + +# Used for dependencies. The docs will be rebuilt if any of these change. +# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h +# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c +HFILE_GLOB = +CFILE_GLOB = + +# Extra header to include when scanning, which are not under DOC_SOURCE_DIR +# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h +EXTRA_HFILES = + +# Header files to ignore when scanning. Use base file name, no paths +# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h +IGNORE_HFILES = config.h \ + grl-log-priv.h \ + grl-marshal.h \ + grl-metadata-key-priv.h \ + grl-net-mock-private.h \ + grl-operation-options-priv.h \ + grl-operation-priv.h \ + grl-plugin-priv.h \ + grl-registry-priv.h \ + grl-sync-priv.h \ + grl-type-builtins.h + + +# Images to copy into HTML directory. +# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png +HTML_IMAGES = +program_listings = \ + configuring-plugins.c \ + browsing.c \ + searching.c \ + multivalues.c \ + efficient-metadata-resolution.c + + +# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). +# e.g. content_files=running.sgml building.sgml changes-2.0.sgml +content_files = overview.xml \ + quick-start.xml \ + environment-setup.xml \ + writing-apps.xml \ + plugins-sources.xml \ + plugins-testing.xml + + +# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded +# These files must be listed here *and* in content_files +# e.g. expand_content_files=running.sgml +expand_content_files = + +# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. +# Only needed if you are using gtkdoc-scangobj to dynamically query widget +# signals and properties. +# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) +# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) +GTKDOC_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/data $(DEPS_CFLAGS) +GTKDOC_LIBS = $(top_builddir)/src/lib@GRL_NAME@.la $(DEPS_LIBS) +@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) +@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) +@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = +@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute + +# We set GPATH here; this gives us semantics for GNU make +# which are more like other make's VPATH, when it comes to +# whether a source that is a target of one rule is then +# searched for in VPATH/GPATH. +# +GPATH = $(srcdir) +TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) +SETUP_FILES = \ + $(content_files) \ + $(expand_content_files) \ + $(DOC_MAIN_SGML_FILE) \ + $(DOC_MODULE)-sections.txt \ + $(DOC_MODULE)-overrides.txt + + +# This includes the standard gtk-doc make rules, copied by gtkdocize. + +# Other files to distribute +# e.g. EXTRA_DIST += version.xml.in +EXTRA_DIST = $(HTML_IMAGES) $(SETUP_FILES) +DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \ + html-build.stamp pdf-build.stamp \ + sgml.stamp html.stamp pdf.stamp + +SCANOBJ_FILES = \ + $(DOC_MODULE).args \ + $(DOC_MODULE).hierarchy \ + $(DOC_MODULE).interfaces \ + $(DOC_MODULE).prerequisites \ + $(DOC_MODULE).signals + +REPORT_FILES = \ + $(DOC_MODULE)-undocumented.txt \ + $(DOC_MODULE)-undeclared.txt \ + $(DOC_MODULE)-unused.txt + +CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test +@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = +@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp +@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = +@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp + +#### setup #### +GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_@AM_V@) +GTK_DOC_V_SETUP_ = $(GTK_DOC_V_SETUP_@AM_DEFAULT_V@) +GTK_DOC_V_SETUP_0 = @echo " DOC Preparing build"; + +#### scan #### +GTK_DOC_V_SCAN = $(GTK_DOC_V_SCAN_@AM_V@) +GTK_DOC_V_SCAN_ = $(GTK_DOC_V_SCAN_@AM_DEFAULT_V@) +GTK_DOC_V_SCAN_0 = @echo " DOC Scanning header files"; +GTK_DOC_V_INTROSPECT = $(GTK_DOC_V_INTROSPECT_@AM_V@) +GTK_DOC_V_INTROSPECT_ = $(GTK_DOC_V_INTROSPECT_@AM_DEFAULT_V@) +GTK_DOC_V_INTROSPECT_0 = @echo " DOC Introspecting gobjects"; + +#### xml #### +GTK_DOC_V_XML = $(GTK_DOC_V_XML_@AM_V@) +GTK_DOC_V_XML_ = $(GTK_DOC_V_XML_@AM_DEFAULT_V@) +GTK_DOC_V_XML_0 = @echo " DOC Building XML"; + +#### html #### +GTK_DOC_V_HTML = $(GTK_DOC_V_HTML_@AM_V@) +GTK_DOC_V_HTML_ = $(GTK_DOC_V_HTML_@AM_DEFAULT_V@) +GTK_DOC_V_HTML_0 = @echo " DOC Building HTML"; +GTK_DOC_V_XREF = $(GTK_DOC_V_XREF_@AM_V@) +GTK_DOC_V_XREF_ = $(GTK_DOC_V_XREF_@AM_DEFAULT_V@) +GTK_DOC_V_XREF_0 = @echo " DOC Fixing cross-references"; + +#### pdf #### +GTK_DOC_V_PDF = $(GTK_DOC_V_PDF_@AM_V@) +GTK_DOC_V_PDF_ = $(GTK_DOC_V_PDF_@AM_DEFAULT_V@) +GTK_DOC_V_PDF_0 = @echo " DOC Building PDF"; + +# Files not to distribute +# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types +# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt +DISTCLEANFILES = *.o *.stamp $(DOC_MODULE).* $(program_listings) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/grilo/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign doc/grilo/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/gtk-doc.make $(am__empty): + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook +check-am: all-am +check: check-am +@ENABLE_GTK_DOC_FALSE@all-local: +all-am: Makefile all-local +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic \ + maintainer-clean-local + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-local + +.MAKE: install-am install-strip + +.PHONY: all all-am all-local check check-am clean clean-generic \ + clean-libtool clean-local cscopelist-am ctags-am dist-hook \ + distclean distclean-generic distclean-libtool distclean-local \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-data-local \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + maintainer-clean-local mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am uninstall-local + +.PRECIOUS: Makefile + + +%.c: $(top_srcdir)/examples/%.c + cp -f $< $@ + +html-build.stamp: $(program_listings) + +gtkdoc-check.test: Makefile + $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ + echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \ + chmod +x $@ + +all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) +.PHONY: all-gtk-doc + +@ENABLE_GTK_DOC_TRUE@all-local: all-gtk-doc + +docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) + +$(REPORT_FILES): sgml-build.stamp + +setup-build.stamp: + -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ + files=`echo $(SETUP_FILES) $(DOC_MODULE).types`; \ + if test "x$$files" != "x" ; then \ + for file in $$files ; do \ + destdir=`dirname $(abs_builddir)/$$file`; \ + test -d "$$destdir" || mkdir -p "$$destdir"; \ + test -f $(abs_srcdir)/$$file && \ + cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ + done; \ + fi; \ + fi + $(AM_V_at)touch setup-build.stamp + +scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB) + $(GTK_DOC_V_SCAN)_source_dir='' ; \ + for i in $(DOC_SOURCE_DIR) ; do \ + _source_dir="$${_source_dir} --source-dir=$$i" ; \ + done ; \ + gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) + $(GTK_DOC_V_INTROSPECT)if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ + scanobj_options=""; \ + gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ + if test "$$?" = "0"; then \ + if test "x$(V)" = "x1"; then \ + scanobj_options="--verbose"; \ + fi; \ + fi; \ + CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ + gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ + else \ + for i in $(SCANOBJ_FILES) ; do \ + test -f $$i || touch $$i ; \ + done \ + fi + $(AM_V_at)touch scan-build.stamp + +$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp + @true + +sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent + $(GTK_DOC_V_XML)_source_dir='' ; \ + for i in $(DOC_SOURCE_DIR) ; do \ + _source_dir="$${_source_dir} --source-dir=$$i" ; \ + done ; \ + gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) + $(AM_V_at)touch sgml-build.stamp + +sgml.stamp: sgml-build.stamp + @true + +$(DOC_MAIN_SGML_FILE): sgml-build.stamp + @true + +xml/gtkdocentities.ent: Makefile + $(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + ) > $@ + +html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) + $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \ + mkhtml_options=""; \ + gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ + if test "$$?" = "0"; then \ + if test "x$(V)" = "x1"; then \ + mkhtml_options="$$mkhtml_options --verbose"; \ + fi; \ + fi; \ + gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ + if test "$$?" = "0"; then \ + mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ + fi; \ + cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) + -@test "x$(HTML_IMAGES)" = "x" || \ + for file in $(HTML_IMAGES) ; do \ + test -f $(abs_srcdir)/$$file && cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ + test -f $(abs_builddir)/$$file && cp $(abs_builddir)/$$file $(abs_builddir)/html; \ + done; + $(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) + $(AM_V_at)touch html-build.stamp + +pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) + $(GTK_DOC_V_PDF)rm -f $(DOC_MODULE).pdf && \ + mkpdf_options=""; \ + gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ + if test "$$?" = "0"; then \ + if test "x$(V)" = "x1"; then \ + mkpdf_options="$$mkpdf_options --verbose"; \ + fi; \ + fi; \ + if test "x$(HTML_IMAGES)" != "x"; then \ + for img in $(HTML_IMAGES); do \ + part=`dirname $$img`; \ + echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ + if test $$? != 0; then \ + mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ + fi; \ + done; \ + fi; \ + gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) + $(AM_V_at)touch pdf-build.stamp + +############## + +clean-local: + @rm -f *~ *.bak + @rm -rf .libs + @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \ + rm -f $(DOC_MODULE).types; \ + fi + @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-sections" ; then \ + rm -f $(DOC_MODULE)-sections.txt; \ + fi + +distclean-local: + @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ + $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt + @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ + rm -f $(SETUP_FILES) $(DOC_MODULE).types; \ + fi + +maintainer-clean-local: + @rm -rf xml html + +install-data-local: + @installfiles=`echo $(builddir)/html/*`; \ + if test "$$installfiles" = '$(builddir)/html/*'; \ + then echo 1>&2 'Nothing to install' ; \ + else \ + if test -n "$(DOC_MODULE_VERSION)"; then \ + installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ + else \ + installdir="$(DESTDIR)$(TARGET_DIR)"; \ + fi; \ + $(mkinstalldirs) $${installdir} ; \ + for i in $$installfiles; do \ + echo ' $(INSTALL_DATA) '$$i ; \ + $(INSTALL_DATA) $$i $${installdir}; \ + done; \ + if test -n "$(DOC_MODULE_VERSION)"; then \ + mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ + $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ + fi; \ + $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ + fi + +uninstall-local: + @if test -n "$(DOC_MODULE_VERSION)"; then \ + installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ + else \ + installdir="$(DESTDIR)$(TARGET_DIR)"; \ + fi; \ + rm -rf $${installdir} + +# +# Require gtk-doc when making dist +# +@HAVE_GTK_DOC_TRUE@dist-check-gtkdoc: docs +@HAVE_GTK_DOC_FALSE@dist-check-gtkdoc: +@HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc is needed to run 'make dist'. ***" +@HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc was not found when 'configure' ran. ***" +@HAVE_GTK_DOC_FALSE@ @echo "*** please install gtk-doc and rerun 'configure'. ***" +@HAVE_GTK_DOC_FALSE@ @false + +dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local + @mkdir $(distdir)/html + @cp ./html/* $(distdir)/html + @-cp ./$(DOC_MODULE).pdf $(distdir)/ + @-cp ./$(DOC_MODULE).types $(distdir)/ + @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ + @cd $(distdir) && rm -f $(DISTCLEANFILES) + @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html + +.PHONY : dist-hook-local docs + +# Comment this out if you want your docs-status tested during 'make check' +#TESTS_ENVIRONMENT = cd $(srcsrc) && +#TESTS = $(GTKDOC_CHECK) + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/grilo/environment-setup.xml b/doc/grilo/environment-setup.xml new file mode 100644 index 0000000..b2a90ae --- /dev/null +++ b/doc/grilo/environment-setup.xml @@ -0,0 +1,154 @@ + + +]> + +
+ + + This section provides information on how to configure a proper environment for + building Grilo, as well building and running Grilo based programs. + + +
+ Building Grilo + +
+ Building and installing Grilo + + + You can check the basics of how to build and install Grilo from the + source code repositories in the + Quick start guide. + +
+ +
+ Compilation options + + This is a reference of the most useful compilation switches available: + + + + --enable-gtk-doc: Build documentation + tutorials and API reference. Check doc/ directory for + the generated documentation. Only in grilo core. + + + --enable-debug: Build with debug information. + + + --enable-uninstalled: Prepare for uninstalled use. Only + in grilo-plugins. + + + + + For more options please run './configure --help'. + +
+
+ +
+ Compiling Grilo based programs + + + You can check how to compile Grilo based apps + by checking the + Quick start guide. + +
+ +
+ Running Grilo based programs + + + If you have installed the Grilo libraries in your system + make sure they have been installed in a path that is + included in the dynamic linker search path, otherwise + export the environment variable LD_LIBRARY_PATH to + include them, for example: + + + +$ export LD_LIBRARY_PATH=/usr/local/lib + + + + + For plugins to be visible to application they must be + stored in the default plugin search path. This should be + the case if you are not running Grilo in uninstalled form. + If you are running Grilo uninstalled, or for some reason + you have plugins available in directories other than + the default plugin path, export the GRL_PLUGIN_PATH to + point to the list of directories containing Grilo plugins, + for example: + + + +$ export GRL_PLUGIN_PATH=/usr/local/lib/grilo-0.3 + + +
+ +
+ Debugging with Grilo + + + If you want to debug Grilo itself, make sure you have built it with + --enable-debug (both the framework and the plugins). + + + + You can also control logging by setting the environment variable GRL_DEBUG. + Here are some examples: + + + +# Disable logging for all modules +$ export GRL_DEBUG=*:- + +# Enable full logging for all modules +$ export GRL_DEBUG=*:* + +# Enable logging of messages of level WARNING or higher for all modules +$ export GRL_DEBUG=*:warning + +# Enable logging of messages of level INFO or higher for all modules +$ export GRL_DEBUG=*:info + +# Enable full logging for the plugin registry module +$ export GRL_DEBUG=registry:* + +# Enable full logging for the plugin registry module +# and WARNING or higher for the Youtube plugin +$ export GRL_DEBUG=registry:*,youtube:warning + + + + Programs can also control logging programatically. See the + GrlLog API reference for details. + + + + Plugins can be ranked. Ranks can be used to sort plugins + by rank and also in case of conflict when two plugins offer the same + feature, to decide on the one to use. By default, all the plugins + have the same rank (0). Higher ranks give plugins more relevance / + priority. + + + + Ranks can be controlled with the environment variable GRL_PLUGIN_RANKS. + Here is one example: + + + +# Set the rank of the Youtube plugin to 5 and the Bookmarks plugin to -4 +$ export GRL_PLUGIN_RANKS=youtube:5,bookmarks:-4 + + +
+
diff --git a/doc/grilo/grilo-docs.sgml b/doc/grilo/grilo-docs.sgml new file mode 100644 index 0000000..4879123 --- /dev/null +++ b/doc/grilo/grilo-docs.sgml @@ -0,0 +1,143 @@ + + +]> + + + Grilo Reference Manual + + The latest version of this software can be found on-line at + http://git.gnome.org/browse/grilo + and + http://git.gnome.org/browse/grilo-plugins. + + + + + Overview + + + + + Tutorial + + + Quick start guide + + + + + Environment Setup + + + + + Writing applications with Grilo + + + + + Writing plugins for Grilo +
+
+ Source plugins + +
+
+ Testing your plugins + +
+
+
+
+ + + Object Index + + + + + API Reference + + + + + Plug-in management + + + + + Data sources + + + + + + Capabilities and Options + + + + + + Search in multiple sources + + + + + Configuring plug-ins + + + + + Media data + + + + + + + Misc + + + + + + + + + + + Grilo Libraries + + + To ease the creation of plugins, a library system was created. The most common + functions for a plugin can be found in a library. + + + Grilo provides some standard libraries you can use to create plugins. + + + + Grilo Net Classes + + + + + Grilo Playlist Functions + + + + + + API Index + + + + Index of deprecated API + + + + +
diff --git a/doc/grilo/grilo-overrides.txt b/doc/grilo/grilo-overrides.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/doc/grilo/grilo-overrides.txt diff --git a/doc/grilo/grilo-sections.txt b/doc/grilo/grilo-sections.txt new file mode 100644 index 0000000..89abc55 --- /dev/null +++ b/doc/grilo/grilo-sections.txt @@ -0,0 +1,730 @@ +# Grilo API reference sections + +# please add sections in alphabetical order using the following template +# leave two empty lines between sections +#
+# grl-xxx +# GrlXxx +# typedefs +# macros +# constructor +# methods +# +# +#
+ +grilo.h + +
+grl-plugin +GrlPlugin +GrlPlugin +GrlPluginClass +GRL_PLUGIN_AUTHOR +GRL_PLUGIN_DESCRIPTION +GRL_PLUGIN_LICENSE +GRL_PLUGIN_NAME +GRL_PLUGIN_SITE +GRL_PLUGIN_VERSION +grl_plugin_get_author +grl_plugin_get_description +grl_plugin_get_filename +grl_plugin_get_id +grl_plugin_get_info +grl_plugin_get_info_keys +grl_plugin_get_license +grl_plugin_get_module +grl_plugin_get_name +grl_plugin_get_site +grl_plugin_get_sources +grl_plugin_get_version + +GRL_IS_PLUGIN +GRL_IS_PLUGIN_CLASS +GRL_PLUGIN +GRL_PLUGIN_CLASS +GRL_PLUGIN_GET_CLASS +GRL_TYPE_PLUGIN +grl_plugin_get_type + +GrlPluginPrivate +
+ +
+grl-source +GrlSource +GrlSource +GrlSourceClass +GrlResolutionFlags +GrlSourceBrowseSpec +GrlSourceChangeType +GrlSourceMediaFromUriSpec +GrlSourceQuerySpec +GrlSourceRemoveCb +GrlSourceRemoveSpec +GrlSourceResolveCb +GrlSourceResolveSpec +GrlSourceResultCb +GrlSourceSearchSpec +GrlSourceStoreCb +GrlSourceStoreMetadataSpec +GrlSourceStoreSpec +GrlSupportedOps +GrlWriteFlags +grl_source_browse +grl_source_browse_sync +grl_source_get_auto_split_threshold +grl_source_get_caps +grl_source_get_description +grl_source_get_icon +grl_source_get_id +grl_source_get_media_from_uri +grl_source_get_media_from_uri_sync +grl_source_get_name +grl_source_get_plugin +grl_source_get_rank +grl_source_get_supported_media +grl_source_get_tags +grl_source_may_resolve +grl_source_notify_change +grl_source_notify_change_list +grl_source_notify_change_start +grl_source_notify_change_stop +grl_source_query +grl_source_query_sync +grl_source_remove +grl_source_remove_sync +grl_source_resolve +grl_source_resolve_sync +grl_source_search +grl_source_search_sync +grl_source_set_auto_split_threshold +grl_source_slow_keys +grl_source_store +grl_source_store_metadata +grl_source_store_metadata_sync +grl_source_store_sync +grl_source_supported_keys +grl_source_supported_operations +grl_source_test_media_from_uri +grl_source_writable_keys + +GRL_IS_SOURCE +GRL_IS_SOURCE_CLASS +GRL_SOURCE +GRL_SOURCE_CLASS +GRL_SOURCE_GET_CLASS +GRL_TYPE_SOURCE +grl_source_get_type + +GrlSourcePrivate +
+ +
+grl-caps +GrlCaps +GrlCaps +GrlCapsClass +GrlTypeFilter +grl_caps_new +grl_caps_get_key_filter +grl_caps_get_key_range_filter +grl_caps_get_type_filter +grl_caps_is_key_filter +grl_caps_is_key_range_filter +grl_caps_set_key_filter +grl_caps_set_key_range_filter +grl_caps_set_type_filter +grl_caps_test_option + +GRL_CAPS +GRL_CAPS_TYPE +GRL_CAPS_CLASS +GRL_CAPS_GET_CLASS +GRL_IS_CAPS +GRL_IS_CAPS_CLASS +GRL_TYPE_CAPS +grl_caps_get_type + +GrlCapsPrivate +
+ +
+grl-operation-options +GrlOperationOptions +GrlOperationOptions +GrlOperationOptionsClass +grl_operation_options_new +grl_operation_options_copy +grl_operation_options_get_count +grl_operation_options_get_resolution_flags +grl_operation_options_get_key_filter +grl_operation_options_get_key_filter_list +grl_operation_options_get_key_range_filter +grl_operation_options_get_key_range_filter_list +grl_operation_options_get_skip +grl_operation_options_get_type_filter +grl_operation_options_obey_caps +grl_operation_options_set_count +grl_operation_options_set_resolution_flags +grl_operation_options_set_key_filter_dictionary +grl_operation_options_set_key_filter_value +grl_operation_options_set_key_filters +grl_operation_options_set_key_range_filter +grl_operation_options_set_key_range_filter_value +grl_operation_options_set_skip +grl_operation_options_set_type_filter +GRL_COUNT_INFINITY + +GRL_IS_OPERATION_OPTIONS +GRL_IS_OPERATION_OPTIONS_CLASS +GRL_OPERATION_OPTIONS +GRL_OPERATION_OPTIONS_CLASS +GRL_OPERATION_OPTIONS_GET_CLASS +GRL_TYPE_OPERATION_OPTIONS +grl_operation_options_get_type + +GrlOperationOptionsPrivate +
+ +
+grl-registry +GrlRegistry +GrlRank +GrlRegistry +GrlRegistryClass +GrlPluginDescriptor +GRL_PLUGIN_LIST_VAR +GRL_PLUGIN_PATH_VAR +GRL_PLUGIN_RANKS_VAR +GRL_PLUGIN_REGISTER +grl_registry_add_config +grl_registry_add_config_from_file +grl_registry_add_config_from_resource +grl_registry_add_directory +grl_registry_get_default +grl_registry_get_metadata_keys +grl_registry_get_plugins +grl_registry_get_sources +grl_registry_get_sources_by_operations +grl_registry_load_all_plugins +grl_registry_load_plugin +grl_registry_load_plugin_directory +grl_registry_load_plugin_from_desc +grl_registry_lookup_metadata_key +grl_registry_lookup_metadata_key_desc +grl_registry_lookup_metadata_key_name +grl_registry_lookup_metadata_key_relation +grl_registry_lookup_metadata_key_type +grl_registry_lookup_plugin +grl_registry_lookup_source +grl_registry_metadata_key_validate +grl_registry_register_metadata_key +grl_registry_register_metadata_key_relation +grl_registry_register_source +grl_registry_unload_plugin +grl_registry_unregister_source + +GRL_IS_REGISTRY +GRL_IS_REGISTRY_CLASS +GRL_REGISTRY +GRL_REGISTRY_CLASS +GRL_REGISTRY_GET_CLASS +GRL_TYPE_REGISTRY +grl_registry_get_type + +GrlRegistryPrivate +
+ +
+grl-related-keys +GrlRelatedKeys +GrlRelatedKeys +GrlRelatedKeysClass +grl_related_keys_new +grl_related_keys_new_valist +grl_related_keys_new_with_keys +grl_related_keys_dup +grl_related_keys_get +grl_related_keys_get_binary +grl_related_keys_get_boolean +grl_related_keys_get_boxed +grl_related_keys_get_float +grl_related_keys_get_int +grl_related_keys_get_keys +grl_related_keys_get_string +grl_related_keys_has_key +grl_related_keys_set +grl_related_keys_set_binary +grl_related_keys_set_boolean +grl_related_keys_set_boxed +grl_related_keys_set_float +grl_related_keys_set_int +grl_related_keys_set_string +grl_related_keys_remove + +GRL_IS_RELATED_KEYS +GRL_IS_RELATED_KEYS_CLASS +GRL_RELATED_KEYS +GRL_RELATED_KEYS_CLASS +GRL_RELATED_KEYS_GET_CLASS +GRL_TYPE_RELATED_KEYS +grl_related_keys_get_type + +GrlRelatedKeysPrivate +
+ +
+grl-config +GrlConfig +GrlConfig +GrlConfigClass +GRL_CONFIG_KEY_APIKEY +GRL_CONFIG_KEY_APIKEY_BLOB +GRL_CONFIG_KEY_APISECRET +GRL_CONFIG_KEY_APITOKEN +GRL_CONFIG_KEY_APITOKEN_SECRET +GRL_CONFIG_KEY_PASSWORD +GRL_CONFIG_KEY_PLUGIN +GRL_CONFIG_KEY_SOURCE +GRL_CONFIG_KEY_USERNAME +grl_config_new +grl_config_get_api_key +grl_config_get_api_key_blob +grl_config_get_api_secret +grl_config_get_api_token +grl_config_get_api_token_secret +grl_config_get_binary +grl_config_get_boolean +grl_config_get_float +grl_config_get_int +grl_config_get_password +grl_config_get_plugin +grl_config_get_source +grl_config_get_string +grl_config_get_username +grl_config_has_param +grl_config_set +grl_config_set_api_key +grl_config_set_api_key_blob +grl_config_set_api_secret +grl_config_set_api_token +grl_config_set_api_token_secret +grl_config_set_binary +grl_config_set_boolean +grl_config_set_float +grl_config_set_int +grl_config_set_password +grl_config_set_plugin +grl_config_set_source +grl_config_set_string +grl_config_set_username + +GRL_CONFIG +GRL_CONFIG_CLASS +GRL_CONFIG_GET_CLASS +GRL_IS_CONFIG +GRL_IS_CONFIG_CLASS +GRL_TYPE_CONFIG +grl_config_get_type + +GrlConfigPrivate +
+ +
+grl-media +GrlMedia +GrlMedia +GrlMediaClass +GrlMediaSerializeType +GrlMediaType +grl_media_new +grl_media_audio_new +grl_media_image_new +grl_media_video_new +grl_media_container_new +grl_media_is_audio +grl_media_is_image +grl_media_is_video +grl_media_is_container +grl_media_add_artist +grl_media_add_author +grl_media_add_director +grl_media_add_external_player +grl_media_add_external_url +grl_media_add_genre +grl_media_add_keyword +grl_media_add_lyrics +grl_media_add_mb_artist_id +grl_media_add_performer +grl_media_add_producer +grl_media_add_region_data +grl_media_add_thumbnail +grl_media_add_thumbnail_binary +grl_media_add_url_data +grl_media_get_album +grl_media_get_artist +grl_media_get_artist_nth +grl_media_get_author +grl_media_get_author_nth +grl_media_get_bitrate +grl_media_get_camera_model +grl_media_get_certificate +grl_media_get_childcount +grl_media_get_creation_date +grl_media_get_description +grl_media_get_director +grl_media_get_director_nth +grl_media_get_duration +grl_media_get_episode +grl_media_get_episode_title +grl_media_get_exposure_time +grl_media_get_favourite +grl_media_get_flash_used +grl_media_get_framerate +grl_media_get_genre +grl_media_get_genre_nth +grl_media_get_height +grl_media_get_external_url +grl_media_get_external_url_nth +grl_media_get_id +grl_media_get_iso_speed +grl_media_get_keyword +grl_media_get_keyword_nth +grl_media_get_last_played +grl_media_get_last_position +grl_media_get_license +grl_media_get_mb_album_id +grl_media_get_mb_artist_id +grl_media_get_mb_artist_id_nth +grl_media_get_mb_recording_id +grl_media_get_mb_track_id +grl_media_get_mime +grl_media_get_modification_date +grl_media_get_orientation +grl_media_get_original_title +grl_media_get_performer +grl_media_get_performer_nth +grl_media_get_producer +grl_media_get_producer_nth +grl_media_get_play_count +grl_media_get_player +grl_media_get_player_nth +grl_media_get_publication_date +grl_media_get_rating +grl_media_get_region +grl_media_get_region_data +grl_media_get_region_data_nth +grl_media_get_season +grl_media_get_show +grl_media_get_site +grl_media_get_source +grl_media_get_start_time +grl_media_get_studio +grl_media_get_thumbnail +grl_media_get_thumbnail_binary +grl_media_get_thumbnail_binary_nth +grl_media_get_thumbnail_nth +grl_media_get_track_number +grl_media_get_title +grl_media_get_url +grl_media_get_url_data +grl_media_get_url_data_nth +grl_media_get_size +grl_media_get_width +grl_media_serialize +grl_media_serialize_extended +grl_media_set_album +grl_media_set_artist +grl_media_set_author +grl_media_set_bitrate +grl_media_set_camera_model +grl_media_set_certificate +grl_media_set_childcount +grl_media_set_creation_date +grl_media_set_description +grl_media_set_director +grl_media_set_duration +grl_media_set_episode +grl_media_set_episode_title +grl_media_set_exposure_time +grl_media_set_external_player +grl_media_set_external_url +grl_media_set_favourite +grl_media_set_flash_used +grl_media_set_framerate +grl_media_set_genre +grl_media_set_height +grl_media_set_id +grl_media_set_iso_speed +grl_media_set_keyword +grl_media_set_last_played +grl_media_set_last_position +grl_media_set_license +grl_media_set_lyrics +grl_media_set_mb_album_id +grl_media_set_mb_artist_id +grl_media_set_mb_recording_id +grl_media_set_mb_track_id +grl_media_set_mime +grl_media_set_modification_date +grl_media_set_original_title +grl_media_set_orientation +grl_media_set_performer +grl_media_set_producer +grl_media_set_play_count +grl_media_set_publication_date +grl_media_set_rating +grl_media_set_region +grl_media_set_region_data +grl_media_set_season +grl_media_set_show +grl_media_set_site +grl_media_set_source +grl_media_set_studio +grl_media_set_thumbnail +grl_media_set_thumbnail_binary +grl_media_set_title +grl_media_set_track_number +grl_media_set_url +grl_media_set_url_data +grl_media_set_size +grl_media_set_width +grl_media_unserialize + +GRL_IS_MEDIA +GRL_IS_MEDIA_CLASS +GRL_MEDIA +GRL_MEDIA_CLASS +GRL_MEDIA_GET_CLASS +GRL_TYPE_MEDIA +grl_media_get_type +
+ +
+grl-data +GrlData +GrlData +GrlDataClass +grl_data_new +grl_data_add_binary +grl_data_add_boxed +grl_data_add_float +grl_data_add_int +grl_data_add_related_keys +grl_data_add_string +grl_data_dup +grl_data_get +grl_data_get_binary +grl_data_get_boolean +grl_data_get_boxed +grl_data_get_float +grl_data_get_int +grl_data_get_keys +grl_data_get_related_keys +grl_data_get_single_values_for_key +grl_data_get_single_values_for_key_string +grl_data_get_string +grl_data_has_key +grl_data_length +grl_data_remove +grl_data_remove_nth +grl_data_set +grl_data_set_binary +grl_data_set_boolean +grl_data_set_boxed +grl_data_set_float +grl_data_set_int +grl_data_set_related_keys +grl_data_set_string + +GRL_DATA +GRL_DATA_CLASS +GRL_DATA_GET_CLASS +GRL_IS_DATA +GRL_IS_DATA_CLASS +GRL_TYPE_DATA +grl_data_get_type + +GrlDataPrivate +
+ +
+grl-metadata-key +GrlKeyID +GRLKEYID_TO_POINTER +GRLPOINTER_TO_KEYID +GRL_KEYID_FORMAT +GRL_METADATA_KEY_GET_DESC +GRL_METADATA_KEY_GET_ID +GRL_METADATA_KEY_GET_NAME +GRL_METADATA_KEY_GET_TYPE +GRL_METADATA_KEY_ALBUM +GRL_METADATA_KEY_ARTIST +GRL_METADATA_KEY_AUTHOR +GRL_METADATA_KEY_BITRATE +GRL_METADATA_KEY_CAMERA_MODEL +GRL_METADATA_KEY_CERTIFICATE +GRL_METADATA_KEY_CHILDCOUNT +GRL_METADATA_KEY_CREATION_DATE +GRL_METADATA_KEY_DESCRIPTION +GRL_METADATA_KEY_DIRECTOR +GRL_METADATA_KEY_DURATION +GRL_METADATA_KEY_EPISODE +GRL_METADATA_KEY_EPISODE_TITLE +GRL_METADATA_KEY_EXPOSURE_TIME +GRL_METADATA_KEY_EXTERNAL_PLAYER +GRL_METADATA_KEY_EXTERNAL_URL +GRL_METADATA_KEY_FAVOURITE +GRL_METADATA_KEY_FLASH_USED +GRL_METADATA_KEY_FRAMERATE +GRL_METADATA_KEY_GENRE +GRL_METADATA_KEY_HEIGHT +GRL_METADATA_KEY_ID +GRL_METADATA_KEY_INVALID +GRL_METADATA_KEY_ISO_SPEED +GRL_METADATA_KEY_KEYWORD +GRL_METADATA_KEY_LAST_PLAYED +GRL_METADATA_KEY_LAST_POSITION +GRL_METADATA_KEY_LICENSE +GRL_METADATA_KEY_LYRICS +GRL_METADATA_KEY_MB_ALBUM_ID +GRL_METADATA_KEY_MB_ARTIST_ID +GRL_METADATA_KEY_MB_RECORDING_ID +GRL_METADATA_KEY_MB_TRACK_ID +GRL_METADATA_KEY_MIME +GRL_METADATA_KEY_MODIFICATION_DATE +GRL_METADATA_KEY_ORIENTATION +GRL_METADATA_KEY_ORIGINAL_TITLE +GRL_METADATA_KEY_PERFORMER +GRL_METADATA_KEY_PLAY_COUNT +GRL_METADATA_KEY_PRODUCER +GRL_METADATA_KEY_PUBLICATION_DATE +GRL_METADATA_KEY_RATING +GRL_METADATA_KEY_REGION +GRL_METADATA_KEY_SEASON +GRL_METADATA_KEY_SHOW +GRL_METADATA_KEY_SITE +GRL_METADATA_KEY_SOURCE +GRL_METADATA_KEY_START_TIME +GRL_METADATA_KEY_STUDIO +GRL_METADATA_KEY_THUMBNAIL +GRL_METADATA_KEY_THUMBNAIL_BINARY +GRL_METADATA_KEY_TITLE +GRL_METADATA_KEY_TRACK_NUMBER +GRL_METADATA_KEY_URL +GRL_METADATA_KEY_WIDTH +grl_metadata_key_get_desc +grl_metadata_key_get_name +grl_metadata_key_get_type +grl_metadata_key_list_new +
+ +
+grl-util +grl_date_time_from_iso8601 +grl_list_from_va +grl_paging_translate +
+ +
+grilo +grl_init +grl_init_get_option_group +grl_deinit +
+ +
+grl-definitions +GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN +GRL_SOURCE_REMAINING_UNKNOWN + +GRL_PADDING +GRL_PADDING_SMALL +
+ +
+grl-multiple +Multiple +grl_multiple_get_media_from_uri +grl_multiple_search +grl_multiple_search_sync +
+ +
+grl-operation +grl_operation_cancel +grl_operation_get_data +grl_operation_set_data +grl_operation_set_data_full +
+ +
+grl-log +GrlLogDomain +GrlLogLevel +GRL_LOG +GRL_LOG_DOMAIN +GRL_LOG_DOMAIN_DEFAULT +GRL_LOG_DOMAIN_EXTERN +GRL_LOG_DOMAIN_FREE +GRL_LOG_DOMAIN_INIT +GRL_LOG_DOMAIN_STATIC +GRL_DEBUG +GRL_ERROR +GRL_INFO +GRL_MESSAGE +GRL_WARNING +grl_log +grl_log_configure +grl_log_domain_free +grl_log_domain_new +
+ +
+grl-error +GrlCoreError +GRL_CORE_ERROR +
+ +
+grl-net-wc +GrlNetWc +GrlNetWc +GrlNetWcClass +GrlNetWcError +GRL_NET_WC_ERROR +grl_net_wc_new +grl_net_wc_error_quark +grl_net_wc_flush_delayed_requests +grl_net_wc_request_async +grl_net_wc_request_finish +grl_net_wc_request_with_headers_async +grl_net_wc_request_with_headers_hash_async +grl_net_wc_set_cache +grl_net_wc_set_cache_size +grl_net_wc_set_log_level +grl_net_wc_set_throttling + +GRL_IS_NET_WC +GRL_IS_NET_WC_CLASS +GRL_NET_WC +GRL_NET_WC_CLASS +GRL_NET_WC_GET_CLASS +GRL_TYPE_NET_WC +grl_net_wc_get_type + +GrlNetWcPrivate +
+ +
+grl-pls +GrlPls +GrlPlsFilterFunc +grl_pls_media_is_playlist +grl_pls_browse +grl_pls_browse_sync +grl_pls_browse_by_spec +grl_pls_file_to_media +grl_pls_get_file_attributes +
diff --git a/doc/grilo/html/GrlCaps.html b/doc/grilo/html/GrlCaps.html new file mode 100644 index 0000000..db8716a --- /dev/null +++ b/doc/grilo/html/GrlCaps.html @@ -0,0 +1,594 @@ + + + + +GrlCaps: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlCaps

+

GrlCaps — Describes the capabilities of a source for a given +operation.

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlCaps * + +grl_caps_new () +
+GList * + +grl_caps_get_key_filter () +
+GList * + +grl_caps_get_key_range_filter () +
+GrlTypeFilter + +grl_caps_get_type_filter () +
+gboolean + +grl_caps_is_key_filter () +
+gboolean + +grl_caps_is_key_range_filter () +
+void + +grl_caps_set_key_filter () +
+void + +grl_caps_set_key_range_filter () +
+void + +grl_caps_set_type_filter () +
+gboolean + +grl_caps_test_option () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + +
 GrlCaps
 GrlCapsClass
enumGrlTypeFilter
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlCaps
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

A GrlCaps instance is here to help you know if a given set of operation +options is supported for a given operation.

+

Here is an example of how this would be used.

+
+ + + + + + + +
1
+2
+3
+4
+5
+6
+7
GrlCaps *caps = grl_source_get_caps (GRL_SOURCE (my_source),
+                                     GRL_OP_SEARCH);
+GrlOperationOptions *supported_options;
+if (grl_operation_options_obey_caps (my_options, caps, &supported_options, NULL))
+  grl_media_source_search (my_source, "blah", interesting_keys, my_options, ...);
+else // only use a subset of the options we wanted to pass
+  grl_media_source_search (my_source, "blah", interesting_keys, supported_options, ...);
+
+ +

+

A GrlCaps can also be passed to grl_operation_options_new(). The created +GrlOperationOptions instance would then check any change against its caps.

+
+
+

Functions

+
+

grl_caps_new ()

+
GrlCaps *
+grl_caps_new (void);
+

Creates a new caps object.

+
+

Returns

+

a new caps object.

+
+

Since: 0.2.0

+
+
+
+

grl_caps_get_key_filter ()

+
GList *
+grl_caps_get_key_filter (GrlCaps *caps);
+
+

Parameters

+
+++++ + + + + + +

caps

a GrlCaps instance

 
+
+
+

Returns

+

.

+

[transfer none][element-type GrlKeyID]

+
+

Since: 0.2.0

+
+
+
+

grl_caps_get_key_range_filter ()

+
GList *
+grl_caps_get_key_range_filter (GrlCaps *caps);
+
+

Parameters

+
+++++ + + + + + +

caps

a GrlCaps instance

 
+
+
+

Returns

+

.

+

[transfer none][element-type GrlKeyID]

+
+

Since: 0.2.0

+
+
+
+

grl_caps_get_type_filter ()

+
GrlTypeFilter
+grl_caps_get_type_filter (GrlCaps *caps);
+
+

Parameters

+
+++++ + + + + + +

caps

a GrlCaps instance

 
+
+
+

Returns

+

the supported GrlTypeFilter

+
+

Since: 0.2.0

+
+
+
+

grl_caps_is_key_filter ()

+
gboolean
+grl_caps_is_key_filter (GrlCaps *caps,
+                        GrlKeyID key);
+

Checks if key + is supported for filtering in caps +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

caps

a GrlCaps instance

 

key

a GrlKeyID

 
+
+
+

Returns

+

TRUE if key +can be used for filtering

+
+

Since: 0.2.0

+
+
+
+

grl_caps_is_key_range_filter ()

+
gboolean
+grl_caps_is_key_range_filter (GrlCaps *caps,
+                              GrlKeyID key);
+

Checks if key + is supported for filtering by range in caps +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

caps

a grlCaps instance

 

key

a GrlKeyID

 
+
+
+

Returns

+

TRUE if key +can be used for filtering

+
+

Since: 0.2.0

+
+
+
+

grl_caps_set_key_filter ()

+
void
+grl_caps_set_key_filter (GrlCaps *caps,
+                         GList *keys);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

caps

a GrlCaps instance

 

keys

.

[transfer none][element-type GrlKeyID]
+
+

Since: 0.2.0

+
+
+
+

grl_caps_set_key_range_filter ()

+
void
+grl_caps_set_key_range_filter (GrlCaps *caps,
+                               GList *keys);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

caps

a GrlCaps instance

 

keys

.

[transfer none][element-type GrlKeyID]
+
+

Since: 0.2.0

+
+
+
+

grl_caps_set_type_filter ()

+
void
+grl_caps_set_type_filter (GrlCaps *caps,
+                          GrlTypeFilter filter);
+

Sets the supported filter capability.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

caps

a GrlCaps instance

 

filter

a GrlTypeFilter

 
+
+

Since: 0.2.0

+
+
+
+

grl_caps_test_option ()

+
gboolean
+grl_caps_test_option (GrlCaps *caps,
+                      const gchar *key,
+                      const GValue *value);
+

Checks whether (key +, value +) are authorized by caps +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

caps

a GrlCaps instance

 

key

a key to test

 

value

the value corresponding to key +to test against caps +

 
+
+
+

Returns

+

TRUE if (key +, value +) obey to caps +, FALSE otherwise.

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+

GrlCaps

+
typedef struct _GrlCaps GrlCaps;
+
+
+
+

GrlCapsClass

+
typedef struct {
+  GObjectClass parent;
+} GrlCapsClass;
+
+

Grilo Capabilities class.

+
+

Members

+
+++++ + + + + + +

GObjectClass parent;

the parent class structure

 
+
+
+
+
+

enum GrlTypeFilter

+

Type of media to allow.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_TYPE_FILTER_NONE

+

allow no content (only containers)

+
 

GRL_TYPE_FILTER_AUDIO

+

allow audio content

+
 

GRL_TYPE_FILTER_VIDEO

+

allow video content

+
 

GRL_TYPE_FILTER_IMAGE

+

allow image content

+
 

GRL_TYPE_FILTER_ALL

+

allow any type of content

+
 
+
+
+
+ +
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlConfig.html b/doc/grilo/html/GrlConfig.html new file mode 100644 index 0000000..72a01b9 --- /dev/null +++ b/doc/grilo/html/GrlConfig.html @@ -0,0 +1,1487 @@ + + + + +GrlConfig: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlConfig

+

GrlConfig — Configuration data storage

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlConfig * + +grl_config_new () +
+gchar * + +grl_config_get_api_key () +
+guint8 * + +grl_config_get_api_key_blob () +
+gchar * + +grl_config_get_api_secret () +
+gchar * + +grl_config_get_api_token () +
+gchar * + +grl_config_get_api_token_secret () +
+guint8 * + +grl_config_get_binary () +
+gboolean + +grl_config_get_boolean () +
+gfloat + +grl_config_get_float () +
+gint + +grl_config_get_int () +
+gchar * + +grl_config_get_password () +
+gchar * + +grl_config_get_plugin () +
+gchar * + +grl_config_get_source () +
+gchar * + +grl_config_get_string () +
+gchar * + +grl_config_get_username () +
+gboolean + +grl_config_has_param () +
+void + +grl_config_set () +
+void + +grl_config_set_api_key () +
+void + +grl_config_set_api_key_blob () +
+void + +grl_config_set_api_secret () +
+void + +grl_config_set_api_token () +
+void + +grl_config_set_api_token_secret () +
+void + +grl_config_set_binary () +
+void + +grl_config_set_boolean () +
+void + +grl_config_set_float () +
+void + +grl_config_set_int () +
+void + +grl_config_set_password () +
+void + +grl_config_set_plugin () +
+void + +grl_config_set_source () +
+void + +grl_config_set_string () +
+void + +grl_config_set_username () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
structGrlConfig
structGrlConfigClass
#defineGRL_CONFIG_KEY_APIKEY
#defineGRL_CONFIG_KEY_APIKEY_BLOB
#defineGRL_CONFIG_KEY_APISECRET
#defineGRL_CONFIG_KEY_APITOKEN
#defineGRL_CONFIG_KEY_APITOKEN_SECRET
#defineGRL_CONFIG_KEY_PASSWORD
#defineGRL_CONFIG_KEY_PLUGIN
#defineGRL_CONFIG_KEY_SOURCE
#defineGRL_CONFIG_KEY_USERNAME
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlConfig
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

This class is used to configure plugins during a session.

+

Pre-defined settings are read from plugin specific configuration files. +The settings can be changed to properly setup the session, but are not +persistent. Changes are local to each GrlConfig instance.

+
+
+

Functions

+
+

grl_config_new ()

+
GrlConfig *
+grl_config_new (const gchar *plugin,
+                const gchar *source);
+

Creates a new data config object that will be associated with a plugin +(if source + is NULL), or a specific source spawned from a plugin (if +source + is not NULL). The latter may be useful for plugins +spawning various sources, each one needing a different configuration.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

plugin

plugin id for this configuration

 

source

source id for this configuration.

[allow-none]
+
+
+

Returns

+

a newly-allocated data config. The data +config associated with the plugin should not be freed until the plugin +has been unloaded.

+

[transfer none]

+
+

Since: 0.1.4

+
+
+
+

grl_config_get_api_key ()

+
gchar *
+grl_config_get_api_key (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the webservice API key

+
+

Since: 0.1.4

+
+
+
+

grl_config_get_api_key_blob ()

+
guint8 *
+grl_config_get_api_key_blob (GrlConfig *config,
+                             gsize *size);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

size

pointer to size of data

 
+
+
+

Returns

+

the binary API key, size will reflect the size of the buffer

+
+

Since: 0.1.9

+
+
+
+

grl_config_get_api_secret ()

+
gchar *
+grl_config_get_api_secret (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the webservice API passphrase

+
+

Since: 0.1.4

+
+
+
+

grl_config_get_api_token ()

+
gchar *
+grl_config_get_api_token (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the webservice API token

+
+

Since: 0.1.4

+
+
+
+

grl_config_get_api_token_secret ()

+
gchar *
+grl_config_get_api_token_secret (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the webservice API token secret +(Needed by OAuth)

+
+

Since: 0.2.6

+
+
+
+

grl_config_get_binary ()

+
guint8 *
+grl_config_get_binary (GrlConfig *config,
+                       const gchar *param,
+                       gsize *size);
+

Gets the value of param + encoded as base64. If size + is not NULL, it puts +there the size of the value.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

a binary type parameter

 

size

place for size of value.

[allow-none]
+
+
+

Returns

+

param +value

+
+

Since: 0.1.9

+
+
+
+

grl_config_get_boolean ()

+
gboolean
+grl_config_get_boolean (GrlConfig *config,
+                        const gchar *param);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

param

a boolean type parameter

 
+
+
+

Returns

+

param +value

+
+

Since: 0.1.8

+
+
+
+

grl_config_get_float ()

+
gfloat
+grl_config_get_float (GrlConfig *config,
+                      const gchar *param);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

param

a float type parameter

 
+
+
+

Returns

+

param +value

+
+

Since: 0.1.5

+
+
+
+

grl_config_get_int ()

+
gint
+grl_config_get_int (GrlConfig *config,
+                    const gchar *param);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

param

an integer type parameter

 
+
+
+

Returns

+

param +value

+
+

Since: 0.1.5

+
+
+
+

grl_config_get_password ()

+
gchar *
+grl_config_get_password (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the password

+
+

Since: 0.1.8

+
+
+
+

grl_config_get_plugin ()

+
gchar *
+grl_config_get_plugin (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the plugin id

+
+

Since: 0.1.4

+
+
+
+

grl_config_get_source ()

+
gchar *
+grl_config_get_source (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the source id

+
+
+
+
+

grl_config_get_string ()

+
gchar *
+grl_config_get_string (GrlConfig *config,
+                       const gchar *param);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

param

a string type paramter

 
+
+
+

Returns

+

param +value

+
+

Since: 0.1.5

+
+
+
+

grl_config_get_username ()

+
gchar *
+grl_config_get_username (GrlConfig *config);
+
+

Parameters

+
+++++ + + + + + +

config

the config instance

 
+
+
+

Returns

+

the username

+
+

Since: 0.1.8

+
+
+
+

grl_config_has_param ()

+
gboolean
+grl_config_has_param (GrlConfig *config,
+                      const gchar *param);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

param

the param

 
+
+
+

Returns

+

TRUE if params +has a defined value within config +, FALSE +otherwise.

+
+

Since: 0.1.8

+
+
+
+

grl_config_set ()

+
void
+grl_config_set (GrlConfig *config,
+                const gchar *param,
+                const GValue *value);
+

Set param + value +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

a parameter

 

value

value

 
+
+

Since: 0.1.5

+
+
+
+

grl_config_set_api_key ()

+
void
+grl_config_set_api_key (GrlConfig *config,
+                        const gchar *key);
+

Set the webservice API key in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

key

the API key

 
+
+

Since: 0.1.4

+
+
+
+

grl_config_set_api_key_blob ()

+
void
+grl_config_set_api_key_blob (GrlConfig *config,
+                             const guint8 *blob,
+                             gsize size);
+

Set the binary API key in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

blob

the binary API key blob

 

size

the size of the blob

 
+
+

Since: 0.1.9

+
+
+
+

grl_config_set_api_secret ()

+
void
+grl_config_set_api_secret (GrlConfig *config,
+                           const gchar *secret);
+

Set the webservice passphrase in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

secret

the webservice passphrase

 
+
+

Since: 0.1.4

+
+
+
+

grl_config_set_api_token ()

+
void
+grl_config_set_api_token (GrlConfig *config,
+                          const gchar *token);
+

Set the webservice API token in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

token

the API token

 
+
+

Since: 0.1.4

+
+
+
+

grl_config_set_api_token_secret ()

+
void
+grl_config_set_api_token_secret (GrlConfig *config,
+                                 const gchar *secret);
+

Set the webservice API token secret in the configuration +(Needed by OAuth)

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

secret

the API token

 
+
+

Since: 0.2.6

+
+
+
+

grl_config_set_binary ()

+
void
+grl_config_set_binary (GrlConfig *config,
+                       const gchar *param,
+                       const guint8 *blob,
+                       gsize size);
+

Set param + value.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

a binary type parameter

 

blob

a base64 encoded binary value

 

size

size of value +

 
+
+

Since: 0.1.9

+
+
+
+

grl_config_set_boolean ()

+
void
+grl_config_set_boolean (GrlConfig *config,
+                        const gchar *param,
+                        gboolean value);
+

Set param + value +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

a boolean type parameter

 

value

a value

 
+
+

Since: 0.1.8

+
+
+
+

grl_config_set_float ()

+
void
+grl_config_set_float (GrlConfig *config,
+                      const gchar *param,
+                      gfloat value);
+

Set param + value +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

a float type parameter

 

value

a value

 
+
+

Since: 0.1.5

+
+
+
+

grl_config_set_int ()

+
void
+grl_config_set_int (GrlConfig *config,
+                    const gchar *param,
+                    gint value);
+

Set param + value +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

an integer type parameter

 

value

a value

 
+
+

Since: 0.1.5

+
+
+
+

grl_config_set_password ()

+
void
+grl_config_set_password (GrlConfig *config,
+                         const gchar *password);
+

Set the password in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

password

the password

 
+
+

Since: 0.1.8

+
+
+
+

grl_config_set_plugin ()

+
void
+grl_config_set_plugin (GrlConfig *config,
+                       const gchar *plugin);
+

Set the plugin key in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

plugin

the plugin id

 
+
+

Since: 0.1.4

+
+
+
+

grl_config_set_source ()

+
void
+grl_config_set_source (GrlConfig *config,
+                       const gchar *source);
+

Set the source key in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

source

the source id

 
+
+

Since: 0.1.4

+
+
+
+

grl_config_set_string ()

+
void
+grl_config_set_string (GrlConfig *config,
+                       const gchar *param,
+                       const gchar *value);
+

Set param + value +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

config

the config instance

 

param

a string type parameter

 

value

a value

 
+
+

Since: 0.1.5

+
+
+
+

grl_config_set_username ()

+
void
+grl_config_set_username (GrlConfig *config,
+                         const gchar *username);
+

Set the username in the configuration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

config

the config instance

 

username

the username

 
+
+

Since: 0.1.8

+
+
+
+

Types and Values

+
+

struct GrlConfig

+
struct GrlConfig;
+
+
+
+

struct GrlConfigClass

+
struct GrlConfigClass {
+  GObjectClass parent_class;
+};
+
+

Grilo Config Class

+
+

Members

+
+++++ + +
+
+
+
+
+

GRL_CONFIG_KEY_APIKEY

+
#define GRL_CONFIG_KEY_APIKEY            "api-key"
+
+
+
+
+

GRL_CONFIG_KEY_APIKEY_BLOB

+
#define GRL_CONFIG_KEY_APIKEY_BLOB       "api-key-blob"
+
+
+
+
+

GRL_CONFIG_KEY_APISECRET

+
#define GRL_CONFIG_KEY_APISECRET         "api-secret"
+
+
+
+
+

GRL_CONFIG_KEY_APITOKEN

+
#define GRL_CONFIG_KEY_APITOKEN          "api-token"
+
+
+
+
+

GRL_CONFIG_KEY_APITOKEN_SECRET

+
#define GRL_CONFIG_KEY_APITOKEN_SECRET   "api-token-secret"
+
+
+
+
+

GRL_CONFIG_KEY_PASSWORD

+
#define GRL_CONFIG_KEY_PASSWORD          "password"
+
+
+
+
+

GRL_CONFIG_KEY_PLUGIN

+
#define GRL_CONFIG_KEY_PLUGIN            "target-plugin"
+
+
+
+
+

GRL_CONFIG_KEY_SOURCE

+
#define GRL_CONFIG_KEY_SOURCE            "target-source"
+
+
+
+
+

GRL_CONFIG_KEY_USERNAME

+
#define GRL_CONFIG_KEY_USERNAME          "username"
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlData.html b/doc/grilo/html/GrlData.html new file mode 100644 index 0000000..7f43435 --- /dev/null +++ b/doc/grilo/html/GrlData.html @@ -0,0 +1,1616 @@ + + + + +GrlData: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlData

+

GrlData — Low-level class for storing metadata information about +media resources provided by GrlSource objects.

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlData * + +grl_data_new () +
+void + +grl_data_add_binary () +
+void + +grl_data_add_boxed () +
+void + +grl_data_add_float () +
+void + +grl_data_add_int () +
+void + +grl_data_add_related_keys () +
+void + +grl_data_add_string () +
+GrlData * + +grl_data_dup () +
const GValue * + +grl_data_get () +
const guint8 * + +grl_data_get_binary () +
+gboolean + +grl_data_get_boolean () +
+gpointer + +grl_data_get_boxed () +
+gfloat + +grl_data_get_float () +
+gint + +grl_data_get_int () +
+GList * + +grl_data_get_keys () +
+GrlRelatedKeys * + +grl_data_get_related_keys () +
+GList * + +grl_data_get_single_values_for_key () +
+GList * + +grl_data_get_single_values_for_key_string () +
const gchar * + +grl_data_get_string () +
+gboolean + +grl_data_has_key () +
+guint + +grl_data_length () +
+void + +grl_data_remove () +
+void + +grl_data_remove_nth () +
+void + +grl_data_set () +
+void + +grl_data_set_binary () +
+void + +grl_data_set_boolean () +
+void + +grl_data_set_boxed () +
+void + +grl_data_set_float () +
+void + +grl_data_set_int () +
+void + +grl_data_set_related_keys () +
+void + +grl_data_set_string () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + +
structGrlData
structGrlDataClass
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlData
+        ╰── GrlMedia
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

This class acts as a generic metadata dictionary where metadata keys and +their values can be stored. Usually, application and plugin developers would +interact with specific subclass of GrlData, GrlMedia, which provide +specific API to manipulate well known attributes of these media types.

+
+
+

Functions

+
+

grl_data_new ()

+
GrlData *
+grl_data_new (void);
+

Creates a new data object.

+
+

Returns

+

a new data object.

+
+

Since: 0.1.4

+
+
+
+

grl_data_add_binary ()

+
void
+grl_data_add_binary (GrlData *data,
+                     GrlKeyID key,
+                     const guint8 *buf,
+                     gsize size);
+

Appends a new binary value for key + in data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

data

data to append

 

key

key to append.

[type GrlKeyID]

buf

the buffer containing the new value

 

size

size of buffer

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_add_boxed ()

+
void
+grl_data_add_boxed (GrlData *data,
+                    GrlKeyID key,
+                    gconstpointer boxed);
+

Appends a new boxed value for key + in data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to append

 

key

key to append.

[type GrlKeyID]

boxed

the new value

 
+
+

Since: 0.2.0

+
+
+
+

grl_data_add_float ()

+
void
+grl_data_add_float (GrlData *data,
+                    GrlKeyID key,
+                    gfloat floatvalue);
+

Appends a new float value for key + in data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to append

 

key

key to append.

[type GrlKeyID]

floatvalue

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_add_int ()

+
void
+grl_data_add_int (GrlData *data,
+                  GrlKeyID key,
+                  gint intvalue);
+

Appends a new int value for key + in data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to append

 

key

key to append.

[type GrlKeyID]

intvalue

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_add_related_keys ()

+
void
+grl_data_add_related_keys (GrlData *data,
+                           GrlRelatedKeys *relkeys);
+

Adds a new set of values into data +.

+

All keys in prop + must be related among them.

+

data + will take the ownership of relkeys +, so do not modify it.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to change

 

relkeys

a set of related properties with their values

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_add_string ()

+
void
+grl_data_add_string (GrlData *data,
+                     GrlKeyID key,
+                     const gchar *strvalue);
+

Appends a new string value for key + in data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to append

 

key

key to append.

[type GrlKeyID]

strvalue

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_dup ()

+
GrlData *
+grl_data_dup (GrlData *data);
+

Makes a deep copy of data + and all its contents.

+
+

Parameters

+
+++++ + + + + + +

data

data to duplicate

 
+
+
+

Returns

+

a new GrlData. Free it with g_object_unref.

+

[transfer full]

+
+

Since: 0.1.10

+
+
+
+

grl_data_get ()

+
const GValue *
+grl_data_get (GrlData *data,
+              GrlKeyID key);
+

Get the first value from data + associated with key +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to retrieve value

 

key

key to look up.

[type GrlKeyID]
+
+
+

Returns

+

a GValue. This value should not be modified nor +freed by user.

+

[transfer none]

+
+

Since: 0.1.4

+
+
+
+

grl_data_get_binary ()

+
const guint8 *
+grl_data_get_binary (GrlData *data,
+                     GrlKeyID key,
+                     gsize *size);
+

Returns the first binary value associated with key + from data +. If key + has +no first value, or value is not a gfloat, or key + is not in data, then NULL +is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to inspect

 

key

key to use.

[type GrlKeyID]

size

location to store the buffer size.

[out]
+
+
+

Returns

+

buffer location associated with the key +, or NULL in other case. If +successful size +will be set the to the buffer size.

+
+

Since: 0.1.9

+
+
+
+

grl_data_get_boolean ()

+
gboolean
+grl_data_get_boolean (GrlData *data,
+                      GrlKeyID key);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

the first boolean value associated with key +from data +. If key +has +no first value, or value is not a gboolean, or key +is not in the data, then +FALSE is returned

+
+

Since: 0.2.3

+
+
+
+

grl_data_get_boxed ()

+
gpointer
+grl_data_get_boxed (GrlData *data,
+                    GrlKeyID key);
+

Returns the first boxed value associated with key + from data +. If key + has +no first value, that value is not of a boxed type, or key + is not in data +, +then NULL is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

the boxed instance associated with key +if +possible, or NULL in other cases. The caller should not change nor free the +value.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_data_get_float ()

+
gfloat
+grl_data_get_float (GrlData *data,
+                    GrlKeyID key);
+

Returns the first float value associated with key + from data +. If key + has no +first value, or value is not a gfloat, or key + is not in data, then 0 is +returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

float value associated with key +, or 0 in other case.

+
+

Since: 0.1.5

+
+
+
+

grl_data_get_int ()

+
gint
+grl_data_get_int (GrlData *data,
+                  GrlKeyID key);
+

Returns the first int value associated with key + from data +. If key + has no +first value, or value is not a gint, or key + is not in data, then 0 is +returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

int value associated with key +, or 0 in other case.

+
+

Since: 0.1.4

+
+
+
+

grl_data_get_keys ()

+
GList *
+grl_data_get_keys (GrlData *data);
+

Returns a list with keys contained in data +.

+
+

Parameters

+
+++++ + + + + + +

data

data to inspect

 
+
+
+

Returns

+

an array with the +keys. The content of the list should not be modified or freed. Use +g_list_free() when done using the list.

+

[transfer container][element-type GrlKeyID]

+
+

Since: 0.1.4

+
+
+
+

grl_data_get_related_keys ()

+
GrlRelatedKeys *
+grl_data_get_related_keys (GrlData *data,
+                           GrlKeyID key,
+                           guint index);
+

Returns a set containing the values for key + and related keys at position +index + from data +.

+

If user changes any of the values in the related keys, the changes will +become permanent.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

a data

 

key

a metadata key

 

index

element to retrieve, starting at 0

 
+
+
+

Returns

+

a GrlRelatedKeys. Do not free it.

+

[transfer none]

+
+

Since: 0.1.10

+
+
+
+

grl_data_get_single_values_for_key ()

+
GList *
+grl_data_get_single_values_for_key (GrlData *data,
+                                    GrlKeyID key);
+

Returns all non-NULL values for key + from data +. This ignores related keys.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

a data

 

key

a metadata key

 
+
+
+

Returns

+

a GList with +values. Do not change or free the values. Free the list with g_list_free.

+

[element-type GObject.Value][transfer container]

+
+

Since: 0.1.13

+
+
+
+

grl_data_get_single_values_for_key_string ()

+
GList *
+grl_data_get_single_values_for_key_string
+                               (GrlData *data,
+                                GrlKeyID key);
+

Returns all non-NULL values for key + from data +. key + must have been +registered as a string-type key. This ignores related keys.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

a data

 

key

a metadata key

 
+
+
+

Returns

+

a GList with values. Do +not change or free the strings. Free the list with g_list_free.

+

[element-type utf8][transfer container]

+
+

Since: 0.1.13

+
+
+
+

grl_data_get_string ()

+
const gchar *
+grl_data_get_string (GrlData *data,
+                     GrlKeyID key);
+

Returns the first string value associated with key + from data +. If key + has +no first value, or value is not string, or key + is not in data +, then NULL +is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

string associated with key +, or NULL in other case. Caller should +not change nor free the value.

+
+

Since: 0.1.4

+
+
+
+

grl_data_has_key ()

+
gboolean
+grl_data_has_key (GrlData *data,
+                  GrlKeyID key);
+

Checks if key + is in data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to inspect

 

key

key to search.

[type GrlKeyID]
+
+
+

Returns

+

TRUE if key +is in data +, FALSE in other case.

+
+

Since: 0.1.4

+
+
+
+

grl_data_length ()

+
guint
+grl_data_length (GrlData *data,
+                 GrlKeyID key);
+

Returns how many values key + or related keys have in data +: if key + has no +value, but a related key has, then it is counted as positive.

+

As example, let's think in three related keys, K1, K2 and K3, and then thinks +we have added several values for those keys, as:

+

(V10, V20, V30),, (V11, NULL, V31), (V12, NULL, V32)

+

Therefore, when invoking grl_data_length (data, K2) it will return 3: +considering K2 and the related keys (K1 and K3), there are 3 values.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

a data

 

key

a metadata key

 
+
+
+

Returns

+

number of values

+
+

Since: 0.1.10

+
+
+
+

grl_data_remove ()

+
void
+grl_data_remove (GrlData *data,
+                 GrlKeyID key);
+

Removes the first value for key + from data +. If there are other keys related +to key + their values will also be removed from data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

data

data to change

 

key

key to remove.

[type GrlKeyID]
+
+

Since: 0.1.4

+
+
+
+

grl_data_remove_nth ()

+
void
+grl_data_remove_nth (GrlData *data,
+                     GrlKeyID key,
+                     guint index);
+

Removes the value at position index + for key + from data +. If there are other +keys related to key +, their values at position index + will also be removed +from data +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

a data

 

key

a metadata key

 

index

index of key to be removed, starting at 0

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_set ()

+
void
+grl_data_set (GrlData *data,
+              GrlKeyID key,
+              const GValue *value);
+

Sets the first value associated with key + in data +. If key already has a +value old value is freed and the new one is set.

+

Also, checks that value + is compliant with key + specification, modifying it +accordingly. For instance, if key + requires a number between 0 and 10, but +value + is outside this range, it will be adapted accordingly.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to modify

 

key

key to change or add.

[type GrlKeyID]

value

the new value

 
+
+

Since: 0.1.4

+
+
+
+

grl_data_set_binary ()

+
void
+grl_data_set_binary (GrlData *data,
+                     GrlKeyID key,
+                     const guint8 *buf,
+                     gsize size);
+

Sets the first binary value associated with key + in data +. If key + already +has a first value old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

data

data to change

 

key

key to change or add.

[type GrlKeyID]

buf

buffer holding the data

 

size

size of the buffer

 
+
+

Since: 0.1.9

+
+
+
+

grl_data_set_boolean ()

+
void
+grl_data_set_boolean (GrlData *data,
+                      GrlKeyID key,
+                      gboolean boolvalue);
+

Sets the first boolean value associated with key + in data +. If key + already +has a first value, old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to change

 

key

key to change or add.

[type GrlKeyID]

boolvalue

the new value

 
+
+

Since: 0.2.3

+
+
+
+

grl_data_set_boxed ()

+
void
+grl_data_set_boxed (GrlData *data,
+                    GrlKeyID key,
+                    gconstpointer boxed);
+

Sets the first boxed value associated with key + in data +. If key + already +has a value, the old value is freed and the new one is set.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to modify

 

key

key to change or add

 

boxed

the new value

 
+
+

Since: 0.2.0

+
+
+
+

grl_data_set_float ()

+
void
+grl_data_set_float (GrlData *data,
+                    GrlKeyID key,
+                    gfloat floatvalue);
+

Sets the first float value associated with key + in data +. If key + already has +a first value old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to change

 

key

key to change or add.

[type GrlKeyID]

floatvalue

the new value

 
+
+

Since: 0.1.5

+
+
+
+

grl_data_set_int ()

+
void
+grl_data_set_int (GrlData *data,
+                  GrlKeyID key,
+                  gint intvalue);
+

Sets the first int value associated with key + in data +. If key + already has a +first value old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to change

 

key

key to change or add.

[type GrlKeyID]

intvalue

the new value

 
+
+

Since: 0.1.4

+
+
+
+

grl_data_set_related_keys ()

+
void
+grl_data_set_related_keys (GrlData *data,
+                           GrlRelatedKeys *relkeys,
+                           guint index);
+

Updates the values at position index + in data + with values in relkeys +.

+

data + will take ownership of relkeys +, so do not free it after invoking this +function.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

a data

 

relkeys

a set of related keys

 

index

position to be updated, starting at 0

 
+
+

Since: 0.1.10

+
+
+
+

grl_data_set_string ()

+
void
+grl_data_set_string (GrlData *data,
+                     GrlKeyID key,
+                     const gchar *strvalue);
+

Sets the first string value associated with key + in data +. If key + already +has a value old value is freed and the new one is set.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

data

data to modify

 

key

key to change or add.

[type GrlKeyID]

strvalue

the new value

 
+
+

Since: 0.1.4

+
+
+
+

Types and Values

+
+

struct GrlData

+
struct GrlData;
+
+
+
+

struct GrlDataClass

+
struct GrlDataClass {
+  GObjectClass parent_class;
+};
+
+

Grilo Data class

+
+

Members

+
+++++ + +
+
+
+
+
+

See Also

+

GrlMedia

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlMedia.html b/doc/grilo/html/GrlMedia.html new file mode 100644 index 0000000..faadb17 --- /dev/null +++ b/doc/grilo/html/GrlMedia.html @@ -0,0 +1,6153 @@ + + + + +GrlMedia: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlMedia

+

GrlMedia — A multimedia data transfer object

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlMedia * + +grl_media_new () +
+GrlMedia * + +grl_media_audio_new () +
+GrlMedia * + +grl_media_image_new () +
+GrlMedia * + +grl_media_video_new () +
+GrlMedia * + +grl_media_container_new () +
+gboolean + +grl_media_is_audio () +
+gboolean + +grl_media_is_image () +
+gboolean + +grl_media_is_video () +
+gboolean + +grl_media_is_container () +
+void + +grl_media_add_artist () +
+void + +grl_media_add_author () +
+void + +grl_media_add_director () +
+void + +grl_media_add_external_player () +
+void + +grl_media_add_external_url () +
+void + +grl_media_add_genre () +
+void + +grl_media_add_keyword () +
+void + +grl_media_add_lyrics () +
+void + +grl_media_add_mb_artist_id () +
+void + +grl_media_add_performer () +
+void + +grl_media_add_producer () +
+void + +grl_media_add_region_data () +
+void + +grl_media_add_thumbnail () +
+void + +grl_media_add_thumbnail_binary () +
+void + +grl_media_add_url_data () +
const gchar * + +grl_media_get_album () +
const gchar * + +grl_media_get_artist () +
const gchar * + +grl_media_get_artist_nth () +
const gchar * + +grl_media_get_author () +
const gchar * + +grl_media_get_author_nth () +
+gint + +grl_media_get_bitrate () +
const gchar * + +grl_media_get_camera_model () +
const gchar * + +grl_media_get_certificate () +
+gint + +grl_media_get_childcount () +
+GDateTime * + +grl_media_get_creation_date () +
const gchar * + +grl_media_get_description () +
const gchar * + +grl_media_get_director () +
const gchar * + +grl_media_get_director_nth () +
+gint + +grl_media_get_duration () +
+gint + +grl_media_get_episode () +
const gchar * + +grl_media_get_episode_title () +
+gfloat + +grl_media_get_exposure_time () +
+gboolean + +grl_media_get_favourite () +
const gchar * + +grl_media_get_flash_used () +
+gfloat + +grl_media_get_framerate () +
const gchar * + +grl_media_get_genre () +
const gchar * + +grl_media_get_genre_nth () +
+gint + +grl_media_get_height () +
const gchar * + +grl_media_get_external_url () +
const gchar * + +grl_media_get_external_url_nth () +
const gchar * + +grl_media_get_id () +
+gfloat + +grl_media_get_iso_speed () +
const gchar * + +grl_media_get_keyword () +
const gchar * + +grl_media_get_keyword_nth () +
+GDateTime * + +grl_media_get_last_played () +
+gint + +grl_media_get_last_position () +
const gchar * + +grl_media_get_license () +
const gchar * + +grl_media_get_mb_album_id () +
const gchar * + +grl_media_get_mb_artist_id () +
const gchar * + +grl_media_get_mb_artist_id_nth () +
const gchar * + +grl_media_get_mb_recording_id () +
const gchar * + +grl_media_get_mb_track_id () +
const gchar * + +grl_media_get_mime () +
+GDateTime * + +grl_media_get_modification_date () +
+gint + +grl_media_get_orientation () +
const gchar * + +grl_media_get_original_title () +
const gchar * + +grl_media_get_performer () +
const gchar * + +grl_media_get_performer_nth () +
const gchar * + +grl_media_get_producer () +
const gchar * + +grl_media_get_producer_nth () +
+gint + +grl_media_get_play_count () +
const gchar * + +grl_media_get_player () +
const gchar * + +grl_media_get_player_nth () +
+GDateTime * + +grl_media_get_publication_date () +
+gfloat + +grl_media_get_rating () +
const gchar * + +grl_media_get_region () +
const gchar * + +grl_media_get_region_data () +
const gchar * + +grl_media_get_region_data_nth () +
+gint + +grl_media_get_season () +
const gchar * + +grl_media_get_show () +
const gchar * + +grl_media_get_site () +
const gchar * + +grl_media_get_source () +
+gfloat + +grl_media_get_start_time () +
const gchar * + +grl_media_get_studio () +
const gchar * + +grl_media_get_thumbnail () +
const guint8 * + +grl_media_get_thumbnail_binary () +
const guint8 * + +grl_media_get_thumbnail_binary_nth () +
const gchar * + +grl_media_get_thumbnail_nth () +
+gint + +grl_media_get_track_number () +
const gchar * + +grl_media_get_title () +
const gchar * + +grl_media_get_url () +
const gchar * + +grl_media_get_url_data () +
const gchar * + +grl_media_get_url_data_nth () +
+gint64 + +grl_media_get_size () +
+gint + +grl_media_get_width () +
+gchar * + +grl_media_serialize () +
+gchar * + +grl_media_serialize_extended () +
+void + +grl_media_set_album () +
+void + +grl_media_set_artist () +
+void + +grl_media_set_author () +
+void + +grl_media_set_bitrate () +
+void + +grl_media_set_camera_model () +
+void + +grl_media_set_certificate () +
+void + +grl_media_set_childcount () +
+void + +grl_media_set_creation_date () +
+void + +grl_media_set_description () +
+void + +grl_media_set_director () +
+void + +grl_media_set_duration () +
+void + +grl_media_set_episode () +
+void + +grl_media_set_episode_title () +
+void + +grl_media_set_exposure_time () +
+void + +grl_media_set_external_player () +
+void + +grl_media_set_external_url () +
+void + +grl_media_set_favourite () +
+void + +grl_media_set_flash_used () +
+void + +grl_media_set_framerate () +
+void + +grl_media_set_genre () +
+void + +grl_media_set_height () +
+void + +grl_media_set_id () +
+void + +grl_media_set_iso_speed () +
+void + +grl_media_set_keyword () +
+void + +grl_media_set_last_played () +
+void + +grl_media_set_last_position () +
+void + +grl_media_set_license () +
+void + +grl_media_set_lyrics () +
+void + +grl_media_set_mb_album_id () +
+void + +grl_media_set_mb_artist_id () +
+void + +grl_media_set_mb_recording_id () +
+void + +grl_media_set_mb_track_id () +
+void + +grl_media_set_mime () +
+void + +grl_media_set_modification_date () +
+void + +grl_media_set_original_title () +
+void + +grl_media_set_orientation () +
+void + +grl_media_set_performer () +
+void + +grl_media_set_producer () +
+void + +grl_media_set_play_count () +
+void + +grl_media_set_publication_date () +
+void + +grl_media_set_rating () +
+void + +grl_media_set_region () +
+void + +grl_media_set_region_data () +
+void + +grl_media_set_season () +
+void + +grl_media_set_show () +
+void + +grl_media_set_site () +
+void + +grl_media_set_source () +
+void + +grl_media_set_studio () +
+void + +grl_media_set_thumbnail () +
+void + +grl_media_set_thumbnail_binary () +
+void + +grl_media_set_title () +
+void + +grl_media_set_track_number () +
+void + +grl_media_set_url () +
+void + +grl_media_set_url_data () +
+void + +grl_media_set_size () +
+void + +grl_media_set_width () +
+GrlMedia * + +grl_media_unserialize () +
+
+
+

Properties

+
+++++ + + + + + +
GrlMediaTypemedia-typeRead / Write / Construct
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + +
structGrlMedia
structGrlMediaClass
enumGrlMediaSerializeType
enumGrlMediaType
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlData
+        ╰── GrlMedia
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

This high level class represents a multimedia item. It has methods to +set and get properties like author, title, description, and so on.

+
+
+

Functions

+
+

grl_media_new ()

+
GrlMedia *
+grl_media_new (void);
+

Creates a new data media object.

+
+

Returns

+

a newly-allocated data media.

+
+
+
+
+

grl_media_audio_new ()

+
GrlMedia *
+grl_media_audio_new (void);
+

Creates a new media audio object.

+
+

Returns

+

a newly-allocated media audio.

+
+

Since: 0.1.4

+
+
+
+

grl_media_image_new ()

+
GrlMedia *
+grl_media_image_new (void);
+

Creates a new media image object.

+
+

Returns

+

a newly-allocated media image.

+
+

Since: 0.1.4

+
+
+
+

grl_media_video_new ()

+
GrlMedia *
+grl_media_video_new (void);
+

Creates a new media video object.

+
+

Returns

+

a newly-allocated media video.

+
+

Since: 0.1.4

+
+
+
+

grl_media_container_new ()

+
GrlMedia *
+grl_media_container_new (void);
+

Creates a new media container object.

+
+

Returns

+

a newly-allocated media container.

+
+

Since: 0.3.0

+
+
+
+

grl_media_is_audio ()

+
gboolean
+grl_media_is_audio (GrlMedia *media);
+

Check if media + is an audio

+
+

Parameters

+
+++++ + + + + + +

media

a media

 
+
+
+

Returns

+

TRUE if media +is an audio

+
+

Since: 0.3.0

+
+
+
+

grl_media_is_image ()

+
gboolean
+grl_media_is_image (GrlMedia *media);
+

Check if media + is an image

+
+

Parameters

+
+++++ + + + + + +

media

a media

 
+
+
+

Returns

+

TRUE if media +is an image

+
+

Since: 0.3.0

+
+
+
+

grl_media_is_video ()

+
gboolean
+grl_media_is_video (GrlMedia *media);
+

Check if media + is a video

+
+

Parameters

+
+++++ + + + + + +

media

a media

 
+
+
+

Returns

+

TRUE if media +is a video

+
+

Since: 0.3.0

+
+
+
+

grl_media_is_container ()

+
gboolean
+grl_media_is_container (GrlMedia *media);
+

Check if media + is a container

+
+

Parameters

+
+++++ + + + + + +

media

a media

 
+
+
+

Returns

+

TRUE if media +is a container

+
+

Since: 0.3.0

+
+
+
+

grl_media_add_artist ()

+
void
+grl_media_add_artist (GrlMedia *media,
+                      const gchar *artist);
+

Adds a new artist to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

artist

an audio's artist

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_author ()

+
void
+grl_media_add_author (GrlMedia *media,
+                      const gchar *author);
+

Adds a new author to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

author

an author for media +

 
+
+

Since: 0.1.10

+
+
+
+

grl_media_add_director ()

+
void
+grl_media_add_director (GrlMedia *media,
+                        const gchar *director);
+

Adds the director of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

director

director of the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_external_player ()

+
void
+grl_media_add_external_player (GrlMedia *media,
+                               const gchar *player);
+

Adds a new external player to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

player

an external player for media +

 
+
+

Since: 0.1.10

+
+
+
+

grl_media_add_external_url ()

+
void
+grl_media_add_external_url (GrlMedia *media,
+                            const gchar *url);
+

Adds a new external url to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

url

an external url for media +

 
+
+

Since: 0.1.10

+
+
+
+

grl_media_add_genre ()

+
void
+grl_media_add_genre (GrlMedia *media,
+                     const gchar *genre);
+

Adds a new genre to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

genre

an audio's genre

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_keyword ()

+
void
+grl_media_add_keyword (GrlMedia *media,
+                       const gchar *keyword);
+

Adds the keyword describing the media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

keyword

a keyword describing the media

 
+
+

Since: 0.2.3

+
+
+
+

grl_media_add_lyrics ()

+
void
+grl_media_add_lyrics (GrlMedia *media,
+                      const gchar *lyrics);
+

Adds a new lyrics to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

lyrics

an audio's lyrics

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_mb_artist_id ()

+
void
+grl_media_add_mb_artist_id (GrlMedia *media,
+                            const gchar *mb_artist_id);
+

Adds a new MusicBrainz artist id to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

mb_artist_id

a MusicBrainz artist identifier

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_performer ()

+
void
+grl_media_add_performer (GrlMedia *media,
+                         const gchar *performer);
+

Adds the actor performing in the movie.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

performer

an actor performing in the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_producer ()

+
void
+grl_media_add_producer (GrlMedia *media,
+                        const gchar *producer);
+

Adds the producer of the media.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

producer

producer of the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_add_region_data ()

+
void
+grl_media_add_region_data (GrlMedia *media,
+                           const gchar *region,
+                           const GDateTime *publication_date,
+                           const gchar *certificate);
+

Adds regional publication and certification information for region +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

media

a GrlMedia

 

region

the region's ISO-3166-1 code

 

publication_date

the publication date

 

certificate

the age certification

 
+
+

Since: 0.2.3

+
+
+
+

grl_media_add_thumbnail ()

+
void
+grl_media_add_thumbnail (GrlMedia *media,
+                         const gchar *thumbnail);
+

Adds a new thumbnail to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

thumbnail

a thumbnail for media +

 
+
+

Since: 0.1.10

+
+
+
+

grl_media_add_thumbnail_binary ()

+
void
+grl_media_add_thumbnail_binary (GrlMedia *media,
+                                const guint8 *thumbnail,
+                                gsize size);
+

Adds a new thumbnail to media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

media

a GrlMedia

 

thumbnail

a buffer containing the thumbnail for media +

 

size

size of buffer

 
+
+

Since: 0.1.10

+
+
+
+

grl_media_add_url_data ()

+
void
+grl_media_add_url_data (GrlMedia *media,
+                        const gchar *url,
+                        const gchar *mime,
+                        gint bitrate,
+                        gfloat framerate,
+                        gint width,
+                        gint height);
+

Sets all the keys related with the URL of a media resource and adds it to +media + (useful for resources with more than one URL).

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

media

a GrlMedia

 

url

a media's URL

 

mime

th url +mime type

 

bitrate

the url +bitrate, or -1 to ignore

 

framerate

media framerate, or -1 to ignore

 

width

media width, or -1 to ignore

 

height

media height, or -1 to ignore

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_get_album ()

+
const gchar *
+grl_media_get_album (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the album of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_artist ()

+
const gchar *
+grl_media_get_artist (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the artist of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_artist_nth ()

+
const gchar *
+grl_media_get_artist_nth (GrlMedia *media,
+                          guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

index

element to retrieve, starting at 0

 
+
+
+

Returns

+

the n-th artist of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_author ()

+
const gchar *
+grl_media_get_author (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's author

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_author_nth ()

+
const gchar *
+grl_media_get_author_nth (GrlMedia *media,
+                          guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media object

 

index

element to retrieve

 
+
+
+

Returns

+

the n-th media's author.

+
+

Since: 0.1.10

+
+
+
+

grl_media_get_bitrate ()

+
gint
+grl_media_get_bitrate (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the bitrate of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_camera_model ()

+
const gchar *
+grl_media_get_camera_model (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

model of camera used to take picture

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_certificate ()

+
const gchar *
+grl_media_get_certificate (GrlMedia *media);
+

Returns the media's first age certificate. +This should usually be the media's most relevant +age certificate. Use grl_media_get_region_data_nth() to +get other age certificates.

+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's age certification

+
+

Since: 0.1.6

+
+
+
+

grl_media_get_childcount ()

+
gint
+grl_media_get_childcount (GrlMedia *media);
+

Number of children of this container.

+
+

Parameters

+
+++++ + + + + + +

media

the media container instance

 
+
+
+

Returns

+

number of children, or GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN if +unknown.

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_creation_date ()

+
GDateTime *
+grl_media_get_creation_date (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media

 
+
+
+

Returns

+

date when media was created (owned by media +).

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_media_get_description ()

+
const gchar *
+grl_media_get_description (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's description

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_director ()

+
const gchar *
+grl_media_get_director (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

a GrlMedia

 
+
+
+

Returns

+

the director of the movie (owned by media +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_director_nth ()

+
const gchar *
+grl_media_get_director_nth (GrlMedia *media,
+                            guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

index

element to retrieve

 
+
+
+

Returns

+

the director of the movie (owned by media +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_duration ()

+
gint
+grl_media_get_duration (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's duration in seconds

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_episode ()

+
gint
+grl_media_get_episode (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the episode number of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_episode_title ()

+
const gchar *
+grl_media_get_episode_title (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the title of the episode

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_exposure_time ()

+
gfloat
+grl_media_get_exposure_time (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

picture's exposure time

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_favourite ()

+
gboolean
+grl_media_get_favourite (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

whether the media is favourite or not

+
+

Since: 0.2.3

+
+
+
+

grl_media_get_flash_used ()

+
const gchar *
+grl_media_get_flash_used (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

whether the flash was used.

+

See +http://library.gnome.org/devel/ontology/unstable/nmm-classes.htmlnmm-Flash

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_framerate ()

+
gfloat
+grl_media_get_framerate (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the framerate of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_genre ()

+
const gchar *
+grl_media_get_genre (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the genre of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_genre_nth ()

+
const gchar *
+grl_media_get_genre_nth (GrlMedia *media,
+                         guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

index

element to retrieve, starting at 0

 
+
+
+

Returns

+

the n-th genre of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_height ()

+
gint
+grl_media_get_height (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the height of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_external_url ()

+
const gchar *
+grl_media_get_external_url (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

URL of an external location +where the user play the media.

+
+

Since: 0.1.6

+
+
+
+

grl_media_get_external_url_nth ()

+
const gchar *
+grl_media_get_external_url_nth (GrlMedia *media,
+                                guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media object

 

index

element to retrieve

 
+
+
+

Returns

+

the n-th media's external location where the user can play it.

+
+

Since: 0.1.10

+
+
+
+

grl_media_get_id ()

+
const gchar *
+grl_media_get_id (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's identifier

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_iso_speed ()

+
gfloat
+grl_media_get_iso_speed (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

picture's iso speed

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_keyword ()

+
const gchar *
+grl_media_get_keyword (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

a GrlMedia

 
+
+
+

Returns

+

the keyword describing the media +(owned by media +).

+

[transfer none]

+
+

Since: 0.2.3

+
+
+
+

grl_media_get_keyword_nth ()

+
const gchar *
+grl_media_get_keyword_nth (GrlMedia *media,
+                           guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

index

element to retrieve

 
+
+
+

Returns

+

the keyword describing the media +(owned by media +).

+

[transfer none]

+
+

Since: 0.2.3

+
+
+
+

grl_media_get_last_played ()

+
GDateTime *
+grl_media_get_last_played (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's last played time

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_last_position ()

+
gint
+grl_media_get_last_position (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's last_played position (in seconds)

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_license ()

+
const gchar *
+grl_media_get_license (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the license the media is under

+
+

Since: 0.1.6

+
+
+
+

grl_media_get_mb_album_id ()

+
const gchar *
+grl_media_get_mb_album_id (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the MusicBrainz album identifier

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_mb_artist_id ()

+
const gchar *
+grl_media_get_mb_artist_id (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the MusicBrainz artist identifier

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_mb_artist_id_nth ()

+
const gchar *
+grl_media_get_mb_artist_id_nth (GrlMedia *media,
+                                guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

index

element to retrieve, starting at 0

 
+
+
+

Returns

+

the n-th MusicBrainz artist identifier of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_mb_recording_id ()

+
const gchar *
+grl_media_get_mb_recording_id (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the MusicBrainz recording identifier

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_mb_track_id ()

+
const gchar *
+grl_media_get_mb_track_id (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the MusicBrainz track identifier

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_mime ()

+
const gchar *
+grl_media_get_mime (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's mime-type

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_modification_date ()

+
GDateTime *
+grl_media_get_modification_date (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media

 
+
+
+

Returns

+

date when the media was last modified (owned by media +).

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_media_get_orientation ()

+
gint
+grl_media_get_orientation (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the image instance

 
+
+
+

Returns

+

degrees clockwise orientation of the picture

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_original_title ()

+
const gchar *
+grl_media_get_original_title (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

a GrlMedia

 
+
+
+

Returns

+

the original, untranslated title of the movie (owned by media +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_performer ()

+
const gchar *
+grl_media_get_performer (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

a GrlMedia

 
+
+
+

Returns

+

the actor performing in the movie (owned by media +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_performer_nth ()

+
const gchar *
+grl_media_get_performer_nth (GrlMedia *media,
+                             guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

index

element to retrieve

 
+
+
+

Returns

+

the actor performing in the movie (owned by medi +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_producer ()

+
const gchar *
+grl_media_get_producer (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

a GrlMedia

 
+
+
+

Returns

+

the producer of the movie (owned by media +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_producer_nth ()

+
const gchar *
+grl_media_get_producer_nth (GrlMedia *media,
+                            guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

index

element to retrieve

 
+
+
+

Returns

+

the producer of the movie (owned by media +).

+

[transfer none]

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_play_count ()

+
gint
+grl_media_get_play_count (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's play count

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_player ()

+
const gchar *
+grl_media_get_player (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

URL of an external player +object for this media

+
+

Since: 0.1.6

+
+
+
+

grl_media_get_player_nth ()

+
const gchar *
+grl_media_get_player_nth (GrlMedia *media,
+                          guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media object

 

index

element to retrieve

 
+
+
+

Returns

+

the n-th media's external player object.

+
+

Since: 0.1.10

+
+
+
+

grl_media_get_publication_date ()

+
GDateTime *
+grl_media_get_publication_date (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the publication date of media +(owned by media +).

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_media_get_rating ()

+
gfloat
+grl_media_get_rating (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's rating

+
+

Since: 0.1.5

+
+
+
+

grl_media_get_region ()

+
const gchar *
+grl_media_get_region (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the ISO-3166-1 of the region where the media was +published (owned by media +).

+

[transfer none]

+
+

Since: 0.2.3

+
+
+
+

grl_media_get_region_data ()

+
const gchar *
+grl_media_get_region_data (GrlMedia *media,
+                           const GDateTime **publication_date,
+                           const gchar **certificate);
+

Returns the media's age certificate and publication date for the first region. +This should usually be the media's most relevant region. +Use grl_media_get_region_data_nth() to get the age certificate and +publication date for other regions.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

media

the media object

 

publication_date

the publication date, or NULL to ignore.

[out][transfer none]

certificate

the age certification, or NULL to ignore.

[out][transfer none]
+
+
+

Returns

+

the ISO-3166-1 of the region where the media was +published (owned by media +).

+

[transfer none]

+
+

Since: 0.2.3

+
+
+
+

grl_media_get_region_data_nth ()

+
const gchar *
+grl_media_get_region_data_nth (GrlMedia *media,
+                               guint index,
+                               const GDateTime **publication_date,
+                               const gchar **certificate);
+

Returns the media's age certificate and publication date for one region. +Use grl_data_length() with GRL_METADATA_KEY_REGION to discover +how many regions are available. For instance:

+
+ + + + + + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
guint count = grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_REGION);
+guint i;
+for (i = 0; i < count; ++i) {
+  const GDateTime* publication_date = NULL;
+  const gchar* certificate = NULL;
+  const gchar* region =
+    grl_media_get_region_data_nth (media, i,
+      &publication_date, &certificate);
+  ...
+}
+
+ +
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

media

the media object

 

index

element to retrieve

 

publication_date

the publication date, or NULL to ignore.

[out][transfer none]

certificate

the age certification, or NULL to ignore.

[out][transfer none]
+
+
+

Returns

+

the ISO-3166-1 of the region where the media was +published (owned by media +).

+

[transfer none]

+
+

Since: 0.2.3

+
+
+
+

grl_media_get_season ()

+
gint
+grl_media_get_season (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the season number of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_show ()

+
const gchar *
+grl_media_get_show (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the show title of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_site ()

+
const gchar *
+grl_media_get_site (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's site

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_source ()

+
const gchar *
+grl_media_get_source (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object source

 
+
+
+

Returns

+

the media's source

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_start_time ()

+
gfloat
+grl_media_get_start_time (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the start time of the logical media resource inside the +file containing it, in seconds.

+
+

Since: 0.1.19

+
+
+
+

grl_media_get_studio ()

+
const gchar *
+grl_media_get_studio (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the studio the media is from

+
+

Since: 0.1.6

+
+
+
+

grl_media_get_thumbnail ()

+
const gchar *
+grl_media_get_thumbnail (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's thumbnail URL

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_thumbnail_binary ()

+
const guint8 *
+grl_media_get_thumbnail_binary (GrlMedia *media,
+                                gsize *size);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media object

 

size

pointer to storing the thumbnail buffer size

 
+
+
+

Returns

+

the media's thumbnail data and set size to the thumbnail buffer size

+
+

Since: 0.1.9

+
+
+
+

grl_media_get_thumbnail_binary_nth ()

+
const guint8 *
+grl_media_get_thumbnail_binary_nth (GrlMedia *media,
+                                    gsize *size,
+                                    guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

media

the media object

 

size

pointer to store the thumbnail buffer size

 

index

element to retrieve

 
+
+
+

Returns

+

the n-th media's thumbnail binary and sets size to the thumbnail +buffer size.

+
+

Since: 0.1.10

+
+
+
+

grl_media_get_thumbnail_nth ()

+
const gchar *
+grl_media_get_thumbnail_nth (GrlMedia *media,
+                             guint index);
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media object

 

index

element to retrieve

 
+
+
+

Returns

+

the n-th media's thumbnail.

+
+

Since: 0.1.10

+
+
+
+

grl_media_get_track_number ()

+
gint
+grl_media_get_track_number (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the track number of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_title ()

+
const gchar *
+grl_media_get_title (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's title

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_url ()

+
const gchar *
+grl_media_get_url (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's URL

+
+

Since: 0.1.4

+
+
+
+

grl_media_get_url_data ()

+
const gchar *
+grl_media_get_url_data (GrlMedia *media,
+                        gchar **mime,
+                        gint *bitrate,
+                        gfloat *framerate,
+                        gint *width,
+                        gint *height);
+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

media

the media object

 

mime

the mime-type, or NULL to ignore.

[out][transfer none]

bitrate

the url bitrate, or NULL to ignore.

[out]

framerate

the url framerate, or NULL to ignore

 

width

the url width, or NULL to ignore

 

height

the url height, or NULL to ignore

 
+
+
+

Returns

+

the media's URL and its related properties.

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_url_data_nth ()

+
const gchar *
+grl_media_get_url_data_nth (GrlMedia *media,
+                            guint index,
+                            gchar **mime,
+                            gint *bitrate,
+                            gfloat *framerate,
+                            gint *width,
+                            gint *height);
+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

media

the media object

 

index

element to retrieve

 

mime

the mime-type, or NULL to ignore.

[out][transfer none]

bitrate

the url bitrate, or NULL to ignore.

[out]

framerate

the url framerate, or NULL to ignore

 

width

the url width, or NULL to ignore

 

height

the url height, or NULL to ignore

 
+
+
+

Returns

+

the n-th media's URL and its related properties.

+
+

Since: 0.3.0

+
+
+
+

grl_media_get_size ()

+
gint64
+grl_media_get_size (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media object

 
+
+
+

Returns

+

the media's size, in bytes or -1 if unknown.

+
+

Since: 0.2.10

+
+
+
+

grl_media_get_width ()

+
gint
+grl_media_get_width (GrlMedia *media);
+
+

Parameters

+
+++++ + + + + + +

media

the media instance

 
+
+
+

Returns

+

the width of the media

+
+

Since: 0.3.0

+
+
+
+

grl_media_serialize ()

+
gchar *
+grl_media_serialize (GrlMedia *media);
+

Serializes a GrlMedia into a string. It does a basic serialization.

+

See grl_media_serialize_extended() to get more serialization approaches.

+
+

Parameters

+
+++++ + + + + + +

media

a GrlMedia

 
+
+
+

Returns

+

serialized media

+
+

Since: 0.1.6

+
+
+
+

grl_media_serialize_extended ()

+
gchar *
+grl_media_serialize_extended (GrlMedia *media,
+                              GrlMediaSerializeType serial_type,
+                              ...);
+

Serializes a GrlMedia into a string.

+

See grl_media_unserialize() to recover back the GrlMedia from the string.

+

If serialization type is GRL_MEDIA_SERIALIZE_PARTIAL + then it requires a +GList + with the properties to consider in serialization (id and source are +always considered).

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

media

a GrlMedia

 

serial_type

type of serialization

 

...

media keys to serialize

 
+
+
+

Returns

+

serialized media

+
+

Since: 0.1.6

+
+
+
+

grl_media_set_album ()

+
void
+grl_media_set_album (GrlMedia *media,
+                     const gchar *album);
+

Set the album of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

album

the audio's album

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_artist ()

+
void
+grl_media_set_artist (GrlMedia *media,
+                      const gchar *artist);
+

Set the artist of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

artist

the audio's artist

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_author ()

+
void
+grl_media_set_author (GrlMedia *media,
+                      const gchar *author);
+

Set the media's author

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

author

the media's author

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_bitrate ()

+
void
+grl_media_set_bitrate (GrlMedia *media,
+                       gint bitrate);
+

Set the bitrate of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

bitrate

the audio's bitrate

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_camera_model ()

+
void
+grl_media_set_camera_model (GrlMedia *media,
+                            const gchar *camera_model);
+

Set the camera_model of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

camera_model

model of camera used to take picture

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_certificate ()

+
void
+grl_media_set_certificate (GrlMedia *media,
+                           const gchar *certificate);
+

Set the media's first age certification. +This should usually be the media's most relevant +age certificate. Use grl_media_set_region_data() to +set other age certificates.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

certificate

The age certificate of the media

 
+
+

Since: 0.1.6

+
+
+
+

grl_media_set_childcount ()

+
void
+grl_media_set_childcount (GrlMedia *media,
+                          gint childcount);
+

Sets the number of children of this container. Use +GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN if it is unknown.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media container instance

 

childcount

number of children

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_creation_date ()

+
void
+grl_media_set_creation_date (GrlMedia *media,
+                             const GDateTime *creation_date);
+

Set the creation_date of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

creation_date

date when media was created

 
+
+

Since: 0.2.0

+
+
+
+

grl_media_set_description ()

+
void
+grl_media_set_description (GrlMedia *media,
+                           const gchar *description);
+

Set the media's description

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

description

the description

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_director ()

+
void
+grl_media_set_director (GrlMedia *media,
+                        const gchar *director);
+

Sets the director of the media.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

director

director of the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_duration ()

+
void
+grl_media_set_duration (GrlMedia *media,
+                        gint duration);
+

Set the media's duration

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

duration

the duration in seconds

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_episode ()

+
void
+grl_media_set_episode (GrlMedia *media,
+                       gint episode);
+

Sets the episode number of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

episode

the video's episode

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_episode_title ()

+
void
+grl_media_set_episode_title (GrlMedia *media,
+                             const gchar *episode_title);
+

Sets the title of an media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

episode_title

the title of the episode

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_exposure_time ()

+
void
+grl_media_set_exposure_time (GrlMedia *media,
+                             gfloat exposure_time);
+

Set the exposure_time of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

exposure_time

picture's exposure time

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_external_player ()

+
void
+grl_media_set_external_player (GrlMedia *media,
+                               const gchar *player);
+

Set the location of a player for the media (usually a flash player)

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

player

location of an external player for this media

 
+
+

Since: 0.1.6

+
+
+
+

grl_media_set_external_url ()

+
void
+grl_media_set_external_url (GrlMedia *media,
+                            const gchar *url);
+

Set an external location where users can play the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

url

external location where this media can be played.

 
+
+

Since: 0.1.6

+
+
+
+

grl_media_set_favourite ()

+
void
+grl_media_set_favourite (GrlMedia *media,
+                         gboolean favourite);
+

Set if the media is favourite or not

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a media

 

favourite

whether the item is favourite or not

 
+
+

Since: 0.2.3

+
+
+
+

grl_media_set_flash_used ()

+
void
+grl_media_set_flash_used (GrlMedia *media,
+                          const gchar *flash_used);
+

Set the flash_used of the media +See +http://library.gnome.org/devel/ontology/unstable/nmm-classes.htmlnmm-Flash

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

flash_used

whether the flash was used

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_framerate ()

+
void
+grl_media_set_framerate (GrlMedia *media,
+                         gfloat framerate);
+

Set the framerate of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

framerate

the video's framerate

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_genre ()

+
void
+grl_media_set_genre (GrlMedia *media,
+                     const gchar *genre);
+

Set the genre of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

genre

the audio's genre

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_height ()

+
void
+grl_media_set_height (GrlMedia *media,
+                      gint height);
+

Set the height of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

height

the video's height

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_id ()

+
void
+grl_media_set_id (GrlMedia *media,
+                  const gchar *id);
+

Set the media identifier

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

id

the identifier of the media

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_iso_speed ()

+
void
+grl_media_set_iso_speed (GrlMedia *media,
+                         gfloat iso_speed);
+

Set the iso_speed of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

iso_speed

picture's iso speed

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_keyword ()

+
void
+grl_media_set_keyword (GrlMedia *media,
+                       const gchar *keyword);
+

Sets the keyword describing the media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

keyword

a keyword describing the media

 
+
+

Since: 0.2.3

+
+
+
+

grl_media_set_last_played ()

+
void
+grl_media_set_last_played (GrlMedia *media,
+                           const GDateTime *last_played);
+

Set the media last played date

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

last_played

date when the media was last played

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_last_position ()

+
void
+grl_media_set_last_position (GrlMedia *media,
+                             gint last_position);
+

Set the media last played position

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

last_position

second at which the media playback was interrupted

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_license ()

+
void
+grl_media_set_license (GrlMedia *media,
+                       const gchar *license);
+

Set the media license

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

license

The license of the media

 
+
+

Since: 0.1.6

+
+
+
+

grl_media_set_lyrics ()

+
void
+grl_media_set_lyrics (GrlMedia *media,
+                      const gchar *lyrics);
+

Set the lyrics of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

lyrics

the audio's lyrics

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_mb_album_id ()

+
void
+grl_media_set_mb_album_id (GrlMedia *media,
+                           const gchar *mb_album_id);
+

Set the MusicBrainz album identifier of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

mb_album_id

the MusicBrainz album identifier

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_mb_artist_id ()

+
void
+grl_media_set_mb_artist_id (GrlMedia *media,
+                            const gchar *mb_artist_id);
+

Set the MusicBrainz artist identifier of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

mb_artist_id

the MusicBrainz artist identifier

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_mb_recording_id ()

+
void
+grl_media_set_mb_recording_id (GrlMedia *media,
+                               const gchar *mb_recording_id);
+

Set the MusicBrainz recording identifier of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

mb_recording_id

the MusicBrainz recording identifier

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_mb_track_id ()

+
void
+grl_media_set_mb_track_id (GrlMedia *media,
+                           const gchar *mb_track_id);
+

Set the MusicBrainz track identifier of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

mb_track_id

the MusicBrainz track identifier

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_mime ()

+
void
+grl_media_set_mime (GrlMedia *media,
+                    const gchar *mime);
+

Set the media's mime-type

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

mime

the mime type

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_modification_date ()

+
void
+grl_media_set_modification_date (GrlMedia *media,
+                                 const GDateTime *modification_date);
+

Set the modification date of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

modification_date

date when the media was last modified

 
+
+

Since: 0.2.0

+
+
+
+

grl_media_set_original_title ()

+
void
+grl_media_set_original_title (GrlMedia *media,
+                              const gchar *original_title);
+

Sets the original, untranslated title of the media.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

original_title

original, untranslated title of the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_orientation ()

+
void
+grl_media_set_orientation (GrlMedia *media,
+                           gint orientation);
+

Set the orientation of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

orientation

degrees clockwise orientation of the picture

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_performer ()

+
void
+grl_media_set_performer (GrlMedia *media,
+                         const gchar *performer);
+

Sets the actor performing in the movie.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

performer

an actor performing in the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_producer ()

+
void
+grl_media_set_producer (GrlMedia *media,
+                        const gchar *producer);
+

Sets the producer of the media.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

producer

producer of the movie

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_play_count ()

+
void
+grl_media_set_play_count (GrlMedia *media,
+                          gint play_count);
+

Set the media play count

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

play_count

the play count

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_publication_date ()

+
void
+grl_media_set_publication_date (GrlMedia *media,
+                                const GDateTime *date);
+

Set the publication date of media +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

date

the date

 
+
+

Since: 0.2.0

+
+
+
+

grl_media_set_rating ()

+
void
+grl_media_set_rating (GrlMedia *media,
+                      gfloat rating,
+                      gfloat max);
+

This method receives a rating and its scale and normalizes it on a scale +from 0...5 to match the usual five-star rating.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

media

a media

 

rating

a rating value

 

max

maximum rating value

 
+
+

Since: 0.1.5

+
+
+
+

grl_media_set_region ()

+
void
+grl_media_set_region (GrlMedia *media,
+                      const gchar *region);
+

Sets the region + where media + was published.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

a GrlMedia

 

region

the region's ISO-3166-1 code

 
+
+

Since: 0.2.3

+
+
+
+

grl_media_set_region_data ()

+
void
+grl_media_set_region_data (GrlMedia *media,
+                           const gchar *region,
+                           const GDateTime *publication_date,
+                           const gchar *certificate);
+

Sets regional publication and certification information for region +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

media

a GrlMedia

 

region

the region's ISO-3166-1 code

 

publication_date

the publication date

 

certificate

the age certification

 
+
+

Since: 0.2.3

+
+
+
+

grl_media_set_season ()

+
void
+grl_media_set_season (GrlMedia *media,
+                      gint season);
+

Sets the season number of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

season

the video's season

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_show ()

+
void
+grl_media_set_show (GrlMedia *media,
+                    const gchar *show);
+

Sets the show title of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

show

the video's show name

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_site ()

+
void
+grl_media_set_site (GrlMedia *media,
+                    const gchar *site);
+

Set the media's site. A site is a website about the media such as a +studio's promotional website for a movie.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

site

the site

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_source ()

+
void
+grl_media_set_source (GrlMedia *media,
+                      const gchar *source);
+

Set the media's source

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

source

the source

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_studio ()

+
void
+grl_media_set_studio (GrlMedia *media,
+                      const gchar *studio);
+

Set the media studio

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

studio

The studio the media is from

 
+
+

Since: 0.1.6

+
+
+
+

grl_media_set_thumbnail ()

+
void
+grl_media_set_thumbnail (GrlMedia *media,
+                         const gchar *thumbnail);
+

Set the media's thumbnail URL

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

thumbnail

the thumbnail URL

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_thumbnail_binary ()

+
void
+grl_media_set_thumbnail_binary (GrlMedia *media,
+                                const guint8 *thumbnail,
+                                gsize size);
+

Set the media's binary thumbnail

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

media

the media

 

thumbnail

thumbnail buffer

 

size

thumbnail buffer size

 
+
+

Since: 0.1.9

+
+
+
+

grl_media_set_title ()

+
void
+grl_media_set_title (GrlMedia *media,
+                     const gchar *title);
+

Set the media's title

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

title

the title

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_track_number ()

+
void
+grl_media_set_track_number (GrlMedia *media,
+                            gint track_number);
+

Set the track number of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

track_number

the audio's track number

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_url ()

+
void
+grl_media_set_url (GrlMedia *media,
+                   const gchar *url);
+

Set the media's URL

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

url

the media's URL

 
+
+

Since: 0.1.4

+
+
+
+

grl_media_set_url_data ()

+
void
+grl_media_set_url_data (GrlMedia *media,
+                        const gchar *url,
+                        const gchar *mime,
+                        gint bitrate,
+                        gfloat framerate,
+                        gint width,
+                        gint height);
+

Sets all the keys related with the URL of a media resource in one go.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

media

a GrlMedia

 

url

the media's URL

 

mime

the url +mime type

 

bitrate

the url +bitrate, or -1 to ignore

 

framerate

media framerate, or -1 to ignore

 

width

media width, or -1 to ignore

 

height

media height, or -1 to ignore

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_set_size ()

+
void
+grl_media_set_size (GrlMedia *media,
+                    gint64 size);
+

Set the size of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media

 

size

the size in bytes

 
+
+

Since: 0.2.10

+
+
+
+

grl_media_set_width ()

+
void
+grl_media_set_width (GrlMedia *media,
+                     gint width);
+

Set the width of the media

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

media

the media instance

 

width

the video's width

 
+
+

Since: 0.3.0

+
+
+
+

grl_media_unserialize ()

+
GrlMedia *
+grl_media_unserialize (const gchar *serial);
+

Unserializes a GrlMedia.

+
+

Parameters

+
+++++ + + + + + +

serial

a serialized media

 
+
+
+

Returns

+

the GrlMedia from the serial.

+

[transfer full]

+
+

Since: 0.1.6

+
+
+
+

Types and Values

+
+

struct GrlMedia

+
struct GrlMedia;
+
+
+
+

struct GrlMediaClass

+
struct GrlMediaClass {
+  GrlDataClass parent_class;
+};
+
+

Grilo Media Class

+
+

Members

+
+++++ + +
+
+
+
+
+

enum GrlMediaSerializeType

+

GrlMedia serialize type

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + +

GRL_MEDIA_SERIALIZE_BASIC

+

Basic mode

+
 

GRL_MEDIA_SERIALIZE_PARTIAL

+

Partial mode

+
 

GRL_MEDIA_SERIALIZE_FULL

+

Full mode

+
 
+
+

Since: 0.2.3

+
+
+
+

enum GrlMediaType

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_MEDIA_TYPE_UNKNOWN

+

unknown media

+
 

GRL_MEDIA_TYPE_AUDIO

+

audio media

+
 

GRL_MEDIA_TYPE_VIDEO

+

video media

+
 

GRL_MEDIA_TYPE_IMAGE

+

image media

+
 

GRL_MEDIA_TYPE_CONTAINER

+

contaddiner media

+
 
+
+
+
+
+

Property Details

+
+

The “media-type” property

+
  “media-type”               GrlMediaType
+

Type of media.

+

Flags: Read / Write / Construct

+

Default value: GRL_MEDIA_TYPE_UNKNOWN

+
+
+
+

See Also

+

GrlData

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlOperationOptions.html b/doc/grilo/html/GrlOperationOptions.html new file mode 100644 index 0000000..4a046a6 --- /dev/null +++ b/doc/grilo/html/GrlOperationOptions.html @@ -0,0 +1,1056 @@ + + + + +GrlOperationOptions: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlOperationOptions

+

GrlOperationOptions — Describes the options to be passed to an operation

+
+
+

Functions

+ +
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + +
 GrlOperationOptions
 GrlOperationOptionsClass
#defineGRL_COUNT_INFINITY
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlOperationOptions
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+
+
+

Functions

+
+

grl_operation_options_new ()

+
GrlOperationOptions *
+grl_operation_options_new (GrlCaps *caps);
+

Creates a new GrlOperationOptions object.

+
+

Parameters

+
+++++ + + + + + +

caps

caps that options will have to match. If NULL, all +options will be accepted.

[allow-none]
+
+
+

Returns

+

a new GrlOperationOptions instance.

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_copy ()

+
GrlOperationOptions *
+grl_operation_options_copy (GrlOperationOptions *options);
+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

a new GrlOperationOptions instance with its values being copies of +the values of options +.

+

[transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_count ()

+
gint
+grl_operation_options_get_count (GrlOperationOptions *options);
+

Get the count option, that is, the number of elements to retrieve in an +operation done with options +.

+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

the value of the count option, or a default value if it is not set.

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_resolution_flags ()

+
GrlResolutionFlags
+grl_operation_options_get_resolution_flags
+                               (GrlOperationOptions *options);
+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

resolution flags of options +.

+
+

Since: 0.2.12

+
+
+
+

grl_operation_options_get_key_filter ()

+
GValue *
+grl_operation_options_get_key_filter (GrlOperationOptions *options,
+                                      GrlKeyID key);
+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

the filter.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_key_filter_list ()

+
GList *
+grl_operation_options_get_key_filter_list
+                               (GrlOperationOptions *options);
+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

.

+

[transfer container][element-type GrlKeyID]

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_key_range_filter ()

+
void
+grl_operation_options_get_key_range_filter
+                               (GrlOperationOptions *options,
+                                GrlKeyID key,
+                                GValue **min_value,
+                                GValue **max_value);
+

Stores the limits of the range in the filter for key + in min_value + and +max_value +. If some of the values has no limit, it will set a NULL.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

key

a GrlKeyID

 

min_value

the minimum value for the range.

[out][allow-none][transfer none]

max_value

the maximum value for the range.

[out][allow-none][transfer none]
+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_key_range_filter_list ()

+
GList *
+grl_operation_options_get_key_range_filter_list
+                               (GrlOperationOptions *options);
+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

.

+

[transfer container][element-type GrlKeyID]

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_skip ()

+
guint
+grl_operation_options_get_skip (GrlOperationOptions *options);
+

Get the skip option, that is, the number of elements to skip before +retrieving media items in an operation done with options +.

+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

the value of the skip option, or a default value if it is not set.

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_get_type_filter ()

+
GrlTypeFilter
+grl_operation_options_get_type_filter (GrlOperationOptions *options);
+
+

Parameters

+
+++++ + + + + + +

options

a GrlOperationOptions instance

 
+
+
+

Returns

+

resolution flags of options +

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_obey_caps ()

+
gboolean
+grl_operation_options_obey_caps (GrlOperationOptions *options,
+                                 GrlCaps *caps,
+                                 GrlOperationOptions **supported_options,
+                                 GrlOperationOptions **unsupported_options);
+

Check whether options + obey to caps +. +Optionally provide the options that match (respectively don't match) caps + +in supported_options + (respectively unsupported_options +). +This would typically (but not necessarily) be used with a +GrlOperationOptions instance that was created with NULL caps.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

caps

capabilities against which we want to test options +

 

supported_options

if not NULL, will contain a +newly-allocated GrlOperationOptions instance containing all the values of +options +that match caps +.

[out callee-allocates]

unsupported_options

if not NULL, will contain a +newly-allocated GrlOperationOptions instance containing all the values of +options +that do not match caps +.

[out callee-allocates]
+
+
+

Returns

+

TRUE if options +obey to caps +, FALSE otherwise.

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_count ()

+
gboolean
+grl_operation_options_set_count (GrlOperationOptions *options,
+                                 gint count);
+

Set the count option for an operation. Will only succeed if count + obey to +the inherent capabilities of options +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

count

number of elements to retrieve in an operation

 
+
+
+

Returns

+

TRUE if count +could be set, FALSE otherwise.

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_resolution_flags ()

+
gboolean
+grl_operation_options_set_resolution_flags
+                               (GrlOperationOptions *options,
+                                GrlResolutionFlags flags);
+

Set the resolution flags for an operation. Will only succeed if flags + obey +to the inherent capabilities of options +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

flags

the resolution flags to be set for an operation. See +GrlResolutionFlags for possible values.

 
+
+
+

Returns

+

TRUE if flags +could be set, FALSE otherwise.

+
+

Since: 0.2.12

+
+
+
+

grl_operation_options_set_key_filter_dictionary ()

+
gboolean
+grl_operation_options_set_key_filter_dictionary
+                               (GrlOperationOptions *options,
+                                GHashTable *filters);
+

[rename-to grl_operation_options_set_key_filters]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

filters

.

[transfer none][element-type GrlKeyID GValue]
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_key_filter_value ()

+
gboolean
+grl_operation_options_set_key_filter_value
+                               (GrlOperationOptions *options,
+                                GrlKeyID key,
+                                GValue *value);
+

Set filter as "key + == value +".

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

key

a GrlKeyID

 

value

a GValue

 
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_key_filters ()

+
gboolean
+grl_operation_options_set_key_filters (GrlOperationOptions *options,
+                                       ...);
+

Set filter as "k1 == v1 AND k2 == v2 AND ..."

+
+

Example 2. 

+
+ Elements from album "Frozen" with a bitrate of 256kbs. +
+  grl_operation_options_set_key_filters (my_options,
+                                         GRL_METADATA_KEY_ALBUM, "Frozen",
+                                         GRL_METADATA_KEY_BITRATE, 256,
+                                         NULL);
+ 
+
+
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

...

pairs of GrlKeyID, value

 
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_key_range_filter ()

+
gboolean
+grl_operation_options_set_key_range_filter
+                               (GrlOperationOptions *options,
+                                ...);
+

Set filter as "min1 <= k1 <= max1 AND min2 <= k2 <= max2 AND ..."

+

The range can be open if some of the minX, maxX values are NULL.

+
+

Example 3. 

+
+ Album must start with "T" and the bitrate should be 256kbs or greater. +
+  grl_operation_options_set_key_range_filters (my_options,
+                                               GRL_METADATA_KEY_ALBUM, "Ta", "Tz",
+                                               GRL_METADATA_KEY_BITRATE, 256, NULL,
+                                               NULL);
+ 
+
+
+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

...

triplets of GrlKeyID, minvalue, maxvalue

 
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_key_range_filter_value ()

+
gboolean
+grl_operation_options_set_key_range_filter_value
+                               (GrlOperationOptions *options,
+                                GrlKeyID key,
+                                GValue *min_value,
+                                GValue *max_value);
+

Set filter as "min_value + <= key + <= max_value +".

+

If min_value + is NULL, then filter is "key + <= max_value +".

+

If max_value + is NULL, then filter is "key + >= min_value +".

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

key

a GrlKeyID

 

min_value

minimum value for range.

[in][allow-none]

max_value

maximum value for range.

[in][allow-none]
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_skip ()

+
gboolean
+grl_operation_options_set_skip (GrlOperationOptions *options,
+                                guint skip);
+

Set the skip option for an operation. Will only succeed if skip + obeys to the +inherent capabilities of options +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

skip

number of elements to skip in an operation

 
+
+
+

Returns

+

TRUE if skip +could be set, FALSE otherwise.

+
+

Since: 0.2.0

+
+
+
+

grl_operation_options_set_type_filter ()

+
gboolean
+grl_operation_options_set_type_filter (GrlOperationOptions *options,
+                                       GrlTypeFilter filter);
+

Set the type of media filter for an operation. Only those media elements that +match the filter + will be returned. Will only succeed if filter + obey to the +inherent capabilities of options +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

options

a GrlOperationOptions instance

 

filter

the type of media to get

 
+
+
+

Returns

+

TRUE if flags +could be set, FALSE otherwise

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+

GrlOperationOptions

+
typedef struct _GrlOperationOptions GrlOperationOptions;
+
+
+
+

GrlOperationOptionsClass

+
typedef struct {
+  GObjectClass parent;
+} GrlOperationOptionsClass;
+
+

Grilo Operation Options class.

+
+

Members

+
+++++ + + + + + +

GObjectClass parent;

the parent class structure

 
+
+
+
+
+

GRL_COUNT_INFINITY

+
#define GRL_COUNT_INFINITY (-1)
+
+
+
+ +
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlPlugin.html b/doc/grilo/html/GrlPlugin.html new file mode 100644 index 0000000..ab5ffe4 --- /dev/null +++ b/doc/grilo/html/GrlPlugin.html @@ -0,0 +1,562 @@ + + + + +GrlPlugin: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlPlugin

+

GrlPlugin — Base class for Grilo Plugins

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
const gchar * + +grl_plugin_get_author () +
const gchar * + +grl_plugin_get_description () +
const gchar * + +grl_plugin_get_filename () +
const gchar * + +grl_plugin_get_id () +
const gchar * + +grl_plugin_get_license () +
+GModule * + +grl_plugin_get_module () +
const gchar * + +grl_plugin_get_name () +
const gchar * + +grl_plugin_get_site () +
+GList * + +grl_plugin_get_sources () +
const gchar * + +grl_plugin_get_version () +
+
+
+

Properties

+
+++++ + + + + + +
gbooleanloadedRead
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
structGrlPlugin
structGrlPluginClass
#defineGRL_PLUGIN_AUTHOR
#defineGRL_PLUGIN_DESCRIPTION
#defineGRL_PLUGIN_LICENSE
#defineGRL_PLUGIN_NAME
#defineGRL_PLUGIN_SITE
#defineGRL_PLUGIN_VERSION
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlPlugin
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

Grilo is extensible, so GrlSource instances can be loaded at runtime. +A plugin system can provide one or more of the basic

+GriloGrlSource subclasses. +

This is a base class for anything that can be added to a Grilo Plugin.

+
+
+

Functions

+
+

grl_plugin_get_author ()

+
const gchar *
+grl_plugin_get_author (GrlPlugin *plugin);
+

Get the author of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the author of the plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_description ()

+
const gchar *
+grl_plugin_get_description (GrlPlugin *plugin);
+

Get the description of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the description of the plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_filename ()

+
const gchar *
+grl_plugin_get_filename (GrlPlugin *plugin);
+

Get the filename containing the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the filename containing plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_id ()

+
const gchar *
+grl_plugin_get_id (GrlPlugin *plugin);
+

Get the id of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the id of the plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_license ()

+
const gchar *
+grl_plugin_get_license (GrlPlugin *plugin);
+

Get the license of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the license of the plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_module ()

+
GModule *
+grl_plugin_get_module (GrlPlugin *plugin);
+

Gets the GModule containing the plugin

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

a GModule

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_name ()

+
const gchar *
+grl_plugin_get_name (GrlPlugin *plugin);
+

Get the name of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the name of the plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_site ()

+
const gchar *
+grl_plugin_get_site (GrlPlugin *plugin);
+

Get the site of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the site of the plugin +

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_sources ()

+
GList *
+grl_plugin_get_sources (GrlPlugin *plugin);
+

Gets the sources belonging to plugin +.

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

a GList of +GrlSources. The content of the list should not be modified or +freed. Use g_list_free() when done using the list.

+

[transfer container][element-type GrlSource]

+
+

Since: 0.2.0

+
+
+
+

grl_plugin_get_version ()

+
const gchar *
+grl_plugin_get_version (GrlPlugin *plugin);
+

Get the version of the plugin

+
+

Parameters

+
+++++ + + + + + +

plugin

a plugin

 
+
+
+

Returns

+

the version of the plugin +

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+

struct GrlPlugin

+
struct GrlPlugin;
+
+
+
+

struct GrlPluginClass

+
struct GrlPluginClass {
+  GObjectClass parent_class;
+};
+
+
+

Members

+
+++++ + +
+
+
+
+
+

GRL_PLUGIN_AUTHOR

+
#define GRL_PLUGIN_AUTHOR "author"
+
+
+
+
+

GRL_PLUGIN_DESCRIPTION

+
#define GRL_PLUGIN_DESCRIPTION "description"
+
+
+
+
+

GRL_PLUGIN_LICENSE

+
#define GRL_PLUGIN_LICENSE "license"
+
+
+
+
+

GRL_PLUGIN_NAME

+
#define GRL_PLUGIN_NAME "name"
+
+
+
+
+

GRL_PLUGIN_SITE

+
#define GRL_PLUGIN_SITE "site"
+
+
+
+
+

GRL_PLUGIN_VERSION

+
#define GRL_PLUGIN_VERSION "version"
+
+
+
+
+

Property Details

+
+

The “loaded” property

+
  “loaded”                   gboolean
+

TRUE + if plugin is loaded.

+

Flags: Read

+

Default value: FALSE

+

Since: 0.2.0

+
+
+
+

See Also

+

GrlSource

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlRegistry.html b/doc/grilo/html/GrlRegistry.html new file mode 100644 index 0000000..9f43ec1 --- /dev/null +++ b/doc/grilo/html/GrlRegistry.html @@ -0,0 +1,1682 @@ + + + + +GrlRegistry: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlRegistry

+

GrlRegistry — Grilo plugins loader and manager

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+gboolean + +grl_registry_add_config () +
+gboolean + +grl_registry_add_config_from_file () +
+gboolean + +grl_registry_add_config_from_resource () +
+void + +grl_registry_add_directory () +
+GrlRegistry * + +grl_registry_get_default () +
+GList * + +grl_registry_get_metadata_keys () +
+GList * + +grl_registry_get_plugins () +
+GList * + +grl_registry_get_sources () +
+GList * + +grl_registry_get_sources_by_operations () +
+gboolean + +grl_registry_load_all_plugins () +
+gboolean + +grl_registry_load_plugin () +
+gboolean + +grl_registry_load_plugin_directory () +
+gboolean + +grl_registry_load_plugin_from_desc () +
+GrlKeyID + +grl_registry_lookup_metadata_key () +
const gchar * + +grl_registry_lookup_metadata_key_desc () +
const gchar * + +grl_registry_lookup_metadata_key_name () +
const GList * + +grl_registry_lookup_metadata_key_relation () +
+GType + +grl_registry_lookup_metadata_key_type () +
+GrlPlugin * + +grl_registry_lookup_plugin () +
+GrlSource * + +grl_registry_lookup_source () +
+gboolean + +grl_registry_metadata_key_validate () +
+GrlKeyID + +grl_registry_register_metadata_key () +
+gboolean + +grl_registry_register_source () +
+gboolean + +grl_registry_unload_plugin () +
+gboolean + +grl_registry_unregister_source () +
+
+
+

Signals

+
+++++ + + + + + + + + + + + + + + + + + +
voidmetadata-key-addedAction
voidsource-addedAction
voidsource-removedAction
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
enumGrlRank
structGrlRegistry
structGrlRegistryClass
structGrlPluginDescriptor
#defineGRL_PLUGIN_LIST_VAR
#defineGRL_PLUGIN_PATH_VAR
#defineGRL_PLUGIN_RANKS_VAR
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlRegistry
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

The registry holds the metadata of a set of plugins.

+

The GrlRegistry object is a list of plugins and some functions +for dealing with them. Each GrlPlugin is matched 1-1 with a file +on disk, and may or may not be loaded a given time. There only can be +a single instance of GrlRegistry (singleton pattern).

+

A GrlPlugin can hold several data GrlSource sources, and GrlRegistry +shall register each one of them.

+
+
+

Functions

+
+

grl_registry_add_config ()

+
gboolean
+grl_registry_add_config (GrlRegistry *registry,
+                         GrlConfig *config,
+                         GError **error);
+

Add a configuration for a plugin/source.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

config

a configuration set.

[transfer full]

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_registry_add_config_from_file ()

+
gboolean
+grl_registry_add_config_from_file (GrlRegistry *registry,
+                                   const gchar *config_file,
+                                   GError **error);
+

Load plugin configurations from a .ini-like config file.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

config_file

a key-value file containing the configuration

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.0

+
+
+
+

grl_registry_add_config_from_resource ()

+
gboolean
+grl_registry_add_config_from_resource (GrlRegistry *registry,
+                                       const gchar *resource_path,
+                                       GError **error);
+

Load plugin configurations from a .ini-like resource file.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

resource_path

a key-value file containing the configuration

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE on success

+
+

Since: 0.2.8

+
+
+
+

grl_registry_add_directory ()

+
void
+grl_registry_add_directory (GrlRegistry *registry,
+                            const gchar *path);
+

Set this path as part of default paths to load plugins.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

path

a path with plugins

 
+
+

Since: 0.2.0

+
+
+
+

grl_registry_get_default ()

+
GrlRegistry *
+grl_registry_get_default (void);
+

As the registry is designed to work as a singleton, this +method is in charge of creating the only instance or +returned it if it is already in memory.

+
+

Returns

+

a new or an already created instance of the registry.

+

It is NOT MT-safe.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_get_metadata_keys ()

+
GList *
+grl_registry_get_metadata_keys (GrlRegistry *registry);
+

Returns a list with all registered keys in system.

+
+

Parameters

+
+++++ + + + + + +

registry

the registry instance

 
+
+
+

Returns

+

a GList with all the available +GrlKeyIDs. The content of the list should not be modified or freed. +Use g_list_free() when done using the list.

+

[transfer container][element-type GrlKeyID]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_get_plugins ()

+
GList *
+grl_registry_get_plugins (GrlRegistry *registry,
+                          gboolean only_loaded);
+

This function will return all the available plugins in the registry +.

+

If only_loaded + is TRUE, the plugin list will contain only plugins that are +loaded.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

only_loaded

whether the returned list shall include only loaded plugins

 
+
+
+

Returns

+

a GList of +available GrlPlugins. The content of the list should not be modified +or freed. Use g_list_free() when done using the list.

+

[element-type GrlPlugin][transfer container]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_get_sources ()

+
GList *
+grl_registry_get_sources (GrlRegistry *registry,
+                          gboolean ranked);
+

This function will return all the available sources in the registry +.

+

If ranked + is TRUE, the source list will be ordered by rank.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

ranked

whether the returned list shall be returned ordered by rank

 
+
+
+

Returns

+

a GList of +available GrlSources. The content of the list should not be +modified or freed. Use g_list_free() when done using the list.

+

[element-type GrlSource][transfer container]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_get_sources_by_operations ()

+
GList *
+grl_registry_get_sources_by_operations
+                               (GrlRegistry *registry,
+                                GrlSupportedOps ops,
+                                gboolean ranked);
+

Give an array of all the available sources in the registry + capable of +perform the operations requested in ops +.

+

If ranked + is TRUE, the source list will be ordered by rank.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

ops

a bitwise mangle of the requested operations.

 

ranked

whether the returned list shall be returned ordered by rank

 
+
+
+

Returns

+

a GList of +available GrlSources. The content of the list should not be +modified or freed. Use g_list_free() when done using the list.

+

[element-type GrlSource][transfer container]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_load_all_plugins ()

+
gboolean
+grl_registry_load_all_plugins (GrlRegistry *registry,
+                               gboolean activate,
+                               GError **error);
+

Load all the modules available in the default directory path.

+

The default directory path can be changed through the environment +variable GRL_PLUGIN_PATH and it can contain several paths separated +by ":"

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

activate

TRUE if plugins must be activated after loading

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

FALSE% is all the configured plugin paths are invalid, +TRUE% otherwise.

+
+

Since: 0.2.0

+
+
+
+

grl_registry_load_plugin ()

+
gboolean
+grl_registry_load_plugin (GrlRegistry *registry,
+                          const gchar *library_filename,
+                          GError **error);
+

Loads a module from shared object file stored in path +

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

library_filename

the path to the so file

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE if the module is loaded correctly

+
+

Since: 0.2.0

+
+
+
+

grl_registry_load_plugin_directory ()

+
gboolean
+grl_registry_load_plugin_directory (GrlRegistry *registry,
+                                    const gchar *path,
+                                    GError **error);
+

Loads a set of modules from directory in path + which contains +a group shared object files.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

path

the path to the directory

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE if the directory is valid.

+
+

Since: 0.2.0

+
+
+
+

grl_registry_load_plugin_from_desc ()

+
gboolean
+grl_registry_load_plugin_from_desc (GrlRegistry *registry,
+                                    GrlPluginDescriptor *plugin_desc,
+                                    GError **error);
+

Loads the grilo plugin defined by plugin_desc +. This is +used to load plugins that aren't shared libraries, and are +built into applications.

+
+

Example 1. 

+
+ Minimal example for loading a builtin plugin, in C. +
+    static GrlPluginDescriptor descriptor = {
+      .plugin_id = "grl-example",
+      .plugin_init = grl_example_plugin_init,
+    };
+
+    grl_registry_load_plugin_from_desc (registry, &descriptor, &error);
+  
+
+
+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

plugin_desc

the GrlPluginDescriptor for the plugin

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE if the plugin is initialised correctly

+
+

Since: 0.3.0

+
+
+
+

grl_registry_lookup_metadata_key ()

+
GrlKeyID
+grl_registry_lookup_metadata_key (GrlRegistry *registry,
+                                  const gchar *key_name);
+

Look up for the metadata key with name key_name +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

key_name

the key name

 
+
+
+

Returns

+

The metadata key, or GRL_METADATA_KEY_INVALID if not found

+
+

Since: 0.2.0

+
+
+
+

grl_registry_lookup_metadata_key_desc ()

+
const gchar *
+grl_registry_lookup_metadata_key_desc (GrlRegistry *registry,
+                                       GrlKeyID key);
+

Returns key + description.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

key

a metadata key

 
+
+
+

Returns

+

metadata key description, or NULL +if not found

+
+

Since: 0.2.0

+
+
+
+

grl_registry_lookup_metadata_key_name ()

+
const gchar *
+grl_registry_lookup_metadata_key_name (GrlRegistry *registry,
+                                       GrlKeyID key);
+

Returns key + name.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

key

a metadata key

 
+
+
+

Returns

+

metadata key name, or NULL +if not found

+
+

Since: 0.2.0

+
+
+
+

grl_registry_lookup_metadata_key_relation ()

+
const GList *
+grl_registry_lookup_metadata_key_relation
+                               (GrlRegistry *registry,
+                                GrlKeyID key);
+

Look up the list of keys that have a relation with key +.

+

key + is included in that list.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

key

a metadata key

 
+
+
+

Returns

+

a GList of +related keys, or NULL +if key is invalid.

+

[element-type GrlKeyID][transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_lookup_metadata_key_type ()

+
GType
+grl_registry_lookup_metadata_key_type (GrlRegistry *registry,
+                                       GrlKeyID key);
+

Returns key + expected value type.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

key

a metadata key

 
+
+
+

Returns

+

metadata key type, or G_TYPE_INVALID +if not found

+
+

Since: 0.2.0

+
+
+
+

grl_registry_lookup_plugin ()

+
GrlPlugin *
+grl_registry_lookup_plugin (GrlRegistry *registry,
+                            const gchar *plugin_id);
+

This function will search and retrieve a plugin given its identifier.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

plugin_id

the id of a plugin

 
+
+
+

Returns

+

The plugin found.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_lookup_source ()

+
GrlSource *
+grl_registry_lookup_source (GrlRegistry *registry,
+                            const gchar *source_id);
+

This function will search and retrieve a source given its identifier.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

registry

the registry instance

 

source_id

the id of a source

 
+
+
+

Returns

+

The source found.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_registry_metadata_key_validate ()

+
gboolean
+grl_registry_metadata_key_validate (GrlRegistry *registry,
+                                    GrlKeyID key,
+                                    GValue *value);
+

Validates value + content complies with the key specification. That is, it has +the expected type, and value are within the range specified in key (for +integer values).

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

key

a metadata key

 

value

value to be validate

 
+
+
+

Returns

+

TRUE if complies

+
+

Since: 0.2.0

+
+
+
+

grl_registry_register_metadata_key ()

+
GrlKeyID
+grl_registry_register_metadata_key (GrlRegistry *registry,
+                                    GParamSpec *param_spec,
+                                    GrlKeyID bind_key,
+                                    GError **error);
+

Registers a new metadata key, creating a relation between the new key and +bind_key +.

+

Two keys are related when the values of both keys are somehow related.

+

One example of a relation would be the one between the URI of a media +resource and its mime-type: they are both tied together and one does not make +sense without the other.

+

Relations between keys allow the framework to provide all the data that is +somehow related when any of the related keys are requested.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

registry

The plugin registry

 

param_spec

The definition of the key to register.

[transfer full]

bind_key

The key the new key is bind to, or GRL_METADATA_KEY_INVALID if it is not bound.

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

The GrlKeyID registered.

+
+

Since: 0.3.0

+
+
+
+

grl_registry_register_source ()

+
gboolean
+grl_registry_register_source (GrlRegistry *registry,
+                              GrlPlugin *plugin,
+                              GrlSource *source,
+                              GError **error);
+

Register a source + in the registry + with the given plugin + information

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

plugin

the plugin which owns the source

 

source

the source to register.

[transfer full]

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE if success, FALSE% otherwise.

+
+

Since: 0.2.0

+
+
+
+

grl_registry_unload_plugin ()

+
gboolean
+grl_registry_unload_plugin (GrlRegistry *registry,
+                            const gchar *plugin_id,
+                            GError **error);
+

Unload from memory a module identified by plugin_id +. This means call the +module's deinit function.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

plugin_id

the identifier of the plugin

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE% on success.

+
+

Since: 0.2.0

+
+
+
+

grl_registry_unregister_source ()

+
gboolean
+grl_registry_unregister_source (GrlRegistry *registry,
+                                GrlSource *source,
+                                GError **error);
+

Removes the source + from the registry + hash table

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry instance

 

source

the source to unregister

 

error

error return location or NULL +to ignore

 
+
+
+

Returns

+

TRUE if success, FALSE% otherwise.

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+

enum GrlRank

+

Source priority ranks. Defines the order in which the resolver +(or similar rank-picking mechanisms) will choose this source +over an alternative one with the same function.

+

These constants serve as a rough guidance for defining the rank +of a GrlSource. Any value is valid, including values bigger +than GRL_RANK_HIGHEST.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_RANK_LOWEST

+

will be chosen last or not at all

+
 

GRL_RANK_LOW

+

unlikely to be chosen

+
 

GRL_RANK_DEFAULT

+

likely to be chosen

+
 

GRL_RANK_HIGH

+

will be chosen

+
 

GRL_RANK_HIGHEST

+

will be chosen first

+
 
+
+
+
+
+

struct GrlRegistry

+
struct GrlRegistry;
+
+
+
+

struct GrlRegistryClass

+
struct GrlRegistryClass {
+  GObjectClass parent_class;
+};
+
+

Grilo Registry class. Dynamic loader of plugins.

+
+

Members

+
+++++ + +
+
+
+
+
+

struct GrlPluginDescriptor

+
struct GrlPluginDescriptor {
+  gint major_version;
+  gint minor_version;
+  gchar *id;
+  gchar *name;
+  gchar *description;
+  gchar *author;
+  gchar *version;
+  gchar *license;
+  gchar *site;
+
+  GrlPluginInitFunc init;
+  GrlPluginDeinitFunc deinit;
+  GrlPluginRegisterKeysFunc register_keys;
+};
+
+

This structure is used for the module loader

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

gint major_version;

the major version number of core that plugin was compiled for

 

gint minor_version;

the minor version number of core that plugin was compiled for

 

gchar *id;

the plugin identifier

 

gchar *name;

name of plugin

 

gchar *description;

description of plugin

 

gchar *author;

author of plugin

 

gchar *version;

version of plugin

 

gchar *license;

license of plugin

 

gchar *site;

URL to provider of plugin

 

GrlPluginInitFunc init;

  

GrlPluginDeinitFunc deinit;

  

GrlPluginRegisterKeysFunc register_keys;

  
+
+

Since: 0.3.0

+
+
+
+

GRL_PLUGIN_LIST_VAR

+
#define GRL_PLUGIN_LIST_VAR "GRL_PLUGIN_LIST"
+
+
+
+
+

GRL_PLUGIN_PATH_VAR

+
#define GRL_PLUGIN_PATH_VAR "GRL_PLUGIN_PATH"
+
+
+
+
+

GRL_PLUGIN_RANKS_VAR

+
#define GRL_PLUGIN_RANKS_VAR "GRL_PLUGIN_RANKS"
+
+
+
+
+

Signal Details

+
+

The “metadata-key-added” signal

+
void
+user_function (GrlRegistry *registry,
+               gchar       *key,
+               gpointer     user_data)
+

Signals that a new metadata key has been registered.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry

 

key

the name of the new key added

 

user_data

user data set when the signal handler was connected.

 
+
+

Flags: Action

+

Since: 0.2.10

+
+
+
+

The “source-added” signal

+
void
+user_function (GrlRegistry *registry,
+               GrlSource   *source,
+               gpointer     user_data)
+

Signals that a source has been added to the registry.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry

 

source

the source that has been added

 

user_data

user data set when the signal handler was connected.

 
+
+

Flags: Action

+

Since: 0.2.0

+
+
+
+

The “source-removed” signal

+
void
+user_function (GrlRegistry *registry,
+               GrlSource   *source,
+               gpointer     user_data)
+

Signals that a source has been removed from the registry.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

registry

the registry

 

source

the source that has been removed

 

user_data

user data set when the signal handler was connected.

 
+
+

Flags: Action

+

Since: 0.2.0

+
+
+
+

See Also

+

GrlPlugin, GrlSource

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlRelatedKeys.html b/doc/grilo/html/GrlRelatedKeys.html new file mode 100644 index 0000000..51c2a88 --- /dev/null +++ b/doc/grilo/html/GrlRelatedKeys.html @@ -0,0 +1,1115 @@ + + + + +GrlRelatedKeys: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlRelatedKeys

+

GrlRelatedKeys — A class where to store related metadata keys.

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlRelatedKeys * + +grl_related_keys_new () +
+GrlRelatedKeys * + +grl_related_keys_new_valist () +
+GrlRelatedKeys * + +grl_related_keys_new_with_keys () +
+GrlRelatedKeys * + +grl_related_keys_dup () +
const GValue * + +grl_related_keys_get () +
const guint8 * + +grl_related_keys_get_binary () +
+gboolean + +grl_related_keys_get_boolean () +
+gconstpointer + +grl_related_keys_get_boxed () +
+gfloat + +grl_related_keys_get_float () +
+gint + +grl_related_keys_get_int () +
+GList * + +grl_related_keys_get_keys () +
const gchar * + +grl_related_keys_get_string () +
+gboolean + +grl_related_keys_has_key () +
+void + +grl_related_keys_set () +
+void + +grl_related_keys_set_binary () +
+void + +grl_related_keys_set_boolean () +
+void + +grl_related_keys_set_boxed () +
+void + +grl_related_keys_set_float () +
+void + +grl_related_keys_set_int () +
+void + +grl_related_keys_set_string () +
+void + +grl_related_keys_remove () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + +
structGrlRelatedKeys
structGrlRelatedKeysClass
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlRelatedKeys
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

When handling media keys, like artist, URI, mime-type, and so on, some of +these keys are somewhat related: they do not make sense if they are not +accompanied by other keys.

+

For instance, media URI and and mime-type are related keys: mime-type does +not make sense if it is not accompanied by an URI. Moreover, for each URI +value, there is a corresponding mime-type value.

+

GrlRelatedKeys stores related keys and their values in one place, so user +can handle them in one shot.

+
+
+

Functions

+
+

grl_related_keys_new ()

+
GrlRelatedKeys *
+grl_related_keys_new (void);
+

Creates a new GrlRelatedKeys instance that can be used to store related +keys and their values.

+
+

Returns

+

a new object.

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_new_valist ()

+
GrlRelatedKeys *
+grl_related_keys_new_valist (GrlKeyID key,
+                             va_list args);
+

Creates a new GrlRelatedKeys containing pairs of (key, value). Finish the +list with NULL.

+

In case of a binary-type key, the expected element is (key, value, size).

+

value type will be extracted from key information.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

key

first key

 

args

va_list of value, followed by (key,value) pairs to insert

 
+
+
+

Returns

+

a new GrlRelatedKeys

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_new_with_keys ()

+
GrlRelatedKeys *
+grl_related_keys_new_with_keys (GrlKeyID key,
+                                ...);
+

Creates a initial GrlRelatedKeys containing the list of (key, value) +pairs. Finish the list with NULL.

+

For more information see grl_related_keys_new_valist.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

key

first key

 

...

value, following by list of (key, value)

 
+
+
+

Returns

+

a new GrlRelatedKeys

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_dup ()

+
GrlRelatedKeys *
+grl_related_keys_dup (GrlRelatedKeys *relkeys);
+

Makes a deep copy of relkeys + and its contents.

+
+

Parameters

+
+++++ + + + + + +

relkeys

set of related keys to duplicate

 
+
+
+

Returns

+

a new GrlRelatedKeys. +Free it with g_object_unref.

+

[transfer full]

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_get ()

+
const GValue *
+grl_related_keys_get (GrlRelatedKeys *relkeys,
+                      GrlKeyID key);
+

Get the value associated with key + from relkeys +. If it does not contain any +value, NULL will be returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to retrieve value

 

key

key to look up.

[type GrlKeyID]
+
+
+

Returns

+

a GValue. This value should not be modified nor +freed by user.

+

[transfer none]

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_get_binary ()

+
const guint8 *
+grl_related_keys_get_binary (GrlRelatedKeys *relkeys,
+                             GrlKeyID key,
+                             gsize *size);
+

Returns the value associated with key + from relkeys +. If key + has no value, +or value is not a binary, or key + is not in relkeys +, then 0 is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to use.

[type GrlKeyID]

size

location to store the buffer size.

[out]
+
+
+

Returns

+

buffer location associated with key +, or NULL in other case. If +successful size +will be set to the buffer size.

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_get_boolean ()

+
gboolean
+grl_related_keys_get_boolean (GrlRelatedKeys *relkeys,
+                              GrlKeyID key);
+

Returns the value associated with key + from relkeys +. If key + has no value, +or value is not a gboolean, or key + is not in relkeys +, then FALSE is +returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

float value associated with key +, or FALSE in other case.

+
+

Since: 0.2.3

+
+
+
+

grl_related_keys_get_boxed ()

+
gconstpointer
+grl_related_keys_get_boxed (GrlRelatedKeys *relkeys,
+                            GrlKeyID key);
+

Returns the value associated with key + from relkeys +. If key + has no value, +the value is not of a boxed type, or key + is not in relkeys +, then NULL is +returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to use

 
+
+
+

Returns

+

the GBoxed value associated with key +if +possible, or NULL in other case. The caller should not change nor free the +value.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_related_keys_get_float ()

+
gfloat
+grl_related_keys_get_float (GrlRelatedKeys *relkeys,
+                            GrlKeyID key);
+

Returns the value associated with key + from relkeys +. If key + has no value, +or value is not a gfloat, or key + is not in relkeys +, then 0 is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

float value associated with key +, or 0 in other case.

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_get_int ()

+
gint
+grl_related_keys_get_int (GrlRelatedKeys *relkeys,
+                          GrlKeyID key);
+

Returns the value associated with key + from relkeys +. If key + has no value, +or value is not a gint, or key + is not in relkeys +, then 0 is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

int value associated with key +, or 0 in other case.

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_get_keys ()

+
GList *
+grl_related_keys_get_keys (GrlRelatedKeys *relkeys);
+

Returns a list with keys contained in relkeys +.

+
+

Parameters

+
+++++ + + + + + +

relkeys

set of related keys to inspect

 
+
+
+

Returns

+

a list with +the keys. The content of the list should not be modified or freed. Use +g_list_free() when done using the list.

+

[transfer container][element-type GrlKeyID]

+
+

Since: 0.1.13

+
+
+
+

grl_related_keys_get_string ()

+
const gchar *
+grl_related_keys_get_string (GrlRelatedKeys *relkeys,
+                             GrlKeyID key);
+

Returns the value associated with key + from relkeys +. If key + has no value, +or value is not string, or key + is not in relkeys +, then NULL is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to use.

[type GrlKeyID]
+
+
+

Returns

+

string associated with key +, or NULL in other case. Caller should +not change nor free the value.

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_has_key ()

+
gboolean
+grl_related_keys_has_key (GrlRelatedKeys *relkeys,
+                          GrlKeyID key);
+

Checks if key + is in relkeys +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys to inspect

 

key

key to search.

[type GrlKeyID]
+
+
+

Returns

+

TRUE if key +is in relkeys +, FALSE in other case.

+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_set ()

+
void
+grl_related_keys_set (GrlRelatedKeys *relkeys,
+                      GrlKeyID key,
+                      const GValue *value);
+

Sets the value associated with key + into relkeys +. Old value is freed and +the new one is set.

+

Also, checks that value + is compliant with key + specification, modifying it +accordingly. For instance, if key + requires a number between 0 and 10, but +value is outside this range, it will be adapted accordingly.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to modify

 

key

key to change or add.

[type GrlKeyID]

value

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_set_binary ()

+
void
+grl_related_keys_set_binary (GrlRelatedKeys *relkeys,
+                             GrlKeyID key,
+                             const guint8 *buf,
+                             gsize size);
+

Sets the value associated with key + into relkeys +. key + must have been +registered as a binary-type key. Old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to change

 

key

key to change or add.

[type GrlKeyID]

buf

buffer holding the relkeys

 

size

size of the buffer

 
+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_set_boolean ()

+
void
+grl_related_keys_set_boolean (GrlRelatedKeys *relkeys,
+                              GrlKeyID key,
+                              gboolean booleanvalue);
+

Sets the value associated with key + into relkeys +. key + must have been +registered as a boolean-type key. Old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to change

 

key

key to change or add.

[type GrlKeyID]

booleanvalue

the new value

 
+
+

Since: 0.2.3

+
+
+
+

grl_related_keys_set_boxed ()

+
void
+grl_related_keys_set_boxed (GrlRelatedKeys *relkeys,
+                            GrlKeyID key,
+                            gconstpointer boxed);
+

Sets the value associated with key + into relkeys +. key + must have been +registered as a boxed-type key. Old value is freed and the new one is set.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to modify

 

key

key to change or add

 

boxed

the new value

 
+
+

Since: 0.2.0

+
+
+
+

grl_related_keys_set_float ()

+
void
+grl_related_keys_set_float (GrlRelatedKeys *relkeys,
+                            GrlKeyID key,
+                            gfloat floatvalue);
+

Sets the value associated with key + into relkeys +. key + must have been +registered as a float-type key. Old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to change

 

key

key to change or add.

[type GrlKeyID]

floatvalue

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_set_int ()

+
void
+grl_related_keys_set_int (GrlRelatedKeys *relkeys,
+                          GrlKeyID key,
+                          gint intvalue);
+

Sets the value associated with key + into relkeys +. key + must have been +registered as an int-type key. Old value is replaced by the new one.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to change

 

key

key to change or add.

[type GrlKeyID]

intvalue

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_set_string ()

+
void
+grl_related_keys_set_string (GrlRelatedKeys *relkeys,
+                             GrlKeyID key,
+                             const gchar *strvalue);
+

Sets the value associated with key + into relkeys +. key + must have been +registered as a strying-type key. Old value is freed and the new one is set.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

relkeys

set of related keys to modify

 

key

key to change or add.

[type GrlKeyID]

strvalue

the new value

 
+
+

Since: 0.1.10

+
+
+
+

grl_related_keys_remove ()

+
void
+grl_related_keys_remove (GrlRelatedKeys *relkeys,
+                         GrlKeyID key);
+

Removes key + from relkeys + set.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

relkeys

set of related keys

 

key

key to remove.

[type GrlKeyID]
+
+

Since: 0.2.3

+
+
+
+

Types and Values

+
+

struct GrlRelatedKeys

+
struct GrlRelatedKeys;
+
+
+
+

struct GrlRelatedKeysClass

+
struct GrlRelatedKeysClass {
+  GObjectClass parent_class;
+};
+
+

Grilo Data Multivalued class

+
+

Members

+
+++++ + +
+
+
+
+
+

See Also

+

GrlRegistry, GrlData

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/GrlSource.html b/doc/grilo/html/GrlSource.html new file mode 100644 index 0000000..581d661 --- /dev/null +++ b/doc/grilo/html/GrlSource.html @@ -0,0 +1,3493 @@ + + + + +GrlSource: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlSource

+

GrlSource — Abstract base class for sources

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void + +(*GrlSourceRemoveCb) () +
+void + +(*GrlSourceResolveCb) () +
+void + +(*GrlSourceResultCb) () +
+void + +(*GrlSourceStoreCb) () +
+guint + +grl_source_browse () +
+GList * + +grl_source_browse_sync () +
+guint + +grl_source_get_auto_split_threshold () +
+GrlCaps * + +grl_source_get_caps () +
const gchar * + +grl_source_get_description () +
+GIcon * + +grl_source_get_icon () +
const gchar * + +grl_source_get_id () +
+guint + +grl_source_get_media_from_uri () +
+GrlMedia * + +grl_source_get_media_from_uri_sync () +
const gchar * + +grl_source_get_name () +
+GrlPlugin * + +grl_source_get_plugin () +
+gint + +grl_source_get_rank () +
+GrlSupportedMedia + +grl_source_get_supported_media () +
const char ** + +grl_source_get_tags () +
+gboolean + +grl_source_may_resolve () +
+void + +grl_source_notify_change () +
+void + +grl_source_notify_change_list () +
+gboolean + +grl_source_notify_change_start () +
+gboolean + +grl_source_notify_change_stop () +
+guint + +grl_source_query () +
+GList * + +grl_source_query_sync () +
+void + +grl_source_remove () +
+void + +grl_source_remove_sync () +
+guint + +grl_source_resolve () +
+GrlMedia * + +grl_source_resolve_sync () +
+guint + +grl_source_search () +
+GList * + +grl_source_search_sync () +
+void + +grl_source_set_auto_split_threshold () +
const GList * + +grl_source_slow_keys () +
+void + +grl_source_store () +
+void + +grl_source_store_metadata () +
+GList * + +grl_source_store_metadata_sync () +
+void + +grl_source_store_sync () +
const GList * + +grl_source_supported_keys () +
+GrlSupportedOps + +grl_source_supported_operations () +
+gboolean + +grl_source_test_media_from_uri () +
const GList * + +grl_source_writable_keys () +
+
+
+

Properties

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
guintauto-split-thresholdRead / Write
+GrlPlugin *pluginRead / Write / Construct
gintrankRead / Write / Construct
+gchar *source-descRead / Write / Construct
+GIcon *source-iconRead / Write / Construct
+gchar *source-idRead / Write / Construct
+gchar *source-nameRead / Write / Construct
GStrvsource-tagsRead / Write / Construct
GrlSupportedMediasupported-mediaRead / Write / Construct
+
+
+

Signals

+
+++++ + + + + + +
voidcontent-changedAction
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
structGrlSource
structGrlSourceClass
enumGrlResolutionFlags
 GrlSourceBrowseSpec
enumGrlSourceChangeType
 GrlSourceMediaFromUriSpec
 GrlSourceQuerySpec
 GrlSourceRemoveSpec
 GrlSourceResolveSpec
 GrlSourceSearchSpec
 GrlSourceStoreMetadataSpec
 GrlSourceStoreSpec
enumGrlSupportedOps
enumGrlWriteFlags
+
+
+

Object Hierarchy

+
    GObject
+    ╰── GrlSource
+
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

GrlSource is the abstract base class needed to construct a source providing +multimedia information that can be used in a Grilo application.

+

The sources fetch information from different online or local +databases and store them in the GrlMedia.

+
+
+

Functions

+
+

GrlSourceRemoveCb ()

+
void
+(*GrlSourceRemoveCb) (GrlSource *source,
+                      GrlMedia *media,
+                      gpointer user_data,
+                      const GError *error);
+

Prototype for the callback passed to grl_source_remove()

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

a data transfer object.

[transfer full]

user_data

user data passed to grl_source_remove()

 

error

possible GError generated at processing.

[nullable]
+
+
+
+
+

GrlSourceResolveCb ()

+
void
+(*GrlSourceResolveCb) (GrlSource *source,
+                       guint operation_id,
+                       GrlMedia *media,
+                       gpointer user_data,
+                       const GError *error);
+

Prototype for the callback passed to grl_source_resolve(). If the URI did +not resolve to a valid media record, media + will be NULL. If there was an +error during resolution, error + will be set.

+

If media + is non-NULL, ownership of it is transferred to the callback, and +it must be freed afterwards using g_object_unref().

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

operation_id

operation identifier

 

media

a data transfer object.

[transfer full]

user_data

user data passed to grl_source_resolve()

 

error

possible GError generated at processing.

[nullable]
+
+
+
+
+

GrlSourceResultCb ()

+
void
+(*GrlSourceResultCb) (GrlSource *source,
+                      guint operation_id,
+                      GrlMedia *media,
+                      guint remaining,
+                      gpointer user_data,
+                      const GError *error);
+

Prototype for the callback passed to the media sources' methods

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

operation_id

operation identifier

 

media

a data transfer object.

[nullable][transfer full]

remaining

the number of remaining GrlMedia to process, or +GRL_SOURCE_REMAINING_UNKNOWN if it is unknown

 

user_data

user data passed to the used method

 

error

possible GError generated at processing.

[nullable]
+
+
+
+
+

GrlSourceStoreCb ()

+
void
+(*GrlSourceStoreCb) (GrlSource *source,
+                     GrlMedia *media,
+                     GList *failed_keys,
+                     gpointer user_data,
+                     const GError *error);
+

Prototype for the callback passed to grl_source_store_foo functions

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

a GrlMedia transfer object.

[transfer full]

failed_keys

GList of +keys that could not be updated, if any.

[element-type GrlKeyID][transfer none]

user_data

user data

 

error

possible GError generated.

[nullable]
+
+
+
+
+

grl_source_browse ()

+
guint
+grl_source_browse (GrlSource *source,
+                   GrlMedia *container,
+                   const GList *keys,
+                   GrlOperationOptions *options,
+                   GrlSourceResultCb callback,
+                   gpointer user_data);
+

Browse from media elements through an available list.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

container

a container of data transfer objects.

[allow-none]

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+
+

Returns

+

the operation identifier

+
+

Since: 0.2.0

+
+
+
+

grl_source_browse_sync ()

+
GList *
+grl_source_browse_sync (GrlSource *source,
+                        GrlMedia *container,
+                        const GList *keys,
+                        GrlOperationOptions *options,
+                        GError **error);
+

Browse media elements through an available +list.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

container

a container of data transfer objects.

[allow-none]

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a GList with GrlMedia +elements. After use g_object_unref() every element and g_list_free() the +list.

+

[element-type GrlMedia][transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_auto_split_threshold ()

+
guint
+grl_source_get_auto_split_threshold (GrlSource *source);
+

Gets how much elements the source is able to handle in a single request.

+

See grl_source_set_auto_split_threshold()

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

the assigned threshold, or 0 if there is no threshold

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_caps ()

+
GrlCaps *
+grl_source_get_caps (GrlSource *source,
+                     GrlSupportedOps operation);
+

Get the capabilities of source + for operation +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

source

a source

 

operation

a supported operation. Even though the type allows to specify +several operations, only one should be provided here.

 
+
+
+

Returns

+

The capabilities.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_description ()

+
const gchar *
+grl_source_get_description (GrlSource *source);
+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

the description of the source +

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_icon ()

+
GIcon *
+grl_source_get_icon (GrlSource *source);
+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a GIcon.

+

[transfer none]

+
+

Since: 0.2.8

+
+
+
+

grl_source_get_id ()

+
const gchar *
+grl_source_get_id (GrlSource *source);
+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

the ID of the source +

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_media_from_uri ()

+
guint
+grl_source_get_media_from_uri (GrlSource *source,
+                               const gchar *uri,
+                               const GList *keys,
+                               GrlOperationOptions *options,
+                               GrlSourceResolveCb callback,
+                               gpointer user_data);
+

Creates an instance of GrlMedia representing the media resource +exposed at uri +.

+

It is recommended to call grl_source_test_media_from_uri() before invoking +this to check whether the target source can theoretically do the resolution.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

uri

A URI that can be used to identify a media resource

 

keys

A list of keys to resolve.

[element-type GrlKeyID]

options

options wanted for that operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+
+

Returns

+

the operation identifier

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_media_from_uri_sync ()

+
GrlMedia *
+grl_source_get_media_from_uri_sync (GrlSource *source,
+                                    const gchar *uri,
+                                    const GList *keys,
+                                    GrlOperationOptions *options,
+                                    GError **error);
+

Creates an instance of GrlMedia representing the media resource +exposed at uri +.

+

It is recommended to call grl_source_test_media_from_uri() before +invoking this to check whether the target source can theoretically do the +resolution.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

uri

A URI that can be used to identify a media resource

 

keys

a list of keys to resolve.

[element-type GrlKeyID]

options

options wanted for that operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a filled GrlMedia.

+

[transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_name ()

+
const gchar *
+grl_source_get_name (GrlSource *source);
+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

the name of the source +

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_plugin ()

+
GrlPlugin *
+grl_source_get_plugin (GrlSource *source);
+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

the plugin this source belongs to.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_rank ()

+
gint
+grl_source_get_rank (GrlSource *source);
+

Gets the source rank

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

rank value

+
+

Since: 0.2.0

+
+
+
+

grl_source_get_supported_media ()

+
GrlSupportedMedia
+grl_source_get_supported_media (GrlSource *source);
+

Gets the supported type of medias source + can deal with.

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a GrlSupportedMedia value

+
+

Since: 0.3.0

+
+
+
+

grl_source_get_tags ()

+
const char **
+grl_source_get_tags (GrlSource *source);
+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a NULL-terminated list of tags.

+

[element-type utf8][transfer none]

+
+

Since: 0.2.10

+
+
+
+

grl_source_may_resolve ()

+
gboolean
+grl_source_may_resolve (GrlSource *source,
+                        GrlMedia *media,
+                        GrlKeyID key_id,
+                        GList **missing_keys);
+

Checks whether key_id + may be resolved with source + for media +, so that the +caller can avoid calling grl_source_resolve() if it can be known in +advance it will fail.

+

If the resolution is known to be impossible because more keys are needed in +media +, and missing_keys + is not NULL +, it is populated with the list of +GrlKeyID that would be needed.

+

This function is synchronous and should not block.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

a media on which we want more metadata

 

key_id

the key corresponding to a metadata we might want

 

missing_keys

an optional originally empty list.

[element-type GrlKeyID]
+
+
+

Returns

+

TRUE +if there's a possibility that source +resolves key_id +for +media +, FALSE +otherwise.

+
+

Since: 0.2.0

+
+
+
+

grl_source_notify_change ()

+
void
+grl_source_notify_change (GrlSource *source,
+                          GrlMedia *media,
+                          GrlSourceChangeType change_type,
+                          gboolean location_unknown);
+

Emits "content-changed" signal to notify subscribers that a change ocurred +in source +.

+

See grl_source_notify_change_list() function.

+

+ This function is intended to be used only by plugins. +

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

the media which has changed, or NULL +to use the root container.

[allow-none]

change_type

the type of change

 

location_unknown

if change has happened in media +or any descendant

 
+
+

Since: 0.2.0

+
+
+
+

grl_source_notify_change_list ()

+
void
+grl_source_notify_change_list (GrlSource *source,
+                               GPtrArray *changed_medias,
+                               GrlSourceChangeType change_type,
+                               gboolean location_unknown);
+

Emits "content-changed" signal to notify subscribers that a change ocurred +in source +.

+

The function will take ownership of changed + medias and it should not be +manipulated in any way by the caller after invoking this function. If that is +needed, the caller must ref the array in advance.

+

See GrlSource::content-changed signal.

+

+ This function is intended to be used only by plugins. +

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

changed_medias

the list of +medias that have changed.

[element-type GrlMedia][transfer full]

change_type

the type of change

 

location_unknown

if change has happpened in media +or any descendant

 
+
+

Since: 0.2.0

+
+
+
+

grl_source_notify_change_start ()

+
gboolean
+grl_source_notify_change_start (GrlSource *source,
+                                GError **error);
+

Starts emitting ::content-changed signals when source + discovers changes in +the content. This instructs source + to setup the machinery needed to be aware +of changes in the content.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

source

a source

 

error

a GError, or NULL +

 
+
+
+

Returns

+

TRUE +if initialization has succeed.

+
+

Since: 0.2.0

+
+
+
+

grl_source_notify_change_stop ()

+
gboolean
+grl_source_notify_change_stop (GrlSource *source,
+                               GError **error);
+

This will drop emission of ::content-changed signals from source +. When this +is done source + should stop the machinery required for it to track changes in +the content.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

source

a source

 

error

a GError, or NULL +

 
+
+
+

Returns

+

TRUE +if stop has succeed.

+
+

Since: 0.2.0

+
+
+
+

grl_source_query ()

+
guint
+grl_source_query (GrlSource *source,
+                  const gchar *query,
+                  const GList *keys,
+                  GrlOperationOptions *options,
+                  GrlSourceResultCb callback,
+                  gpointer user_data);
+

Execute a specialized query (specific for each provider) on a media +repository.

+

It is different from grl_source_search() semantically, because the query +implies a carefully crafted string, rather than a simple string to search.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

query

the query to process

 

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+
+

Returns

+

the operation identifier

+
+

Since: 0.2.0

+
+
+
+

grl_source_query_sync ()

+
GList *
+grl_source_query_sync (GrlSource *source,
+                       const gchar *query,
+                       const GList *keys,
+                       GrlOperationOptions *options,
+                       GError **error);
+

Execute a specialized query (specific for each provider) on a media +repository.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

query

the query to process

 

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a GList with GrlMedia +elements. After use g_object_unref() every element and g_list_free() the +list.

+

[element-type GrlMedia][transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_source_remove ()

+
void
+grl_source_remove (GrlSource *source,
+                   GrlMedia *media,
+                   GrlSourceRemoveCb callback,
+                   gpointer user_data);
+

Remove a media + from the source + repository.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

a data transfer object

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+

Since: 0.2.0

+
+
+
+

grl_source_remove_sync ()

+
void
+grl_source_remove_sync (GrlSource *source,
+                        GrlMedia *media,
+                        GError **error);
+

Remove a media + from the source + repository.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

source

a source

 

media

a data transfer object

 

error

a GError, or NULL +

 
+
+

Since: 0.2.0

+
+
+
+

grl_source_resolve ()

+
guint
+grl_source_resolve (GrlSource *source,
+                    GrlMedia *media,
+                    const GList *keys,
+                    GrlOperationOptions *options,
+                    GrlSourceResolveCb callback,
+                    gpointer user_data);
+

This method is intended to fetch the requested keys of metadata of +a given media + to the media source.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

a data transfer object.

[allow-none][transfer full]

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options to pass to this operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+
+

Returns

+

the operation identifie

+
+

Since: 0.2.0

+
+
+
+

grl_source_resolve_sync ()

+
GrlMedia *
+grl_source_resolve_sync (GrlSource *source,
+                         GrlMedia *media,
+                         const GList *keys,
+                         GrlOperationOptions *options,
+                         GError **error);
+

This method is intended to fetch the requested keys of metadata of +a given media + to the media source.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

a data transfer object.

[allow-none][transfer full]

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options to pass to this operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a filled GrlMedia.

+

[transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_source_search ()

+
guint
+grl_source_search (GrlSource *source,
+                   const gchar *text,
+                   const GList *keys,
+                   GrlOperationOptions *options,
+                   GrlSourceResultCb callback,
+                   gpointer user_data);
+

Search for the text + string in a source for data identified with that string.

+

If text + is NULL + then no text filter will be applied, and thus, no media +items from source + will be filtered. If source + does not support NULL-text +search operations it should notiy the client by setting +GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED + in callback +'s error parameter.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

text

the text to search

 

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+
+

Returns

+

the operation identifier

+
+

Since: 0.2.0

+
+
+
+

grl_source_search_sync ()

+
GList *
+grl_source_search_sync (GrlSource *source,
+                        const gchar *text,
+                        const GList *keys,
+                        GrlOperationOptions *options,
+                        GError **error);
+

Search for the text + string in a source for data identified with that string.

+

If text + is NULL + then no text filter will be applied, and thus, no media +items from source + will be filtered. If source + does not support NULL-text +search operations it should notiy the client by setting +GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED + in the error parameter.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

text

the text to search

 

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a GList with GrlMedia +elements. After use g_object_unref() every element and g_list_free() the +list.

+

[element-type GrlMedia][transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_source_set_auto_split_threshold ()

+
void
+grl_source_set_auto_split_threshold (GrlSource *source,
+                                     guint threshold);
+

Sets how much elements the source is able to handle in a single request.

+

If user, during a search or browsing operation, asks for more elements than +the threshold, the request will be automatically splitted in chunks, so up to +threshold + elements will be asked in each request.

+

Source will act as if user were asking just a chunk, and user won't notice +that the request was chunked.

+

+ This function is intended to be used only by plugins. +

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

source

a source

 

threshold

the threshold to set

 
+
+

Since: 0.2.0

+
+
+
+

grl_source_slow_keys ()

+
const GList *
+grl_source_slow_keys (GrlSource *source);
+

Similar to grl_source_supported_keys(), but these keys +are marked as slow because of the amount of traffic/processing needed +to fetch them.

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a GList with the keys.

+

[element-type GrlKeyID][transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_source_store ()

+
void
+grl_source_store (GrlSource *source,
+                  GrlMedia *parent,
+                  GrlMedia *media,
+                  GrlWriteFlags flags,
+                  GrlSourceStoreCb callback,
+                  gpointer user_data);
+

Store the media + into the parent + container

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

parent

a parent to store the data transfer objects.

[allow-none]

media

a data transfer object

 

flags

flags to configure specific behaviour of the operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+

Since: 0.3.0

+
+
+
+

grl_source_store_metadata ()

+
void
+grl_source_store_metadata (GrlSource *source,
+                           GrlMedia *media,
+                           GList *keys,
+                           GrlWriteFlags flags,
+                           GrlSourceStoreCb callback,
+                           gpointer user_data);
+

Get the values for keys + from media + and store it permanently. After +calling this method, future queries that return this media object +shall return this new values for the selected keys.

+

This function is asynchronous and uses the Glib's main loop.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a metadata source

 

media

the GrlMedia object that we want to operate on.

 

keys

a list +of GrlKeyID whose values we want to change.

[element-type GrlKeyID][allow-none]

flags

Flags to configure specific behaviors of the operation.

 

callback

the callback to execute when the operation is finished.

[scope notified]

user_data

user data set for the callback +

 
+
+

Since: 0.2.0

+
+
+
+

grl_source_store_metadata_sync ()

+
GList *
+grl_source_store_metadata_sync (GrlSource *source,
+                                GrlMedia *media,
+                                GList *keys,
+                                GrlWriteFlags flags,
+                                GError **error);
+

Update keys + values from media + in the source +. After calling this method, +future queries that return this media object shall return this new value for +the selected key.

+

This function is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

media

the GrlMedia object that we want to operate on

 

keys

a list of +GrlKeyID whose values we want to change.

[element-type GrlKeyID][allow-none]

flags

Flags to configure specific behaviors of the operation.

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a GList of keys that could not be updated, or NULL +.

+

[element-type GrlKeyID][transfer container]

+
+

Since: 0.2.0

+
+
+
+

grl_source_store_sync ()

+
void
+grl_source_store_sync (GrlSource *source,
+                       GrlMedia *parent,
+                       GrlMedia *media,
+                       GrlWriteFlags flags,
+                       GError **error);
+

Store the media + into the parent + container.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

parent

a GrlMedia container to store the data transfer objects.

[allow-none]

media

a GrlMedia data transfer object

 

flags

flags to configure specific behaviour of the operation

 

error

a GError, or NULL +

 
+
+

Since: 0.3.0

+
+
+
+

grl_source_supported_keys ()

+
const GList *
+grl_source_supported_keys (GrlSource *source);
+

Get a list of GrlKeyID, which describe a metadata types that this +source can fetch and store.

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a GList with the keys.

+

[element-type GrlKeyID][transfer none]

+
+

Since: 0.2.0

+
+
+
+

grl_source_supported_operations ()

+
GrlSupportedOps
+grl_source_supported_operations (GrlSource *source);
+

By default the derived objects of GrlSource can only resolve.

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a bitwise mangle with the supported operations by +the source.

+

[type uint]

+
+

Since: 0.2.0

+
+
+
+

grl_source_test_media_from_uri ()

+
gboolean
+grl_source_test_media_from_uri (GrlSource *source,
+                                const gchar *uri);
+

Tests whether source + can instantiate a GrlMedia object representing +the media resource exposed at uri +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

source

a source

 

uri

A URI that can be used to identify a media resource

 
+
+
+

Returns

+

TRUE if it can, FALSE otherwise.

+

This method is synchronous.

+
+

Since: 0.2.0

+
+
+
+

grl_source_writable_keys ()

+
const GList *
+grl_source_writable_keys (GrlSource *source);
+

Similar to grl_source_supported_keys(), but these keys +are marked as writable, meaning the source allows the client +to provide new values for these keys that will be stored permanently.

+
+

Parameters

+
+++++ + + + + + +

source

a source

 
+
+
+

Returns

+

a GList with the keys.

+

[element-type GrlKeyID][transfer none]

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+

struct GrlSource

+
struct GrlSource;
+
+
+
+

struct GrlSourceClass

+
struct GrlSourceClass {
+  GObjectClass parent_class;
+
+  GrlSupportedOps (*supported_operations) (GrlSource *source);
+
+  const GList * (*supported_keys) (GrlSource *source);
+
+  const GList * (*slow_keys) (GrlSource *source);
+
+  const GList * (*writable_keys) (GrlSource *source);
+
+  GrlCaps * (*get_caps) (GrlSource *source, GrlSupportedOps operation);
+
+  void (*resolve) (GrlSource *source, GrlSourceResolveSpec *ms);
+
+  gboolean (*may_resolve) (GrlSource *source, GrlMedia *media,
+                           GrlKeyID key_id, GList **missing_keys);
+
+  gboolean (*test_media_from_uri) (GrlSource *source,
+                                   const gchar *uri);
+
+  void (*media_from_uri) (GrlSource *source,
+                          GrlSourceMediaFromUriSpec *mfus);
+
+  void (*browse) (GrlSource *source, GrlSourceBrowseSpec *bs);
+
+  void (*search) (GrlSource *source, GrlSourceSearchSpec *ss);
+
+  void (*query) (GrlSource *source, GrlSourceQuerySpec *qs);
+
+  void (*remove) (GrlSource *source, GrlSourceRemoveSpec *rs);
+
+  void (*store) (GrlSource *source, GrlSourceStoreSpec *ss);
+
+  void (*store_metadata) (GrlSource *source, GrlSourceStoreMetadataSpec *sms);
+
+  void (*cancel) (GrlSource *source, guint operation_id);
+
+  gboolean (*notify_change_start) (GrlSource *source,
+                                    GError **error);
+
+  gboolean (*notify_change_stop) (GrlSource *source,
+                                  GError **error);
+};
+
+

Grilo Source class. Override the vmethods to implement the +element functionality.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

supported_operations ()

the operations that can be called

 

supported_keys ()

the list of keys that can be handled

 

slow_keys ()

the list of slow keys that can be fetched

 

writable_keys ()

the list of keys which value can be written

 

get_caps ()

the capabilities that source +supports for operation +

 

resolve ()

resolve the metadata of a given transfer object

 

may_resolve ()

return FALSE if it can be known without blocking that key_id +

 

test_media_from_uri ()

tests if this source can create GrlMedia +instances from a given URI.

 

media_from_uri ()

Creates a GrlMedia instance representing the media +exposed by a certain URI.

 

browse ()

browse through a list of media

 

search ()

search for media

 

query ()

query for a specific media

 

remove ()

remove a media from a container

 

store ()

store a media in a container

 

store_metadata ()

update metadata values for a given object in a +permanent fashion

 

cancel ()

cancel the current operation

 

notify_change_start ()

start emitting signals about changes in content

 

notify_change_stop ()

stop emitting signals about changes in content

 
+
+
+
+
+

enum GrlResolutionFlags

+

Resolution flags

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

GRL_RESOLVE_NORMAL

+

Normal mode.

+
 

GRL_RESOLVE_FULL

+

Try other plugins if necessary.

+
 

GRL_RESOLVE_IDLE_RELAY

+

Use idle loop to relay results.

+
 

GRL_RESOLVE_FAST_ONLY

+

Only resolve fast metadata keys.

+
 
+
+
+
+
+

GrlSourceBrowseSpec

+
typedef struct {
+  GrlSource *source;
+  guint operation_id;
+  GrlMedia *container;
+  GList *keys;
+  GrlOperationOptions *options;
+    GrlSourceResultCb callback;
+  gpointer user_data;
+} GrlSourceBrowseSpec;
+
+

Data transport structure used internally by the plugins which support +browse vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

guint operation_id;

operation identifier

 

GrlMedia *container;

a container of data transfer objects

 

GList *keys;

the GList of GrlKeyIDs to request

 

GrlOperationOptions *options;

options wanted for that operation

 

GrlSourceResultCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

enum GrlSourceChangeType

+

Specifies which kind of change has happened in the plugin

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + +

GRL_CONTENT_CHANGED

+

content has changed. It is used when any property of +GrlMedia has changed, or in case of containers, if several children have +been added and removed.

+
 

GRL_CONTENT_ADDED

+

new content has been added.

+
 

GRL_CONTENT_REMOVED

+

content has been removed

+
 
+
+
+
+
+

GrlSourceMediaFromUriSpec

+
typedef struct {
+  GrlSource *source;
+  guint operation_id;
+  gchar *uri;
+  GList *keys;
+  GrlOperationOptions *options;
+  GrlSourceResolveCb callback;
+  gpointer user_data;
+} GrlSourceMediaFromUriSpec;
+
+

Data transport structure used internally by the plugins which support +media_from_uri vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

guint operation_id;

operation identifier

 

gchar *uri;

A URI that can be used to identify a media resource

 

GList *keys;

Metadata keys to resolve

 

GrlOperationOptions *options;

options wanted for that operation

 

GrlSourceResolveCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

GrlSourceQuerySpec

+
typedef struct {
+  GrlSource *source;
+  guint operation_id;
+  gchar *query;
+  GList *keys;
+  GrlOperationOptions *options;
+  GrlSourceResultCb callback;
+  gpointer user_data;
+} GrlSourceQuerySpec;
+
+

Data transport structure used internally by the plugins which support +query vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

guint operation_id;

operation identifier

 

gchar *query;

the query to process

 

GList *keys;

the GList of GrlKeyIDs to request

 

GrlOperationOptions *options;

options wanted for that operation

 

GrlSourceResultCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

GrlSourceRemoveSpec

+
typedef struct {
+  GrlSource *source;
+  gchar *media_id;
+  GrlMedia *media;
+  GrlSourceRemoveCb callback;
+  gpointer user_data;
+} GrlSourceRemoveSpec;
+
+

Data transport structure used internally by the plugins which support +store vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

gchar *media_id;

media identifier to remove

 

GrlMedia *media;

a data transfer object

 

GrlSourceRemoveCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

GrlSourceResolveSpec

+
typedef struct {
+  GrlSource *source;
+  guint operation_id;
+  GrlMedia *media;
+  GList *keys;
+  GrlOperationOptions *options;
+  GrlSourceResolveCb callback;
+  gpointer user_data;
+} GrlSourceResolveSpec;
+
+

Data transport structure used internally by the plugins which support +resolve vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

guint operation_id;

operation identifier

 

GrlMedia *media;

a data transfer object

 

GList *keys;

the GList of GrlKeyIDs to request

 

GrlOperationOptions *options;

options wanted for that operation

 

GrlSourceResolveCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

GrlSourceSearchSpec

+
typedef struct {
+  GrlSource *source;
+  guint operation_id;
+  gchar *text;
+  GList *keys;
+  GrlOperationOptions *options;
+  GrlSourceResultCb callback;
+  gpointer user_data;
+} GrlSourceSearchSpec;
+
+

Data transport structure used internally by the plugins which support +search vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

guint operation_id;

operation identifier

 

gchar *text;

the text to search

 

GList *keys;

the GList of GrlKeyIDs to request

 

GrlOperationOptions *options;

options wanted for that operation

 

GrlSourceResultCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

GrlSourceStoreMetadataSpec

+
typedef struct {
+  GrlSource *source;
+  GrlMedia *media;
+  GList *keys;
+  GrlWriteFlags flags;
+  GrlSourceStoreCb callback;
+  gpointer user_data;
+  GList *failed_keys;
+} GrlSourceStoreMetadataSpec;
+
+

Data transport structure used internally by the plugins which support +store_metadata vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a source

 

GrlMedia *media;

a GrlMedia transfer object

 

GList *keys;

List of keys to be stored/updated.

 

GrlWriteFlags flags;

Flags to control specific bahviors of the set metadata operation.

 

GrlSourceStoreCb callback;

the callback passed to grl_source_store_metadata()

 

gpointer user_data;

user data passed to grl_source_store_metadata()

 

GList *failed_keys;

for internal use of the framework only.

 
+
+
+
+
+

GrlSourceStoreSpec

+
typedef struct {
+  GrlSource *source;
+  GrlMedia *parent;
+  GrlMedia *media;
+  GrlSourceStoreCb callback;
+  gpointer user_data;
+} GrlSourceStoreSpec;
+
+

Data transport structure used internally by the plugins which support +store vmethod.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GrlSource *source;

a media source

 

GrlMedia *parent;

a parent to store the data transfer objects

 

GrlMedia *media;

a data transfer object

 

GrlSourceStoreCb callback;

the user defined callback

 

gpointer user_data;

the user data to pass in the callback

 
+
+
+
+
+

enum GrlSupportedOps

+

Bitwise flags which reflect the kind of operations that a +GrlSource supports.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_OP_NONE

+

no operation is supported

+
 

GRL_OP_RESOLVE

+

Fetch specific keys of metadata based on other metadata.

+
 

GRL_OP_BROWSE

+

Retrieve complete sets of GrlMedia

+
 

GRL_OP_SEARCH

+

Look up for GrlMedia given a search text

+
 

GRL_OP_QUERY

+

Look up for GrlMedia give a service specific query

+
 

GRL_OP_STORE

+

Store content in a service

+
 

GRL_OP_STORE_PARENT

+

Store content as child of a certian parent category.

+
 

GRL_OP_STORE_METADATA

+

Update metadata of a GrlMedia in a service.

+
 

GRL_OP_REMOVE

+

Remove content from a service.

+
 

GRL_OP_MEDIA_FROM_URI

+

Create a GrlMedia instance from an URI +representing a media resource.

+
 

GRL_OP_NOTIFY_CHANGE

+

Notify about changes in the GrlSource.

+
 
+
+
+
+
+

enum GrlWriteFlags

+

Flags for writing operations.

+
+

Members

+
+++++ + + + + + + + + + + + + +

GRL_WRITE_NORMAL

+

Normal mode.

+
 

GRL_WRITE_FULL

+

Try other plugins if necessary.

+
 
+
+
+
+
+

Property Details

+
+

The “auto-split-threshold” property

+
  “auto-split-threshold”     guint
+

Transparently split queries with count requests +bigger than a certain threshold into smaller queries.

+

Flags: Read / Write

+

Default value: 0

+

Since: 0.2.0

+
+
+
+

The “plugin” property

+
  “plugin”                   GrlPlugin *
+

Plugin the source belongs to

+

Flags: Read / Write / Construct

+

Since: 0.2.0

+
+
+
+

The “rank” property

+
  “rank”                     gint
+

Source rank

+

Flags: Read / Write / Construct

+

Default value: 0

+

Since: 0.2.0

+
+
+
+

The “source-desc” property

+
  “source-desc”              gchar *
+

A description of the source

+

Flags: Read / Write / Construct

+

Default value: ""

+

Since: 0.2.0

+
+
+
+

The “source-icon” property

+
  “source-icon”              GIcon *
+

GIcon representing the source

+

Flags: Read / Write / Construct

+

Since: 0.2.8

+
+
+
+

The “source-id” property

+
  “source-id”                gchar *
+

The identifier of the source.

+

Flags: Read / Write / Construct

+

Default value: ""

+

Since: 0.2.0

+
+
+
+

The “source-name” property

+
  “source-name”              gchar *
+

The name of the source.

+

Flags: Read / Write / Construct

+

Default value: ""

+

Since: 0.2.0

+
+
+
+

The “source-tags” property

+
  “source-tags”              GStrv
+

A string array of tags relevant this source.

+

The tags are arbitrary, and applications should just pass over the tags +it does not understand. Applications would usually use this to either +group sources together, or hide certain sources: a radio application +would filter for GRL_MEDIA_TYPE_AUDIO in GrlSource::supported-media as +well as "radio" being listed in the tags.

+

To avoid irrelevant content being listed in applications, sources +such as generic video sites should not be tagged as "cinema" or +"tv" as they contain a lot of content that's not either of those.

+

This is a list of commonly used values:

+
    +
  • "cinema", or "tv" +The content served is from cinema or TV sources. For example, a +source for movie trailers would select the former, a source for +streaming live TV would select the latter.

  • +
  • "radio" +The content served is from streaming radios.

  • +
  • "music" +The content served is music, for example, music stores such as +Jamendo or Magnatune.

  • +
  • "country:country-code" +The content is mostly relevant to users from a particular country, +such as a national broadcaster. For example, BBC content would be +tagged as "country:uk". Country codes should be an ISO-639-1 or +ISO-639-2 code.

  • +
  • "protocol:protocol-name" +The content browsing or searching uses a particular protocol, such +as DLNA/UPnP or DMAP/DAAP. This makes it easier to whitelist or +blacklist sources rather than matching the implementation specific +source ID. Examples are "protocol:dlna" and "protocol:dmap".

  • +
  • +

    "localhost", or "localuser" +The content is served from the machine the application is running on, +or by an application the user is running. Applications might choose to +avoid showing the user's own data in their interfaces, or integrate it +in the user's local collection.

    +

    "net:local", or "net:internet" +The source requires a connection to the local network, or a connection +to the Internet. Sources with those tags will be automatically hidden +from the application's reach when such networks aren't available, or +we're not connected to a network.

    +

    "net:plaintext" +The source makes requests over plain text, non-encrypted, network channels, +such as using HTTP to do searches or lookups. Applications would usually +disable those by default, so that privacy is respected by default, and no +data is leaked unintentionally.

    +
  • +
+

Flags: Read / Write / Construct

+

Since: 0.2.10

+
+
+
+

The “supported-media” property

+
  “supported-media”          GrlSupportedMedia
+

List of supported media types by this source.

+

Flags: Read / Write / Construct

+

Default value: GRL_SUPPORTED_MEDIA_AUDIO | GRL_SUPPORTED_MEDIA_VIDEO | GRL_SUPPORTED_MEDIA_IMAGE

+

Since: 0.2.3

+
+
+
+

Signal Details

+
+

The “content-changed” signal

+
void
+user_function (GrlSource          *source,
+               GPtrArray          *changed_medias,
+               GrlSourceChangeType change_type,
+               gboolean            location_unknown,
+               gpointer            user_data)
+

Signals that the content in the source has changed. changed_medias + is the +list of elements that have changed. Usually these medias are of type +GrlMedia container, meaning that the content of that container has changed.

+

If location_unknown + is TRUE + it means the source cannot establish where the +change happened: could be either in the container, in any child, or in any other +descendant of the container in the hierarchy.

+

Both change_type + and location_unknown + are applied to all elements in the +list.

+

For the cases where the source can only signal that a change happened, but +not where, it would use a list with the the root container (NULL + id) and set +location_unknown as TRUE +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

source that has changed

 

changed_medias

a GPtrArray with the medias +that changed or a common ancestor of them of type GrlMedia.

[element-type GrlMedia]

change_type

the kind of change that ocurred

 

location_unknown

TRUE +if the change happened in media +itself or in one +of its direct children (when media +is a GrlMedia). FALSE +otherwise

 

user_data

user data set when the signal handler was connected.

 
+
+

Flags: Action

+

Since: 0.2.0

+
+
+
+

See Also

+

GrlPlugin, GrlSource, GrlMedia

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/annotation-glossary.html b/doc/grilo/html/annotation-glossary.html new file mode 100644 index 0000000..115d210 --- /dev/null +++ b/doc/grilo/html/annotation-glossary.html @@ -0,0 +1,82 @@ + + + + +Annotation Glossary: Grilo Reference Manual + + + + + + + + + + + + + + + +
+

+Annotation Glossary

+

A

+
allow-none
+

NULL is OK, both for passing and for returning.

+
array
+

Parameter points to an array of items.

+

E

+
element-type
+

Generics and defining elements of containers and arrays.

+

I

+
in
+

Parameter for input. Default is transfer none.

+
inout
+

Parameter for input and for returning results. Default is transfer full.

+

N

+
nullable
+

NULL may be passed as the value in, out, in-out; or as a return value.

+

O

+
out
+

Parameter for returning results. Default is transfer full.

+
out callee-allocates
+

Out parameter, where caller must allocate storage.

+

R

+
rename-to
+

Rename the original symbol's name to SYMBOL.

+

S

+
scope async
+

The callback is valid until first called.

+
scope notified
+

The callback is valid until the GDestroyNotify argument is called.

+
skip
+

Exposed in C code, not necessarily available in other languages.

+

T

+
transfer container
+

Free data container after the code is done.

+
transfer full
+

Free data after the code is done.

+
transfer none
+

Don't free data after the code is done.

+
type
+

Override the parsed C type with given type.

+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/api-index-full.html b/doc/grilo/html/api-index-full.html new file mode 100644 index 0000000..cca7da9 --- /dev/null +++ b/doc/grilo/html/api-index-full.html @@ -0,0 +1,2209 @@ + + + + +API Index: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+API Index

+

C

+
+GrlCaps, struct in GrlCaps +
+
+
+GrlCapsClass, struct in GrlCaps +
+
+
+grl_caps_get_key_filter, function in GrlCaps +
+
+
+grl_caps_get_key_range_filter, function in GrlCaps +
+
+
+grl_caps_get_type_filter, function in GrlCaps +
+
+
+grl_caps_is_key_filter, function in GrlCaps +
+
+
+grl_caps_is_key_range_filter, function in GrlCaps +
+
+
+grl_caps_new, function in GrlCaps +
+
+
+grl_caps_set_key_filter, function in GrlCaps +
+
+
+grl_caps_set_key_range_filter, function in GrlCaps +
+
+
+grl_caps_set_type_filter, function in GrlCaps +
+
+
+grl_caps_test_option, function in GrlCaps +
+
+
+GrlConfig, struct in GrlConfig +
+
+
+GrlConfigClass, struct in GrlConfig +
+
+
+grl_config_get_api_key, function in GrlConfig +
+
+
+grl_config_get_api_key_blob, function in GrlConfig +
+
+
+grl_config_get_api_secret, function in GrlConfig +
+
+
+grl_config_get_api_token, function in GrlConfig +
+
+
+grl_config_get_api_token_secret, function in GrlConfig +
+
+
+grl_config_get_binary, function in GrlConfig +
+
+
+grl_config_get_boolean, function in GrlConfig +
+
+
+grl_config_get_float, function in GrlConfig +
+
+
+grl_config_get_int, function in GrlConfig +
+
+
+grl_config_get_password, function in GrlConfig +
+
+
+grl_config_get_plugin, function in GrlConfig +
+
+
+grl_config_get_source, function in GrlConfig +
+
+
+grl_config_get_string, function in GrlConfig +
+
+
+grl_config_get_username, function in GrlConfig +
+
+
+grl_config_has_param, function in GrlConfig +
+
+
+GRL_CONFIG_KEY_APIKEY, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_APIKEY_BLOB, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_APISECRET, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_APITOKEN, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_APITOKEN_SECRET, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_PASSWORD, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_PLUGIN, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_SOURCE, macro in GrlConfig +
+
+
+GRL_CONFIG_KEY_USERNAME, macro in GrlConfig +
+
+
+grl_config_new, function in GrlConfig +
+
+
+grl_config_set, function in GrlConfig +
+
+
+grl_config_set_api_key, function in GrlConfig +
+
+
+grl_config_set_api_key_blob, function in GrlConfig +
+
+
+grl_config_set_api_secret, function in GrlConfig +
+
+
+grl_config_set_api_token, function in GrlConfig +
+
+
+grl_config_set_api_token_secret, function in GrlConfig +
+
+
+grl_config_set_binary, function in GrlConfig +
+
+
+grl_config_set_boolean, function in GrlConfig +
+
+
+grl_config_set_float, function in GrlConfig +
+
+
+grl_config_set_int, function in GrlConfig +
+
+
+grl_config_set_password, function in GrlConfig +
+
+
+grl_config_set_plugin, function in GrlConfig +
+
+
+grl_config_set_source, function in GrlConfig +
+
+
+grl_config_set_string, function in GrlConfig +
+
+
+grl_config_set_username, function in GrlConfig +
+
+
+GrlCoreError, enum in grl-error +
+
+
+GRL_CORE_ERROR, macro in grl-error +
+
+
+GRL_COUNT_INFINITY, macro in GrlOperationOptions +
+
+

D

+
+GrlData, struct in GrlData +
+
+
+GrlDataClass, struct in GrlData +
+
+
+grl_data_add_binary, function in GrlData +
+
+
+grl_data_add_boxed, function in GrlData +
+
+
+grl_data_add_float, function in GrlData +
+
+
+grl_data_add_int, function in GrlData +
+
+
+grl_data_add_related_keys, function in GrlData +
+
+
+grl_data_add_string, function in GrlData +
+
+
+grl_data_dup, function in GrlData +
+
+
+grl_data_get, function in GrlData +
+
+
+grl_data_get_binary, function in GrlData +
+
+
+grl_data_get_boolean, function in GrlData +
+
+
+grl_data_get_boxed, function in GrlData +
+
+
+grl_data_get_float, function in GrlData +
+
+
+grl_data_get_int, function in GrlData +
+
+
+grl_data_get_keys, function in GrlData +
+
+
+grl_data_get_related_keys, function in GrlData +
+
+
+grl_data_get_single_values_for_key, function in GrlData +
+
+
+grl_data_get_single_values_for_key_string, function in GrlData +
+
+
+grl_data_get_string, function in GrlData +
+
+
+grl_data_has_key, function in GrlData +
+
+
+grl_data_length, function in GrlData +
+
+
+grl_data_new, function in GrlData +
+
+
+grl_data_remove, function in GrlData +
+
+
+grl_data_remove_nth, function in GrlData +
+
+
+grl_data_set, function in GrlData +
+
+
+grl_data_set_binary, function in GrlData +
+
+
+grl_data_set_boolean, function in GrlData +
+
+
+grl_data_set_boxed, function in GrlData +
+
+
+grl_data_set_float, function in GrlData +
+
+
+grl_data_set_int, function in GrlData +
+
+
+grl_data_set_related_keys, function in GrlData +
+
+
+grl_data_set_string, function in GrlData +
+
+
+grl_date_time_from_iso8601, function in grl-util +
+
+
+GRL_DEBUG, macro in grl-log +
+
+
+grl_deinit, function in grilo +
+
+

E

+
+GRL_ERROR, macro in grl-log +
+
+

I

+
+GRL_INFO, macro in grl-log +
+
+
+grl_init, function in grilo +
+
+
+grl_init_get_option_group, function in grilo +
+
+

K

+
+GrlKeyID, typedef in grl-metadata-key +
+
+
+GRL_KEYID_FORMAT, macro in grl-metadata-key +
+
+
+GRLKEYID_TO_POINTER, macro in grl-metadata-key +
+
+

L

+
+grl_list_from_va, function in grl-util +
+
+
+GRL_LOG, macro in grl-log +
+
+
+grl_log, function in grl-log +
+
+
+GrlLogDomain, struct in grl-log +
+
+
+GrlLogLevel, enum in grl-log +
+
+
+grl_log_configure, function in grl-log +
+
+
+GRL_LOG_DOMAIN, macro in grl-log +
+
+
+GRL_LOG_DOMAIN_DEFAULT, variable in grl-log +
+
+
+GRL_LOG_DOMAIN_EXTERN, macro in grl-log +
+
+
+GRL_LOG_DOMAIN_FREE, macro in grl-log +
+
+
+grl_log_domain_free, function in grl-log +
+
+
+GRL_LOG_DOMAIN_INIT, macro in grl-log +
+
+
+grl_log_domain_new, function in grl-log +
+
+
+GRL_LOG_DOMAIN_STATIC, macro in grl-log +
+
+

M

+
+GrlMedia, struct in GrlMedia +
+
+
+GrlMedia:media-type, object property in GrlMedia +
+
+
+GrlMediaClass, struct in GrlMedia +
+
+
+GrlMediaSerializeType, enum in GrlMedia +
+
+
+GrlMediaType, enum in GrlMedia +
+
+
+grl_media_add_artist, function in GrlMedia +
+
+
+grl_media_add_author, function in GrlMedia +
+
+
+grl_media_add_director, function in GrlMedia +
+
+
+grl_media_add_external_player, function in GrlMedia +
+
+
+grl_media_add_external_url, function in GrlMedia +
+
+
+grl_media_add_genre, function in GrlMedia +
+
+
+grl_media_add_keyword, function in GrlMedia +
+
+
+grl_media_add_lyrics, function in GrlMedia +
+
+
+grl_media_add_mb_artist_id, function in GrlMedia +
+
+
+grl_media_add_performer, function in GrlMedia +
+
+
+grl_media_add_producer, function in GrlMedia +
+
+
+grl_media_add_region_data, function in GrlMedia +
+
+
+grl_media_add_thumbnail, function in GrlMedia +
+
+
+grl_media_add_thumbnail_binary, function in GrlMedia +
+
+
+grl_media_add_url_data, function in GrlMedia +
+
+
+grl_media_audio_new, function in GrlMedia +
+
+
+grl_media_container_new, function in GrlMedia +
+
+
+grl_media_get_album, function in GrlMedia +
+
+
+grl_media_get_artist, function in GrlMedia +
+
+
+grl_media_get_artist_nth, function in GrlMedia +
+
+
+grl_media_get_author, function in GrlMedia +
+
+
+grl_media_get_author_nth, function in GrlMedia +
+
+
+grl_media_get_bitrate, function in GrlMedia +
+
+
+grl_media_get_camera_model, function in GrlMedia +
+
+
+grl_media_get_certificate, function in GrlMedia +
+
+
+grl_media_get_childcount, function in GrlMedia +
+
+
+grl_media_get_creation_date, function in GrlMedia +
+
+
+grl_media_get_description, function in GrlMedia +
+
+
+grl_media_get_director, function in GrlMedia +
+
+
+grl_media_get_director_nth, function in GrlMedia +
+
+
+grl_media_get_duration, function in GrlMedia +
+
+
+grl_media_get_episode, function in GrlMedia +
+
+
+grl_media_get_episode_title, function in GrlMedia +
+
+
+grl_media_get_exposure_time, function in GrlMedia +
+
+
+grl_media_get_external_url, function in GrlMedia +
+
+
+grl_media_get_external_url_nth, function in GrlMedia +
+
+
+grl_media_get_favourite, function in GrlMedia +
+
+
+grl_media_get_flash_used, function in GrlMedia +
+
+
+grl_media_get_framerate, function in GrlMedia +
+
+
+grl_media_get_genre, function in GrlMedia +
+
+
+grl_media_get_genre_nth, function in GrlMedia +
+
+
+grl_media_get_height, function in GrlMedia +
+
+
+grl_media_get_id, function in GrlMedia +
+
+
+grl_media_get_iso_speed, function in GrlMedia +
+
+
+grl_media_get_keyword, function in GrlMedia +
+
+
+grl_media_get_keyword_nth, function in GrlMedia +
+
+
+grl_media_get_last_played, function in GrlMedia +
+
+
+grl_media_get_last_position, function in GrlMedia +
+
+
+grl_media_get_license, function in GrlMedia +
+
+
+grl_media_get_mb_album_id, function in GrlMedia +
+
+
+grl_media_get_mb_artist_id, function in GrlMedia +
+
+
+grl_media_get_mb_artist_id_nth, function in GrlMedia +
+
+
+grl_media_get_mb_recording_id, function in GrlMedia +
+
+
+grl_media_get_mb_track_id, function in GrlMedia +
+
+
+grl_media_get_mime, function in GrlMedia +
+
+
+grl_media_get_modification_date, function in GrlMedia +
+
+
+grl_media_get_orientation, function in GrlMedia +
+
+
+grl_media_get_original_title, function in GrlMedia +
+
+
+grl_media_get_performer, function in GrlMedia +
+
+
+grl_media_get_performer_nth, function in GrlMedia +
+
+
+grl_media_get_player, function in GrlMedia +
+
+
+grl_media_get_player_nth, function in GrlMedia +
+
+
+grl_media_get_play_count, function in GrlMedia +
+
+
+grl_media_get_producer, function in GrlMedia +
+
+
+grl_media_get_producer_nth, function in GrlMedia +
+
+
+grl_media_get_publication_date, function in GrlMedia +
+
+
+grl_media_get_rating, function in GrlMedia +
+
+
+grl_media_get_region, function in GrlMedia +
+
+
+grl_media_get_region_data, function in GrlMedia +
+
+
+grl_media_get_region_data_nth, function in GrlMedia +
+
+
+grl_media_get_season, function in GrlMedia +
+
+
+grl_media_get_show, function in GrlMedia +
+
+
+grl_media_get_site, function in GrlMedia +
+
+
+grl_media_get_size, function in GrlMedia +
+
+
+grl_media_get_source, function in GrlMedia +
+
+
+grl_media_get_start_time, function in GrlMedia +
+
+
+grl_media_get_studio, function in GrlMedia +
+
+
+grl_media_get_thumbnail, function in GrlMedia +
+
+
+grl_media_get_thumbnail_binary, function in GrlMedia +
+
+
+grl_media_get_thumbnail_binary_nth, function in GrlMedia +
+
+
+grl_media_get_thumbnail_nth, function in GrlMedia +
+
+
+grl_media_get_title, function in GrlMedia +
+
+
+grl_media_get_track_number, function in GrlMedia +
+
+
+grl_media_get_url, function in GrlMedia +
+
+
+grl_media_get_url_data, function in GrlMedia +
+
+
+grl_media_get_url_data_nth, function in GrlMedia +
+
+
+grl_media_get_width, function in GrlMedia +
+
+
+grl_media_image_new, function in GrlMedia +
+
+
+grl_media_is_audio, function in GrlMedia +
+
+
+grl_media_is_container, function in GrlMedia +
+
+
+grl_media_is_image, function in GrlMedia +
+
+
+grl_media_is_video, function in GrlMedia +
+
+
+grl_media_new, function in GrlMedia +
+
+
+grl_media_serialize, function in GrlMedia +
+
+
+grl_media_serialize_extended, function in GrlMedia +
+
+
+grl_media_set_album, function in GrlMedia +
+
+
+grl_media_set_artist, function in GrlMedia +
+
+
+grl_media_set_author, function in GrlMedia +
+
+
+grl_media_set_bitrate, function in GrlMedia +
+
+
+grl_media_set_camera_model, function in GrlMedia +
+
+
+grl_media_set_certificate, function in GrlMedia +
+
+
+grl_media_set_childcount, function in GrlMedia +
+
+
+grl_media_set_creation_date, function in GrlMedia +
+
+
+grl_media_set_description, function in GrlMedia +
+
+
+grl_media_set_director, function in GrlMedia +
+
+
+grl_media_set_duration, function in GrlMedia +
+
+
+grl_media_set_episode, function in GrlMedia +
+
+
+grl_media_set_episode_title, function in GrlMedia +
+
+
+grl_media_set_exposure_time, function in GrlMedia +
+
+
+grl_media_set_external_player, function in GrlMedia +
+
+
+grl_media_set_external_url, function in GrlMedia +
+
+
+grl_media_set_favourite, function in GrlMedia +
+
+
+grl_media_set_flash_used, function in GrlMedia +
+
+
+grl_media_set_framerate, function in GrlMedia +
+
+
+grl_media_set_genre, function in GrlMedia +
+
+
+grl_media_set_height, function in GrlMedia +
+
+
+grl_media_set_id, function in GrlMedia +
+
+
+grl_media_set_iso_speed, function in GrlMedia +
+
+
+grl_media_set_keyword, function in GrlMedia +
+
+
+grl_media_set_last_played, function in GrlMedia +
+
+
+grl_media_set_last_position, function in GrlMedia +
+
+
+grl_media_set_license, function in GrlMedia +
+
+
+grl_media_set_lyrics, function in GrlMedia +
+
+
+grl_media_set_mb_album_id, function in GrlMedia +
+
+
+grl_media_set_mb_artist_id, function in GrlMedia +
+
+
+grl_media_set_mb_recording_id, function in GrlMedia +
+
+
+grl_media_set_mb_track_id, function in GrlMedia +
+
+
+grl_media_set_mime, function in GrlMedia +
+
+
+grl_media_set_modification_date, function in GrlMedia +
+
+
+grl_media_set_orientation, function in GrlMedia +
+
+
+grl_media_set_original_title, function in GrlMedia +
+
+
+grl_media_set_performer, function in GrlMedia +
+
+
+grl_media_set_play_count, function in GrlMedia +
+
+
+grl_media_set_producer, function in GrlMedia +
+
+
+grl_media_set_publication_date, function in GrlMedia +
+
+
+grl_media_set_rating, function in GrlMedia +
+
+
+grl_media_set_region, function in GrlMedia +
+
+
+grl_media_set_region_data, function in GrlMedia +
+
+
+grl_media_set_season, function in GrlMedia +
+
+
+grl_media_set_show, function in GrlMedia +
+
+
+grl_media_set_site, function in GrlMedia +
+
+
+grl_media_set_size, function in GrlMedia +
+
+
+grl_media_set_source, function in GrlMedia +
+
+
+grl_media_set_studio, function in GrlMedia +
+
+
+grl_media_set_thumbnail, function in GrlMedia +
+
+
+grl_media_set_thumbnail_binary, function in GrlMedia +
+
+
+grl_media_set_title, function in GrlMedia +
+
+
+grl_media_set_track_number, function in GrlMedia +
+
+
+grl_media_set_url, function in GrlMedia +
+
+
+grl_media_set_url_data, function in GrlMedia +
+
+
+grl_media_set_width, function in GrlMedia +
+
+
+grl_media_unserialize, function in GrlMedia +
+
+
+grl_media_video_new, function in GrlMedia +
+
+
+GRL_MESSAGE, macro in grl-log +
+
+
+GRL_METADATA_KEY_ALBUM, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_ARTIST, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_AUTHOR, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_BITRATE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_CAMERA_MODEL, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_CERTIFICATE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_CHILDCOUNT, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN, macro in grl-definitions +
+
+
+GRL_METADATA_KEY_CREATION_DATE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_DESCRIPTION, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_DIRECTOR, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_DURATION, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_EPISODE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_EPISODE_TITLE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_EXPOSURE_TIME, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_EXTERNAL_PLAYER, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_EXTERNAL_URL, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_FAVOURITE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_FLASH_USED, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_FRAMERATE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_GENRE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_GET_DESC, macro in grl-metadata-key +
+
+
+grl_metadata_key_get_desc, function in grl-metadata-key +
+
+
+GRL_METADATA_KEY_GET_ID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_GET_NAME, macro in grl-metadata-key +
+
+
+grl_metadata_key_get_name, function in grl-metadata-key +
+
+
+GRL_METADATA_KEY_GET_TYPE, macro in grl-metadata-key +
+
+
+grl_metadata_key_get_type, function in grl-metadata-key +
+
+
+GRL_METADATA_KEY_HEIGHT, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_ID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_INVALID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_ISO_SPEED, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_KEYWORD, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_LAST_PLAYED, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_LAST_POSITION, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_LICENSE, macro in grl-metadata-key +
+
+
+grl_metadata_key_list_new, function in grl-metadata-key +
+
+
+GRL_METADATA_KEY_LYRICS, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_MB_ALBUM_ID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_MB_ARTIST_ID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_MB_RECORDING_ID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_MB_TRACK_ID, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_MIME, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_MODIFICATION_DATE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_ORIENTATION, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_ORIGINAL_TITLE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_PERFORMER, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_PLAY_COUNT, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_PRODUCER, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_PUBLICATION_DATE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_RATING, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_REGION, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_SEASON, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_SHOW, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_SITE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_SOURCE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_START_TIME, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_STUDIO, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_THUMBNAIL, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_THUMBNAIL_BINARY, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_TITLE, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_TRACK_NUMBER, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_URL, macro in grl-metadata-key +
+
+
+GRL_METADATA_KEY_WIDTH, macro in grl-metadata-key +
+
+
+grl_multiple_get_media_from_uri, function in Multiple +
+
+
+grl_multiple_search, function in Multiple +
+
+
+grl_multiple_search_sync, function in Multiple +
+
+

N

+
+GrlNetWc, struct in GrlNetWc +
+
+
+GrlNetWcClass, struct in GrlNetWc +
+
+
+GrlNetWcError, enum in GrlNetWc +
+
+
+GRL_NET_WC_ERROR, macro in GrlNetWc +
+
+
+grl_net_wc_error_quark, function in GrlNetWc +
+
+
+grl_net_wc_flush_delayed_requests, function in GrlNetWc +
+
+
+grl_net_wc_new, function in GrlNetWc +
+
+
+grl_net_wc_request_async, function in GrlNetWc +
+
+
+grl_net_wc_request_finish, function in GrlNetWc +
+
+
+grl_net_wc_request_with_headers_async, function in GrlNetWc +
+
+
+grl_net_wc_request_with_headers_hash_async, function in GrlNetWc +
+
+
+grl_net_wc_set_cache, function in GrlNetWc +
+
+
+grl_net_wc_set_cache_size, function in GrlNetWc +
+
+
+grl_net_wc_set_log_level, function in GrlNetWc +
+
+
+grl_net_wc_set_throttling, function in GrlNetWc +
+
+

O

+
+GrlOperationOptions, struct in GrlOperationOptions +
+
+
+GrlOperationOptionsClass, struct in GrlOperationOptions +
+
+
+grl_operation_cancel, function in grl-operation +
+
+
+grl_operation_get_data, function in grl-operation +
+
+
+grl_operation_options_copy, function in GrlOperationOptions +
+
+
+grl_operation_options_get_count, function in GrlOperationOptions +
+
+
+grl_operation_options_get_key_filter, function in GrlOperationOptions +
+
+
+grl_operation_options_get_key_filter_list, function in GrlOperationOptions +
+
+
+grl_operation_options_get_key_range_filter, function in GrlOperationOptions +
+
+
+grl_operation_options_get_key_range_filter_list, function in GrlOperationOptions +
+
+
+grl_operation_options_get_resolution_flags, function in GrlOperationOptions +
+
+
+grl_operation_options_get_skip, function in GrlOperationOptions +
+
+
+grl_operation_options_get_type_filter, function in GrlOperationOptions +
+
+
+grl_operation_options_new, function in GrlOperationOptions +
+
+
+grl_operation_options_obey_caps, function in GrlOperationOptions +
+
+
+grl_operation_options_set_count, function in GrlOperationOptions +
+
+
+grl_operation_options_set_key_filters, function in GrlOperationOptions +
+
+
+grl_operation_options_set_key_filter_dictionary, function in GrlOperationOptions +
+
+
+grl_operation_options_set_key_filter_value, function in GrlOperationOptions +
+
+
+grl_operation_options_set_key_range_filter, function in GrlOperationOptions +
+
+
+grl_operation_options_set_key_range_filter_value, function in GrlOperationOptions +
+
+
+grl_operation_options_set_resolution_flags, function in GrlOperationOptions +
+
+
+grl_operation_options_set_skip, function in GrlOperationOptions +
+
+
+grl_operation_options_set_type_filter, function in GrlOperationOptions +
+
+
+grl_operation_set_data, function in grl-operation +
+
+
+grl_operation_set_data_full, function in grl-operation +
+
+

P

+
+grl_paging_translate, function in grl-util +
+
+
+GrlPlsFilterFunc, user_function in GrlPls +
+
+
+grl_pls_browse, function in GrlPls +
+
+
+grl_pls_browse_by_spec, function in GrlPls +
+
+
+grl_pls_browse_sync, function in GrlPls +
+
+
+grl_pls_file_to_media, function in GrlPls +
+
+
+grl_pls_get_file_attributes, function in GrlPls +
+
+
+grl_pls_media_is_playlist, function in GrlPls +
+
+
+GrlPlugin, struct in GrlPlugin +
+
+
+GrlPlugin:loaded, object property in GrlPlugin +
+
+
+GrlPluginClass, struct in GrlPlugin +
+
+
+GrlPluginDescriptor, struct in GrlRegistry +
+
+
+GRL_PLUGIN_AUTHOR, macro in GrlPlugin +
+
+
+GRL_PLUGIN_DESCRIPTION, macro in GrlPlugin +
+
+
+grl_plugin_get_author, function in GrlPlugin +
+
+
+grl_plugin_get_description, function in GrlPlugin +
+
+
+grl_plugin_get_filename, function in GrlPlugin +
+
+
+grl_plugin_get_id, function in GrlPlugin +
+
+
+grl_plugin_get_license, function in GrlPlugin +
+
+
+grl_plugin_get_module, function in GrlPlugin +
+
+
+grl_plugin_get_name, function in GrlPlugin +
+
+
+grl_plugin_get_site, function in GrlPlugin +
+
+
+grl_plugin_get_sources, function in GrlPlugin +
+
+
+grl_plugin_get_version, function in GrlPlugin +
+
+
+GRL_PLUGIN_LICENSE, macro in GrlPlugin +
+
+
+GRL_PLUGIN_LIST_VAR, macro in GrlRegistry +
+
+
+GRL_PLUGIN_NAME, macro in GrlPlugin +
+
+
+GRL_PLUGIN_PATH_VAR, macro in GrlRegistry +
+
+
+GRL_PLUGIN_RANKS_VAR, macro in GrlRegistry +
+
+
+GRL_PLUGIN_SITE, macro in GrlPlugin +
+
+
+GRL_PLUGIN_VERSION, macro in GrlPlugin +
+
+
+GRLPOINTER_TO_KEYID, macro in grl-metadata-key +
+
+

R

+
+GrlRank, enum in GrlRegistry +
+
+
+GrlRegistry, struct in GrlRegistry +
+
+
+GrlRegistry::metadata-key-added, object signal in GrlRegistry +
+
+
+GrlRegistry::source-added, object signal in GrlRegistry +
+
+
+GrlRegistry::source-removed, object signal in GrlRegistry +
+
+
+GrlRegistryClass, struct in GrlRegistry +
+
+
+grl_registry_add_config, function in GrlRegistry +
+
+
+grl_registry_add_config_from_file, function in GrlRegistry +
+
+
+grl_registry_add_config_from_resource, function in GrlRegistry +
+
+
+grl_registry_add_directory, function in GrlRegistry +
+
+
+grl_registry_get_default, function in GrlRegistry +
+
+
+grl_registry_get_metadata_keys, function in GrlRegistry +
+
+
+grl_registry_get_plugins, function in GrlRegistry +
+
+
+grl_registry_get_sources, function in GrlRegistry +
+
+
+grl_registry_get_sources_by_operations, function in GrlRegistry +
+
+
+grl_registry_load_all_plugins, function in GrlRegistry +
+
+
+grl_registry_load_plugin, function in GrlRegistry +
+
+
+grl_registry_load_plugin_directory, function in GrlRegistry +
+
+
+grl_registry_load_plugin_from_desc, function in GrlRegistry +
+
+
+grl_registry_lookup_metadata_key, function in GrlRegistry +
+
+
+grl_registry_lookup_metadata_key_desc, function in GrlRegistry +
+
+
+grl_registry_lookup_metadata_key_name, function in GrlRegistry +
+
+
+grl_registry_lookup_metadata_key_relation, function in GrlRegistry +
+
+
+grl_registry_lookup_metadata_key_type, function in GrlRegistry +
+
+
+grl_registry_lookup_plugin, function in GrlRegistry +
+
+
+grl_registry_lookup_source, function in GrlRegistry +
+
+
+grl_registry_metadata_key_validate, function in GrlRegistry +
+
+
+grl_registry_register_metadata_key, function in GrlRegistry +
+
+
+grl_registry_register_source, function in GrlRegistry +
+
+
+grl_registry_unload_plugin, function in GrlRegistry +
+
+
+grl_registry_unregister_source, function in GrlRegistry +
+
+
+GrlRelatedKeys, struct in GrlRelatedKeys +
+
+
+GrlRelatedKeysClass, struct in GrlRelatedKeys +
+
+
+grl_related_keys_dup, function in GrlRelatedKeys +
+
+
+grl_related_keys_get, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_binary, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_boolean, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_boxed, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_float, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_int, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_keys, function in GrlRelatedKeys +
+
+
+grl_related_keys_get_string, function in GrlRelatedKeys +
+
+
+grl_related_keys_has_key, function in GrlRelatedKeys +
+
+
+grl_related_keys_new, function in GrlRelatedKeys +
+
+
+grl_related_keys_new_valist, function in GrlRelatedKeys +
+
+
+grl_related_keys_new_with_keys, function in GrlRelatedKeys +
+
+
+grl_related_keys_remove, function in GrlRelatedKeys +
+
+
+grl_related_keys_set, function in GrlRelatedKeys +
+
+
+grl_related_keys_set_binary, function in GrlRelatedKeys +
+
+
+grl_related_keys_set_boolean, function in GrlRelatedKeys +
+
+
+grl_related_keys_set_boxed, function in GrlRelatedKeys +
+
+
+grl_related_keys_set_float, function in GrlRelatedKeys +
+
+
+grl_related_keys_set_int, function in GrlRelatedKeys +
+
+
+grl_related_keys_set_string, function in GrlRelatedKeys +
+
+
+GrlResolutionFlags, enum in GrlSource +
+
+

S

+
+GrlSource, struct in GrlSource +
+
+
+GrlSource::content-changed, object signal in GrlSource +
+
+
+GrlSource:auto-split-threshold, object property in GrlSource +
+
+
+GrlSource:plugin, object property in GrlSource +
+
+
+GrlSource:rank, object property in GrlSource +
+
+
+GrlSource:source-desc, object property in GrlSource +
+
+
+GrlSource:source-icon, object property in GrlSource +
+
+
+GrlSource:source-id, object property in GrlSource +
+
+
+GrlSource:source-name, object property in GrlSource +
+
+
+GrlSource:source-tags, object property in GrlSource +
+
+
+GrlSource:supported-media, object property in GrlSource +
+
+
+GrlSourceBrowseSpec, struct in GrlSource +
+
+
+GrlSourceChangeType, enum in GrlSource +
+
+
+GrlSourceClass, struct in GrlSource +
+
+
+GrlSourceMediaFromUriSpec, struct in GrlSource +
+
+
+GrlSourceQuerySpec, struct in GrlSource +
+
+
+GrlSourceRemoveCb, user_function in GrlSource +
+
+
+GrlSourceRemoveSpec, struct in GrlSource +
+
+
+GrlSourceResolveCb, user_function in GrlSource +
+
+
+GrlSourceResolveSpec, struct in GrlSource +
+
+
+GrlSourceResultCb, user_function in GrlSource +
+
+
+GrlSourceSearchSpec, struct in GrlSource +
+
+
+GrlSourceStoreCb, user_function in GrlSource +
+
+
+GrlSourceStoreMetadataSpec, struct in GrlSource +
+
+
+GrlSourceStoreSpec, struct in GrlSource +
+
+
+grl_source_browse, function in GrlSource +
+
+
+grl_source_browse_sync, function in GrlSource +
+
+
+grl_source_get_auto_split_threshold, function in GrlSource +
+
+
+grl_source_get_caps, function in GrlSource +
+
+
+grl_source_get_description, function in GrlSource +
+
+
+grl_source_get_icon, function in GrlSource +
+
+
+grl_source_get_id, function in GrlSource +
+
+
+grl_source_get_media_from_uri, function in GrlSource +
+
+
+grl_source_get_media_from_uri_sync, function in GrlSource +
+
+
+grl_source_get_name, function in GrlSource +
+
+
+grl_source_get_plugin, function in GrlSource +
+
+
+grl_source_get_rank, function in GrlSource +
+
+
+grl_source_get_supported_media, function in GrlSource +
+
+
+grl_source_get_tags, function in GrlSource +
+
+
+grl_source_may_resolve, function in GrlSource +
+
+
+grl_source_notify_change, function in GrlSource +
+
+
+grl_source_notify_change_list, function in GrlSource +
+
+
+grl_source_notify_change_start, function in GrlSource +
+
+
+grl_source_notify_change_stop, function in GrlSource +
+
+
+grl_source_query, function in GrlSource +
+
+
+grl_source_query_sync, function in GrlSource +
+
+
+GRL_SOURCE_REMAINING_UNKNOWN, macro in grl-definitions +
+
+
+grl_source_remove, function in GrlSource +
+
+
+grl_source_remove_sync, function in GrlSource +
+
+
+grl_source_resolve, function in GrlSource +
+
+
+grl_source_resolve_sync, function in GrlSource +
+
+
+grl_source_search, function in GrlSource +
+
+
+grl_source_search_sync, function in GrlSource +
+
+
+grl_source_set_auto_split_threshold, function in GrlSource +
+
+
+grl_source_slow_keys, function in GrlSource +
+
+
+grl_source_store, function in GrlSource +
+
+
+grl_source_store_metadata, function in GrlSource +
+
+
+grl_source_store_metadata_sync, function in GrlSource +
+
+
+grl_source_store_sync, function in GrlSource +
+
+
+grl_source_supported_keys, function in GrlSource +
+
+
+grl_source_supported_operations, function in GrlSource +
+
+
+grl_source_test_media_from_uri, function in GrlSource +
+
+
+grl_source_writable_keys, function in GrlSource +
+
+
+GrlSupportedOps, enum in GrlSource +
+
+

T

+
+GrlTypeFilter, enum in GrlCaps +
+
+

W

+
+GRL_WARNING, macro in grl-log +
+
+
+GrlWriteFlags, enum in GrlSource +
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/caps-options.html b/doc/grilo/html/caps-options.html new file mode 100644 index 0000000..cca20fa --- /dev/null +++ b/doc/grilo/html/caps-options.html @@ -0,0 +1,38 @@ + + + + +Capabilities and Options: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Capabilities and Options

+
+
+GrlCaps — Describes the capabilities of a source for a given +operation. +
+
+GrlOperationOptions — Describes the options to be passed to an operation +
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/ch01.html b/doc/grilo/html/ch01.html new file mode 100644 index 0000000..0fadfaf --- /dev/null +++ b/doc/grilo/html/ch01.html @@ -0,0 +1,99 @@ + + + + +Quick start guide: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Quick start guide

+ +
+
+

+ If you just want to have a go at Grilo as soon as possible this is + the right section for you. +

+

+ This section gives basic instructions on how to download, build + and demo the development version of Grilo directly from the source + code repositories, as well as how to build programs that use + Grilo. +

+
+

+Building Grilo from sources

+
+# Building Grilo
+$ git clone git://git.gnome.org/grilo
+$ cd grilo
+$ ./autogen.sh --prefix=/usr
+$ make
+$ sudo make install
+
+# Building Grilo Plugins
+$ cd ..
+$ git clone git://git.gnome.org/grilo-plugins
+$ cd grilo-plugins
+$ ./autogen.sh --prefix=/usr
+$ make
+$ sudo make install
+    
+

+ You should now see the grilo libraries installed under /usr/lib and the + plugins for grilo installed under /usr/lib/grilo-x.y, where 'x.y' represents + the library version. +

+
+
+

+Testing Grilo

+

After building and installing grilo and grilo-plugins, do:

+
+# Execute Grilo's test GUI
+$ /usr/bin/grilo-test-ui
+    
+

+ This is a simple playground application that you can use to test + the framework and its plugins. +

+

+ Notice that grilo-test-ui is optional and will not be built unless + you have the GTK+ development package installed on your system. +

+
+
+

+Compiling Grilo based programs

+
+gcc -o example `pkg-config --cflags --libs grilo-x.y` example.c
+    
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/ch02.html b/doc/grilo/html/ch02.html new file mode 100644 index 0000000..6fba0b4 --- /dev/null +++ b/doc/grilo/html/ch02.html @@ -0,0 +1,169 @@ + + + + +Environment Setup: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Environment Setup

+ +
+
+

+ This section provides information on how to configure a proper environment for + building Grilo, as well building and running Grilo based programs. +

+
+

+Building Grilo

+
+

+Building and installing Grilo

+

+ You can check the basics of how to build and install Grilo from the + source code repositories in the + Quick start guide. +

+
+
+

+Compilation options

+

+ This is a reference of the most useful compilation switches available: +

+
    +
  • + --enable-gtk-doc: Build documentation + tutorials and API reference. Check doc/ directory for + the generated documentation. Only in grilo core. +
  • +
  • + --enable-debug: Build with debug information. +
  • +
  • + --enable-uninstalled: Prepare for uninstalled use. Only + in grilo-plugins. +
  • +
+

+ For more options please run './configure --help'. +

+
+
+
+

+Compiling Grilo based programs

+

+ You can check how to compile Grilo based apps + by checking the + Quick start guide. +

+
+
+

+Running Grilo based programs

+

+ If you have installed the Grilo libraries in your system + make sure they have been installed in a path that is + included in the dynamic linker search path, otherwise + export the environment variable LD_LIBRARY_PATH to + include them, for example: +

+
+$ export LD_LIBRARY_PATH=/usr/local/lib
+  
+

+ For plugins to be visible to application they must be + stored in the default plugin search path. This should be + the case if you are not running Grilo in uninstalled form. + If you are running Grilo uninstalled, or for some reason + you have plugins available in directories other than + the default plugin path, export the GRL_PLUGIN_PATH to + point to the list of directories containing Grilo plugins, + for example: +

+
+$ export GRL_PLUGIN_PATH=/usr/local/lib/grilo-0.3
+    
+
+
+

+Debugging with Grilo

+

+ If you want to debug Grilo itself, make sure you have built it with + --enable-debug (both the framework and the plugins). +

+

+ You can also control logging by setting the environment variable GRL_DEBUG. + Here are some examples: +

+
+# Disable logging for all modules
+$ export GRL_DEBUG=*:-
+
+# Enable full logging for all modules
+$ export GRL_DEBUG=*:*
+
+# Enable logging of messages of level WARNING or higher  for all modules
+$ export GRL_DEBUG=*:warning
+
+# Enable logging of messages of level INFO or higher for all modules
+$ export GRL_DEBUG=*:info
+
+# Enable full logging for the plugin registry module
+$ export GRL_DEBUG=registry:*
+
+# Enable full logging for the plugin registry module
+# and WARNING or higher for the Youtube plugin
+$ export GRL_DEBUG=registry:*,youtube:warning
+    
+

+ Programs can also control logging programatically. See the + GrlLog API reference for details. +

+

+ Plugins can be ranked. Ranks can be used to sort plugins + by rank and also in case of conflict when two plugins offer the same + feature, to decide on the one to use. By default, all the plugins + have the same rank (0). Higher ranks give plugins more relevance / + priority. +

+

+ Ranks can be controlled with the environment variable GRL_PLUGIN_RANKS. + Here is one example: +

+
+# Set the rank of the Youtube plugin to 5 and the Bookmarks plugin to -4
+$ export GRL_PLUGIN_RANKS=youtube:5,bookmarks:-4
+    
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/ch03.html b/doc/grilo/html/ch03.html new file mode 100644 index 0000000..df354e0 --- /dev/null +++ b/doc/grilo/html/ch03.html @@ -0,0 +1,1227 @@ + + + + +Writing applications with Grilo: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Writing applications with Grilo

+ +
+
+

+ This section intends to be a starting point for developers interested + in getting started with Grilo, and as such it does not try to be + a comprehensive tutorial covering all topics and features of Grilo, + instead, this is intends to focus on typical use case scenarios + and code examples to put the developer on the right track. +

+
+

+Basic concepts

+
+

+Understanding Grilo

+

+ Grilo provides a high-level API that application developers + can use to interact with heterogeneous media providers using + an homogeneous language, reducing remarkably the effort required + to integrate media content from multiple sources. +

+

+ This high-level, provider-independent API is then implemented + for all the providers supported by Grilo by means of plugins. + These plugins encapsulate all the provider-specific details, + effectively hiding all the technical tidbits and particularities + of specific media providers from application developers. +

+

+ There are two kinds of plugins in Grilo: +

+
    +
  • Media Sources, which provide access to media content + that can be browsed or searched.
  • +
  • Metadata Sources, which provide additional metadata + about media content obtained through media sources.
  • +
+

+

+

+ Management of available plugins is done through the + Plugin Registry. + This object exposes API to load plugins and retrieve + available media source and metadata source objects. +

+

+ Some plugins may require certain configuration information + in order to work properly. Examples of configuration information + that may be needed include API keys, service credentials, + etc. Please check the section + + Configuring you plugins + + for more details on this subject. +

+

+ You can instruct Grilo to load all available plugins via + grl_registry_load_all_plugins(). + This will look into the default + installation directory for the plugins and also the paths + included via the environment variable GRL_PLUGIN_PATH. + Please check section + + Running Grilo based programs + + for more details on this subject. +

+

+ Users can also load plugins using their plugin + identifiers. These plugin identifier strings + can be obtained by running the tool 'grl-inspect'. +

+

+ Users have two options to gain access to the media source and + metadata source objects loaded by the plugin registry: +

+
+

+ For more information on how to use the plugin registry, please + check its API reference + or any of the code examples below. +

+

+ Media source and metadata source objects are the objects + application developers will be interacting with for most + of their Grilo work. These objects provide developers + with a well known interface (API) to interact with + media content that is provider-independent. Typically, + each media source object provides access to content + delivered by one particular media provider. +

+
+
+

+Media Sources

+

+ Media Source objects provide access to media content. Application + developers would usually interact with these objects issuing + Browse, Search or Query operations on them. The purpose of + these operations is explained below: +

+
    +
  • +Search. + Instructs the media source to look for media matching + specific keywords. Example: YouTube search. +
  • +
  • +Browse:. + Navigates through a hierarchy of content exposed by the + media provider. Example: Filesystem browsing. +
  • +
  • +Query: + An advanced search mode that uses service-specific + commands to exploit features specific to a particular + media provider. +
  • +
  • +Metadata + Obtain (more) metadata information for a particular media resource. +
  • +
  • +Store and Remove + Push and remove content from the media provider. +
  • +
+
+
+

+Metadata Sources

+

+ Metadata Source objects provide means to acquire additional + metadata that was not provided by the original media source + that delivered the media. Application developers would usually + interact with metadata sources via Resolve or SetMetadata + operations, which are described below: +

+
    +
  • +Resolve: + Acquire additional metadata for a particular media resource. +
  • +
  • +SetMetadata: + Update metadata information available for a particular media resource. +
  • +
+
+
+

+Asynchronous APIs

+

+ Most of the APIs exposed by Media Source and Metadata Source + objects are asynchronous. The reason for this is that + these operations usually involve I/O which + would block the user interface if executed synchronously, + specially for the more heavy operations like Browse or + Search, leading to unresponsive GUIs and bad user + experience. +

+

+ For this reason, most of the APIs in Grilo accept a + user callback and user data parameters that are used + to hand over the result of the operation to the + client asynchronously. +

+

+ In cases where asynchrony is not needed, for example + for programs that do not have a graphical user + interface and are designed to run in the background, + Grilo also provides synchronous versions of some of + the APIs, but for situations other than this, use of + the asynchronous APIs is strongly + encouraged. +

+

+ For operations that can produce multiple results, + like Browse, Search or Query, callbacks are + invoked once per matching result. For operations + that are expected to produce a single result, like + Metadata or Resolve, callbacks are invoked just + once. +

+

+ In any case, clients should always expect the result + callback to be invoked at least once after an + asynchronous operation has been issued, even if the + operation fails or is cancelled (in which case the + error parameter of the callback will be set to a + non-NULL value). +

+
+
+

+Operation identifiers

+

+ Some Media Source and Metadata Source operations will return + an operation identifier that serves various purposes: +

+
    +
  • Identify the operation within the framework.
  • +
  • Match asynchronously results with the issuing operations.
  • +
  • Provide an operation identifier that can be used to cancel the operation.
  • +
+

+ For example, issuing an asynchronous Search operation on a Media + Source object would synchronously return an operation identifier. + The developer can store this identifier and use it to cancel. +

+

+ Also, if the operation was not cancelled, the results callback + will be invoked at least once (actually, for the case + of a Browse operation is will be invoked once per matching + result) handing the results of the operation to the application. + Each time the results callback is invoked, the operation identifier + will be provided so that the callback can identify the operation + that triggered the result (there can be multiple operations + ongoing simultaneously). +

+
+
+

+Media objects

+

+ As discussed before, Media Source objects provide means + to access media content exposed by media providers through + operations like Search, Browse or Query. Media content is + represented in Grilo via + GrlMedia + objects that contain metadata information related with + a particular media resource. +

+

+ There are various subclasses of GrlMedia, which provide + specific APIs to get and set metadata associated with + specific media types, like video, audio or image + resources. +

+

+ Typically, these GrlMedia objects will be obtained by + issuing Search, Browse or Query operations on Media + Source objects, which produce these objects + as results. Upon reception, clients would + usually use the API exposed by these objects to + collect the information of interest. +

+

+ Grilo also supports the concept of media container, represented by a + container-type GrlMedia class. These objects represent categories or + folders that contain other media objects (including maybe more container + objects), allowing tree-like hierarchies of content, like the ones would + usually traverse during Browse operations. +

+

+ Please, check the GrlMedia + API reference for more information on this subject. +

+
+
+

+Metadata keys

+

+ Metadata keys identify pieces of information (metadata). + They are often an input parameter for many operations + in Grilo, with the purpose of specifying what pieces of + information are relevant for a particular operations. +

+

+ Grilo has a list of predefined supported keys. For each + of these keys, Grilo provides definitions + (identifiers) that clients can use to refer to + specific pieces of information. Some + examples are GRL_METADATA_KEY_TITLE or + GRL_METADATA_KEY_ARTIST. +

+

+ For a complete list of all System Keys, please check + grl-metadata-key.h. +

+

+ Some plugins can also introduce additional metadata + keys known as User Keys. The difference with the System + Keys is that these do not have definitions available, and + hence clients must query the plugin registry to know + their identifiers first using + + grl_registry_lookup_metadata_key + . +

+
+
+
+

+Typical use cases explained

+

+ The following sections will guide the reader through some + of the typical use cases of Grilo, using code examples + to make the ideas even more clear. +

+
+

+Configuring your plugins

+

For some plugins to work properly, it is required that the user (or + application developer) provides certain configuration. For example, + some plugins may require a username and a password, others may + require an API token to gain access to the underlying media provider. +

+

+ These configuration options could be mandatory (without them + the plugin cannot operate and will fail to load), or + optional, in which case they are intended to allow users to tweak + certain aspects of how a particular plugin should work. +

+

+ An example of a mandatory configuration is in the Youtube plugin: in order + for it to work a valid API key must be provided. It is the responsibility + of the user (or the application developer) to get that key (usually + registering in Youtube and applying for an application key) and provide + it to the plugin. +

+

+ In order to know what configuration options are available for a certain + plugin, users/developers must check the plugin documentation. +

+

+ Here is a small program illustrating how to configure a plugin form your + application: +

+
+        
+/*
+ * Configuring plugins in Grilo.
+ * Shows how to configure the Youtube plugin.
+ */
+
+#include <grilo.h>
+
+#define GRL_LOG_DOMAIN_DEFAULT  example_log_domain
+GRL_LOG_DOMAIN_STATIC(example_log_domain);
+
+static void
+source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data)
+{
+  /* If the Youtube plugin is installed, you should see it here now! */
+  g_debug ("Detected new source available: '%s'",
+           grl_source_get_name (source));
+}
+
+static void
+load_plugins (void)
+{
+  GrlRegistry *registry;
+  GError *error = NULL;
+
+  registry = grl_registry_get_default ();
+
+  g_signal_connect (registry, "source-added",
+                    G_CALLBACK (source_added_cb), NULL);
+
+  if (!grl_registry_load_all_plugins (registry, TRUE, &error)) {
+    g_error ("Failed to load plugins: %s", error->message);
+  }
+}
+
+static void
+configure_plugins (void)
+{
+  GrlConfig *config;
+  GrlRegistry *registry;
+
+  /* Let's configure only the Youtube plugin (only requires an API key) */
+  config = grl_config_new ("grl-youtube", NULL);
+  grl_config_set_api_key (config,
+                          "AI39si4EfscPllSfUy1IwexMf__kntTL_G5dfSr2iUEVN45RHG"
+                          "q92Aq0lX25OlnOkG6KTN-4soVAkAf67fWYXuHfVADZYr7S1A");
+  registry = grl_registry_get_default ();
+  grl_registry_add_config (registry, config, NULL);
+
+  /* When the plugin is loaded, the framework will provide
+     this configuration for it */
+}
+
+gint
+main (int argc, gchar *argv[])
+{
+  GMainLoop *loop;
+
+  grl_init (&argc, &argv);
+  GRL_LOG_DOMAIN_INIT (example_log_domain, "example");
+  configure_plugins ();       /* Configure plugins */
+  load_plugins ();            /* Load Grilo plugins */
+
+  /* Run the main loop */
+  loop = g_main_loop_new (NULL, FALSE);
+  g_main_loop_run (loop);
+
+  grl_deinit ();
+
+  return 0;
+}
+
+      
+

+ For more information on how to configure plugins + please check the + GrlConfig + API reference. +

+
+
+

+Browsing media content

+

Here is a small program illustrating how you can browse + content from a particular media source (a similar approach + can be used for searching content instead of browsing):

+
+        
+/*
+ * Browsing in Grilo.
+ * Shows the first 5 elements of each browsable source
+ */
+
+#include <grilo.h>
+
+#define GRL_LOG_DOMAIN_DEFAULT  example_log_domain
+GRL_LOG_DOMAIN_STATIC(example_log_domain);
+
+/* This callback is invoked for each result that matches our
+   browse operation. The arguments are:
+   1) The source we obtained the content from.
+   2) The operation identifier this result relates to.
+   3) A media object representing content that matched the browse operation.
+   4) Estimation of the number of remaining media objects that will be sent
+   after this one as part of the same resultset (0 means that the browse
+   operation is finished).
+   5) User data passed to the grl_media_source_browse method.
+   6) A GError if an error happened, NULL otherwise */
+static void
+browse_cb (GrlSource *source,
+	   guint browse_id,
+	   GrlMedia *media,
+	   guint remaining,
+	   gpointer user_data,
+	   const GError *error)
+{
+  /* First we check if the operation failed for some reason */
+  if (error) {
+    g_error ("Browse operation failed. Reason: %s", error->message);
+  }
+
+  /* Check if we received a valid media object as some plugins may call the callback
+     with a NULL media under certain circumstances (for example when they
+     cannot estimate the number of remaining results and they find suddenly they
+     don't have any more results to send) */
+  if (media) {
+    /* Get the metadata we are interested in */
+    const gchar *title = grl_media_get_title (media);
+
+    /* If the media is a container that means we could
+       browse it again (that is, we could use it as the second parameter
+       of the grl_media_source_browse method) */
+    if (grl_media_is_container (media)) {
+      guint childcount = grl_media_get_childcount (media);
+      g_debug ("\t Got '%s' (container with %d elements)", title, childcount);
+    } else {
+      guint seconds = grl_media_get_duration (media);
+      const gchar *url = grl_media_get_url (media);
+      g_debug ("\t Got '%s' (media - length: %d seconds)", title, seconds);
+      g_debug ("\t\t URL: %s", url);
+    }
+    g_object_unref (media);
+  }
+
+  /* Check if this was the last result */
+  if (remaining == 0) {
+    g_debug ("Browse operation finished!");
+  }
+}
+
+static void
+source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data)
+{
+  static gboolean first = TRUE;
+  GList * keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
+					    GRL_METADATA_KEY_DURATION,
+					    GRL_METADATA_KEY_URL,
+					    GRL_METADATA_KEY_CHILDCOUNT,
+					    GRL_METADATA_KEY_INVALID);
+  g_debug ("Detected new source available: '%s'",
+           grl_source_get_name (source));
+
+  /* We will just issue a browse operation on the first browseble
+     source we find */
+  if (first &&
+      grl_source_supported_operations (source) & GRL_OP_BROWSE) {
+    GrlOperationOptions *options;
+    GrlCaps *caps;
+    first = FALSE;
+    g_debug ("Browsing source: %s", grl_source_get_name (source));
+    /* Here is how you can browse a source, you have to provide:
+       1) The source you want to browse contents from.
+       2) The container object you want to browse (NULL for the root container)
+       3) A list of metadata keys we are interested in.
+       4) Options to control certain aspects of the browse operation.
+       5) A callback that the framework will invoke for each available result
+       6) User data for the callback
+       It returns an operation identifier that you can use to match results
+       with the corresponding request (we ignore it here) */
+
+    caps = grl_source_get_caps (source, GRL_OP_BROWSE);
+    options = grl_operation_options_new (caps);
+    grl_operation_options_set_count (options, 5);
+    grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY);
+
+    grl_source_browse (source,
+                       NULL,
+                       keys,
+                       options,
+                       browse_cb,
+                       NULL);
+    g_object_unref (caps);
+    g_object_unref (options);
+  }
+
+  g_list_free (keys);
+}
+
+static void
+load_plugins (void)
+{
+  GrlRegistry *registry;
+  GError *error = NULL;
+
+  registry = grl_registry_get_default ();
+  g_signal_connect (registry, "source-added",
+		    G_CALLBACK (source_added_cb), NULL);
+  if (!grl_registry_load_all_plugins (registry, TRUE, &error)) {
+    g_error ("Failed to load plugins: %s", error->message);
+  }
+}
+
+gint
+main (int argc, gchar *argv[])
+{
+  GMainLoop *loop;
+  grl_init (&argc, &argv);
+  GRL_LOG_DOMAIN_INIT (example_log_domain, "example");
+  load_plugins ();
+  loop = g_main_loop_new (NULL, FALSE);
+  g_main_loop_run (loop);
+  grl_deinit ();
+  return 0;
+}
+
+      
+

+ Please notice: +

+
    +
  • + Finalization of the Browse operation is always + indicated by setting the 'remaining' parameter to 0. +
  • +
  • + The user callback used to receive the results is + guaranteed to be invoked at least once (with remaining + set to 0), even if the operation fails or is cancelled + (in these cases the error parameter will be set to a + non-NULL value). +
  • +
  • + Received GrlMedia objects are owned by the application + and must be freed when no longer needed. +
  • +
  • + If an error occurs, the GError parameter is set in the + callback, but this error parameter is owned by Grilo + and will be freed immediately after the callback. + If you want to keep the error beyond the scope of + the callback you must add a reference to it in the + callback code. +
  • +
  • + When the media source cannot estimate the number + of remaining items, remaining is set to + GRL_SOURCE_REMAINING_UNKNOWN. +
  • +
+

+

+

+ For more information on how to operate media sources + please check the + GrlMediaSource + API reference. +

+
+
+

+Searching media content

+

Here is a small program illustrating how you can search + content by text from a particular media source (Jamendo + in this example):

+
+        
+/*
+ * Searching in Grilo.
+ * Search all media in Jamendo with the word 'rock'.
+ */
+
+#include <grilo.h>
+#include <string.h>
+
+#define GRL_LOG_DOMAIN_DEFAULT  example_log_domain
+GRL_LOG_DOMAIN_STATIC(example_log_domain);
+
+static void
+search_cb (GrlSource *source,
+	   guint browse_id,
+	   GrlMedia *media,
+	   guint remaining,
+	   gpointer user_data,
+	   const GError *error)
+{
+  if (error) {
+    g_error ("Search operation failed. Reason: %s", error->message);
+  }
+
+  if (media) {
+    const gchar *title = grl_media_get_title (media);
+    if (grl_media_is_container (media)) {
+      guint childcount = grl_media_get_childcount (media);
+      g_debug ("\t Got '%s' (container with %d elements)", title, childcount);
+    } else {
+      guint seconds = grl_media_get_duration (media);
+      const gchar *url = grl_media_get_url (media);
+      g_debug ("\t Got '%s' (media - length: %d seconds)", title, seconds);
+      g_debug ("\t\t URL: %s", url);
+    }
+  }
+
+  if (remaining == 0) {
+    g_debug ("Search operation finished!");
+  } else {
+    g_debug ("\t%d results remaining!", remaining);
+  }
+
+  g_object_unref (media);
+}
+
+static void
+source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data)
+{
+  const gchar *id;
+  GrlCaps *caps;
+  GrlOperationOptions *options;
+  GList * keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
+					    GRL_METADATA_KEY_DURATION,
+					    GRL_METADATA_KEY_CHILDCOUNT,
+					    GRL_METADATA_KEY_INVALID);
+
+  /* Not interested if not searchable */
+  if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH))
+    return;
+
+  g_debug ("Detected new searchable source available: '%s'",
+	   grl_source_get_name (source));
+
+  /* Only interested in Jamendo */
+  id = grl_source_get_id (source);
+  if (strcmp (id, "grl-jamendo"))
+    return;
+
+  caps = grl_source_get_caps (source, GRL_OP_SEARCH);
+  options = grl_operation_options_new (caps);
+  grl_operation_options_set_count (options, 5);
+  grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY);
+
+  g_debug ("Searching \"rock\" in Jamendo");
+  grl_source_search (source,
+			   "rock",
+			   keys,
+			   options,
+			   search_cb,
+			   NULL);
+
+  g_list_free (keys);
+}
+
+static void
+load_plugins (void)
+{
+  GrlRegistry *registry;
+  GError *error = NULL;
+
+  registry = grl_registry_get_default ();
+  g_signal_connect (registry, "source-added",
+		    G_CALLBACK (source_added_cb), NULL);
+  if (!grl_registry_load_all_plugins (registry, TRUE, &error)) {
+    g_error ("Failed to load plugins: %s", error->message);
+  }
+}
+
+gint
+main (int argc, gchar *argv[])
+{
+  GMainLoop *loop;
+  grl_init (&argc, &argv);
+  GRL_LOG_DOMAIN_INIT (example_log_domain, "example");
+  load_plugins ();
+  loop = g_main_loop_new (NULL, FALSE);
+  g_main_loop_run (loop);
+  grl_deinit ();
+  return 0;
+}
+
+      
+

+ Please notice that all the considerations remarked for the + Browse operations above apply also to Search operations. +

+

+ For more information on how to operate media sources + please check the + GrlMediaSource + API reference. +

+
+
+

+Handling multi-valued metadata

+

When working with multimedia content, it can happen that certain + attributes of a particular media resource are multi-valued. For example, + a particular video resource may have multiple URIs associated, considering + different resolutions, streaming protocols and/or formats. +

+

+ Grilo provides plugin and application developers with means + to handle multi-valued properties. +

+

+ One issue concerning multi-valued properties are their relations with + other properties. Following the example of the video resource with + multiple URIs, each of these URIs should have its own mime-type associated, + as well as its own width and height values. When dealing with multi-valued + properties it is necessary to make this relations among keys more explicit. +

+

+ Grilo provides application and plugin developers with a high-level APIs to + handle certain relations among keys consistently. Continuing with the example + of the video resource with multiple URIs, there is + + grl_media_add_url_data + and + + grl_media_get_url_data_nth + to add and retrieve all the metadata + associated with a particular instance of the video resource (URI, mime-type, + framerate, width and height, etc) in one go. +

+

+ Grilo allows plugin developers to define their own metadata keys. + In this case, the plugin developer must also provide information + on the relations that these keys hold with others. In this scenario + plugin developers must use GrlRelatedKeys objects to group related keys + together. +

+

+ Here is a small program illustrating how get all available URLs from + a video resource, as well the corresponding MIME value for each one. + We use GrlRelatedKeys instead of the high-level API from GrlMedia + to illustrate how to use it: +

+
+        
+/*
+ * Handling multivalued elements in Grilo.
+ * Search all 'rock' content in Youtube, and for each one prints the available
+ * URLs.
+ */
+
+#include <grilo.h>
+#include <string.h>
+
+#define GRL_LOG_DOMAIN_DEFAULT  example_log_domain
+GRL_LOG_DOMAIN_STATIC(example_log_domain);
+
+static void
+search_cb (GrlSource *source,
+	   guint browse_id,
+	   GrlMedia *media,
+	   guint remaining,
+	   gpointer user_data,
+	   const GError *error)
+{
+  guint i;
+  GrlRelatedKeys *url_info;
+
+  if (error) {
+    g_error ("Search operation failed. Reason: %s", error->message);
+  }
+
+  if (media) {
+    /* Look through all available URLs for this video resource */
+    for (i = 0; i < grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_URL); i++) {
+      /* Here we use the low-level GrlRelatedKeys API for demonstration purposes only,
+         but we could have just used the more convenient
+         grl_media_video_get_url_data_nth() API instead in this case */
+      url_info = grl_data_get_related_keys (GRL_DATA (media), GRL_METADATA_KEY_URL, i);
+      g_debug ("\t [%s] Got url '%s' and mime-type '%s'",
+               grl_media_get_id (media),
+               grl_related_keys_get_string (url_info, GRL_METADATA_KEY_URL),
+               grl_related_keys_get_string (url_info, GRL_METADATA_KEY_MIME));
+    }
+  }
+
+  if (remaining == 0) {
+    g_debug ("Search operation finished!");
+  }
+
+  g_object_unref (media);
+}
+
+static void
+source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data)
+{
+  const gchar *id;
+  GrlCaps *caps;
+  GrlOperationOptions *options;
+  GList * keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
+					    GRL_METADATA_KEY_URL,
+                                            GRL_METADATA_KEY_MIME,
+					    GRL_METADATA_KEY_INVALID);
+
+  /* Not interested if not searchable */
+  if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH))
+    return;
+
+  g_debug ("Detected new searchable source available: '%s'",
+	   grl_source_get_name (source));
+
+  /* Only interested in Youtube */
+  id = grl_source_get_id (source);
+  if (strcmp (id, "grl-youtube"))
+    return;
+
+  caps = grl_source_get_caps (source, GRL_OP_SEARCH);
+  options = grl_operation_options_new (caps);
+  grl_operation_options_set_skip (options, 0);
+  grl_operation_options_set_count (options, 5);
+  grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY);
+
+  g_debug ("Searching \"rock\" in Youtube");
+  grl_source_search (source,
+			   "rock",
+			   keys,
+			   options,
+			   search_cb,
+			   NULL);
+
+  g_object_unref (options);
+  g_object_unref (caps);
+
+  g_list_free (keys);
+}
+
+static void
+load_plugins (void)
+{
+  GrlRegistry *registry;
+  GError *error = NULL;
+
+  registry = grl_registry_get_default ();
+  g_signal_connect (registry, "source-added",
+		    G_CALLBACK (source_added_cb), NULL);
+  if (!grl_registry_load_all_plugins (registry, TRUE, &error)) {
+    g_error ("Failed to load plugins: %s", error->message);
+  }
+}
+
+static void
+configure_plugins (void)
+{
+  GrlConfig *config;
+  GrlRegistry *registry;
+
+  config = grl_config_new ("grl-youtube", NULL);
+  grl_config_set_api_key (config,
+                          "AI39si4EfscPllSfUy1IwexMf__kntTL_G5dfSr2iUEVN45RHG"
+                          "q92Aq0lX25OlnOkG6KTN-4soVAkAf67fWYXuHfVADZYr7S1A");
+  registry = grl_registry_get_default ();
+  grl_registry_add_config (registry, config, NULL);
+}
+
+gint
+main (int argc, gchar *argv[])
+{
+  GMainLoop *loop;
+  grl_init (&argc, &argv);
+  GRL_LOG_DOMAIN_INIT (example_log_domain, "example");
+  configure_plugins ();
+  load_plugins ();
+  loop = g_main_loop_new (NULL, FALSE);
+  g_main_loop_run (loop);
+  grl_deinit ();
+  return 0;
+}
+
+      
+

+ For more information on how to operate with media objects + please check the + GrlData hierarchy + API reference. +

+
+
+

+Efficient metadata resolution

+

When executing operations that return lists of media items (like + Browse or Search) it is convenient to ensure that we do not + request metadata that could slow down the operation unless it + is really necessary. +

+

+ A clear example of this situation is the way Youtube video + URLs are resolved: a browse operation on Youtube can usually + be resolved in a single HTTP query, however, if one wants to + obtain the URLs of the videos then for each video in the result + set another HTTP request is needed. This would slow down + the browse operation remarkably and would spam Youtube + with requests to obtain URLs that may not be ever needed. + Indeed, a normal player would browse a list of videos and show + information useful for the user to select the one he/she is + interested in (title, duration, artist, etc), the URL is not + interesting at this stage, it is only interesting when the user + selected a video to play, and we would be interested only + in that single URL and not in all the URLs of the videos + we are displaying. +

+

+ Grilo provides methods to application developers to query + the keys (if any) that may have an impact on the performance + for a particular source (like the URL in the case of Youtube), + but it is usually easier to just use the GRL_RESOLVE_FAST_ONLY + flag when issuing Search, Browse or Query operations. +

+

+ By using this flag, Grilo will resolve only the keys + that do not have an impact on performance. If you browse + Youtube with this flag Grilo won't request the URL key + to the Youtube source. However, if the source could resolve + the URL without performance penalties, it would do so + normally. +

+

+ Usually, for operations like Browse or Search that operate + with large result sets it is recommended to use + GRL_RESOLVE_FAST_ONLY. If you really need to get the metadata + you requested for a specific item (for example if you want to + play a video from Youtube you really need the URL), then + you can safely use the Metadata operation without the + GRL_RESOLVE_FAST_ONLY flag, which would only operate on this + particular item, reducing the performance penalty and providing + a more efficient solution. +

+

+ The program below demonstrates how this works, it accepts as + argument the id of the source we want to operate with, when the + source is registered it will issue a search operation requesting + only fast keys. When the search callback is invoked we will print + both the title information and the URL of the first media + that matched the search text. +

+

+ If we run the program using grl-jamendo as target source, we will + see that it retrieves both the title and the URL of the media + immediately, however, if we use grl-youtube, it won't and in order + to obtain the URL we issue a new Metadata operation, this time + without the GRL_RESOLVE_FAST_ONLY flag. +

+

+ Of course this is a very simple example, in a real application the way + this would work is that we would request the URL in a + Browse/Search that could return hundreds of results + and we may or may not get the URLs depending on the source + we are operating with, but in any case we will ensure the operation + will run as fast as possible: the user will see the results + of the search fast. Then, when the user selects + a media item to be played from that result set we would check if + we have the URL already (and we will have the URL ready if the source + could resolve it fast) in which case we can play the media right away (no + time penalty at all from the user point of view). If the URL could not + be resolved because it was slow for the source (like in the case of Youtube) + then we just have to issue a Metadata operation requesting the URL, + but that won't be too bad because we are requesting it only + for the item that the user selected, so from the user's perspective + the playback will take slightly more to start but would still + be an acceptable delay. +

+
+        
+/*
+ * Shows how to get content in an efficient way.
+ * Search 'rock' content in all searchable sources.
+ */
+
+#include <grilo.h>
+#include <string.h>
+#include <stdlib.h>
+
+#define GRL_LOG_DOMAIN_DEFAULT  example_log_domain
+GRL_LOG_DOMAIN_STATIC(example_log_domain);
+
+const gchar *target_source_id = NULL;
+
+static void
+resolve_cb (GrlSource *source,
+            guint operation_id,
+            GrlMedia *media,
+            gpointer user_data,
+            const GError *error)
+{
+  if (error)
+    g_error ("Resolve operation failed. Reason: %s", error->message);
+
+  const gchar *url = grl_media_get_url (media);
+  g_debug ("\tURL: %s", url);
+  g_object_unref (media);
+  exit (0);
+}
+
+static void
+search_cb (GrlSource *source,
+	   guint browse_id,
+	   GrlMedia *media,
+	   guint remaining,
+	   gpointer user_data,
+	   const GError *error)
+{
+  if (error)
+    g_error ("Search operation failed. Reason: %s", error->message);
+
+  if (!media) {
+    g_error ("No media items found matching the text \"rock\"!");
+    return;
+  }
+
+  g_debug ("Got matching media from %s. Details:", target_source_id);
+  const gchar *title = grl_media_get_title (media);
+  g_debug ("\tTitle: %s", title);
+  const gchar *url = grl_media_get_url (media);
+  if (url) {
+    g_debug ("\tURL: %s:", url);
+    g_object_unref (media);
+    exit (0);
+  } else {
+    g_debug ("URL no available, trying with slow keys now");
+    GrlOperationOptions *options;
+    GrlCaps *caps;
+    GList *keys = grl_metadata_key_list_new (GRL_METADATA_KEY_URL, GRL_METADATA_KEY_INVALID);
+
+    caps = grl_source_get_caps (source, GRL_OP_RESOLVE);
+    options = grl_operation_options_new (caps);
+    grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY);
+    grl_source_resolve (source,
+			       media,
+			       keys,
+			       options,
+			       resolve_cb,
+			       NULL);
+    g_object_unref (caps);
+    g_object_unref (options);
+    g_list_free (keys);
+  }
+}
+
+static void
+source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data)
+{
+  const gchar *source_id = grl_source_get_id (source);
+  GrlCaps *caps;
+  GrlOperationOptions *options;
+
+  /* We are looking for one source in particular */
+  if (strcmp (source_id, target_source_id))
+    return;
+
+  GList *keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
+					   GRL_METADATA_KEY_URL,
+					   GRL_METADATA_KEY_INVALID);
+
+  /* The source must be searchable */
+  if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH))
+    g_error ("Source %s is not searchable!", source_id);
+
+  caps = grl_source_get_caps (source, GRL_OP_SEARCH);
+  options = grl_operation_options_new (caps);
+  grl_operation_options_set_count (options, 5);
+  grl_operation_options_set_resolution_flags (options,
+                                   GRL_RESOLVE_IDLE_RELAY
+                                   | GRL_RESOLVE_FAST_ONLY);
+
+  /* Retrieve the first media from the source matching the text "rock" */
+  g_debug ("Searching \"rock\" in \"%s\"", source_id);
+  grl_source_search (source,
+			   "rock",
+			   keys,
+			   options,
+			   search_cb,
+			   NULL);
+  g_object_unref (caps);
+  g_object_unref (options);
+  g_list_free (keys);
+}
+
+static void
+configure_plugins (void)
+{
+  GrlConfig *config;
+  GrlRegistry *registry;
+
+  /* Let's configure only the Youtube plugin (only requires an API key) */
+  config = grl_config_new ("grl-youtube", NULL);
+  grl_config_set_api_key (config,
+                          "AI39si4EfscPllSfUy1IwexMf__kntTL_G5dfSr2iUEVN45RHG"
+                          "q92Aq0lX25OlnOkG6KTN-4soVAkAf67fWYXuHfVADZYr7S1A");
+  registry = grl_registry_get_default ();
+  grl_registry_add_config (registry, config, NULL);
+}
+
+static void
+load_plugins (void)
+{
+  GrlRegistry *registry;
+  GError *error = NULL;
+
+  registry = grl_registry_get_default ();
+  g_signal_connect (registry, "source-added",
+		    G_CALLBACK (source_added_cb), NULL);
+  if (!grl_registry_load_all_plugins (registry, TRUE, &error)) {
+    g_error ("Failed to load plugins: %s", error->message);
+  }
+}
+
+gint
+main (int argc, gchar *argv[])
+{
+  GMainLoop *loop;
+  grl_init (&argc, &argv);
+
+  if (argc != 2) {
+    g_print ("Please specify id of the source to search " \
+	     "(example: grl-youtube)\n");
+    exit (1);
+  } else {
+    target_source_id = argv[1];
+  }
+
+  GRL_LOG_DOMAIN_INIT (example_log_domain, "example");
+  configure_plugins ();
+  load_plugins ();
+  loop = g_main_loop_new (NULL, FALSE);
+  g_main_loop_run (loop);
+  grl_deinit ();
+
+  return 0;
+}
+
+      
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/ch04.html b/doc/grilo/html/ch04.html new file mode 100644 index 0000000..167057e --- /dev/null +++ b/doc/grilo/html/ch04.html @@ -0,0 +1,1532 @@ + + + + +Writing plugins for Grilo: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Writing plugins for Grilo

+ +
+
+
+

+Source plugins

+
+
+
+
+Introduction
+

+ Sources provide access to media content. Examples of them are sources + providing content from Jamendo or UPnP. Sources can also provide other + information that complements already existent media content. Thus, there + can be sources providing content and others adding more informationover + that content. +

+

+ Sources are provided by plugins. A plugin usually provides one source, but + it can provide more than one. For instance, the UPnP plugin is able to + provide several sources, one source per each UPnP server found in the + network. +

+

+ Usually, clients interact with these sources in various ways: +

+
    +
  • +Search. + Users can instruct the source to search for + content that matches certain keywords. This is how people + typically interact with services like YouTube, for example. +
  • +
  • +Browse. + Users navigate through a fixed hierarchy of + categorized content interactively. This is how people + typically interact with UPnP services, for example. +
  • +
  • +Query. + Some times services provide features that + are too specific to be transported to a generic, + cross-service API. An example of this could be certain + search filtering options. Queries allow users to + interact with services using service-specific language + that can be used to exploit these features. +
  • +
  • +Resolve. + Users can request additional information (metadata) + for a specific media item served by a source through + a previous browse, search or query operation that was configured + to retrieve only partial metadata (typically for optimization + purposes). Resolve operations are usually used when showing + detailed information about specific media items. +
  • +
  • +Store. + Some sources allow (or even require) users + to push content to them. This is how people interact with + Podcasts for example, they "store" the feeds they are + interested in following first. A source can store either the + full media or just a subset of their properties. +
  • +
  • +Remove. + The opposite to the Store operation, used to remove + content from the source. +
  • +
  • +Media from URL. + This allows to build a media just knowing the URL. + For instance, giving a YouTube URL, the proper source + is able to build and return the corresponding Grilo + media content. +
  • +
+

+

+
+
+
+Registering Plugins
+

+ Grilo plugins must use the macro GRL_PLUGIN_REGISTER(), which defines the + entry and exit points of the plugin (called when the plugin is loaded and + unloaded respectively) as well as its plugin identifier (a string + identifying the plugin). +

+

+ The plugin identifier will be used by clients to identify the plugin when + interacting with the plugin registry API. See the GrlRegistry API reference for + more details. +

+

+ The plugin initialization function is mandatory. + The plugin deinitialization function is optional. +

+

+ Usually the plugin initialization function will create at least one GrlSource instance and register it using grl_registry_register_source(). +

+

+ A GrlSource instance represents a + particular source of media/attributes. Usually each plugin would spawn + just one media source, but some plugins may spawn multiple sources. For + example, a UPnP plugin spawning one media source object for each UPnP + server discovered. +

+

+ Users can query the registry for available sources and then use the GrlSource API to interact with them. +

+

+ If the plugin requires configuration this should be processed during the + plugin initialization function, which should return TRUE upon successful + initialization or FALSE otherwise. +

+

+ The parameter "configs" of the plugin initialization function provides + available configuration information provided by the user for this plugin, + if any. This parameter is a list of GrlConfig objects. Usually there would be only + one GrlConfig object in the list, but + there might be more in the cases of plugins spawning multiple media + sources that require different configuration options. +

+
+      
+gboolean
+grl_foo_plugin_init (GrlRegistry *registry,
+                     GrlPlugin *plugin,
+                     GList *configs)
+{
+  gchar *api_key;
+  GrlConfig *config;
+
+  config = GRL_CONFIG (configs->data);
+
+  api_key = grl_config_get_api_key (config);
+  if (!api_key) {
+    GRL_INFO ("Missing API Key, cannot load plugin");
+    return FALSE;
+  }
+
+  GrlFooSource *source = grl_foo_source_new (api_key);
+  grl_registry_register_source (registry,
+                                plugin,
+                                GRL_SOURCE (source),
+                                NULL);
+  g_free (api_key);
+  return TRUE;
+}
+
+GRL_PLUGIN_REGISTER (grl_foo_plugin_init, NULL, "grl-foo");
+      
+    
+

+ The next step is to implement the source code, for that sources must + extend the GrlSource class. +

+

+ In typical GObject fashion, developers should use the G_DEFINE_TYPE macro, + and then provide the class initialization function + (grl_foo_source_class_init() in the example below) and the instance + initialization function (grl_foo_source_init() in the example below). A + constructor function, although not mandatory, is usually nice to have + (grl_foo_source_new() in the example below). +

+

+ When creating a new GrlSource instance, a + few properties should be provided: +

+
    +
  • +source-id: An identifier for the source object. + This is not the same as the plugin identifier (remember that a plugin + can spawn multiple media source objects). This identifier can be used + by clients when interacting with available media sources through the + plugin registry API. See the GrlRegistry API reference for + more details. +
  • +
  • +source-name: A name for the source object + (typically the name that clients would show in the user interface). +
  • +
  • +source-desc: A description of the media source. +
  • +
+

+

+

+ In the class initialization function the plugin developer should provide + implementations for the operations that the plugin will support. Almost all + operations are optional, but for typically Search or Browse are expected in + sources providing media content, and Resolve for sources providing + information for existent content. +

+
+      
+/* Foo class initialization code */
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+
+  source_class->supported_keys = grl_foo_source_supported_keys;
+  source_class->slow_keys = grl_foo_source_slow_keys;
+  source_class->browse = grl_foo_source_browse;
+  source_class->search = grl_foo_source_search;
+  source_class->query = grl_foo_source_query;
+  source_class->store = grl_foo_source_store;
+  source_class->remove = grl_foo_source_remove;
+  source_class->resolve = grl_foo_source_resolve;
+}
+
+/* Foo instance initialization code */
+static void
+grl_foo_source_init (GrlFooSource *source)
+{
+  /* Here you would initialize 'source', which is an instance
+     of this class type. */
+  source->api_key = NULL;
+}
+
+/* GrlFooSource constructor */
+static GrlFooSource *
+grl_foo_source_new (const gchar *api_key)
+{
+  GrlFooSource *source;
+
+  source = GRL_FOO_SOURCE (g_object_new (GRL_FOO_SOURCE_TYPE,
+                                         "source-id", "grl-foo",
+                                         "source-name", "Foo",
+                                         "source-desc", "Foo media provider",
+                                         NULL));
+  source->api_key = g_strdup (api_key);
+  return source;
+}
+
+G_DEFINE_TYPE (GrlFooSource, grl_foo_source, GRL_TYPE_SOURCE);
+      
+    
+
+
+
+Implementing Supported Keys
+

+ Sources should implement "supported_keys" method to define what metadata + keys the source is able to handle. +

+

+ This method is declarative, and it only has to return a list of metadata + keys that the plugin supports, that is, it is a declaration of the + metadata that the plugin can provide for the media content that it + exposes. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->supported_keys = grl_foo_source_supported_keys;
+}
+
+static const GList *
+grl_foo_source_supported_keys (GrlSource *source)
+{
+  static GList *keys = NULL;
+  if (!keys) {
+    keys = grl_metadata_key_list_new (GRL_METADATA_KEY_ID,
+                                      GRL_METADATA_KEY_TITLE,
+                                      GRL_METADATA_KEY_URL,
+                                      GRL_METADATA_KEY_THUMBNAIL,
+                                      GRL_METADATA_KEY_MIME,
+                                      GRL_METADATA_KEY_ARTIST,
+                                      GRL_METADATA_KEY_DURATION,
+                                      GRL_METADATA_KEY_INVALID);
+  }
+  return keys;
+}
+      
+    
+
+
+
+Implementing Slow Keys
+

+ This method is similar to "supported_keys", and in fact it returns a + subset of the keys returned by "supported_keys". +

+

+ This method is intended to provide the framework with information on + metadata that is particularly expensive for the framework to retrieve. The + framework (or the plugin users) can then use this information to remove + this metadata from their requests when performance is important. This is, + again, a declarative interface providing a list of keys. +

+

+ If the plugin does not provide an implementation for "slow_keys" the + framework assumes that all keys are equally expensive to retrieve and will + not perform optimizations in any case. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->slow_keys = grl_foo_source_slow_keys;
+}
+
+static const GList *
+grl_foo_source_slow_keys (GrlSource *source)
+{
+  static GList *keys = NULL;
+  if (!keys) {
+    keys = grl_metadata_key_list_new (GRL_METADATA_KEY_URL,
+                                      NULL);
+  }
+  return keys;
+}
+      
+    
+
+
+
+Implementing Search
+

+ This method implements free-text based searches, retrieving media + that matches the text provided by the user. +

+

+ Typically, the way this method operates is like this: +

+
    +
  • Plugin receives the text to search, as well as other + parameters like the metadata keys to retrieve, how many elements, and so + on.
  • +
  • With all this information the plugin executes the search on + the backend, and waits for the results.
  • +
  • Plugin receives the results from the service provider, and + encodes them in different GrlMedia + objects.
  • +
  • Plugin sends eatch GrlMedia + object back to the client, one by one, invoking the user provided + callback.
  • +
+

+

+

+ Below you can see some source code that illustrates this process: +

+
+      
+/* In this example we assume a media provider that can be
+   queried over http, and that provides its results in xml format */
+
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->search = grl_foo_source_search;
+}
+
+static void
+foo_execute_search_async_cb (gchar *xml, GrlSourceSearchSpec *ss)
+{
+  GrlMedia *media;
+  gint count;
+
+  count = count_results (xml);
+
+  if (count == 0) {
+    /* Signal "no results" */
+    ss->callback (ss->source, ss->operation_id,
+                  NULL, 0, ss->user_data, NULL);
+  } else {
+    /* parse_next parses the next media item in the XML
+       and creates a GrlMedia instance with the data extracted */
+    while (media = parse_next (xml))
+      ss->callback (ss->source,       /* Source emitting the data */
+                    ss->operation_id, /* Operation identifier */
+                    media,            /* Media that matched the query */
+                    --count,          /* Remaining count */
+                    ss->user_data,    /* User data for the callback */
+                    NULL);            /* GError instance (if an error occurred) */
+  }
+}
+
+static void
+grl_foo_source_search (GrlSource *source, GrlSourceSearchSpec *ss)
+{
+  gchar *foo_http_search:
+
+  foo_http_search =
+    g_strdup_printf("http://media.foo.com?text=%s&offset=%d&count=%d",
+                    ss->text,
+                    grl_operation_options_get_skip (ss->options),
+                    grl_operation_options_get_count (ss->options));
+
+  /* This executes an async http query and then invokes
+     foo_execute_search_async_cb with the response */
+  foo_execute_search_async (foo_http_search, ss);
+}
+      
+    
+

+ Please, check Common + considerations for Search, Browse and Query implementations for + more information on how to implement Search operations properly. +

+

+ Examples of plugins implementing Search functionality are grl-jamendo, + grl-youtube or grl-vimeo among others. +

+
+
+
+Implementing Browse
+

+ Browsing is an interactive process, where users navigate by exploring + these containers exposed by the media source in hierarchical form. The + idea of browsing a media source is the same as browsing a file system. +

+

+ The signature and way of operation of the Browse operation is the same as + in the Search operation with one difference: instead of a text parameter + with the search keywords, it receives a GrlMedia object representing the container the + user wants to browse. +

+

+ For the most part, plugin developers that write Browse implementations + should consider the same rules and guidelines explained for Search + operations. +

+

+ Below you can see some source code that illustrates this process: +

+
+      
+/* In this example we assume a media provider that can be queried over
+   http, providing results in XML format. The media provider organizes
+   content according to a list of categories. */
+
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->browse = grl_foo_source_browse;
+}
+
+static void
+foo_execute_categories_async_cb (gchar *xml, GrlSourceBrowseSpec *bs)
+{
+  GrlMedia *media;
+  gint count;
+
+  count = count_results (xml);
+
+  if (count == 0) {
+    /* Signal "no results" */
+    bs->callback (bs->source, bs->operation_id,
+                  NULL, 0, bs->user_data, NULL);
+  } else {
+    /* parse_next parses the next category item in the XML
+       and creates a GrlMedia instance with the data extracted,
+       which should be a container */
+    while (media = parse_next_cat (xml))
+      bs->callback (bs->source,       /* Source emitting the data */
+                    bs->operation_id, /* Operation identifier */
+                    media,            /* The category container  */
+                    --count,          /* Remaining count */
+                    bs->user_data,    /* User data for the callback */
+                    NULL);            /* GError instance (if an error occurred) */
+  }
+}
+
+static void
+foo_execute_media_async_cb (gchar *xml, GrlSourceBrowseSpec *os)
+{
+  GrlMedia *media;
+  gint count;
+
+  count = count_results (xml);
+
+  if (count == 0) {
+    /* Signal "no results" */
+    bs->callback (bs->source, bs->operation_id,
+                  NULL, 0, bs->user_data, NULL);
+  } else {
+    /* parse_next parses the next media item in the XML
+       and creates a GrlMedia instance with the data extracted */
+    while (media = parse_next_media (xml))
+      os->callback (os->source,       /* Source emitting the data */
+                    os->operation_id, /* Operation identifier */
+                    media,            /* Media that matched the query */
+                    --count,          /* Remaining count */
+                    os->user_data,    /* User data for the callback */
+                    NULL);            /* GError instance (if an error occurred) */
+  }
+}
+
+static void
+grl_foo_source_browse (GrlSource *source, GrlSourceBrowseSpec *bs)
+{
+  gchar *foo_http_browse:
+
+  /* We use the names of the categories as their media identifiers */
+  container_id = grl_media_get_id (bs->container);
+
+  if (!container_id) {
+    /* Browsing the root container, the result must be the list of
+       categories provided by the service */
+    foo_http_browse =
+      g_strdup_printf("http://media.foo.com/category_list",
+                      grl_operation_options_get_skip (bs),
+                      grl_operation_options_get_count (bs));
+     /* This executes an async http query and then invokes
+        foo_execute_categories_async_cb with the response */
+     foo_execute_categories_async (foo_http_browse, bs);
+  } else {
+    /* Browsing a specific category */
+    foo_http_browse =
+      g_strdup_printf("http://media.foo.com/content/%s?offset=%d&count=%d",
+                      container_id,
+                      grl_operation_options_get_skip (bs),
+                      grl_operation_options_get_count (bs));
+     /* This executes an async http query and then invokes
+        foo_execute_browse_async_cb with the response */
+     foo_execute_media_async (foo_http_browse, bs);
+  }
+}
+      
+    
+

+ Some considerations that plugin developers should take into account: +

+
    +
  • + In the example we are assuming that the content hierarchy only has two + levels, the first level exposes a list of categories (each one exposed + as a container GrlMedia object so the + user knows they can be browsed again), and then a second level with + the contents within these categories, that we assume are all media + items, although in real life they could very well be more containers, + leading to more complex hierarchies. +
  • +
  • + Containers returned by a browse operation can be browsed by clients in + future Browse operations. +
  • +
  • + The input parameter that informs the plugin about the container that should + be browsed (bs->container) is of type GrlMedia. The plugin developer must + map that to something the media provider understands. Typically, when + GrlMedia objects are returned from a + plugin to the client, they are created so their "id" property (grl_media_set_id()) can be used for + this purpose, identifying these media resources uniquely in the + context of the media provider. +
  • +
  • + A GrlMedia object with NULL id always + represents the root container/category in the content hierarchy + exposed by the plugin. +
  • +
+

+

+

+ Please, check Common + considerations for Search, Browse and Query implementations for + more information on how to implement Browse operations properly. +

+

+ Examples of plugins implementing browse functionality are grl-jamendo, + grl-filesystem or grl-upnp among others. +

+
+
+
+Implementing Query
+

+ This method provides plugin developers with means to expose + service-specific functionality that cannot be achieved through regular + Browse and Search operations. +

+

+ This method operates just like the Search method, but the text parameter + does not represent a list of keywords to search for, instead, its meaning + is plugin specific and defined by the plugin developer. Plugin + documentation should explain what is the syntax of this query text, and + what it allows. +

+

+ Normally, Query implementations involve parsing and decoding this input + string into something meaningful for the media provider (a specific + operation with its parameters). +

+

+ Usually, Query implementations are intended to provide advanced filtering + capabilities and similar features that make use of specific features of + the service that cannot be exposed through more service agnostic APIs, + like Search or Browse. For example, a plugin that provides media content + stored in a database can implement Query to give users the possibility to + execute SQL queries directly, by encoding the SQL commands in this input + string, giving a lot of flexibility in how they access the content stored + in the database in exchange for writing plugin-specific code in the + application. +

+

+ The example below shows the case of a plugin implementing Query to let the + user specify filters directly in SQL format for additional flexibility. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->query = grl_foo_source_query;
+}
+
+static void
+grl_foo_source_query (GrlSource *source, GrlSourceQuerySpec *qs)
+{
+  const gchar *sql_filter;
+  GList *results;
+  GrlMedia *media;
+  gint count;
+
+  /* In this example, we are assuming qs->query is expected to contain a
+  suitable SQL filter */
+  sql_query = prepare_sql_with_custom_filter (qs->query,
+                                              grl_operation_options_get_skip (qs->options),
+                                              grl_operation_options_get_skip (qs->options));
+  /* Execute the resulting SQL query, which incorporates
+     the filter provided by the user */
+  results = execute_sql (sql_query);
+
+  /* For each result obtained, invoke the user callback as usual */
+  count = g_list_length (results);
+
+  if (count == 0) {
+    /* Signal "no results" */
+    qs->callback (qs->source, qs->operation_id,
+                  NULL, 0, qs->user_data, NULL);
+  } else {
+    while (media = next_result (&results))
+      qs->callback (qs->source,       /* Source emitting the data */
+                    qs->operation_id, /* Operation identifier */
+                    media,            /* Media that matched the query */
+                    --count,          /* Remaining count */
+                    qs->user_data,    /* User data for the callback */
+                    NULL);            /* GError instance (if an error occurred) */
+  }
+}
+      
+    
+

+ Please, check Common + considerations for Search, Browse and Query implementations for + more information on how to implement Query operations properly. +

+

+ Examples of plugins implementing Query are grl-jamendo, grl-upnp or + grl-bookmarks among others. +

+
+
+
+Common considerations for Search, Browse and Query implementations
+

+

+
    +
  • + Making operations synchronous would block the client application while + the operation is executed, so providing a non-blocking implementation + is mostly mandatory for most practical purposes. +
  • +
  • + Grilo invokes plugin operations in idle callbacks to ensure that + control is returned to the client as soon as possible. Still, plugin + developers are encouraged to write efficient code that avoids blocking + as much as possible, since this good practice will make applications + behave smoother, granting a much better user experience. Use of + threads in plugin code is not recommended, instead, splitting the work + to do in chunks using the idle loop is encouraged. +
  • +
  • + Creating GrlMedia instances is easy, + you should instantiate one, and then use the API to set the + corresponding data. Check the GrlData + hierarchy in the API reference for more details. +
  • +
  • + The remaining count parameter present in the callbacks is intended to + provide the client with an estimation of how many + more results will come after the current one as part of the same + operation. +
  • +
  • + Finalization of the operation must always + be signaled by invoking the user callback with remaining count set to 0, + even on error conditions. +
  • +
  • + Plugin developers must ensure that all operations end by invoking the + user callback with the remaining count parameter set to 0, and that + this is done only once per operation. This behavior is expected and + must be guaranteed by the plugin developer. +
  • +
  • + Once the user callback has been invoked with the remaining count + parameter set to 0, the operations is considered finished and the + plugin developer must never + invoke the user callback again for that operation again. +
  • +
  • + In case of error, the plugin developer must invoke the user + callback like this: +
      +
    • Set the last parameter to a non-NULL GError instance.
    • +
    • Set the media parameter to NULL.
    • +
    • Set the remaining count parameter to 0.
    • +
    + The plugin developer is responsible for releasing the error once + the user callback is invoked. +
  • +
  • + It is possible to finalize the operation with a NULL media and + remaining count set to 0 if that is convenient for the plugin + developer. +
  • +
  • + Returned GrlMedia objects are owned by + the client and should not be freed by the plugin. +
  • +
  • + The list of metadata information requested by the client is available + in the "keys" field of the Spec structure. Typically plugin developers + don't have to care about the list of keys requested and would just + resolve all metadata available. The only situation in which the plugin + developer should check the specific list of keys requested is when + there are keys that are particularly expensive to resolve, in these + cases the plugin should only resolve these keys if the user has indeed + requested that information. +
  • +
+

+

+
+
+
+Implementing Resolve
+

+ Resolve operations are issued in order to grab additional information on a + given media (GrlMedia). +

+

+ Typically, the use case for Resolve operations is applications obtaining a + list of GrlMedia objects by executing a + Browse, Search or Query operation, requesting limited metadata (for + performance reasons), and then requesting additional metadata for specific + items selected by the user. +

+

+ This additional information can be provided by the same source that got + the GrlMedia objects (if it implements the + Resolve operation), or by other sources able to provide the information + requested. +

+

+ Plugins implementing "resolve" operation should implement "may_resolve" + too. The purpose of this method is to analyze if the GrlMedia contains the required metadata for the + source to provide the additional metadata requested. If not provided, the + default behaviour for sources implementing "resolve" but not "may_resolve" + is to resolve only supported keys in media objects coming from the source + itself. +

+
+      
+/* In this example we assume a plugin that can resolve thumbnail
+   information for audio items given that we have artist and album
+   information available  */
+
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->may_resolve = grl_foo_source_may_resolve;
+  source_class->resolve = grl_foo_source_resolve;
+}
+
+static gboolean
+grl_foo_source_may_resolve (GrlSource *source,
+                            GrlMedia *media,
+                            GrlKeyID key_id,
+                            GList **missing_keys)
+{
+  gboolean needs_artist = FALSE;
+  gboolean needs_album  = FALSE;
+
+  /* We only support thumbnail resolution */
+  if (key_id != GRL_METADATA_KEY_THUMBNAIL)
+    return FALSE;
+
+  /* We only support audio items */
+  if (media) {
+    if (!grl_media_is_audio (media))
+      return FALSE;
+
+    /* We need artist information available */
+    if (grl_media_get_artist (media) == NULL) {
+      if (missing_keys)
+        *missing_keys = g_list_add (*missing_keys,
+                                    GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ARTIST));
+      needs_artist = TRUE;
+    }
+
+    /* We need album information available */
+    if (grl_media_get_album (media) == NULL)) {
+      if (missing_keys)
+        *missing_keys = g_list_add (*missing_keys,
+                                    GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ALBUM));
+      needs_album = TRUE;
+    }
+  }
+
+  if (needs_album || needs_artist)
+    return FALSE;
+
+  return TRUE;
+}
+
+static void
+grl_foo_source_resolve (GrlSource *source,
+                        GrlSourceResolveSpec *rs)
+{
+  const gchar *album;
+  const gchar *artist,
+  gchar *thumb_uri;
+  const GError *error = NULL;
+
+  if (contains_key (rs->keys, GRL_METADATA_KEY_THUMBNAIL) {
+    artist = grl_media_get_artist (rs->media);
+    album = grl_media_get_album (rs->media);
+    if (artist && album) {
+      thumb_uri = resolve_thumb_uri (artist, album);
+      grl_media_set_thumbnail (rs->media, thumb_uri);
+    } else {
+      error = g_error_new (GRL_CORE_ERROR,
+                           GRL_CORE_ERROR_RESOLVE_FAILED,
+                           "Can't resolve thumbnail, artist and album not known");
+    }
+  } else {
+      error = g_error_new (GRL_CORE_ERROR,
+                           GRL_CORE_ERROR_RESOLVE_FAILED,
+                           "Can't resolve requested keys");
+  }
+
+  rs->callback (source, rs->operation_id, rs->media, rs->user_data, error);
+
+  if (error)
+    g_error_free (error);
+}
+      
+    
+

+ Some considerations that plugin developers should take into account: +

+
    +
  • + The method "may_resolve" is synchronous, should be fast and never + block. If the plugin cannot confirm if it can resolve the metadata + requested without doing blocking operations then it should return + TRUE. Then, when "resolve" is invoked further checking can be done. +
  • +
  • + Just like in other APIs, implementation of this method is expected + to be asynchronous to avoid blocking the user code. +
  • +
+

+

+

+ Examples of plugins implementing Resolve are grl-youtube, grl-upnp or + grl-lastfm-albumart among others. +

+
+
+
+Implementing Store
+

+ The Store method is used to push new content to the media source. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlMediaSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->store = grl_foo_source_store;
+}
+
+static void
+grl_foo_source_store (GrlSource *source,
+                      GrlSourceStoreSpec *ss)
+{
+  const gchar *title;
+  const gchar *uri;
+  const gchar *parent_id;
+  guint row_id;
+
+  /* We get the id of the parent container where we want
+     to put the new content */
+  parent_id = grl_media_get_id (GRL_MEDIA (parent));
+
+  /* We get he metadata of the media we want to push, in this case
+     only URI and Title */
+  uri = grl_media_get_uri ();
+  title = grl_media_get_title ();
+
+  /* Push the data to the media provider (in this case a database) */
+  row_id = run_sql_insert (parent_id, uri, title);
+
+  /* Set the media id in the GrlMedia object */
+  grl_media_set_id (ss->media, row_id_to_media_id (row_id));
+
+  /* Inform the user that the operation is done (NULL error means everything was
+     ok), and all the keys were stored successfully (no list of failed keys) */
+  ss->callback (ss->source, ss->media, NULL, ss->user_data, NULL);
+}
+      
+    
+

+ Some considerations that plugin developers should take into account: +

+
  • + After successfully storing the media, the method should assign a + proper media id to it before invoking the user callback. +
+

+

+

+ Examples of plugins implementing Store are grl-bookmarks or grl-podcasts. +

+
+
+
+Implementing Store Metadata
+

+ Some plugins may provide users with the option of updating the metadata + available for specific media items. For example, a plugin may store user + metadata like the last time that a certain media resource was played + or its play count. These metadata properties do not make sense if + applications do not have means to change and update their values. +

+

+ Plugins that support this feature must implement two methods: +

+
    +
  • +writable_keys: just like "supported_keys" + or "slow_keys", it is a declarative method, intended to provide + information on what keys supported by the plugin are writable, that is, + their values can be changed by the user. +
  • +
  • +store_metadata: which is the method used + by clients to update metadata values for specific keys. +
  • +
+

+

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->writable_keys = grl_foo_source_writable_keys;
+  source_class->store_metadata = grl_foo_source_store_metadata;
+}
+
+static const GList *
+grl_foo_source_writable_keys (GrlSource *source)
+{
+  static GList *keys = NULL;
+  if (!keys) {
+    keys = grl_metadata_key_list_new (GRL_METADATA_KEY_RATING,
+                                      GRL_METADATA_KEY_PLAY_COUNT,
+                                      GRL_METADATA_KEY_LAST_PLAYED,
+                                      NULL);
+  }
+  return keys;
+}
+
+static void
+grl_foo_source_store_metadata (GrlSource *source,
+                               GrlSourceSetMetadataSpec *sms)
+{
+  GList *iter;
+  const gchar *media_id;
+  GList *failed_keys = NULL;
+
+  /* 'sms->media' contains the media with updated values */
+  media_id = grl_media_get_id (sms->media);
+
+  /* Go through all the keys that need update ('sms->keys'), take
+     the new values (from 'sms->media') and update them in the
+     media provider  */
+  iter = sms->keys;
+  while (iter) {
+    GrlKeyID key = GRLPOINTER_TO_KEYID (iter->data);
+    if (!foo_update_value_for_key (sms->media, key)) {
+      /* Save a list with keys that we failed to update */
+      failed_keys = g_list_prepend (failed_keys, iter->data);
+    }
+    iter = g_list_next (iter);
+  }
+
+  /* We are done, invoke user callback to signal client */
+  sms->callback (sms->source, sms->media, failed_keys, sms->user_data, NULL);
+  g_list_free (failed_keys);
+}
+      
+    
+

+ Some considerations that plugin developers should take into account: +

+
    +
  • + Typically, updating metadata keys in the media provider would involve + one or more blocking operations, so asynchronous implementations + of "store_metadata" should be considered. +
  • +
  • + Some media providers may allow for the possibility of updating + multiple keys in just one operation. +
  • +
  • + The user callback for "store_metadata" receives a list with all the keys + that failed to be updated, which the plugin should free after calling + the user callback. +
  • +
+

+

+

+ Examples of plugins implementing "store_metadata" are grl-metadata-store + or grl-tracker. +

+
+
+
+Implementing Remove
+

+ The Remove method is used to remove content from the media source. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->remove = grl_foo_source_remove;
+}
+
+static void
+grl_foo_source_remove (GrlSource *source,
+                       GrlSourceRemoveSpec *rs)
+{
+  /* Remove the data from the media provider (in this case a database) */
+  run_sql_delete (ss->media_id);
+
+  /* Inform the user that the operation is done (NULL error means everything
+     was ok */
+  rs->callback (rs->source, rs->media, rs->user_data, NULL);
+}
+      
+    
+

+ Examples of plugins implementing Remove are grl-bookmarks or + grl-podcasts. +

+
+
+
+Implementing Media from URI
+

+ Some times clients have access to the URI of the media, and they want to + retrieve metadata for it. A couple of examples where this may come in + handy: A file system browser that needs to obtain additional metadata for + a particular media item located in the filesystem. A browser plugin that + can obtain additional metadata for a media item given its URL. In these + cases we know the URI of the media, but we need to create a GrlMedia object representing it. +

+

+ Plugins that want to support URI to GrlMedia + conversions must implement the "test_media_from_uri" and "media_from_uri" + methods. +

+

+ The method "test_media_from_uri" should return TRUE if, upon inspection of + the media URI, the plugin decides that it can convert it to a GrlMedia object. For example, a YouTube plugin + would check that the URI of the media is a valid YouTube URL. This method is + asynchronous and should not block. If the plugin cannot decide if it can or + cannot convert the URI to a GrlMedia object + by inspecting the URI without doing blocking operations, it should return + TRUE. This method is used to discard efficiently plugins that cannot resolve + the media. +

+

+ The method "media_from_uri" is used to do the actual conversion from the URI + to the GrlMedia object. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->test_media_from_uri = grl_foo_source_test_media_from_uri;
+  source_class->media_from_uri = grl_foo_source_media_from_uri;
+}
+
+static gboolean
+grl_filesystem_test_media_from_uri (GrlSource *source,
+                                    const gchar *uri)
+{
+  if (strstr (uri, "http://media.foo.com/media-info/") == uri) {
+    return TRUE;
+  }
+  return FALSE;
+}
+
+static void
+grl_filesystem_media_from_uri (GrlSource *source,
+                               GrlSourceMediaFromUriSpec *mfus)
+{
+  gchar *media_id;
+  GrlMedia *media;
+
+  media_id = get_media_id_from_uri (mfus->uri);
+  media = create_media_from_id (media_id);
+  mfus->callback (source, mfus->media_from_uri_id, media, mfus->user_data, NULL);
+  g_free (media_id);
+}
+      
+    
+

+ Some considerations that plugin developers should take into account: +

+
  • + Typically "media_from_uri" involves a blocking operation, and hence + its implementation should be asynchronous. +
+

+

+

+ Examples of plugins implementing "media_from_uri" are grl-filesystem + or grl-youtube. +

+
+
+
+Notifying changes
+

+ Source can signal clients when available media content has been + changed. This is an optional feature. +

+

+ Plugins supporting content change notification must implement + "notify_change_start" and "notify_change_stop", which let the + user start or stop content change notification at will. +

+

+ Once users have activated notifications by invoking + "notify_change_start", media sources should communicate + any changes detected by calling grl_source_notify_change_list() + with a list of the media items changed. +

+

+ Upon calling "notify_changes_stop" the plugin must stop + communicating changes until "notify_changes_start" is + called again. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+  source_class->notify_change_start = grl_foo_source_notify_change_start;
+  source_class->notify_change_stop = grl_foo_source_notify_change_stop;
+}
+
+static void
+content_changed_cb (GList *changes)
+{
+  GPtrArray *changed_medias;
+
+  changed_medias = g_ptr_array_sized_new (g_list_length (changes));
+  while (media = next_media_from_changes (&changes)) {
+    g_ptr_array_add (changed_medias, media);
+  }
+
+  grl_source_notify_change_list (source,
+                                 changed_medias,
+                                 GRL_CONTENT_CHANGED,
+                                 FALSE);
+}
+
+static gboolean
+grl_foo_source_notify_change_start (GrlSource *source,
+                                    GError **error)
+{
+  GrlFooSource *foo_source;
+
+  /* Listen to changes in the media content provider */
+  foo_source = GRL_FOO_SOURCE (source);
+  foo_source->listener_id = foo_subscribe_listener_new (content_changed_cb);
+
+  return TRUE;
+}
+
+static gboolean
+grl_foo_source_notify_change_stop (GrlSource *source,
+                                   GError **error)
+{
+  GrlFooSource *foo_source;
+
+  /* Stop listening to changes in the media content provider */
+  foo_source = GRL_FOO_SOURCE (source);
+  foo_listener_destroy (foo_source->listener_id);
+
+  return TRUE;
+}
+      
+    
+

+ Please check the GrlSource API + reference for more details on how grl_source_notify_change_list() + should be used. +

+

+ Examples of plugins implementing change notification are grl-upnp and + grl-tracker among others +

+
+
+
+Cancelling ongoing operations
+

+ Implementing the "cancel" method is optional, as others. This method + provided means for application developers to cancel ongoing operations on + metadata sources (and hence, also in media sources). +

+

+ The "cancel" method receives the identifier of the operation to be + cancelled. +

+

+ Typically, plugin developers would implement cancellation support + by storing relevant information for the cancellation process + along with the operation data when this is started, and then + retrieving this information when a cancellation request is received. +

+

+ Grilo provides plugin developers with API to attach arbitrary data + to a certain operation given its identifier. These APIs are: +

+ +

+ See the API reference documentation for grl-operation for more details. +

+
+      
+static void
+grl_foo_source_class_init (GrlFooSourceClass * klass)
+{
+  GrlSourceClass *source_class = GRL_SOURCE_CLASS (klass);
+
+  source_class->search = grl_foo_source_search;
+  source_class->cancel = grl_foo_source_cancel;
+}
+
+static void
+grl_foo_source_search (GrlSource *source,
+                       GrlSourceSearchSpec *ss)
+{
+  ...
+  gint op_handler = foo_service_search_start (ss->text, ...);
+  grl_operation_set_data (ss->operation_id,
+                          GINT_TO_POINTER (op_handler));
+  ...
+}
+
+static void
+grl_foo_source_cancel (GrlSource *source,
+                       guint operation_id)
+{
+  gint op_handler;
+
+  op_handler =
+    GPOINTER_TO_INT (grl_operation_get_data (operation_id));
+  if (op_handler > 0) {
+    foo_service_search_cancel (op_handler);
+  }
+}
+      
+    
+

+ Some examples of plugins implementing cancellation support are + grl-youtube, grl-jamendo or grl-filesystem, among others. +

+

+ Developers must free any data stored before the operation finishes. +

+
+
+
+
+

+Testing your plugins

+
+

+Testing your plugins

+

+ Grilo ships a GTK+ test user interface called grilo-test-ui + that can be used to test new plugins. This simple playground application can be + found in the 'grilo' core source code under tools/grilo-test-ui/. If you have + Grilo installed on your system, you may have this application installed as + well. +

+

+ This application loads plugins from the default plugin installation directory + in your system or, alternatively, by inspecting the GRL_PLUGIN_PATH environment + variable, which can be set to contain a list of directories where Grilo + should look for plugins. +

+

+ Once the plugin library is visible to Grilo one only has to start the + grilo-test-ui application and it will load it along with other Grilo + plugins available in the system. +

+

+ In case there is some problem with the initialization of the plugin it should + be logged on the console. Remember that you can control the amount of + logging done by Grilo through the GRL_DEBUG environment variable. You + may want to set this variable to do full logging, in which case + you should type this in your console: +

+
   
+$ export GRL_DEBUG="*:*"
+  
+

+ If you want to focus only on logging the plugin loading process, configure + Grilo to log full details from the plugin registry module alone + by doing this instead: +

+
   
+$ export GRL_DEBUG="registry:*"
+  
+

+ In case your plugin has been loaded successfully you should see something like + this in the log: +

+
 
+(lt-grilo-test-ui:14457): Grilo-DEBUG: [registry] grl-registry.c:188: Plugin rank [plugin-id]' : 0
+(lt-grilo-test-ui:14457): Grilo-DEBUG: [registry] grl-registry.c:476: New source available: [source-id]
+(lt-grilo-test-ui:14457): Grilo-DEBUG: [registry] grl-registry.c:683: Loaded plugin '[plugin-id]' from '[plugin-file-absolute-path.so]'
+  
+

+ If your plugin is a Media Source (not a Metadata Source) you should be able + to see it in the user interface of grilo-test-ui like this: +

+
    +
  • + If the plugin implements Browse you should see the media source objects + spawned by the plugin in the list shown in the main view. You can + browse the plugin by double-clicking on any of its sources. +
  • +
  • + If the plugin implements Search you should see the media source objects + spawned by the plugin in the combo box next to the "Search" button. + You can now search content by selecting the media source you want to test + in the combo, inputting a search text in the text entry right next to it + and clicking the Search button. +
  • +
  • + If the plugin implements query you should see the media source objects + spawned by the plugin in the combo box next to the "Query" button. + You can now query content by selecting the media source you want to test + in the combo, inputting the plugin-specific query string in the text + entry right next to it and clicking the Query button. +
  • +
+

+

+

+ If your plugin is a Metadata Source then you should test it by doing + a Browse, Search or Query operation in some other Media Source available + and then click on any of the media items showed as result. By doing this + grilo-test-ui will execute a Metadata operation which would use any + available metadata plugins to gather as much information as possible. + Available metadata obtained for the selected item will be shown in the + right pane for users to inspect. +

+
+
+Simulating Network Replies
+

+ For offline testing of plug-ins, particularly in automated tests, it is + useful to simulate and return predefined network replies. Therefore, Grilo + provides a few facilities for mocking network replies. +

+

+ To enable mocking, set the environment variable GRL_NET_MOCKED. The value + of this variable is interpreted as the path of the mock configuration file to + use. This file is a simple .ini file, split + into a "default" section and one section per URL to mock. +

+
+[default]
+version = 1
+ignored-parameters = field1[;field2[;...]] or "*"
+
+[http://www.example.com]
+data = content/of/response.txt
+timeout = 500
+    
+

+ An easy way to capture the responses is to run your application with the + environment variable GRL_NET_CAPTURE_DIR. GrlNetWc will then write + each response into a file following the pattern "url-timestamp". If the + directory does not exist yet then it will be created. +

+
+
+The Default Section
+

+ This section needs to be present in any mock reply configuration file. + +

+
    +
  • +version needs to be "1". +
  • +
  • +ignored-parameters is a semicolon separated list of + query parameter names that can be used to map URLs to sections + without paying attention to query parameters listed here. + By setting a value of "api_key" a request for + http://www.example.com?q=test+query&api_key=dummy + will be answered with the mock data for + http://www.example.com?q=test+query. + Setting "api_key;q" or "*" will result in mock answer for + http://www.example.com. +
  • +
+

+

+
+
+
+The URL Sections
+

+ The section title is used to map URLs to response files. + +

+
    +
  • +data is a path to a text file containing the + raw response of the websserver. The path may be relative to this + configuration file or an absolute path. +
  • +
  • +timeout may be used to delay the response in + seconds. The default is to not delay at all. +
  • +
+

+ + Skip the data field to provoke a "not found" error. +

+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/configure.html b/doc/grilo/html/configure.html new file mode 100644 index 0000000..1064609 --- /dev/null +++ b/doc/grilo/html/configure.html @@ -0,0 +1,32 @@ + + + + +Configuring plug-ins: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Configuring plug-ins

+
+GrlConfig — Configuration data storage +
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/data.html b/doc/grilo/html/data.html new file mode 100644 index 0000000..ef16320 --- /dev/null +++ b/doc/grilo/html/data.html @@ -0,0 +1,41 @@ + + + + +Media data: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Media data

+
+
+GrlData — Low-level class for storing metadata information about +media resources provided by GrlSource objects. +
+
+GrlRelatedKeys — A class where to store related metadata keys. +
+
+GrlMedia — A multimedia data transfer object +
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-GrlNetWc.html b/doc/grilo/html/grilo-GrlNetWc.html new file mode 100644 index 0000000..16c3af5 --- /dev/null +++ b/doc/grilo/html/grilo-GrlNetWc.html @@ -0,0 +1,714 @@ + + + + +GrlNetWc: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlNetWc

+

GrlNetWc — small and simple HTTP client

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlNetWc * + +grl_net_wc_new () +
+GQuark + +grl_net_wc_error_quark () +
+void + +grl_net_wc_flush_delayed_requests () +
+void + +grl_net_wc_request_async () +
+gboolean + +grl_net_wc_request_finish () +
+void + +grl_net_wc_request_with_headers_async () +
+void + +grl_net_wc_request_with_headers_hash_async () +
+void + +grl_net_wc_set_cache () +
+void + +grl_net_wc_set_cache_size () +
+void + +grl_net_wc_set_log_level () +
+void + +grl_net_wc_set_throttling () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + +
structGrlNetWc
structGrlNetWcClass
enumGrlNetWcError
#defineGRL_NET_WC_ERROR
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

Most of the Grilo's sources need to access to web resources. The purpose of +this utility class is to provide a thin and lean mechanism for those plugins +to interact with those resources.

+
+
+

Functions

+
+

grl_net_wc_new ()

+
GrlNetWc *
+grl_net_wc_new (void);
+

Creates a new GrlNetWc.

+
+

Returns

+

a new allocated instance of GrlNetWc. Do g_object_unref() after +use it.

+
+
+
+
+

grl_net_wc_error_quark ()

+
GQuark
+grl_net_wc_error_quark (void);
+
+
+
+

grl_net_wc_flush_delayed_requests ()

+
void
+grl_net_wc_flush_delayed_requests (GrlNetWc *self);
+

This method will flush all the pending request in the queue.

+
+

Parameters

+
+++++ + + + + + +

self

a GrlNetWc instance

 
+
+
+
+
+

grl_net_wc_request_async ()

+
void
+grl_net_wc_request_async (GrlNetWc *self,
+                          const char *uri,
+                          GCancellable *cancellable,
+                          GAsyncReadyCallback callback,
+                          gpointer user_data);
+

Request the fetching of a web resource given the uri +. This request is +asynchronous, thus the result will be returned within the callback +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

self

a GrlNetWc instance

 

uri

The URI of the resource to request

 

cancellable

a GCancellable instance or NULL to ignore.

[allow-none]

callback

The callback when the result is ready

 

user_data

User data set for the callback +

 
+
+
+
+
+

grl_net_wc_request_finish ()

+
gboolean
+grl_net_wc_request_finish (GrlNetWc *self,
+                           GAsyncResult *result,
+                           gchar **content,
+                           gsize *length,
+                           GError **error);
+

Finishes an asynchronous load of the file's contents. +The contents are placed in contents, and length is set to the size of the +contents string.

+

The content address will be invalidated at the next request. So if you +want to keep it, please copy it into another address.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

self

a GrlNetWc instance

 

result

The result of the request

 

content

(out) (array length=length) (element-type guint8) (allow-none) +(transfer full): The contents of the resource

 

length

The length of the contents or NULL if it is not +needed.

[out][allow-none]

error

return location for a GError, or NULL

 
+
+
+

Returns

+

TRUE if the request was successfull. If FALSE an error occurred.

+
+
+
+
+

grl_net_wc_request_with_headers_async ()

+
void
+grl_net_wc_request_with_headers_async (GrlNetWc *self,
+                                       const char *uri,
+                                       GCancellable *cancellable,
+                                       GAsyncReadyCallback callback,
+                                       gpointer user_data,
+                                       ...);
+

Request the fetching of a web resource given the uri +. This request is +asynchronous, thus the result will be returned within the callback +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

self

a GrlNetWc instance

 

uri

The URI of the resource to request

 

cancellable

a GCancellable instance or NULL to ignore.

[allow-none]

callback

The callback when the result is ready

 

user_data

User data set for the callback +

 

...

List of tuples of header name and header value, terminated by +NULL.

 
+
+

Since: 0.2.2

+
+
+
+

grl_net_wc_request_with_headers_hash_async ()

+
void
+grl_net_wc_request_with_headers_hash_async
+                               (GrlNetWc *self,
+                                const char *uri,
+                                GHashTable *headers,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Request the fetching of a web resource given the uri +. This request is +asynchronous, thus the result will be returned within the callback +.

+

[rename-to grl_net_wc_request_with_headers_async]

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

self

a GrlNetWc instance

 

uri

The URI of the resource to request

 

headers

a set of additional HTTP +headers for this request or NULL to ignore.

[allow-none][element-type utf8 utf8]

cancellable

a GCancellable instance or NULL to ignore.

[allow-none]

callback

The callback when the result is ready

 

user_data

User data set for the callback +

 
+
+

Since: 0.2.2

+
+
+
+

grl_net_wc_set_cache ()

+
void
+grl_net_wc_set_cache (GrlNetWc *self,
+                      gboolean use_cache);
+

Sets if cache must be used. Note that this will only work if caching is +supporting. If sets TRUE, a new cache will be created. If sets to FALSE, +current cache is clean and removed.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

self

a GrlNetWc instance

 

use_cache

if cache must be used or not

 
+
+

Since: 0.1.12

+
+
+
+

grl_net_wc_set_cache_size ()

+
void
+grl_net_wc_set_cache_size (GrlNetWc *self,
+                           guint cache_size);
+

Sets the new maximum size of cache, in Megabytes. Default value is 10. Using +0 means no cache will be done.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

self

a GrlNetWc instance

 

cache_size

size of cache (in Mb)

 
+
+

Since: 0.1.12

+
+
+
+

grl_net_wc_set_log_level ()

+
void
+grl_net_wc_set_log_level (GrlNetWc *self,
+                          guint log_level);
+

Setting the log level the logger feature is added into +the libsoup session.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

self

a GrlNetWc instance

 

log_level

the libsoup log level to set [0,3]

 
+
+
+
+
+

grl_net_wc_set_throttling ()

+
void
+grl_net_wc_set_throttling (GrlNetWc *self,
+                           guint throttling);
+

Setting this property, the GrlNetWc will queue all the requests and +will dispatch them with a pause between them of this value.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

self

a GrlNetWc instance

 

throttling

the number of seconds to wait between requests

 
+
+
+
+
+

Types and Values

+
+

struct GrlNetWc

+
struct GrlNetWc {
+  GObject parent;
+};
+
+
+

Members

+
+++++ + + + + + +

GObject parent;

the parent object struct

 
+
+
+
+
+

struct GrlNetWcClass

+
struct GrlNetWcClass {
+  GObjectClass parent_class;
+};
+
+

Grilo web client helper class.

+

It's a simple and thin web client to be used by the sources to download +content from Internet.

+
+

Members

+
+++++ + +
+
+
+
+
+

enum GrlNetWcError

+

These constants identify all the available errors managed by +the web client.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_NET_WC_ERROR_UNAVAILABLE

+

Deprecated. For generic errors, you +should check for G_IO_ERROR_FAILED from G_IO_ERROR domain.

+
 

GRL_NET_WC_ERROR_PROTOCOL_ERROR

+

Invalid URI or header

+
 

GRL_NET_WC_ERROR_AUTHENTICATION_REQUIRED

+

Required authentication

+
 

GRL_NET_WC_ERROR_NOT_FOUND

+

Request resource not found

+
 

GRL_NET_WC_ERROR_CONFLICT

+

The entry has been modified since is was +downloaded

+
 

GRL_NET_WC_ERROR_FORBIDDEN

+

TBD

+
 

GRL_NET_WC_ERROR_NETWORK_ERROR

+

Cannot connect to the server

+
 

GRL_NET_WC_ERROR_PROXY_ERROR

+

Deprecated. You should check for +G_IO_ERROR_PROXY_FAILED from G_IO_ERROR domain.

+
 

GRL_NET_WC_ERROR_CANCELLED

+

Deprecated. You should check for +G_IO_ERROR_CANCELLED from G_IO_ERROR domain.

+
 
+
+
+
+
+

GRL_NET_WC_ERROR

+
#define GRL_NET_WC_ERROR grl_net_wc_error_quark ()
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-GrlPls.html b/doc/grilo/html/grilo-GrlPls.html new file mode 100644 index 0000000..3a823be --- /dev/null +++ b/doc/grilo/html/grilo-GrlPls.html @@ -0,0 +1,472 @@ + + + + +GrlPls: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

GrlPls

+

GrlPls — playlist handling functions

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GrlMedia * + +(*GrlPlsFilterFunc) () +
+gboolean + +grl_pls_media_is_playlist () +
+guint + +grl_pls_browse () +
+GList * + +grl_pls_browse_sync () +
+void + +grl_pls_browse_by_spec () +
+GrlMedia * + +grl_pls_file_to_media () +
const char * + +grl_pls_get_file_attributes () +
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

Grilo only deals with audio, video or image content, but not with +playlists. This library allow to identify playlists and browse into them +exposing playlist entries as GrlMedia objects.

+
+
+

Functions

+
+

GrlPlsFilterFunc ()

+
GrlMedia *
+(*GrlPlsFilterFunc) (GrlSource *source,
+                     GrlMedia *media,
+                     gpointer user_data);
+

Callback type to filter, or modify GrlMedia created +when parsing a playlist using one of grl_pls_browse(), +grl_pls_browse_sync() or grl_pls_browse_by_spec().

+

The callback is responsible for unreffing media + when returning NULL or +another GrlMedia.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

source

the GrlSource the browse call came from

 

media

a GrlMedia to operate on.

[transfer full]

user_data

user data passed to the browse call

 
+
+
+

Returns

+

NULL to not add this entry to the results, +or a new GrlMedia populated with metadata of your choice.

+

[transfer full]

+
+
+
+
+

grl_pls_media_is_playlist ()

+
gboolean
+grl_pls_media_is_playlist (GrlMedia *media);
+

Check if a file identified by GrlMedia object is a playlist or not. +This function does blocking I/O.

+
+

Parameters

+
+++++ + + + + + +

media

GrlMedia

 
+
+
+

Returns

+

TRUE if a GrlMedia is recognized as a playlist.

+
+

Since: 0.2.0

+
+
+
+

grl_pls_browse ()

+
guint
+grl_pls_browse (GrlSource *source,
+                GrlMedia *playlist,
+                const GList *keys,
+                GrlOperationOptions *options,
+                GrlPlsFilterFunc filter_func,
+                GrlSourceResultCb callback,
+                gpointer user_data);
+

Browse into a playlist. The playlist entries are +returned via the callback + function as GrlMedia objects. +This function imitates the API and way of working of +grl_source_browse.

+

The playlist + provided could be of any GrlMedia class, +as long as its URI points to a valid playlist file.

+

This function is asynchronous.

+

See grl_source_browse() function for additional information +and sample code.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

playlist

a playlist

 

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

options

options wanted for that operation

 

filter_func

A filter function, or NULL.

[scope async][allow-none]

callback

the user defined callback.

[scope notified]

user_data

the user data to pass in the callback

 
+
+
+

Returns

+

the operation identifier

+
+

Since: 0.2.0

+
+
+
+

grl_pls_browse_sync ()

+
GList *
+grl_pls_browse_sync (GrlSource *source,
+                     GrlMedia *playlist,
+                     const GList *keys,
+                     GrlOperationOptions *options,
+                     GrlPlsFilterFunc filter_func,
+                     GError **error);
+

Browse into a playlist. The playlist entries are +returned via the callback + function as GrlMedia objects. +This function imitates the API and way of working of +grl_source_browse_sync.

+

The filter function filter_func + will be used for plugins +or applications to be able to refuse particular entries from +being listed.

+

If a NULL filter function is passed, the media will be added +with only the metadata coming from the playlist included.

+

This function is synchronous.

+

See grl_source_browse_sync() function for additional information +and sample code.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

source

a source

 

playlist

a playlist

 

keys

the GList of +GrlKeyIDs to request.

[element-type GrlKeyID]

filter_func

A filter function, or NULL.

[scope async][allow-none]

options

options wanted for that operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a GList with GrlMedia +elements. After use g_object_unref() every element and g_list_free() the +list.

+

[element-type Grl.Media][transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_pls_browse_by_spec ()

+
void
+grl_pls_browse_by_spec (GrlSource *source,
+                        GrlPlsFilterFunc filter_func,
+                        GrlSourceBrowseSpec *bs);
+

Browse into a playlist. The playlist entries are +returned via the bs->callback function as GrlMedia objects. +This function is more suitable to be called from plugins, which by +design get the GrlSourceBrowseSpec already filled in.

+

The bs->playlist provided could be of any GrlMedia class, +as long as its URI points to a valid playlist file.

+

This function is asynchronous.

+

See grl_pls_browse() and grl_source_browse() function for additional +information and sample code.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

source

a source

 

filter_func

A filter function, or NULL.

[scope async][allow-none]

bs

a GrlSourceBrowseSpec structure with details of the browsing operation

 
+
+

Since: 0.2.0

+
+
+
+

grl_pls_file_to_media ()

+
GrlMedia *
+grl_pls_file_to_media (GrlMedia *content,
+                       GFile *file,
+                       GFileInfo *info,
+                       gboolean handle_pls,
+                       GrlOperationOptions *options);
+

This function will update (if content + is non-NULL) or create a +GrlMedia and populate it with information from info +.

+

If info + is NULL, a call to g_file_query_info() will be made.

+

This function is useful for plugins that browse the local filesystem +and want to easily create GrlMedia from filesystem information.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

content

an existing GrlMedia for the file, or NULL

 

file

a GFile pointing to the file or directory in question

 

info

an existing GFileInfo, or NULL

 

handle_pls

Whether playlists should be handled as containers

 

options

a GrlOperationOptions representing the options to apply +to this operation.

 
+
+
+

Returns

+

a new GrlMedia.

+

[transfer full]

+
+

Since: 0.2.0

+
+
+
+

grl_pls_get_file_attributes ()

+
const char *
+grl_pls_get_file_attributes (void);
+

Returns the list of attributes to pass to +g_file_query_info() to make it possible to +populate a GrlMedia using grl_pls_file_to_media().

+

Do not free the result of this function.

+
+

Returns

+

a string containing the +list of attributes.

+

[transfer none]

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-Multiple.html b/doc/grilo/html/grilo-Multiple.html new file mode 100644 index 0000000..bd43b71 --- /dev/null +++ b/doc/grilo/html/grilo-Multiple.html @@ -0,0 +1,276 @@ + + + + +Multiple: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

Multiple

+

Multiple — Search in multiple loaded sources

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + +
+void + +grl_multiple_get_media_from_uri () +
+guint + +grl_multiple_search () +
+GList * + +grl_multiple_search_sync () +
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

These helper functions are due to ease the search in multiple sources. +You can specify the list of sources to use for the searching. Those sources +must have enabled the search capability.

+

Also you can set NULL that sources list, so the function will use all +the available sources with the search capability.

+
+
+

Functions

+
+

grl_multiple_get_media_from_uri ()

+
void
+grl_multiple_get_media_from_uri (const gchar *uri,
+                                 const GList *keys,
+                                 GrlOperationOptions *options,
+                                 GrlSourceResolveCb callback,
+                                 gpointer user_data);
+

Goes though all available media sources until it finds one capable of +constructing a GrlMedia object representing the media resource exposed +by uri +.

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

uri

A URI that can be used to identify a media resource

 

keys

List of metadata keys we want to obtain.

[element-type GrlKeyID]

options

options wanted for that operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass to the user callback

 
+
+

Since: 0.2.0

+
+
+
+

grl_multiple_search ()

+
guint
+grl_multiple_search (const GList *sources,
+                     const gchar *text,
+                     const GList *keys,
+                     GrlOperationOptions *options,
+                     GrlSourceResultCb callback,
+                     gpointer user_data);
+

Search for text + in all the sources specified in sources +.

+

If text + is NULL + then NULL-text searchs will be used for each searchable +plugin (see grl_source_search for more details).

+

This method is asynchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

sources

a GList of GrlSources to search from (NULL for all +searchable sources).

[element-type GrlSource][allow-none]

text

the text to search for

 

keys

the GList of +GrlKeyID to retrieve.

[element-type GrlKeyID]

options

options wanted for that operation

 

callback

the user defined callback.

[scope notified]

user_data

the user data to pass to the user callback

 
+
+
+

Returns

+

the operation identifier

+
+

Since: 0.2.0

+
+
+
+

grl_multiple_search_sync ()

+
GList *
+grl_multiple_search_sync (const GList *sources,
+                          const gchar *text,
+                          const GList *keys,
+                          GrlOperationOptions *options,
+                          GError **error);
+

Search for text + in all the sources specified in sources +.

+

This method is synchronous.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

sources

a GList of GrlSources where to search from (NULL for all +available sources with search capability).

[element-type GrlSource][allow-none]

text

the text to search for

 

keys

the GList of +GrlKeyID to retrieve.

[element-type GrlKeyID]

options

options wanted for that operation

 

error

a GError, or NULL +

 
+
+
+

Returns

+

a list with GrlMedia elements.

+

[element-type GrlMedia][transfer full]

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+
+

See Also

+

GrlPlugin, GrlSource

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grilo.html b/doc/grilo/html/grilo-grilo.html new file mode 100644 index 0000000..8f4c00b --- /dev/null +++ b/doc/grilo/html/grilo-grilo.html @@ -0,0 +1,152 @@ + + + + +grilo: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grilo

+

grilo — Metadata library supporting several services

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + +
+void + +grl_init () +
+GOptionGroup * + +grl_init_get_option_group () +
+void + +grl_deinit () +
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

Grilo is a metadata retrieval library. Given a search or browse operation, +the library will retrieve a set of metadata related to the operation from a +set of on-line services.

+

The Grilo library should be initialized with grl_init() before it can be used. +You should pass pointers to the main argc and argv variables so that Grilo can +process its own command line options.

+

After using it, in order to close cleanly all the resources opened either by +the core library or the sources, call grl_deinit().

+
+
+

Functions

+
+

grl_init ()

+
void
+grl_init (gint *argc,
+          gchar **argv[]);
+

Initializes the Grilo library

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

argc

number of input arguments, length of argv +.

[inout][allow-none]

argv

list of arguments.

[inout][element-type utf8][array length=argc][allow-none][transfer none]
+
+

Since: 0.1.6

+
+
+
+

grl_init_get_option_group ()

+
GOptionGroup *
+grl_init_get_option_group (void);
+

Returns a GOptionGroup with Grilo's argument specifications.

+

This function is useful if you want to integrate Grilo with other +libraries that use the GOption commandline parser +(see g_option_context_add_group() ).

+
+

Returns

+

a pointer to Grilo's option group. Should be dereferenced +after use.

+
+

Since: 0.1.6

+
+
+
+

grl_deinit ()

+
void
+grl_deinit (void);
+

Deinitializes the Grilo library.

+

Call this function after finalizing using Grilo, in order to free and clean +up all the resources created.

+

Since: 0.2.8

+
+
+
+

Types and Values

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grl-definitions.html b/doc/grilo/html/grilo-grl-definitions.html new file mode 100644 index 0000000..fdee46c --- /dev/null +++ b/doc/grilo/html/grilo-grl-definitions.html @@ -0,0 +1,83 @@ + + + + +grl-definitions: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grl-definitions

+

grl-definitions

+
+
+

Types and Values

+
++++ + + + + + + + + + + +
#defineGRL_METADATA_KEY_CHILDCOUNT_UNKNOWN
#defineGRL_SOURCE_REMAINING_UNKNOWN
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+
+
+

Functions

+

+
+
+

Types and Values

+
+

GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN

+
#define GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN -1
+
+
+
+
+

GRL_SOURCE_REMAINING_UNKNOWN

+
#define GRL_SOURCE_REMAINING_UNKNOWN -1
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grl-error.html b/doc/grilo/html/grilo-grl-error.html new file mode 100644 index 0000000..f37f218 --- /dev/null +++ b/doc/grilo/html/grilo-grl-error.html @@ -0,0 +1,227 @@ + + + + +grl-error: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grl-error

+

grl-error

+
+
+

Types and Values

+
++++ + + + + + + + + + + +
enumGrlCoreError
#defineGRL_CORE_ERROR
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+
+
+

Functions

+

+
+
+

Types and Values

+
+

enum GrlCoreError

+

These constants identify all the available core errors

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_CORE_ERROR_BROWSE_FAILED

+

The browse operation failed

+
 

GRL_CORE_ERROR_SEARCH_FAILED

+

The search operation failed

+
 

GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED

+

Searching NULL-text is not supported

+
 

GRL_CORE_ERROR_QUERY_FAILED

+

The query operation failed

+
 

GRL_CORE_ERROR_RESOLVE_FAILED

+

The resolution operation failed

+
 

GRL_CORE_ERROR_MEDIA_NOT_FOUND

+

The media was not found

+
 

GRL_CORE_ERROR_STORE_FAILED

+

The store operation failed

+
 

GRL_CORE_ERROR_STORE_METADATA_FAILED

+

The store metadata operation failed

+
 

GRL_CORE_ERROR_REMOVE_FAILED

+

The removal operation failed

+
 

GRL_CORE_ERROR_MEDIA_FROM_URI_FAILED

+

The media from_uri operation failed

+
 

GRL_CORE_ERROR_CONFIG_LOAD_FAILED

+

Failed to load plugin configuration from a file

+
 

GRL_CORE_ERROR_CONFIG_FAILED

+

Failed to set configuration for plugin

+
 

GRL_CORE_ERROR_UNREGISTER_SOURCE_FAILED

+

Failed to unregister source

+
 

GRL_CORE_ERROR_LOAD_PLUGIN_FAILED

+

Failed to load plugin

+
 

GRL_CORE_ERROR_UNLOAD_PLUGIN_FAILED

+

Failed to unload plugin

+
 

GRL_CORE_ERROR_REGISTER_METADATA_KEY_FAILED

+

Failed to register metadata key

+
 

GRL_CORE_ERROR_NOTIFY_CHANGED_FAILED

+

Failed to start changed notifications

+
 

GRL_CORE_ERROR_OPERATION_CANCELLED

+

The operation was cancelled

+
 

GRL_CORE_ERROR_AUTHENTICATION_TOKEN

+

Invalid authentication token

+
 
+
+
+
+
+

GRL_CORE_ERROR

+
#define GRL_CORE_ERROR g_quark_from_static_string("grilo.error.general")
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grl-log.html b/doc/grilo/html/grilo-grl-log.html new file mode 100644 index 0000000..b840c70 --- /dev/null +++ b/doc/grilo/html/grilo-grl-log.html @@ -0,0 +1,673 @@ + + + + +grl-log: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grl-log

+

grl-log — Log system

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define +GRL_LOG() +
#define +GRL_LOG_DOMAIN() +
#define +GRL_LOG_DOMAIN_EXTERN() +
#define +GRL_LOG_DOMAIN_FREE() +
#define +GRL_LOG_DOMAIN_INIT() +
#define +GRL_LOG_DOMAIN_STATIC() +
#define +GRL_DEBUG() +
#define +GRL_ERROR() +
#define +GRL_INFO() +
#define +GRL_MESSAGE() +
#define +GRL_WARNING() +
+void + +grl_log () +
+void + +grl_log_configure () +
+void + +grl_log_domain_free () +
+GrlLogDomain * + +grl_log_domain_new () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + +
 GrlLogDomain
enumGrlLogLevel
extern GrlLogDomain *GRL_LOG_DOMAIN_DEFAULT
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

This class stores information related to the log system

+
+
+

Functions

+
+

GRL_LOG()

+
#define             GRL_LOG(domain, level, ...)
+

Outputs a debugging message. This is the most general macro for outputting +debugging messages. You will probably want to use one of the ones described +below.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

domain

the log domain to use

 

level

the severity of the message

 

...

A printf-style message to output

 
+
+
+
+
+

GRL_LOG_DOMAIN()

+
#define GRL_LOG_DOMAIN(domain) GrlLogDomain *domain = NULL
+
+

Defines a GrlLogDomain variable.

+
+

Parameters

+
+++++ + + + + + +

domain

the log domain

 
+
+
+
+
+

GRL_LOG_DOMAIN_EXTERN()

+
#define GRL_LOG_DOMAIN_EXTERN(domain) extern GrlLogDomain *domain
+
+

Declares a GrlLogDomain variable as extern. Use in header files.

+
+

Parameters

+
+++++ + + + + + +

domain

the log domain

 
+
+
+
+
+

GRL_LOG_DOMAIN_FREE()

+
#define             GRL_LOG_DOMAIN_FREE(domain)
+

Free a previously allocated GrlLogDomain.

+
+

Parameters

+
+++++ + + + + + +

domain

the log domain to free.

 
+
+
+
+
+

GRL_LOG_DOMAIN_INIT()

+
#define             GRL_LOG_DOMAIN_INIT(domain, name)
+

Creates a new GrlLogDomain with the given name.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

domain

the log domain to initialize.

 

name

the name of the log domain.

 
+
+
+
+
+

GRL_LOG_DOMAIN_STATIC()

+
#define GRL_LOG_DOMAIN_STATIC(domain) static GrlLogDomain *domain = NULL
+
+

Defines a static GrlLogDomain variable.

+
+

Parameters

+
+++++ + + + + + +

domain

the log domain

 
+
+
+
+
+

GRL_DEBUG()

+
#define             GRL_DEBUG(...)
+

Output a debugging message in the default log domain.

+
+

Parameters

+
+++++ + + + + + +

...

printf-style message to output

 
+
+
+
+
+

GRL_ERROR()

+
#define             GRL_ERROR(...)
+

Output an error message in the default log domain.

+
+

Parameters

+
+++++ + + + + + +

...

printf-style message to output

 
+
+
+
+
+

GRL_INFO()

+
#define             GRL_INFO(...)
+

Output an informational message in the default log domain.

+
+

Parameters

+
+++++ + + + + + +

...

printf-style message to output

 
+
+
+
+
+

GRL_MESSAGE()

+
#define             GRL_MESSAGE(...)
+

Output a logging message in the default log domain.

+
+

Parameters

+
+++++ + + + + + +

...

printf-style message to output

 
+
+
+
+
+

GRL_WARNING()

+
#define             GRL_WARNING(...)
+

Output a warning message in the default log domain.

+
+

Parameters

+
+++++ + + + + + +

...

printf-style message to output

 
+
+
+
+
+

grl_log ()

+
void
+grl_log (GrlLogDomain *domain,
+         GrlLogLevel level,
+         const gchar *strloc,
+         const gchar *format,
+         ...);
+

Send a log message.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

domain

a domain

 

level

log level

 

strloc

string, usually line of code where function is invoked

 

format

log message

 

...

parameters to insert in the log message

 
+
+

Since: 0.1.7

+
+
+
+

grl_log_configure ()

+
void
+grl_log_configure (const gchar *config);
+

Configure a set of log domains. The default configuration is to display +warning and error messages only for all the log domains.

+

The configuration string follows the following grammar:

+
+ + + + + + + +
1
+2
+3
+4
+5
+6
config-list: config | config ',' config-list
+config: domain ':' level
+domain: '*' | [a-zA-Z0-9]+
+level: '*' | '-' | named-level | num-level
+named-level: "none" | "error" | "warning" | "message" | "info" | "debug"
+num-level: [0-5]
+
+ +

+

examples:

+
    +
  • "*:*": maximum verbosity for all the log domains

  • +
  • "*:-": don't print any message

  • +
  • "media-source:debug,metadata-source:debug": prints debug, + info, message warning and error messages for the media-source and + metadata-source log domains

  • +
+
It's possible to override the log configuration at runtime by +defining the GRL_DEBUG environment variable to a configuration string +as described above
+
+

Parameters

+
+++++ + + + + + +

config

A string describing the wanted log configuration

 
+
+

Since: 0.1.7

+
+
+
+

grl_log_domain_free ()

+
void
+grl_log_domain_free (GrlLogDomain *domain);
+

Releases domain +.

+
+

Parameters

+
+++++ + + + + + +

domain

a GrlLogDomain

 
+
+

Since: 0.1.7

+
+
+
+

grl_log_domain_new ()

+
GrlLogDomain *
+grl_log_domain_new (const gchar *name);
+

[skip]

+
+

Parameters

+
+++++ + + + + + +

name

The name for the new log domain

 
+
+
+

Returns

+

The new log domain

+
+

Since: 0.1.7

+
+
+
+

Types and Values

+
+

GrlLogDomain

+
typedef struct _GrlLogDomain GrlLogDomain;
+
+
+
+

enum GrlLogLevel

+

Grilo log levels. Defines the level of verbosity selected in Grilo.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

GRL_LOG_LEVEL_NONE

+

Log level none

+
 

GRL_LOG_LEVEL_ERROR

+

Log on error

+
 

GRL_LOG_LEVEL_WARNING

+

Log on warning

+
 

GRL_LOG_LEVEL_MESSAGE

+

Log on message

+
 

GRL_LOG_LEVEL_INFO

+

Log on info

+
 

GRL_LOG_LEVEL_DEBUG

+

Log on debug

+
 

GRL_LOG_LEVEL_LAST

+

Last level of log

+
 
+
+
+
+
+

GRL_LOG_DOMAIN_DEFAULT

+
extern GrlLogDomain *GRL_LOG_DOMAIN_DEFAULT;
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grl-metadata-key.html b/doc/grilo/html/grilo-grl-metadata-key.html new file mode 100644 index 0000000..b05925c --- /dev/null +++ b/doc/grilo/html/grilo-grl-metadata-key.html @@ -0,0 +1,863 @@ + + + + +grl-metadata-key: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grl-metadata-key

+

grl-metadata-key — General media key definition

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define +GRLKEYID_TO_POINTER() +
#define +GRLPOINTER_TO_KEYID() +
#define +GRL_METADATA_KEY_GET_DESC() +
#define +GRL_METADATA_KEY_GET_ID() +
#define +GRL_METADATA_KEY_GET_NAME() +
#define +GRL_METADATA_KEY_GET_TYPE() +
const gchar * + +grl_metadata_key_get_desc () +
const gchar * + +grl_metadata_key_get_name () +
+GType + +grl_metadata_key_get_type () +
+GList * + +grl_metadata_key_list_new () +
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
typedefGrlKeyID
#defineGRL_KEYID_FORMAT
#defineGRL_METADATA_KEY_ALBUM
#defineGRL_METADATA_KEY_ARTIST
#defineGRL_METADATA_KEY_AUTHOR
#defineGRL_METADATA_KEY_BITRATE
#defineGRL_METADATA_KEY_CAMERA_MODEL
#defineGRL_METADATA_KEY_CERTIFICATE
#defineGRL_METADATA_KEY_CHILDCOUNT
#defineGRL_METADATA_KEY_CREATION_DATE
#defineGRL_METADATA_KEY_DESCRIPTION
#defineGRL_METADATA_KEY_DIRECTOR
#defineGRL_METADATA_KEY_DURATION
#defineGRL_METADATA_KEY_EPISODE
#defineGRL_METADATA_KEY_EPISODE_TITLE
#defineGRL_METADATA_KEY_EXPOSURE_TIME
#defineGRL_METADATA_KEY_EXTERNAL_PLAYER
#defineGRL_METADATA_KEY_EXTERNAL_URL
#defineGRL_METADATA_KEY_FAVOURITE
#defineGRL_METADATA_KEY_FLASH_USED
#defineGRL_METADATA_KEY_FRAMERATE
#defineGRL_METADATA_KEY_GENRE
#defineGRL_METADATA_KEY_HEIGHT
#defineGRL_METADATA_KEY_ID
#defineGRL_METADATA_KEY_INVALID
#defineGRL_METADATA_KEY_ISO_SPEED
#defineGRL_METADATA_KEY_KEYWORD
#defineGRL_METADATA_KEY_LAST_PLAYED
#defineGRL_METADATA_KEY_LAST_POSITION
#defineGRL_METADATA_KEY_LICENSE
#defineGRL_METADATA_KEY_LYRICS
#defineGRL_METADATA_KEY_MB_ALBUM_ID
#defineGRL_METADATA_KEY_MB_ARTIST_ID
#defineGRL_METADATA_KEY_MB_RECORDING_ID
#defineGRL_METADATA_KEY_MB_TRACK_ID
#defineGRL_METADATA_KEY_MIME
#defineGRL_METADATA_KEY_MODIFICATION_DATE
#defineGRL_METADATA_KEY_ORIENTATION
#defineGRL_METADATA_KEY_ORIGINAL_TITLE
#defineGRL_METADATA_KEY_PERFORMER
#defineGRL_METADATA_KEY_PLAY_COUNT
#defineGRL_METADATA_KEY_PRODUCER
#defineGRL_METADATA_KEY_PUBLICATION_DATE
#defineGRL_METADATA_KEY_RATING
#defineGRL_METADATA_KEY_REGION
#defineGRL_METADATA_KEY_SEASON
#defineGRL_METADATA_KEY_SHOW
#defineGRL_METADATA_KEY_SITE
#defineGRL_METADATA_KEY_SOURCE
#defineGRL_METADATA_KEY_START_TIME
#defineGRL_METADATA_KEY_STUDIO
#defineGRL_METADATA_KEY_THUMBNAIL
#defineGRL_METADATA_KEY_THUMBNAIL_BINARY
#defineGRL_METADATA_KEY_TITLE
#defineGRL_METADATA_KEY_TRACK_NUMBER
#defineGRL_METADATA_KEY_URL
#defineGRL_METADATA_KEY_WIDTH
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+

This is the list of defined keys in grilo for media entries.

+
+
+

Functions

+
+

GRLKEYID_TO_POINTER()

+
#define GRLKEYID_TO_POINTER(k) (GUINT_TO_POINTER(k))
+
+
+
+
+

GRLPOINTER_TO_KEYID()

+
#define GRLPOINTER_TO_KEYID(p) (GPOINTER_TO_UINT(p))
+
+
+
+
+

GRL_METADATA_KEY_GET_DESC()

+
#define GRL_METADATA_KEY_GET_DESC(key) (grl_metadata_key_get_desc (key))
+
+
+
+
+

GRL_METADATA_KEY_GET_ID()

+
#define GRL_METADATA_KEY_GET_ID(key)   (key)
+
+
+
+
+

GRL_METADATA_KEY_GET_NAME()

+
#define GRL_METADATA_KEY_GET_NAME(key) (grl_metadata_key_get_name (key))
+
+
+
+
+

GRL_METADATA_KEY_GET_TYPE()

+
#define GRL_METADATA_KEY_GET_TYPE(key) (grl_metadata_key_get_type (key))
+
+
+
+
+

grl_metadata_key_get_desc ()

+
const gchar *
+grl_metadata_key_get_desc (GrlKeyID key);
+

Retrieves the description associated with the key

+
+

Parameters

+
+++++ + + + + + +

key

key to look up

 
+
+
+

Returns

+

the description of the key

+
+

Since: 0.1.6

+
+
+
+

grl_metadata_key_get_name ()

+
const gchar *
+grl_metadata_key_get_name (GrlKeyID key);
+

Retrieves the name associated with the key

+
+

Parameters

+
+++++ + + + + + +

key

key to look up

 
+
+
+

Returns

+

The name of the key

+
+

Since: 0.1.6

+
+
+
+

grl_metadata_key_get_type ()

+
GType
+grl_metadata_key_get_type (GrlKeyID key);
+

Retrieves the expected type for values associated with this key

+
+

Parameters

+
+++++ + + + + + +

key

key to look up

 
+
+
+

Returns

+

the expected value type

+
+

Since: 0.2.0

+
+
+
+

grl_metadata_key_list_new ()

+
GList *
+grl_metadata_key_list_new (GrlKeyID first_key,
+                           ...);
+

Returns a GList containing the va_list keys. Use GRL_METADATA_KEY_INVALID +to finalize them.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

first_key

first key

 

...

va_list keys

 
+
+
+

Returns

+

a GList

+
+

Since: 0.2.0

+
+
+
+

Types and Values

+
+

GrlKeyID

+
typedef guint32 GrlKeyID;
+
+
+
+
+

GRL_KEYID_FORMAT

+
#define GRL_KEYID_FORMAT "u"
+
+
+
+
+

GRL_METADATA_KEY_ALBUM

+
#define GRL_METADATA_KEY_ALBUM                1
+
+
+
+
+

GRL_METADATA_KEY_ARTIST

+
#define GRL_METADATA_KEY_ARTIST               2
+
+
+
+
+

GRL_METADATA_KEY_AUTHOR

+
#define GRL_METADATA_KEY_AUTHOR               3
+
+
+
+
+

GRL_METADATA_KEY_BITRATE

+
#define GRL_METADATA_KEY_BITRATE              4
+
+
+
+
+

GRL_METADATA_KEY_CAMERA_MODEL

+
#define GRL_METADATA_KEY_CAMERA_MODEL         35
+
+
+
+
+

GRL_METADATA_KEY_CERTIFICATE

+
#define GRL_METADATA_KEY_CERTIFICATE          5
+
+
+
+
+

GRL_METADATA_KEY_CHILDCOUNT

+
#define GRL_METADATA_KEY_CHILDCOUNT           6
+
+
+
+
+

GRL_METADATA_KEY_CREATION_DATE

+
#define GRL_METADATA_KEY_CREATION_DATE        34
+
+
+
+
+

GRL_METADATA_KEY_DESCRIPTION

+
#define GRL_METADATA_KEY_DESCRIPTION          8
+
+
+
+
+

GRL_METADATA_KEY_DIRECTOR

+
#define GRL_METADATA_KEY_DIRECTOR             48
+
+
+
+
+

GRL_METADATA_KEY_DURATION

+
#define GRL_METADATA_KEY_DURATION             9
+
+
+
+
+

GRL_METADATA_KEY_EPISODE

+
#define GRL_METADATA_KEY_EPISODE              32
+
+
+
+
+

GRL_METADATA_KEY_EPISODE_TITLE

+
#define GRL_METADATA_KEY_EPISODE_TITLE        56
+
+
+
+
+

GRL_METADATA_KEY_EXPOSURE_TIME

+
#define GRL_METADATA_KEY_EXPOSURE_TIME        38
+
+
+
+
+

GRL_METADATA_KEY_EXTERNAL_PLAYER

+
#define GRL_METADATA_KEY_EXTERNAL_PLAYER      10
+
+
+
+
+

GRL_METADATA_KEY_EXTERNAL_URL

+
#define GRL_METADATA_KEY_EXTERNAL_URL         11
+
+
+
+
+

GRL_METADATA_KEY_FAVOURITE

+
#define GRL_METADATA_KEY_FAVOURITE            43
+
+
+
+
+

GRL_METADATA_KEY_FLASH_USED

+
#define GRL_METADATA_KEY_FLASH_USED           37
+
+
+
+
+

GRL_METADATA_KEY_FRAMERATE

+
#define GRL_METADATA_KEY_FRAMERATE            12
+
+
+
+
+

GRL_METADATA_KEY_GENRE

+
#define GRL_METADATA_KEY_GENRE                13
+
+
+
+
+

GRL_METADATA_KEY_HEIGHT

+
#define GRL_METADATA_KEY_HEIGHT               14
+
+
+
+
+

GRL_METADATA_KEY_ID

+
#define GRL_METADATA_KEY_ID                   15
+
+
+
+
+

GRL_METADATA_KEY_INVALID

+
#define GRL_METADATA_KEY_INVALID              0
+
+
+
+
+

GRL_METADATA_KEY_ISO_SPEED

+
#define GRL_METADATA_KEY_ISO_SPEED            39
+
+
+
+
+

GRL_METADATA_KEY_KEYWORD

+
#define GRL_METADATA_KEY_KEYWORD              45
+
+
+
+
+

GRL_METADATA_KEY_LAST_PLAYED

+
#define GRL_METADATA_KEY_LAST_PLAYED          16
+
+
+
+
+

GRL_METADATA_KEY_LAST_POSITION

+
#define GRL_METADATA_KEY_LAST_POSITION        17
+
+
+
+
+

GRL_METADATA_KEY_LICENSE

+
#define GRL_METADATA_KEY_LICENSE              18
+
+
+
+
+

GRL_METADATA_KEY_LYRICS

+
#define GRL_METADATA_KEY_LYRICS               19
+
+
+
+
+

GRL_METADATA_KEY_MB_ALBUM_ID

+
#define GRL_METADATA_KEY_MB_ALBUM_ID          52
+
+
+
+
+

GRL_METADATA_KEY_MB_ARTIST_ID

+
#define GRL_METADATA_KEY_MB_ARTIST_ID         54
+
+
+
+
+

GRL_METADATA_KEY_MB_RECORDING_ID

+
#define GRL_METADATA_KEY_MB_RECORDING_ID      55
+
+
+
+
+

GRL_METADATA_KEY_MB_TRACK_ID

+
#define GRL_METADATA_KEY_MB_TRACK_ID          53
+
+
+
+
+

GRL_METADATA_KEY_MIME

+
#define GRL_METADATA_KEY_MIME                 20
+
+
+
+
+

GRL_METADATA_KEY_MODIFICATION_DATE

+
#define GRL_METADATA_KEY_MODIFICATION_DATE    41
+
+
+
+
+

GRL_METADATA_KEY_ORIENTATION

+
#define GRL_METADATA_KEY_ORIENTATION          36
+
+
+
+
+

GRL_METADATA_KEY_ORIGINAL_TITLE

+
#define GRL_METADATA_KEY_ORIGINAL_TITLE       49
+
+
+
+
+

GRL_METADATA_KEY_PERFORMER

+
#define GRL_METADATA_KEY_PERFORMER            46
+
+
+
+
+

GRL_METADATA_KEY_PLAY_COUNT

+
#define GRL_METADATA_KEY_PLAY_COUNT           21
+
+
+
+
+

GRL_METADATA_KEY_PRODUCER

+
#define GRL_METADATA_KEY_PRODUCER             47
+
+
+
+
+

GRL_METADATA_KEY_PUBLICATION_DATE

+
#define GRL_METADATA_KEY_PUBLICATION_DATE     7
+
+
+
+
+

GRL_METADATA_KEY_RATING

+
#define GRL_METADATA_KEY_RATING               22
+
+
+
+
+

GRL_METADATA_KEY_REGION

+
#define GRL_METADATA_KEY_REGION               44
+
+
+
+
+

GRL_METADATA_KEY_SEASON

+
#define GRL_METADATA_KEY_SEASON               31
+
+
+
+
+

GRL_METADATA_KEY_SHOW

+
#define GRL_METADATA_KEY_SHOW                 33
+
+
+
+
+

GRL_METADATA_KEY_SITE

+
#define GRL_METADATA_KEY_SITE                 23
+
+
+
+
+

GRL_METADATA_KEY_SOURCE

+
#define GRL_METADATA_KEY_SOURCE               24
+
+
+
+
+

GRL_METADATA_KEY_START_TIME

+
#define GRL_METADATA_KEY_START_TIME           42
+
+
+
+
+

GRL_METADATA_KEY_STUDIO

+
#define GRL_METADATA_KEY_STUDIO               25
+
+
+
+
+

GRL_METADATA_KEY_THUMBNAIL

+
#define GRL_METADATA_KEY_THUMBNAIL            26
+
+
+
+
+

GRL_METADATA_KEY_THUMBNAIL_BINARY

+
#define GRL_METADATA_KEY_THUMBNAIL_BINARY     27
+
+
+
+
+

GRL_METADATA_KEY_TITLE

+
#define GRL_METADATA_KEY_TITLE                28
+
+
+
+
+

GRL_METADATA_KEY_TRACK_NUMBER

+
#define GRL_METADATA_KEY_TRACK_NUMBER         40
+
+
+
+
+

GRL_METADATA_KEY_URL

+
#define GRL_METADATA_KEY_URL                  29
+
+
+
+
+

GRL_METADATA_KEY_WIDTH

+
#define GRL_METADATA_KEY_WIDTH                30
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grl-operation.html b/doc/grilo/html/grilo-grl-operation.html new file mode 100644 index 0000000..0b59cb1 --- /dev/null +++ b/doc/grilo/html/grilo-grl-operation.html @@ -0,0 +1,214 @@ + + + + +grl-operation: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grl-operation

+

grl-operation

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + +
+void + +grl_operation_cancel () +
+gpointer + +grl_operation_get_data () +
+void + +grl_operation_set_data () +
+void + +grl_operation_set_data_full () +
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+
+
+

Functions

+
+

grl_operation_cancel ()

+
void
+grl_operation_cancel (guint operation_id);
+

Cancel an operation.

+
+

Parameters

+
+++++ + + + + + +

operation_id

the identifier of a running operation

 
+
+
+
+
+

grl_operation_get_data ()

+
gpointer
+grl_operation_get_data (guint operation_id);
+

Obtains the previously attached data

+
+

Parameters

+
+++++ + + + + + +

operation_id

the identifier of a running operation

 
+
+
+

Returns

+

The previously attached data.

+

[transfer none]

+
+
+
+
+

grl_operation_set_data ()

+
void
+grl_operation_set_data (guint operation_id,
+                        gpointer user_data);
+

Attach a pointer to the specific operation.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

operation_id

the identifier of a running operation

 

user_data

the data to attach

 
+
+
+
+
+

grl_operation_set_data_full ()

+
void
+grl_operation_set_data_full (guint operation_id,
+                             gpointer user_data,
+                             GDestroyNotify destroy_func);
+

Attach a pointer to the specific operation.

+

Note that the destroy_func + callback is not called if user_data + is NULL.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

operation_id

the identifier of a running operation

 

user_data

the data to attach.

[allow-none]

destroy_func

function to release user_data +when the operation terminates.

[allow-none]
+
+

Since: 0.2.7

+
+
+
+

Types and Values

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-grl-util.html b/doc/grilo/html/grilo-grl-util.html new file mode 100644 index 0000000..4b741cb --- /dev/null +++ b/doc/grilo/html/grilo-grl-util.html @@ -0,0 +1,228 @@ + + + + +grl-util: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

grl-util

+

grl-util — utility functions

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + +
+GDateTime * + +grl_date_time_from_iso8601 () +
+GList * + +grl_list_from_va () +
+void + +grl_paging_translate () +
+
+
+

Includes

+
#include <grilo.h>
+
+
+
+

Description

+
+
+

Functions

+
+

grl_date_time_from_iso8601 ()

+
GDateTime *
+grl_date_time_from_iso8601 (const gchar *date);
+
+

Parameters

+
+++++ + + + + + +

date

a date expressed in iso8601 format

 
+
+
+

Returns

+

a newly-allocated GDateTime set to the time corresponding to +date +, or NULL if date +could not be parsed properly.

+
+

Since: 0.2.0

+
+
+
+

grl_list_from_va ()

+
GList *
+grl_list_from_va (gpointer p,
+                  ...);
+

Returns a GList containing the va_list pointers. Use NULL + to finalize them,

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

p

first pointer

 

...

va_list pointers

 
+
+
+

Returns

+

a GList.

+
+

Since: 0.1.6

+
+
+
+

grl_paging_translate ()

+
void
+grl_paging_translate (guint skip,
+                      guint count,
+                      guint max_page_size,
+                      guint *page_size,
+                      guint *page_number,
+                      guint *internal_offset);
+

Grilo browsing implements a paging mechanism through skip + and count + values.

+

But there are some services (like Jamendo or Flickr) where paging is done +through a page number and page size: user request all elements in a page, +specifying in most cases what is the page size.

+

This function is a helper for this task, computing from skip + and count + what +is the optimal value of page size (limited by max_page_size +), which page +should the user request, and where requested data start inside the page.

+

By optimal we mean that it computes those values so only one page is required +to satisfy the data, using the smallest page size. If user is limiting page +size, then more requests to services might be needed. But still page size +will be an optimal value.

+

If page_size + is NULL +, then page size will be max_page_size +. If the later +is also 0, then page size will be G_MAXUINT.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

skip

number of elements to skip

 

count

number of elements to retrieve

 

max_page_size

maximum value for page size (0 for unlimited size)

 

page_size

optimal page size

 

page_number

page which contain the first element to retrieve (starting at 1)

 

internal_offset

in the page_number +, offset where first element can be found (starting at 0)

 
+
+

Since: 0.1.6

+
+
+
+

Types and Values

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-net.html b/doc/grilo/html/grilo-net.html new file mode 100644 index 0000000..34c3967 --- /dev/null +++ b/doc/grilo/html/grilo-net.html @@ -0,0 +1,32 @@ + + + + +Grilo Net Classes: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Grilo Net Classes

+
+GrlNetWc — small and simple HTTP client +
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo-pls.html b/doc/grilo/html/grilo-pls.html new file mode 100644 index 0000000..404260e --- /dev/null +++ b/doc/grilo/html/grilo-pls.html @@ -0,0 +1,32 @@ + + + + +Grilo Playlist Functions: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Grilo Playlist Functions

+
+GrlPls — playlist handling functions +
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/grilo.devhelp2 b/doc/grilo/html/grilo.devhelp2 new file mode 100644 index 0000000..f0fa3ac --- /dev/null +++ b/doc/grilo/html/grilo.devhelp2 @@ -0,0 +1,819 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/grilo/html/home.png b/doc/grilo/html/home.png new file mode 100644 index 0000000..9346b33 Binary files /dev/null and b/doc/grilo/html/home.png differ diff --git a/doc/grilo/html/index.html b/doc/grilo/html/index.html new file mode 100644 index 0000000..a66623b --- /dev/null +++ b/doc/grilo/html/index.html @@ -0,0 +1,157 @@ + + + + +Grilo Reference Manual: Grilo Reference Manual + + + + + + + +
+
+
+
+

+ The latest version of this software can be found on-line at + http://git.gnome.org/browse/grilo + and + http://git.gnome.org/browse/grilo-plugins. +

+
+
+
+
+
Overview
+
+
I. Tutorial
+
+
Quick start guide
+
+
+
+
Building Grilo from sources
+
Testing Grilo
+
Compiling Grilo based programs
+
+
+
Environment Setup
+
+
+
+
Building Grilo
+
Compiling Grilo based programs
+
Running Grilo based programs
+
Debugging with Grilo
+
+
+
Writing applications with Grilo
+
+
+
+
Basic concepts
+
Typical use cases explained
+
+
+
Writing plugins for Grilo
+
+
+
+
Source plugins
+
Testing your plugins
+
+
+
+
II. Object Index
+
III. API Reference
+
+
+grilo — Metadata library supporting several services +
+
Plug-in management
+
+GrlRegistry — Grilo plugins loader and manager +
+
Data sources
+
+
+GrlPlugin — Base class for Grilo Plugins +
+
+GrlSource — Abstract base class for sources +
+
+
Capabilities and Options
+
+
+GrlCaps — Describes the capabilities of a source for a given +operation. +
+
+GrlOperationOptions — Describes the options to be passed to an operation +
+
+
Search in multiple sources
+
+Multiple — Search in multiple loaded sources +
+
Configuring plug-ins
+
+GrlConfig — Configuration data storage +
+
Media data
+
+
+GrlData — Low-level class for storing metadata information about +media resources provided by GrlSource objects. +
+
+GrlRelatedKeys — A class where to store related metadata keys. +
+
+GrlMedia — A multimedia data transfer object +
+
+
Misc
+
+
+grl-metadata-key — General media key definition +
+
+grl-log — Log system +
+
+grl-error +
+
+grl-definitions +
+
+grl-operation +
+
+grl-util — utility functions +
+
+
+
IV. Grilo Libraries
+
+
Grilo Net Classes
+
+GrlNetWc — small and simple HTTP client +
+
Grilo Playlist Functions
+
+GrlPls — playlist handling functions +
+
+
API Index
+
Annotation Glossary
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/left-insensitive.png b/doc/grilo/html/left-insensitive.png new file mode 100644 index 0000000..3269393 Binary files /dev/null and b/doc/grilo/html/left-insensitive.png differ diff --git a/doc/grilo/html/left.png b/doc/grilo/html/left.png new file mode 100644 index 0000000..2abde03 Binary files /dev/null and b/doc/grilo/html/left.png differ diff --git a/doc/grilo/html/misc.html b/doc/grilo/html/misc.html new file mode 100644 index 0000000..61144b4 --- /dev/null +++ b/doc/grilo/html/misc.html @@ -0,0 +1,49 @@ + + + + +Misc: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Misc

+
+
+grl-metadata-key — General media key definition +
+
+grl-log — Log system +
+
+grl-error +
+
+grl-definitions +
+
+grl-operation +
+
+grl-util — utility functions +
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/multiple.html b/doc/grilo/html/multiple.html new file mode 100644 index 0000000..6803555 --- /dev/null +++ b/doc/grilo/html/multiple.html @@ -0,0 +1,32 @@ + + + + +Search in multiple sources: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Search in multiple sources

+
+Multiple — Search in multiple loaded sources +
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/plugin-management.html b/doc/grilo/html/plugin-management.html new file mode 100644 index 0000000..98d3671 --- /dev/null +++ b/doc/grilo/html/plugin-management.html @@ -0,0 +1,32 @@ + + + + +Plug-in management: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Plug-in management

+
+GrlRegistry — Grilo plugins loader and manager +
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/pr01.html b/doc/grilo/html/pr01.html new file mode 100644 index 0000000..af0dc7b --- /dev/null +++ b/doc/grilo/html/pr01.html @@ -0,0 +1,111 @@ + + + + +Overview: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Overview

+
+
+

+Modern media player applications enable users to consume content +from various service providers, both local and remote: Youtube, +Jamendo, Flickr, SHOUTCast or UPnP are a few examples of this trend. +

+

+Creating powerful, modern media applications that integrate content +from multiple services is a time consuming task that demands +a lot of effort on various fronts: +

+
    +
  • Learning all the APIs involved.
  • +
  • Learning and integrating all the required technologies.
  • +
  • Abstracting the differences among content providers.
  • +
  • Maintenance.
  • +
+

+

+

+Unfortunately, applications that implement support for +these services nowadays do so in a way that is too application-specific. +This disables the possibility of reusing the solution in other +projects directly, meaning that other solutions have to do all +that work again if they want to accomplish the same target, which is +rather inefficient and makes this type of solutions quite expensive +in terms of development time and maintenance. +

+

+In this context, the target of Grilo is to provide application +developers with a framework where they can work together in the +development of application-independent plugins for managing media content +that can be reused directly in modern media applications. This model comes +with a number of important benefits: +

+
    +
  • Less work on the application side. +Plugin development happens in the framework and application +developers can focus on making good user interfaces instead. +

  • +
  • +Code reuse. +There are many applications allowing users to access media content +from various providers though application-specific plugins. +If the plugins were developed on the framework side, all +these developers could share efforts and write support for these +services only once in the framework, making them available for all +the applications using the framework for free. Every one wins. +

  • +
  • +Quick learning curve. +If you want to write a media player with support for various +content providers, you have to learn about each one of them independently: +Want to add Youtube videos? then you need to learn about the Youtube data API. +Want to add music from Jamendo? then you need to learn the ins and outs of the +Jamendo API Want access to local media? Then you might want to learn about Tracker +and its APIs. Want to access UPnP media servers? Then it is time for you to learn +about the UPnP protocol and the GUPnP library, etc. This is a lot to learn, +and even more code to implement and maintain. The framework approach would make +all this a lot more straight forward for application developers, they would need +to learn only one API (the framework API) and that would enable them +to access all these services through the framework plugins. +

  • +
+

+Application developers will find in Grilo a framework they can use +to gain access to a variety of media resources exposed by different +services, all that using a single API that abstracts the differences and +particularities of each one, easing remarkably the development of +modern players. +

+

+Platform developers will find in Grilo a framework where they can +cooperate in the development of plugins for managing media content +from various services, making the platform more appealing to media +developers. +

+

+Grilo is licensed under the GNU Lesser General Public License (LGPL). +

+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/right-insensitive.png b/doc/grilo/html/right-insensitive.png new file mode 100644 index 0000000..4c95785 Binary files /dev/null and b/doc/grilo/html/right-insensitive.png differ diff --git a/doc/grilo/html/right.png b/doc/grilo/html/right.png new file mode 100644 index 0000000..76260ec Binary files /dev/null and b/doc/grilo/html/right.png differ diff --git a/doc/grilo/html/rn01.html b/doc/grilo/html/rn01.html new file mode 100644 index 0000000..96affce --- /dev/null +++ b/doc/grilo/html/rn01.html @@ -0,0 +1,72 @@ + + + + +Tutorial: Grilo Reference Manual + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/grilo/html/rn02.html b/doc/grilo/html/rn02.html new file mode 100644 index 0000000..5016e38 --- /dev/null +++ b/doc/grilo/html/rn02.html @@ -0,0 +1,44 @@ + + + + +Object Index: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+

+Object Index

+
+
+
+    GObject
+    ├── GrlData
+       ╰── GrlMedia
+    ├── GrlConfig
+    ├── GrlRelatedKeys
+    ├── GrlPlugin
+    ├── GrlSource
+    ├── GrlRegistry
+    ├── GrlCaps
+    ╰── GrlOperationOptions
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/rn03.html b/doc/grilo/html/rn03.html new file mode 100644 index 0000000..40e210f --- /dev/null +++ b/doc/grilo/html/rn03.html @@ -0,0 +1,105 @@ + + + + +API Reference: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+

+API Reference

+
+
+
+

Table of Contents

+
+
+grilo — Metadata library supporting several services +
+
Plug-in management
+
+GrlRegistry — Grilo plugins loader and manager +
+
Data sources
+
+
+GrlPlugin — Base class for Grilo Plugins +
+
+GrlSource — Abstract base class for sources +
+
+
Capabilities and Options
+
+
+GrlCaps — Describes the capabilities of a source for a given +operation. +
+
+GrlOperationOptions — Describes the options to be passed to an operation +
+
+
Search in multiple sources
+
+Multiple — Search in multiple loaded sources +
+
Configuring plug-ins
+
+GrlConfig — Configuration data storage +
+
Media data
+
+
+GrlData — Low-level class for storing metadata information about +media resources provided by GrlSource objects. +
+
+GrlRelatedKeys — A class where to store related metadata keys. +
+
+GrlMedia — A multimedia data transfer object +
+
+
Misc
+
+
+grl-metadata-key — General media key definition +
+
+grl-log — Log system +
+
+grl-error +
+
+grl-definitions +
+
+grl-operation +
+
+grl-util — utility functions +
+
+
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/rn04.html b/doc/grilo/html/rn04.html new file mode 100644 index 0000000..2c8c820 --- /dev/null +++ b/doc/grilo/html/rn04.html @@ -0,0 +1,52 @@ + + + + +Grilo Libraries: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+
+

+Grilo Libraries

+
+
+
+

Table of Contents

+
+
Grilo Net Classes
+
+GrlNetWc — small and simple HTTP client +
+
Grilo Playlist Functions
+
+GrlPls — playlist handling functions +
+
+
+

+ To ease the creation of plugins, a library system was created. The most common + functions for a plugin can be found in a library. +

+

+ Grilo provides some standard libraries you can use to create plugins. +

+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/sources.html b/doc/grilo/html/sources.html new file mode 100644 index 0000000..11b51a6 --- /dev/null +++ b/doc/grilo/html/sources.html @@ -0,0 +1,37 @@ + + + + +Data sources: Grilo Reference Manual + + + + + + + + + + + + + + + + +
+

+Data sources

+
+
+GrlPlugin — Base class for Grilo Plugins +
+
+GrlSource — Abstract base class for sources +
+
+
+ + + \ No newline at end of file diff --git a/doc/grilo/html/style.css b/doc/grilo/html/style.css new file mode 100644 index 0000000..4be4ede --- /dev/null +++ b/doc/grilo/html/style.css @@ -0,0 +1,483 @@ +body +{ + font-family: cantarell, sans-serif; +} +.synopsis, .classsynopsis +{ + /* tango:aluminium 1/2 */ + background: #eeeeec; + background: rgba(238, 238, 236, 0.5); + border: solid 1px rgb(238, 238, 236); + padding: 0.5em; +} +.programlisting +{ + /* tango:sky blue 0/1 */ + /* fallback for no rgba support */ + background: #e6f3ff; + border: solid 1px #729fcf; + background: rgba(114, 159, 207, 0.1); + border: solid 1px rgba(114, 159, 207, 0.2); + padding: 0.5em; +} +.variablelist +{ + padding: 4px; + margin-left: 3em; +} +.variablelist td:first-child +{ + vertical-align: top; +} + +span.nowrap { + white-space: nowrap; +} + +div.gallery-float +{ + float: left; + padding: 10px; +} +div.gallery-float img +{ + border-style: none; +} +div.gallery-spacer +{ + clear: both; +} + +a, a:visited +{ + text-decoration: none; + /* tango:sky blue 2 */ + color: #3465a4; +} +a:hover +{ + text-decoration: underline; + /* tango:sky blue 1 */ + color: #729fcf; +} + +div.informaltable table +{ + border-collapse: separate; + border-spacing: 1em 0.3em; + border: none; +} + +div.informaltable table td, div.informaltable table th +{ + vertical-align: top; +} + +.function_type, +.variable_type, +.property_type, +.signal_type, +.parameter_name, +.struct_member_name, +.union_member_name, +.define_keyword, +.datatype_keyword, +.typedef_keyword +{ + text-align: right; +} + +/* dim non-primary columns */ +.c_punctuation, +.function_type, +.variable_type, +.property_type, +.signal_type, +.define_keyword, +.datatype_keyword, +.typedef_keyword, +.property_flags, +.signal_flags, +.parameter_annotations, +.enum_member_annotations, +.struct_member_annotations, +.union_member_annotations +{ + color: #888a85; +} + +.function_type a, +.function_type a:visited, +.function_type a:hover, +.property_type a, +.property_type a:visited, +.property_type a:hover, +.signal_type a, +.signal_type a:visited, +.signal_type a:hover, +.signal_flags a, +.signal_flags a:visited, +.signal_flags a:hover +{ + color: #729fcf; +} + +td p +{ + margin: 0.25em; +} + +div.table table +{ + border-collapse: collapse; + border-spacing: 0px; + /* tango:aluminium 3 */ + border: solid 1px #babdb6; +} + +div.table table td, div.table table th +{ + /* tango:aluminium 3 */ + border: solid 1px #babdb6; + padding: 3px; + vertical-align: top; +} + +div.table table th +{ + /* tango:aluminium 2 */ + background-color: #d3d7cf; +} + +h4 +{ + color: #555753; + margin-top: 1em; + margin-bottom: 1em; +} + +hr +{ + /* tango:aluminium 1 */ + color: #d3d7cf; + background: #d3d7cf; + border: none 0px; + height: 1px; + clear: both; + margin: 2.0em 0em 2.0em 0em; +} + +dl.toc dt +{ + padding-bottom: 0.25em; +} + +dl.toc > dt +{ + padding-top: 0.25em; + padding-bottom: 0.25em; + font-weight: bold; +} + +dl.toc > dl +{ + padding-bottom: 0.5em; +} + +.parameter +{ + font-style: normal; +} + +.footer +{ + padding-top: 3.5em; + /* tango:aluminium 3 */ + color: #babdb6; + text-align: center; + font-size: 80%; +} + +.informalfigure, +.figure +{ + margin: 1em; +} + +.informalexample, +.example +{ + margin-top: 1em; + margin-bottom: 1em; +} + +.warning +{ + /* tango:orange 0/1 */ + background: #ffeed9; + background: rgba(252, 175, 62, 0.1); + border-color: #ffb04f; + border-color: rgba(252, 175, 62, 0.2); +} +.note +{ + /* tango:chameleon 0/0.5 */ + background: #d8ffb2; + background: rgba(138, 226, 52, 0.1); + border-color: #abf562; + border-color: rgba(138, 226, 52, 0.2); +} +div.blockquote +{ + border-color: #eeeeec; +} +.note, .warning, div.blockquote +{ + padding: 0.5em; + border-width: 1px; + border-style: solid; + margin: 2em; +} +.note p, .warning p +{ + margin: 0; +} + +div.warning h3.title, +div.note h3.title +{ + display: none; +} + +p + div.section +{ + margin-top: 1em; +} + +div.refnamediv, +div.refsynopsisdiv, +div.refsect1, +div.refsect2, +div.toc, +div.section +{ + margin-bottom: 1em; +} + +/* blob links */ +h2 .extralinks, h3 .extralinks +{ + float: right; + /* tango:aluminium 3 */ + color: #babdb6; + font-size: 80%; + font-weight: normal; +} + +.lineart +{ + color: #d3d7cf; + font-weight: normal; +} + +.annotation +{ + /* tango:aluminium 5 */ + color: #555753; + font-weight: normal; +} + +.structfield +{ + font-style: normal; + font-weight: normal; +} + +acronym,abbr +{ + border-bottom: 1px dotted gray; +} + +/* code listings */ + +.listing_code .programlisting .normal, +.listing_code .programlisting .normal a, +.listing_code .programlisting .number, +.listing_code .programlisting .cbracket, +.listing_code .programlisting .symbol { color: #555753; } +.listing_code .programlisting .comment, +.listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ +.listing_code .programlisting .function, +.listing_code .programlisting .function a, +.listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ +.listing_code .programlisting .string { color: #ad7fa8; } /* tango: plum */ +.listing_code .programlisting .keyword, +.listing_code .programlisting .usertype, +.listing_code .programlisting .type, +.listing_code .programlisting .type a { color: #4e9a06; } /* tango: chameleon 3 */ + +.listing_frame { + /* tango:sky blue 1 */ + border: solid 1px #729fcf; + border: solid 1px rgba(114, 159, 207, 0.2); + padding: 0px; +} + +.listing_lines, .listing_code { + margin-top: 0px; + margin-bottom: 0px; + padding: 0.5em; +} +.listing_lines { + /* tango:sky blue 0.5 */ + background: #a6c5e3; + background: rgba(114, 159, 207, 0.2); + /* tango:aluminium 6 */ + color: #2e3436; +} +.listing_code { + /* tango:sky blue 0 */ + background: #e6f3ff; + background: rgba(114, 159, 207, 0.1); +} +.listing_code .programlisting { + /* override from previous */ + border: none 0px; + padding: 0px; + background: none; +} +.listing_lines pre, .listing_code pre { + margin: 0px; +} + +@media screen { + /* these have a as a first child, but since there are no parent selectors + * we can't use that. */ + a.footnote + { + position: relative; + top: 0em ! important; + } + /* this is needed so that the local anchors are displayed below the naviagtion */ + div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] + { + display: inline-block; + position: relative; + top:-5em; + } + /* this seems to be a bug in the xsl style sheets when generating indexes */ + div.index div.index + { + top: 0em; + } + /* make space for the fixed navigation bar and add space at the bottom so that + * link targets appear somewhat close to top + */ + body + { + padding-top: 2.5em; + padding-bottom: 500px; + max-width: 60em; + } + p + { + max-width: 60em; + } + /* style and size the navigation bar */ + table.navigation#top + { + position: fixed; + background: #e2e2e2; + border-bottom: solid 1px #babdb6; + border-spacing: 5px; + margin-top: 0; + margin-bottom: 0; + top: 0; + left: 0; + z-index: 10; + } + table.navigation#top td + { + padding-left: 6px; + padding-right: 6px; + } + .navigation a, .navigation a:visited + { + /* tango:sky blue 3 */ + color: #204a87; + } + .navigation a:hover + { + /* tango:sky blue 2 */ + color: #3465a4; + } + td.shortcuts + { + /* tango:sky blue 2 */ + color: #3465a4; + font-size: 80%; + white-space: nowrap; + } + td.shortcuts .dim + { + color: #babdb6; + } + .navigation .title + { + font-size: 80%; + max-width: none; + margin: 0px; + font-weight: normal; + } +} +@media screen and (min-width: 60em) { + /* screen larger than 60em */ + body { margin: auto; } +} +@media screen and (max-width: 60em) { + /* screen less than 60em */ + #nav_hierarchy { display: none; } + #nav_interfaces { display: none; } + #nav_prerequisites { display: none; } + #nav_derived_interfaces { display: none; } + #nav_implementations { display: none; } + #nav_child_properties { display: none; } + #nav_style_properties { display: none; } + #nav_index { display: none; } + #nav_glossary { display: none; } + .gallery_image { display: none; } + .property_flags { display: none; } + .signal_flags { display: none; } + .parameter_annotations { display: none; } + .enum_member_annotations { display: none; } + .struct_member_annotations { display: none; } + .union_member_annotations { display: none; } + /* now that a column is hidden, optimize space */ + col.parameters_name { width: auto; } + col.parameters_description { width: auto; } + col.struct_members_name { width: auto; } + col.struct_members_description { width: auto; } + col.enum_members_name { width: auto; } + col.enum_members_description { width: auto; } + col.union_members_name { width: auto; } + col.union_members_description { width: auto; } + .listing_lines { display: none; } +} +@media print { + table.navigation { + visibility: collapse; + display: none; + } + div.titlepage table.navigation { + visibility: visible; + display: table; + background: #e2e2e2; + border: solid 1px #babdb6; + margin-top: 0; + margin-bottom: 0; + top: 0; + left: 0; + height: 3em; + } +} + diff --git a/doc/grilo/html/up-insensitive.png b/doc/grilo/html/up-insensitive.png new file mode 100644 index 0000000..f404986 Binary files /dev/null and b/doc/grilo/html/up-insensitive.png differ diff --git a/doc/grilo/html/up.png b/doc/grilo/html/up.png new file mode 100644 index 0000000..80b4b37 Binary files /dev/null and b/doc/grilo/html/up.png differ diff --git a/doc/grilo/meson.build b/doc/grilo/meson.build new file mode 100644 index 0000000..e86c678 --- /dev/null +++ b/doc/grilo/meson.build @@ -0,0 +1,34 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +types = configure_file(input : 'grilo.types', + output : 'grilo.types', + configuration : configuration_data()) + +gnome.gtkdoc('grilo', + main_sgml: 'grilo-docs.sgml', + src_dir: [ + join_paths(meson.source_root(), 'src'), + join_paths(meson.source_root(), 'libs'), + ], + dependencies: libgrl_dep, + gobject_typesfile: types, + install: true, + content_files: [ + 'environment-setup.xml', + 'plugins-sources.xml', + 'plugins-testing.xml', + 'quick-start.xml', + 'writing-apps.xml', + 'overview.xml', + join_paths(meson.source_root(), 'examples', 'configuring-plugins.c'), + join_paths(meson.source_root(), 'examples', 'browsing.c'), + join_paths(meson.source_root(), 'examples', 'searching.c'), + join_paths(meson.source_root(), 'examples', 'multivalues.c'), + join_paths(meson.source_root(), 'examples', 'efficient-metadata-resolution.c'), + ] +) diff --git a/doc/grilo/overview.xml b/doc/grilo/overview.xml new file mode 100644 index 0000000..aa169ae --- /dev/null +++ b/doc/grilo/overview.xml @@ -0,0 +1,105 @@ + + +]> + +
+ + +Modern media player applications enable users to consume content +from various service providers, both local and remote: Youtube, +Jamendo, Flickr, SHOUTCast or UPnP are a few examples of this trend. + + + + +Creating powerful, modern media applications that integrate content +from multiple services is a time consuming task that demands +a lot of effort on various fronts: + + Learning all the APIs involved. + Learning and integrating all the required technologies. + Abstracting the differences among content providers. + Maintenance. + + + + +Unfortunately, applications that implement support for +these services nowadays do so in a way that is too application-specific. +This disables the possibility of reusing the solution in other +projects directly, meaning that other solutions have to do all +that work again if they want to accomplish the same target, which is +rather inefficient and makes this type of solutions quite expensive +in terms of development time and maintenance. + + + +In this context, the target of Grilo is to provide application +developers with a framework where they can work together in the +development of application-independent plugins for managing media content +that can be reused directly in modern media applications. This model comes +with a number of important benefits: + + + + + +Less work on the application side. +Plugin development happens in the framework and application +developers can focus on making good user interfaces instead. + + + + + +Code reuse. +There are many applications allowing users to access media content +from various providers though application-specific plugins. +If the plugins were developed on the framework side, all +these developers could share efforts and write support for these +services only once in the framework, making them available for all +the applications using the framework for free. Every one wins. + + + + + +Quick learning curve. +If you want to write a media player with support for various +content providers, you have to learn about each one of them independently: +Want to add Youtube videos? then you need to learn about the Youtube data API. +Want to add music from Jamendo? then you need to learn the ins and outs of the +Jamendo API Want access to local media? Then you might want to learn about Tracker +and its APIs. Want to access UPnP media servers? Then it is time for you to learn +about the UPnP protocol and the GUPnP library, etc. This is a lot to learn, +and even more code to implement and maintain. The framework approach would make +all this a lot more straight forward for application developers, they would need +to learn only one API (the framework API) and that would enable them +to access all these services through the framework plugins. + + + + + + +Application developers will find in Grilo a framework they can use +to gain access to a variety of media resources exposed by different +services, all that using a single API that abstracts the differences and +particularities of each one, easing remarkably the development of +modern players. + + + +Platform developers will find in Grilo a framework where they can +cooperate in the development of plugins for managing media content +from various services, making the platform more appealing to media +developers. + + + +Grilo is licensed under the GNU Lesser General Public License (LGPL). + + +
diff --git a/doc/grilo/plugins-sources.xml b/doc/grilo/plugins-sources.xml new file mode 100644 index 0000000..3939ab5 --- /dev/null +++ b/doc/grilo/plugins-sources.xml @@ -0,0 +1,1425 @@ + + +]> + +
+
+ Introduction + + + Sources provide access to media content. Examples of them are sources + providing content from Jamendo or UPnP. Sources can also provide other + information that complements already existent media content. Thus, there + can be sources providing content and others adding more informationover + that content. + + + + Sources are provided by plugins. A plugin usually provides one source, but + it can provide more than one. For instance, the UPnP plugin is able to + provide several sources, one source per each UPnP server found in the + network. + + + + Usually, clients interact with these sources in various ways: + + + Search. + Users can instruct the source to search for + content that matches certain keywords. This is how people + typically interact with services like YouTube, for example. + + + Browse. + Users navigate through a fixed hierarchy of + categorized content interactively. This is how people + typically interact with UPnP services, for example. + + + Query. + Some times services provide features that + are too specific to be transported to a generic, + cross-service API. An example of this could be certain + search filtering options. Queries allow users to + interact with services using service-specific language + that can be used to exploit these features. + + + Resolve. + Users can request additional information (metadata) + for a specific media item served by a source through + a previous browse, search or query operation that was configured + to retrieve only partial metadata (typically for optimization + purposes). Resolve operations are usually used when showing + detailed information about specific media items. + + + Store. + Some sources allow (or even require) users + to push content to them. This is how people interact with + Podcasts for example, they "store" the feeds they are + interested in following first. A source can store either the + full media or just a subset of their properties. + + + Remove. + The opposite to the Store operation, used to remove + content from the source. + + + Media from URL. + This allows to build a media just knowing the URL. + For instance, giving a YouTube URL, the proper source + is able to build and return the corresponding Grilo + media content. + + + +
+ + +
+ Registering Plugins + + + Grilo plugins must use the macro GRL_PLUGIN_REGISTER(), which defines the + entry and exit points of the plugin (called when the plugin is loaded and + unloaded respectively) as well as its plugin identifier (a string + identifying the plugin). + + + + The plugin identifier will be used by clients to identify the plugin when + interacting with the plugin registry API. See the GrlRegistry API reference for + more details. + + + + The plugin initialization function is mandatory. + The plugin deinitialization function is optional. + + + + Usually the plugin initialization function will create at least one GrlSource instance and register it using grl_registry_register_source(). + + + + A GrlSource instance represents a + particular source of media/attributes. Usually each plugin would spawn + just one media source, but some plugins may spawn multiple sources. For + example, a UPnP plugin spawning one media source object for each UPnP + server discovered. + + + + Users can query the registry for available sources and then use the GrlSource API to interact with them. + + + + If the plugin requires configuration this should be processed during the + plugin initialization function, which should return TRUE upon successful + initialization or FALSE otherwise. + + + + The parameter "configs" of the plugin initialization function provides + available configuration information provided by the user for this plugin, + if any. This parameter is a list of GrlConfig objects. Usually there would be only + one GrlConfig object in the list, but + there might be more in the cases of plugins spawning multiple media + sources that require different configuration options. + + + + data); + + api_key = grl_config_get_api_key (config); + if (!api_key) { + GRL_INFO ("Missing API Key, cannot load plugin"); + return FALSE; + } + + GrlFooSource *source = grl_foo_source_new (api_key); + grl_registry_register_source (registry, + plugin, + GRL_SOURCE (source), + NULL); + g_free (api_key); + return TRUE; +} + +GRL_PLUGIN_REGISTER (grl_foo_plugin_init, NULL, "grl-foo"); + ]]> + + + + The next step is to implement the source code, for that sources must + extend the GrlSource class. + + + + In typical GObject fashion, developers should use the G_DEFINE_TYPE macro, + and then provide the class initialization function + (grl_foo_source_class_init() in the example below) and the instance + initialization function (grl_foo_source_init() in the example below). A + constructor function, although not mandatory, is usually nice to have + (grl_foo_source_new() in the example below). + + + + When creating a new GrlSource instance, a + few properties should be provided: + + + source-id: An identifier for the source object. + This is not the same as the plugin identifier (remember that a plugin + can spawn multiple media source objects). This identifier can be used + by clients when interacting with available media sources through the + plugin registry API. See the GrlRegistry API reference for + more details. + + + source-name: A name for the source object + (typically the name that clients would show in the user interface). + + + source-desc: A description of the media source. + + + + + + In the class initialization function the plugin developer should provide + implementations for the operations that the plugin will support. Almost all + operations are optional, but for typically Search or Browse are expected in + sources providing media content, and Resolve for sources providing + information for existent content. + + + + supported_keys = grl_foo_source_supported_keys; + source_class->slow_keys = grl_foo_source_slow_keys; + source_class->browse = grl_foo_source_browse; + source_class->search = grl_foo_source_search; + source_class->query = grl_foo_source_query; + source_class->store = grl_foo_source_store; + source_class->remove = grl_foo_source_remove; + source_class->resolve = grl_foo_source_resolve; +} + +/* Foo instance initialization code */ +static void +grl_foo_source_init (GrlFooSource *source) +{ + /* Here you would initialize 'source', which is an instance + of this class type. */ + source->api_key = NULL; +} + +/* GrlFooSource constructor */ +static GrlFooSource * +grl_foo_source_new (const gchar *api_key) +{ + GrlFooSource *source; + + source = GRL_FOO_SOURCE (g_object_new (GRL_FOO_SOURCE_TYPE, + "source-id", "grl-foo", + "source-name", "Foo", + "source-desc", "Foo media provider", + NULL)); + source->api_key = g_strdup (api_key); + return source; +} + +G_DEFINE_TYPE (GrlFooSource, grl_foo_source, GRL_TYPE_SOURCE); + ]]> + +
+ +
+ Implementing Supported Keys + + + Sources should implement "supported_keys" method to define what metadata + keys the source is able to handle. + + + + This method is declarative, and it only has to return a list of metadata + keys that the plugin supports, that is, it is a declaration of the + metadata that the plugin can provide for the media content that it + exposes. + + + + supported_keys = grl_foo_source_supported_keys; +} + +static const GList * +grl_foo_source_supported_keys (GrlSource *source) +{ + static GList *keys = NULL; + if (!keys) { + keys = grl_metadata_key_list_new (GRL_METADATA_KEY_ID, + GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_URL, + GRL_METADATA_KEY_THUMBNAIL, + GRL_METADATA_KEY_MIME, + GRL_METADATA_KEY_ARTIST, + GRL_METADATA_KEY_DURATION, + GRL_METADATA_KEY_INVALID); + } + return keys; +} + ]]> + +
+ + +
+ Implementing Slow Keys + + + This method is similar to "supported_keys", and in fact it returns a + subset of the keys returned by "supported_keys". + + + + This method is intended to provide the framework with information on + metadata that is particularly expensive for the framework to retrieve. The + framework (or the plugin users) can then use this information to remove + this metadata from their requests when performance is important. This is, + again, a declarative interface providing a list of keys. + + + + If the plugin does not provide an implementation for "slow_keys" the + framework assumes that all keys are equally expensive to retrieve and will + not perform optimizations in any case. + + + + slow_keys = grl_foo_source_slow_keys; +} + +static const GList * +grl_foo_source_slow_keys (GrlSource *source) +{ + static GList *keys = NULL; + if (!keys) { + keys = grl_metadata_key_list_new (GRL_METADATA_KEY_URL, + NULL); + } + return keys; +} + ]]> + +
+ + + + + +
+ Implementing Browse + + + Browsing is an interactive process, where users navigate by exploring + these containers exposed by the media source in hierarchical form. The + idea of browsing a media source is the same as browsing a file system. + + + + The signature and way of operation of the Browse operation is the same as + in the Search operation with one difference: instead of a text parameter + with the search keywords, it receives a GrlMedia object representing the container the + user wants to browse. + + + + For the most part, plugin developers that write Browse implementations + should consider the same rules and guidelines explained for Search + operations. + + + + Below you can see some source code that illustrates this process: + + + + browse = grl_foo_source_browse; +} + +static void +foo_execute_categories_async_cb (gchar *xml, GrlSourceBrowseSpec *bs) +{ + GrlMedia *media; + gint count; + + count = count_results (xml); + + if (count == 0) { + /* Signal "no results" */ + bs->callback (bs->source, bs->operation_id, + NULL, 0, bs->user_data, NULL); + } else { + /* parse_next parses the next category item in the XML + and creates a GrlMedia instance with the data extracted, + which should be a container */ + while (media = parse_next_cat (xml)) + bs->callback (bs->source, /* Source emitting the data */ + bs->operation_id, /* Operation identifier */ + media, /* The category container */ + --count, /* Remaining count */ + bs->user_data, /* User data for the callback */ + NULL); /* GError instance (if an error occurred) */ + } +} + +static void +foo_execute_media_async_cb (gchar *xml, GrlSourceBrowseSpec *os) +{ + GrlMedia *media; + gint count; + + count = count_results (xml); + + if (count == 0) { + /* Signal "no results" */ + bs->callback (bs->source, bs->operation_id, + NULL, 0, bs->user_data, NULL); + } else { + /* parse_next parses the next media item in the XML + and creates a GrlMedia instance with the data extracted */ + while (media = parse_next_media (xml)) + os->callback (os->source, /* Source emitting the data */ + os->operation_id, /* Operation identifier */ + media, /* Media that matched the query */ + --count, /* Remaining count */ + os->user_data, /* User data for the callback */ + NULL); /* GError instance (if an error occurred) */ + } +} + +static void +grl_foo_source_browse (GrlSource *source, GrlSourceBrowseSpec *bs) +{ + gchar *foo_http_browse: + + /* We use the names of the categories as their media identifiers */ + container_id = grl_media_get_id (bs->container); + + if (!container_id) { + /* Browsing the root container, the result must be the list of + categories provided by the service */ + foo_http_browse = + g_strdup_printf("http://media.foo.com/category_list", + grl_operation_options_get_skip (bs), + grl_operation_options_get_count (bs)); + /* This executes an async http query and then invokes + foo_execute_categories_async_cb with the response */ + foo_execute_categories_async (foo_http_browse, bs); + } else { + /* Browsing a specific category */ + foo_http_browse = + g_strdup_printf("http://media.foo.com/content/%s?offset=%d&count=%d", + container_id, + grl_operation_options_get_skip (bs), + grl_operation_options_get_count (bs)); + /* This executes an async http query and then invokes + foo_execute_browse_async_cb with the response */ + foo_execute_media_async (foo_http_browse, bs); + } +} + ]]> + + + + Some considerations that plugin developers should take into account: + + + In the example we are assuming that the content hierarchy only has two + levels, the first level exposes a list of categories (each one exposed + as a container GrlMedia object so the + user knows they can be browsed again), and then a second level with + the contents within these categories, that we assume are all media + items, although in real life they could very well be more containers, + leading to more complex hierarchies. + + + Containers returned by a browse operation can be browsed by clients in + future Browse operations. + + + The input parameter that informs the plugin about the container that should + be browsed (bs->container) is of type GrlMedia. The plugin developer must + map that to something the media provider understands. Typically, when + GrlMedia objects are returned from a + plugin to the client, they are created so their "id" property (grl_media_set_id()) can be used for + this purpose, identifying these media resources uniquely in the + context of the media provider. + + + A GrlMedia object with NULL id always + represents the root container/category in the content hierarchy + exposed by the plugin. + + + + + + Please, check Common + considerations for Search, Browse and Query implementations for + more information on how to implement Browse operations properly. + + + + Examples of plugins implementing browse functionality are grl-jamendo, + grl-filesystem or grl-upnp among others. + + +
+ + +
+ Implementing Query + + + This method provides plugin developers with means to expose + service-specific functionality that cannot be achieved through regular + Browse and Search operations. + + + + This method operates just like the Search method, but the text parameter + does not represent a list of keywords to search for, instead, its meaning + is plugin specific and defined by the plugin developer. Plugin + documentation should explain what is the syntax of this query text, and + what it allows. + + + + Normally, Query implementations involve parsing and decoding this input + string into something meaningful for the media provider (a specific + operation with its parameters). + + + + Usually, Query implementations are intended to provide advanced filtering + capabilities and similar features that make use of specific features of + the service that cannot be exposed through more service agnostic APIs, + like Search or Browse. For example, a plugin that provides media content + stored in a database can implement Query to give users the possibility to + execute SQL queries directly, by encoding the SQL commands in this input + string, giving a lot of flexibility in how they access the content stored + in the database in exchange for writing plugin-specific code in the + application. + + + + The example below shows the case of a plugin implementing Query to let the + user specify filters directly in SQL format for additional flexibility. + + + + query = grl_foo_source_query; +} + +static void +grl_foo_source_query (GrlSource *source, GrlSourceQuerySpec *qs) +{ + const gchar *sql_filter; + GList *results; + GrlMedia *media; + gint count; + + /* In this example, we are assuming qs->query is expected to contain a + suitable SQL filter */ + sql_query = prepare_sql_with_custom_filter (qs->query, + grl_operation_options_get_skip (qs->options), + grl_operation_options_get_skip (qs->options)); + /* Execute the resulting SQL query, which incorporates + the filter provided by the user */ + results = execute_sql (sql_query); + + /* For each result obtained, invoke the user callback as usual */ + count = g_list_length (results); + + if (count == 0) { + /* Signal "no results" */ + qs->callback (qs->source, qs->operation_id, + NULL, 0, qs->user_data, NULL); + } else { + while (media = next_result (&results)) + qs->callback (qs->source, /* Source emitting the data */ + qs->operation_id, /* Operation identifier */ + media, /* Media that matched the query */ + --count, /* Remaining count */ + qs->user_data, /* User data for the callback */ + NULL); /* GError instance (if an error occurred) */ + } +} + ]]> + + + + Please, check Common + considerations for Search, Browse and Query implementations for + more information on how to implement Query operations properly. + + + + Examples of plugins implementing Query are grl-jamendo, grl-upnp or + grl-bookmarks among others. + +
+ + +
+ Common considerations for Search, Browse and Query implementations + + + + + Making operations synchronous would block the client application while + the operation is executed, so providing a non-blocking implementation + is mostly mandatory for most practical purposes. + + + Grilo invokes plugin operations in idle callbacks to ensure that + control is returned to the client as soon as possible. Still, plugin + developers are encouraged to write efficient code that avoids blocking + as much as possible, since this good practice will make applications + behave smoother, granting a much better user experience. Use of + threads in plugin code is not recommended, instead, splitting the work + to do in chunks using the idle loop is encouraged. + + + Creating GrlMedia instances is easy, + you should instantiate one, and then use the API to set the + corresponding data. Check the GrlData + hierarchy in the API reference for more details. + + + The remaining count parameter present in the callbacks is intended to + provide the client with an estimation of how many + more results will come after the current one as part of the same + operation. + + + Finalization of the operation must always + be signaled by invoking the user callback with remaining count set to 0, + even on error conditions. + + + Plugin developers must ensure that all operations end by invoking the + user callback with the remaining count parameter set to 0, and that + this is done only once per operation. This behavior is expected and + must be guaranteed by the plugin developer. + + + Once the user callback has been invoked with the remaining count + parameter set to 0, the operations is considered finished and the + plugin developer must never + invoke the user callback again for that operation again. + + + In case of error, the plugin developer must invoke the user + callback like this: + + Set the last parameter to a non-NULL GError instance. + Set the media parameter to NULL. + Set the remaining count parameter to 0. + + The plugin developer is responsible for releasing the error once + the user callback is invoked. + + + It is possible to finalize the operation with a NULL media and + remaining count set to 0 if that is convenient for the plugin + developer. + + + Returned GrlMedia objects are owned by + the client and should not be freed by the plugin. + + + The list of metadata information requested by the client is available + in the "keys" field of the Spec structure. Typically plugin developers + don't have to care about the list of keys requested and would just + resolve all metadata available. The only situation in which the plugin + developer should check the specific list of keys requested is when + there are keys that are particularly expensive to resolve, in these + cases the plugin should only resolve these keys if the user has indeed + requested that information. + + + +
+ + +
+ Implementing Resolve + + + Resolve operations are issued in order to grab additional information on a + given media (GrlMedia). + + + + Typically, the use case for Resolve operations is applications obtaining a + list of GrlMedia objects by executing a + Browse, Search or Query operation, requesting limited metadata (for + performance reasons), and then requesting additional metadata for specific + items selected by the user. + + + + This additional information can be provided by the same source that got + the GrlMedia objects (if it implements the + Resolve operation), or by other sources able to provide the information + requested. + + + + Plugins implementing "resolve" operation should implement "may_resolve" + too. The purpose of this method is to analyze if the GrlMedia contains the required metadata for the + source to provide the additional metadata requested. If not provided, the + default behaviour for sources implementing "resolve" but not "may_resolve" + is to resolve only supported keys in media objects coming from the source + itself. + + + + may_resolve = grl_foo_source_may_resolve; + source_class->resolve = grl_foo_source_resolve; +} + +static gboolean +grl_foo_source_may_resolve (GrlSource *source, + GrlMedia *media, + GrlKeyID key_id, + GList **missing_keys) +{ + gboolean needs_artist = FALSE; + gboolean needs_album = FALSE; + + /* We only support thumbnail resolution */ + if (key_id != GRL_METADATA_KEY_THUMBNAIL) + return FALSE; + + /* We only support audio items */ + if (media) { + if (!grl_media_is_audio (media)) + return FALSE; + + /* We need artist information available */ + if (grl_media_get_artist (media) == NULL) { + if (missing_keys) + *missing_keys = g_list_add (*missing_keys, + GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ARTIST)); + needs_artist = TRUE; + } + + /* We need album information available */ + if (grl_media_get_album (media) == NULL)) { + if (missing_keys) + *missing_keys = g_list_add (*missing_keys, + GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ALBUM)); + needs_album = TRUE; + } + } + + if (needs_album || needs_artist) + return FALSE; + + return TRUE; +} + +static void +grl_foo_source_resolve (GrlSource *source, + GrlSourceResolveSpec *rs) +{ + const gchar *album; + const gchar *artist, + gchar *thumb_uri; + const GError *error = NULL; + + if (contains_key (rs->keys, GRL_METADATA_KEY_THUMBNAIL) { + artist = grl_media_get_artist (rs->media); + album = grl_media_get_album (rs->media); + if (artist && album) { + thumb_uri = resolve_thumb_uri (artist, album); + grl_media_set_thumbnail (rs->media, thumb_uri); + } else { + error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_RESOLVE_FAILED, + "Can't resolve thumbnail, artist and album not known"); + } + } else { + error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_RESOLVE_FAILED, + "Can't resolve requested keys"); + } + + rs->callback (source, rs->operation_id, rs->media, rs->user_data, error); + + if (error) + g_error_free (error); +} + ]]> + + + + Some considerations that plugin developers should take into account: + + + The method "may_resolve" is synchronous, should be fast and never + block. If the plugin cannot confirm if it can resolve the metadata + requested without doing blocking operations then it should return + TRUE. Then, when "resolve" is invoked further checking can be done. + + + Just like in other APIs, implementation of this method is expected + to be asynchronous to avoid blocking the user code. + + + + + + Examples of plugins implementing Resolve are grl-youtube, grl-upnp or + grl-lastfm-albumart among others. + +
+ + +
+ Implementing Store + + + The Store method is used to push new content to the media source. + + + + store = grl_foo_source_store; +} + +static void +grl_foo_source_store (GrlSource *source, + GrlSourceStoreSpec *ss) +{ + const gchar *title; + const gchar *uri; + const gchar *parent_id; + guint row_id; + + /* We get the id of the parent container where we want + to put the new content */ + parent_id = grl_media_get_id (GRL_MEDIA (parent)); + + /* We get he metadata of the media we want to push, in this case + only URI and Title */ + uri = grl_media_get_uri (); + title = grl_media_get_title (); + + /* Push the data to the media provider (in this case a database) */ + row_id = run_sql_insert (parent_id, uri, title); + + /* Set the media id in the GrlMedia object */ + grl_media_set_id (ss->media, row_id_to_media_id (row_id)); + + /* Inform the user that the operation is done (NULL error means everything was + ok), and all the keys were stored successfully (no list of failed keys) */ + ss->callback (ss->source, ss->media, NULL, ss->user_data, NULL); +} + ]]> + + + + Some considerations that plugin developers should take into account: + + + After successfully storing the media, the method should assign a + proper media id to it before invoking the user callback. + + + + + + Examples of plugins implementing Store are grl-bookmarks or grl-podcasts. + +
+ + +
+ Implementing Store Metadata + + + Some plugins may provide users with the option of updating the metadata + available for specific media items. For example, a plugin may store user + metadata like the last time that a certain media resource was played + or its play count. These metadata properties do not make sense if + applications do not have means to change and update their values. + + + + Plugins that support this feature must implement two methods: + + + writable_keys: just like "supported_keys" + or "slow_keys", it is a declarative method, intended to provide + information on what keys supported by the plugin are writable, that is, + their values can be changed by the user. + + + store_metadata: which is the method used + by clients to update metadata values for specific keys. + + + + + + writable_keys = grl_foo_source_writable_keys; + source_class->store_metadata = grl_foo_source_store_metadata; +} + +static const GList * +grl_foo_source_writable_keys (GrlSource *source) +{ + static GList *keys = NULL; + if (!keys) { + keys = grl_metadata_key_list_new (GRL_METADATA_KEY_RATING, + GRL_METADATA_KEY_PLAY_COUNT, + GRL_METADATA_KEY_LAST_PLAYED, + NULL); + } + return keys; +} + +static void +grl_foo_source_store_metadata (GrlSource *source, + GrlSourceSetMetadataSpec *sms) +{ + GList *iter; + const gchar *media_id; + GList *failed_keys = NULL; + + /* 'sms->media' contains the media with updated values */ + media_id = grl_media_get_id (sms->media); + + /* Go through all the keys that need update ('sms->keys'), take + the new values (from 'sms->media') and update them in the + media provider */ + iter = sms->keys; + while (iter) { + GrlKeyID key = GRLPOINTER_TO_KEYID (iter->data); + if (!foo_update_value_for_key (sms->media, key)) { + /* Save a list with keys that we failed to update */ + failed_keys = g_list_prepend (failed_keys, iter->data); + } + iter = g_list_next (iter); + } + + /* We are done, invoke user callback to signal client */ + sms->callback (sms->source, sms->media, failed_keys, sms->user_data, NULL); + g_list_free (failed_keys); +} + ]]> + + + + Some considerations that plugin developers should take into account: + + + Typically, updating metadata keys in the media provider would involve + one or more blocking operations, so asynchronous implementations + of "store_metadata" should be considered. + + + Some media providers may allow for the possibility of updating + multiple keys in just one operation. + + + The user callback for "store_metadata" receives a list with all the keys + that failed to be updated, which the plugin should free after calling + the user callback. + + + + + + Examples of plugins implementing "store_metadata" are grl-metadata-store + or grl-tracker. + +
+ + +
+ Implementing Remove + + + The Remove method is used to remove content from the media source. + + + + remove = grl_foo_source_remove; +} + +static void +grl_foo_source_remove (GrlSource *source, + GrlSourceRemoveSpec *rs) +{ + /* Remove the data from the media provider (in this case a database) */ + run_sql_delete (ss->media_id); + + /* Inform the user that the operation is done (NULL error means everything + was ok */ + rs->callback (rs->source, rs->media, rs->user_data, NULL); +} + ]]> + + + + Examples of plugins implementing Remove are grl-bookmarks or + grl-podcasts. + +
+ + +
+ Implementing Media from URI + + + Some times clients have access to the URI of the media, and they want to + retrieve metadata for it. A couple of examples where this may come in + handy: A file system browser that needs to obtain additional metadata for + a particular media item located in the filesystem. A browser plugin that + can obtain additional metadata for a media item given its URL. In these + cases we know the URI of the media, but we need to create a GrlMedia object representing it. + + + + Plugins that want to support URI to GrlMedia + conversions must implement the "test_media_from_uri" and "media_from_uri" + methods. + + + + The method "test_media_from_uri" should return TRUE if, upon inspection of + the media URI, the plugin decides that it can convert it to a GrlMedia object. For example, a YouTube plugin + would check that the URI of the media is a valid YouTube URL. This method is + asynchronous and should not block. If the plugin cannot decide if it can or + cannot convert the URI to a GrlMedia object + by inspecting the URI without doing blocking operations, it should return + TRUE. This method is used to discard efficiently plugins that cannot resolve + the media. + + + + The method "media_from_uri" is used to do the actual conversion from the URI + to the GrlMedia object. + + + + test_media_from_uri = grl_foo_source_test_media_from_uri; + source_class->media_from_uri = grl_foo_source_media_from_uri; +} + +static gboolean +grl_filesystem_test_media_from_uri (GrlSource *source, + const gchar *uri) +{ + if (strstr (uri, "http://media.foo.com/media-info/") == uri) { + return TRUE; + } + return FALSE; +} + +static void +grl_filesystem_media_from_uri (GrlSource *source, + GrlSourceMediaFromUriSpec *mfus) +{ + gchar *media_id; + GrlMedia *media; + + media_id = get_media_id_from_uri (mfus->uri); + media = create_media_from_id (media_id); + mfus->callback (source, mfus->media_from_uri_id, media, mfus->user_data, NULL); + g_free (media_id); +} + ]]> + + + + Some considerations that plugin developers should take into account: + + + Typically "media_from_uri" involves a blocking operation, and hence + its implementation should be asynchronous. + + + + + + Examples of plugins implementing "media_from_uri" are grl-filesystem + or grl-youtube. + +
+ + +
+ Notifying changes + + + Source can signal clients when available media content has been + changed. This is an optional feature. + + + + Plugins supporting content change notification must implement + "notify_change_start" and "notify_change_stop", which let the + user start or stop content change notification at will. + + + + Once users have activated notifications by invoking + "notify_change_start", media sources should communicate + any changes detected by calling grl_source_notify_change_list() + with a list of the media items changed. + + + + Upon calling "notify_changes_stop" the plugin must stop + communicating changes until "notify_changes_start" is + called again. + + + + notify_change_start = grl_foo_source_notify_change_start; + source_class->notify_change_stop = grl_foo_source_notify_change_stop; +} + +static void +content_changed_cb (GList *changes) +{ + GPtrArray *changed_medias; + + changed_medias = g_ptr_array_sized_new (g_list_length (changes)); + while (media = next_media_from_changes (&changes)) { + g_ptr_array_add (changed_medias, media); + } + + grl_source_notify_change_list (source, + changed_medias, + GRL_CONTENT_CHANGED, + FALSE); +} + +static gboolean +grl_foo_source_notify_change_start (GrlSource *source, + GError **error) +{ + GrlFooSource *foo_source; + + /* Listen to changes in the media content provider */ + foo_source = GRL_FOO_SOURCE (source); + foo_source->listener_id = foo_subscribe_listener_new (content_changed_cb); + + return TRUE; +} + +static gboolean +grl_foo_source_notify_change_stop (GrlSource *source, + GError **error) +{ + GrlFooSource *foo_source; + + /* Stop listening to changes in the media content provider */ + foo_source = GRL_FOO_SOURCE (source); + foo_listener_destroy (foo_source->listener_id); + + return TRUE; +} + ]]> + + + + Please check the GrlSource API + reference for more details on how grl_source_notify_change_list() + should be used. + + + + Examples of plugins implementing change notification are grl-upnp and + grl-tracker among others + +
+ +
+ Cancelling ongoing operations + + + Implementing the "cancel" method is optional, as others. This method + provided means for application developers to cancel ongoing operations on + metadata sources (and hence, also in media sources). + + + + The "cancel" method receives the identifier of the operation to be + cancelled. + + + + Typically, plugin developers would implement cancellation support + by storing relevant information for the cancellation process + along with the operation data when this is started, and then + retrieving this information when a cancellation request is received. + + + + Grilo provides plugin developers with API to attach arbitrary data + to a certain operation given its identifier. These APIs are: + + grl_operation_set_data() + grl_operation_get_data() + + See the API reference documentation for grl-operation for more details. + + + + search = grl_foo_source_search; + source_class->cancel = grl_foo_source_cancel; +} + +static void +grl_foo_source_search (GrlSource *source, + GrlSourceSearchSpec *ss) +{ + ... + gint op_handler = foo_service_search_start (ss->text, ...); + grl_operation_set_data (ss->operation_id, + GINT_TO_POINTER (op_handler)); + ... +} + +static void +grl_foo_source_cancel (GrlSource *source, + guint operation_id) +{ + gint op_handler; + + op_handler = + GPOINTER_TO_INT (grl_operation_get_data (operation_id)); + if (op_handler > 0) { + foo_service_search_cancel (op_handler); + } +} + ]]> + + + + Some examples of plugins implementing cancellation support are + grl-youtube, grl-jamendo or grl-filesystem, among others. + + + + Developers must free any data stored before the operation finishes. + +
+ +
diff --git a/doc/grilo/plugins-testing.xml b/doc/grilo/plugins-testing.xml new file mode 100644 index 0000000..c30bec6 --- /dev/null +++ b/doc/grilo/plugins-testing.xml @@ -0,0 +1,182 @@ + + +]> + +
+ Testing your plugins + + + Grilo ships a GTK+ test user interface called grilo-test-ui + that can be used to test new plugins. This simple playground application can be + found in the 'grilo' core source code under tools/grilo-test-ui/. If you have + Grilo installed on your system, you may have this application installed as + well. + + + + This application loads plugins from the default plugin installation directory + in your system or, alternatively, by inspecting the GRL_PLUGIN_PATH environment + variable, which can be set to contain a list of directories where Grilo + should look for plugins. + + + + Once the plugin library is visible to Grilo one only has to start the + grilo-test-ui application and it will load it along with other Grilo + plugins available in the system. + + + + In case there is some problem with the initialization of the plugin it should + be logged on the console. Remember that you can control the amount of + logging done by Grilo through the GRL_DEBUG environment variable. You + may want to set this variable to do full logging, in which case + you should type this in your console: + + + +$ export GRL_DEBUG="*:*" + + + + If you want to focus only on logging the plugin loading process, configure + Grilo to log full details from the plugin registry module alone + by doing this instead: + + + +$ export GRL_DEBUG="registry:*" + + + + In case your plugin has been loaded successfully you should see something like + this in the log: + + + +(lt-grilo-test-ui:14457): Grilo-DEBUG: [registry] grl-registry.c:188: Plugin rank [plugin-id]' : 0 +(lt-grilo-test-ui:14457): Grilo-DEBUG: [registry] grl-registry.c:476: New source available: [source-id] +(lt-grilo-test-ui:14457): Grilo-DEBUG: [registry] grl-registry.c:683: Loaded plugin '[plugin-id]' from '[plugin-file-absolute-path.so]' + + + + If your plugin is a Media Source (not a Metadata Source) you should be able + to see it in the user interface of grilo-test-ui like this: + + + If the plugin implements Browse you should see the media source objects + spawned by the plugin in the list shown in the main view. You can + browse the plugin by double-clicking on any of its sources. + + + If the plugin implements Search you should see the media source objects + spawned by the plugin in the combo box next to the "Search" button. + You can now search content by selecting the media source you want to test + in the combo, inputting a search text in the text entry right next to it + and clicking the Search button. + + + If the plugin implements query you should see the media source objects + spawned by the plugin in the combo box next to the "Query" button. + You can now query content by selecting the media source you want to test + in the combo, inputting the plugin-specific query string in the text + entry right next to it and clicking the Query button. + + + + + + If your plugin is a Metadata Source then you should test it by doing + a Browse, Search or Query operation in some other Media Source available + and then click on any of the media items showed as result. By doing this + grilo-test-ui will execute a Metadata operation which would use any + available metadata plugins to gather as much information as possible. + Available metadata obtained for the selected item will be shown in the + right pane for users to inspect. + + +
+ Simulating Network Replies + + + For offline testing of plug-ins, particularly in automated tests, it is + useful to simulate and return predefined network replies. Therefore, Grilo + provides a few facilities for mocking network replies. + + + + To enable mocking, set the environment variable GRL_NET_MOCKED. The value + of this variable is interpreted as the path of the mock configuration file to + use. This file is a simple .ini file, split + into a "default" section and one section per URL to mock. + + + +[default] +version = 1 +ignored-parameters = field1[;field2[;...]] or "*" + +[http://www.example.com] +data = content/of/response.txt +timeout = 500 + + + + An easy way to capture the responses is to run your application with the + environment variable GRL_NET_CAPTURE_DIR. GrlNetWc will then write + each response into a file following the pattern "url-timestamp". If the + directory does not exist yet then it will be created. + + +
+ The Default Section + + + This section needs to be present in any mock reply configuration file. + + + + version needs to be "1". + + + + ignored-parameters is a semicolon separated list of + query parameter names that can be used to map URLs to sections + without paying attention to query parameters listed here. + By setting a value of "api_key" a request for + http://www.example.com?q=test+query&api_key=dummy + will be answered with the mock data for + http://www.example.com?q=test+query. + Setting "api_key;q" or "*" will result in mock answer for + http://www.example.com. + + + +
+ +
+ The URL Sections + + + The section title is used to map URLs to response files. + + + + data is a path to a text file containing the + raw response of the websserver. The path may be relative to this + configuration file or an absolute path. + + + + timeout may be used to delay the response in + seconds. The default is to not delay at all. + + + + Skip the data field to provoke a "not found" error. + +
+
+
diff --git a/doc/grilo/quick-start.xml b/doc/grilo/quick-start.xml new file mode 100644 index 0000000..16896f7 --- /dev/null +++ b/doc/grilo/quick-start.xml @@ -0,0 +1,73 @@ + + +]> + +
+ + + If you just want to have a go at Grilo as soon as possible this is + the right section for you. + + + + This section gives basic instructions on how to download, build + and demo the development version of Grilo directly from the source + code repositories, as well as how to build programs that use + Grilo. + + + +
+ Building Grilo from sources + +# Building Grilo +$ git clone git://git.gnome.org/grilo +$ cd grilo +$ ./autogen.sh --prefix=/usr +$ make +$ sudo make install + +# Building Grilo Plugins +$ cd .. +$ git clone git://git.gnome.org/grilo-plugins +$ cd grilo-plugins +$ ./autogen.sh --prefix=/usr +$ make +$ sudo make install + + + + You should now see the grilo libraries installed under /usr/lib and the + plugins for grilo installed under /usr/lib/grilo-x.y, where 'x.y' represents + the library version. + +
+ +
+ Testing Grilo + After building and installing grilo and grilo-plugins, do: + +# Execute Grilo's test GUI +$ /usr/bin/grilo-test-ui + + + + This is a simple playground application that you can use to test + the framework and its plugins. + + + + Notice that grilo-test-ui is optional and will not be built unless + you have the GTK+ development package installed on your system. + +
+ +
+ Compiling Grilo based programs + +gcc -o example `pkg-config --cflags --libs grilo-x.y` example.c + +
+
diff --git a/doc/grilo/writing-apps.xml b/doc/grilo/writing-apps.xml new file mode 100644 index 0000000..a301d28 --- /dev/null +++ b/doc/grilo/writing-apps.xml @@ -0,0 +1,647 @@ + + +]> + +
+ + + This section intends to be a starting point for developers interested + in getting started with Grilo, and as such it does not try to be + a comprehensive tutorial covering all topics and features of Grilo, + instead, this is intends to focus on typical use case scenarios + and code examples to put the developer on the right track. + + +
+ Basic concepts + +
+ Understanding Grilo + + Grilo provides a high-level API that application developers + can use to interact with heterogeneous media providers using + an homogeneous language, reducing remarkably the effort required + to integrate media content from multiple sources. + + + + This high-level, provider-independent API is then implemented + for all the providers supported by Grilo by means of plugins. + These plugins encapsulate all the provider-specific details, + effectively hiding all the technical tidbits and particularities + of specific media providers from application developers. + + + + There are two kinds of plugins in Grilo: + + Media Sources, which provide access to media content + that can be browsed or searched. + Metadata Sources, which provide additional metadata + about media content obtained through media sources. + + + + + Management of available plugins is done through the + Plugin Registry. + This object exposes API to load plugins and retrieve + available media source and metadata source objects. + + + + Some plugins may require certain configuration information + in order to work properly. Examples of configuration information + that may be needed include API keys, service credentials, + etc. Please check the section + + Configuring you plugins + + for more details on this subject. + + + + You can instruct Grilo to load all available plugins via + grl_registry_load_all_plugins(). + This will look into the default + installation directory for the plugins and also the paths + included via the environment variable GRL_PLUGIN_PATH. + Please check section + + Running Grilo based programs + + for more details on this subject. + + + + Users can also load plugins using their plugin + identifiers. These plugin identifier strings + can be obtained by running the tool 'grl-inspect'. + + + + Users have two options to gain access to the media source and + metadata source objects loaded by the plugin registry: + + + + + Call + + grl_registry_get_sources* + or + + grl_registry_lookup_source + . These should be used + when plugins have already been loaded. + + + By connecting to the + source-added + signal, that is emitted whenever a new media source or metadata + source object is found. + + + + + For more information on how to use the plugin registry, please + check its API reference + or any of the code examples below. + + + + Media source and metadata source objects are the objects + application developers will be interacting with for most + of their Grilo work. These objects provide developers + with a well known interface (API) to interact with + media content that is provider-independent. Typically, + each media source object provides access to content + delivered by one particular media provider. + + +
+ +
+ + Media Sources + + + Media Source objects provide access to media content. Application + developers would usually interact with these objects issuing + Browse, Search or Query operations on them. The purpose of + these operations is explained below: + + + + + Search. + Instructs the media source to look for media matching + specific keywords. Example: YouTube search. + + + Browse:. + Navigates through a hierarchy of content exposed by the + media provider. Example: Filesystem browsing. + + + Query: + An advanced search mode that uses service-specific + commands to exploit features specific to a particular + media provider. + + + Metadata + Obtain (more) metadata information for a particular media resource. + + + Store and Remove + Push and remove content from the media provider. + + +
+ +
+ + Metadata Sources + + + Metadata Source objects provide means to acquire additional + metadata that was not provided by the original media source + that delivered the media. Application developers would usually + interact with metadata sources via Resolve or SetMetadata + operations, which are described below: + + + + + Resolve: + Acquire additional metadata for a particular media resource. + + + SetMetadata: + Update metadata information available for a particular media resource. + + + +
+ +
+ + Asynchronous APIs + + + Most of the APIs exposed by Media Source and Metadata Source + objects are asynchronous. The reason for this is that + these operations usually involve I/O which + would block the user interface if executed synchronously, + specially for the more heavy operations like Browse or + Search, leading to unresponsive GUIs and bad user + experience. + + + + For this reason, most of the APIs in Grilo accept a + user callback and user data parameters that are used + to hand over the result of the operation to the + client asynchronously. + + + + In cases where asynchrony is not needed, for example + for programs that do not have a graphical user + interface and are designed to run in the background, + Grilo also provides synchronous versions of some of + the APIs, but for situations other than this, use of + the asynchronous APIs is strongly + encouraged. + + + + For operations that can produce multiple results, + like Browse, Search or Query, callbacks are + invoked once per matching result. For operations + that are expected to produce a single result, like + Metadata or Resolve, callbacks are invoked just + once. + + + + In any case, clients should always expect the result + callback to be invoked at least once after an + asynchronous operation has been issued, even if the + operation fails or is cancelled (in which case the + error parameter of the callback will be set to a + non-NULL value). + + +
+ +
+ + Operation identifiers + + + Some Media Source and Metadata Source operations will return + an operation identifier that serves various purposes: + + + + Identify the operation within the framework. + Match asynchronously results with the issuing operations. + Provide an operation identifier that can be used to cancel the operation. + + + + For example, issuing an asynchronous Search operation on a Media + Source object would synchronously return an operation identifier. + The developer can store this identifier and use it to cancel. + + + + Also, if the operation was not cancelled, the results callback + will be invoked at least once (actually, for the case + of a Browse operation is will be invoked once per matching + result) handing the results of the operation to the application. + Each time the results callback is invoked, the operation identifier + will be provided so that the callback can identify the operation + that triggered the result (there can be multiple operations + ongoing simultaneously). + + +
+ +
+ + Media objects + + + As discussed before, Media Source objects provide means + to access media content exposed by media providers through + operations like Search, Browse or Query. Media content is + represented in Grilo via + GrlMedia + objects that contain metadata information related with + a particular media resource. + + + + There are various subclasses of GrlMedia, which provide + specific APIs to get and set metadata associated with + specific media types, like video, audio or image + resources. + + + + Typically, these GrlMedia objects will be obtained by + issuing Search, Browse or Query operations on Media + Source objects, which produce these objects + as results. Upon reception, clients would + usually use the API exposed by these objects to + collect the information of interest. + + + + Grilo also supports the concept of media container, represented by a + container-type GrlMedia class. These objects represent categories or + folders that contain other media objects (including maybe more container + objects), allowing tree-like hierarchies of content, like the ones would + usually traverse during Browse operations. + + + + Please, check the GrlMedia + API reference for more information on this subject. + + +
+ +
+ + Metadata keys + + + Metadata keys identify pieces of information (metadata). + They are often an input parameter for many operations + in Grilo, with the purpose of specifying what pieces of + information are relevant for a particular operations. + + + + Grilo has a list of predefined supported keys. For each + of these keys, Grilo provides definitions + (identifiers) that clients can use to refer to + specific pieces of information. Some + examples are GRL_METADATA_KEY_TITLE or + GRL_METADATA_KEY_ARTIST. + + + + For a complete list of all System Keys, please check + grl-metadata-key.h. + + + + Some plugins can also introduce additional metadata + keys known as User Keys. The difference with the System + Keys is that these do not have definitions available, and + hence clients must query the plugin registry to know + their identifiers first using + + grl_registry_lookup_metadata_key + . + + +
+
+ +
+ + Typical use cases explained + + + The following sections will guide the reader through some + of the typical use cases of Grilo, using code examples + to make the ideas even more clear. + + +
+ + Configuring your plugins + + For some plugins to work properly, it is required that the user (or + application developer) provides certain configuration. For example, + some plugins may require a username and a password, others may + require an API token to gain access to the underlying media provider. + + + These configuration options could be mandatory (without them + the plugin cannot operate and will fail to load), or + optional, in which case they are intended to allow users to tweak + certain aspects of how a particular plugin should work. + + + An example of a mandatory configuration is in the Youtube plugin: in order + for it to work a valid API key must be provided. It is the responsibility + of the user (or the application developer) to get that key (usually + registering in Youtube and applying for an application key) and provide + it to the plugin. + + + In order to know what configuration options are available for a certain + plugin, users/developers must check the plugin documentation. + + + Here is a small program illustrating how to configure a plugin form your + application: + + + + + + + For more information on how to configure plugins + please check the + GrlConfig + API reference. + +
+ +
+ + Browsing media content + + Here is a small program illustrating how you can browse + content from a particular media source (a similar approach + can be used for searching content instead of browsing): + + + + + + Please notice: + + + Finalization of the Browse operation is always + indicated by setting the 'remaining' parameter to 0. + + + The user callback used to receive the results is + guaranteed to be invoked at least once (with remaining + set to 0), even if the operation fails or is cancelled + (in these cases the error parameter will be set to a + non-NULL value). + + + Received GrlMedia objects are owned by the application + and must be freed when no longer needed. + + + If an error occurs, the GError parameter is set in the + callback, but this error parameter is owned by Grilo + and will be freed immediately after the callback. + If you want to keep the error beyond the scope of + the callback you must add a reference to it in the + callback code. + + + When the media source cannot estimate the number + of remaining items, remaining is set to + GRL_SOURCE_REMAINING_UNKNOWN. + + + + + + For more information on how to operate media sources + please check the + GrlMediaSource + API reference. + +
+ +
+ + Searching media content + + Here is a small program illustrating how you can search + content by text from a particular media source (Jamendo + in this example): + + + + + + Please notice that all the considerations remarked for the + Browse operations above apply also to Search operations. + + + + For more information on how to operate media sources + please check the + GrlMediaSource + API reference. + +
+ +
+ + Handling multi-valued metadata + + When working with multimedia content, it can happen that certain + attributes of a particular media resource are multi-valued. For example, + a particular video resource may have multiple URIs associated, considering + different resolutions, streaming protocols and/or formats. + + + Grilo provides plugin and application developers with means + to handle multi-valued properties. + + + One issue concerning multi-valued properties are their relations with + other properties. Following the example of the video resource with + multiple URIs, each of these URIs should have its own mime-type associated, + as well as its own width and height values. When dealing with multi-valued + properties it is necessary to make this relations among keys more explicit. + + + Grilo provides application and plugin developers with a high-level APIs to + handle certain relations among keys consistently. Continuing with the example + of the video resource with multiple URIs, there is + + grl_media_add_url_data + and + + grl_media_get_url_data_nth + to add and retrieve all the metadata + associated with a particular instance of the video resource (URI, mime-type, + framerate, width and height, etc) in one go. + + + Grilo allows plugin developers to define their own metadata keys. + In this case, the plugin developer must also provide information + on the relations that these keys hold with others. In this scenario + plugin developers must use GrlRelatedKeys objects to group related keys + together. + + + Here is a small program illustrating how get all available URLs from + a video resource, as well the corresponding MIME value for each one. + We use GrlRelatedKeys instead of the high-level API from GrlMedia + to illustrate how to use it: + + + + + + + For more information on how to operate with media objects + please check the + GrlData hierarchy + API reference. + +
+ +
+ + Efficient metadata resolution + + When executing operations that return lists of media items (like + Browse or Search) it is convenient to ensure that we do not + request metadata that could slow down the operation unless it + is really necessary. + + + A clear example of this situation is the way Youtube video + URLs are resolved: a browse operation on Youtube can usually + be resolved in a single HTTP query, however, if one wants to + obtain the URLs of the videos then for each video in the result + set another HTTP request is needed. This would slow down + the browse operation remarkably and would spam Youtube + with requests to obtain URLs that may not be ever needed. + Indeed, a normal player would browse a list of videos and show + information useful for the user to select the one he/she is + interested in (title, duration, artist, etc), the URL is not + interesting at this stage, it is only interesting when the user + selected a video to play, and we would be interested only + in that single URL and not in all the URLs of the videos + we are displaying. + + + Grilo provides methods to application developers to query + the keys (if any) that may have an impact on the performance + for a particular source (like the URL in the case of Youtube), + but it is usually easier to just use the GRL_RESOLVE_FAST_ONLY + flag when issuing Search, Browse or Query operations. + + + By using this flag, Grilo will resolve only the keys + that do not have an impact on performance. If you browse + Youtube with this flag Grilo won't request the URL key + to the Youtube source. However, if the source could resolve + the URL without performance penalties, it would do so + normally. + + + Usually, for operations like Browse or Search that operate + with large result sets it is recommended to use + GRL_RESOLVE_FAST_ONLY. If you really need to get the metadata + you requested for a specific item (for example if you want to + play a video from Youtube you really need the URL), then + you can safely use the Metadata operation without the + GRL_RESOLVE_FAST_ONLY flag, which would only operate on this + particular item, reducing the performance penalty and providing + a more efficient solution. + + + The program below demonstrates how this works, it accepts as + argument the id of the source we want to operate with, when the + source is registered it will issue a search operation requesting + only fast keys. When the search callback is invoked we will print + both the title information and the URL of the first media + that matched the search text. + + + If we run the program using grl-jamendo as target source, we will + see that it retrieves both the title and the URL of the media + immediately, however, if we use grl-youtube, it won't and in order + to obtain the URL we issue a new Metadata operation, this time + without the GRL_RESOLVE_FAST_ONLY flag. + + + Of course this is a very simple example, in a real application the way + this would work is that we would request the URL in a + Browse/Search that could return hundreds of results + and we may or may not get the URLs depending on the source + we are operating with, but in any case we will ensure the operation + will run as fast as possible: the user will see the results + of the search fast. Then, when the user selects + a media item to be played from that result set we would check if + we have the URL already (and we will have the URL ready if the source + could resolve it fast) in which case we can play the media right away (no + time penalty at all from the user point of view). If the URL could not + be resolved because it was slow for the source (like in the case of Youtube) + then we just have to issue a Metadata operation requesting the URL, + but that won't be too bad because we are requesting it only + for the item that the user selected, so from the user's perspective + the playback will take slightly more to start but would still + be an acceptable delay. + + + + +
+ +
+
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am new file mode 100644 index 0000000..bf467e5 --- /dev/null +++ b/doc/man/Makefile.am @@ -0,0 +1,14 @@ +# +# Makefile.am +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +dist_man1_MANS = grl-inspect-0.3.1 grl-launch-0.3.1 + +if BUILD_GRILO_TEST_UI +dist_man1_MANS += grilo-test-ui-0.3.1 +endif + +-include $(top_srcdir)/git.mk diff --git a/doc/man/Makefile.in b/doc/man/Makefile.in new file mode 100644 index 0000000..3cc2ebb --- /dev/null +++ b/doc/man/Makefile.in @@ -0,0 +1,583 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@BUILD_GRILO_TEST_UI_TRUE@am__append_1 = grilo-test-ui-0.3.1 +subdir = doc/man +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" +NROFF = nroff +MANS = $(dist_man1_MANS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +dist_man1_MANS = grl-inspect-0.3.1 grl-launch-0.3.1 $(am__append_1) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/man/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign doc/man/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-man1: $(dist_man1_MANS) + @$(NORMAL_INSTALL) + @list1='$(dist_man1_MANS)'; \ + list2=''; \ + test -n "$(man1dir)" \ + && test -n "`echo $$list1$$list2`" \ + || exit 0; \ + echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ + { for i in $$list1; do echo "$$i"; done; \ + if test -n "$$list2"; then \ + for i in $$list2; do echo "$$i"; done \ + | sed -n '/\.1[a-z]*$$/p'; \ + fi; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(MANS) +installdirs: + for dir in "$(DESTDIR)$(man1dir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-man + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: install-man1 + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-man + +uninstall-man: uninstall-man1 + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + cscopelist-am ctags-am distclean distclean-generic \ + distclean-libtool distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-man1 install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags-am uninstall uninstall-am uninstall-man \ + uninstall-man1 + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/man/grilo-test-ui-0.3.1 b/doc/man/grilo-test-ui-0.3.1 new file mode 100644 index 0000000..3f0fe41 --- /dev/null +++ b/doc/man/grilo-test-ui-0.3.1 @@ -0,0 +1,41 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH grilo-test-ui 1 "August 25, 2014" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +grilo-test-ui \- Grilo test UI +.SH SYNOPSIS +.B grilo-test-ui +.RI [ options ] +.SH DESCRIPTION +This manual page documents briefly the +.B grilo-test-ui +command. +.PP +\fBgrilo-test-ui\fP is a graphical interface for Grilo that allows the +user to perform queries and see their results. +.SH OPTIONS +.TP +.B \-h, \-\-help +Show summary of grilo-test-ui options. +.TP +.B \-\-help\-grl +Show summary of Grilo options. +.TP +.B \-\-help\-all +Show summary of all options. +.SH AUTHOR +This manual page was written by Alberto Garcia . diff --git a/doc/man/grl-inspect-0.3.1 b/doc/man/grl-inspect-0.3.1 new file mode 100644 index 0000000..f7b8f91 --- /dev/null +++ b/doc/man/grl-inspect-0.3.1 @@ -0,0 +1,58 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH grl-inspect 1 "June 28, 2011" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +grl-inspect \- show information about Grilo sources and keys +.SH SYNOPSIS +.B grl-inspect +.RI [ options ] +.RI [ source | key ] +.SH DESCRIPTION +This manual page documents briefly the +.B grl-inspect +command. +.PP +\fBgrl-inspect\fP is a tool that prints out information on available Grilo +sources and metadata keys. When executed with no SOURCE argument, grl-inspect +will print the list of all plugins and sources. When executed with a SOURCE, +grl-inspect will print information about that source. +.PP +Alternatively, using \fB-k\fP prints out information about the available +metadata keys. +.SH OPTIONS +.TP +.B \-h, \-\-help +Show summary of grl-inspect options. +.TP +.B \-\-help\-grl +Show summary of Grilo options. +.TP +.B \-\-help\-all +Show summary of all options. +.TP +.B \-k +Show information about metadata keys +.TP +.BI \-d,\ \-\-delay " seconds" +Wait for some seconds before showing results. Useful when plugins may +need some time for the source discovery process (example: UPnP). +If not specified, by default it waits 1 second. +.TP +.BI \-c,\ \-\-config " config-file" +Configuration file to use with the plugins. +.SH AUTHOR +This manual page was written by Alberto Garcia . diff --git a/doc/man/grl-launch-0.3.1 b/doc/man/grl-launch-0.3.1 new file mode 100644 index 0000000..7057160 --- /dev/null +++ b/doc/man/grl-launch-0.3.1 @@ -0,0 +1,117 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH grl-launch 1 "August 25, 2014" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +grl-launch \- run Grilo operations from the command line +.SH SYNOPSIS +.B grl-launch +.RI [ OPTIONS ] +.RI OPERATION +.RI PARAMETERS +.SH DESCRIPTION +This manual page documents briefly the +.B grl-launch +command. +.PP +\fBgrl-launch\fP is a tool that allows the user to run Grilo +operations from the command line. +.SH OPERATIONS +.TP +.BI browse "\| |\^" +.TP +.BI may_resolve "\| | []\^" +.TP +.BI query "\| \^" +.TP +.BI resolve "\| | []\^" +.TP +.BI search "\| \^" +.TP +.BI monitor "\| \^" +.TP +.BI test_media_from_uri "\| []\^" +.TP +.BI media_from_uri "\| \^" +.SH OPTIONS +.TP +.B \-h, \-\-help +Show summary of grl-launch options. +.TP +.B \-\-help\-grl +Show summary of Grilo options. +.TP +.B \-\-help\-all +Show summary of all options. +.TP +.B \-C, --config +Configuration file to send to sources +.TP +.B \-c, --count +Number of elements to return +.TP +.B \-d, --delay +Wait some seconds before performing the operation (default 1 second) +.TP +.B \-f, --flags=full|fast_only|idle_relay +List of comma-separated flags to use +.TP +.B \-F, --full +Full serialize +.TP +.B \-k, --keys +List of comma-separated keys to retrieve +.TP +.B \-S, --serialize +Serialize +.TP +.B \-s, --skip +Number of elements to skip +.TP +.B \-T, --titles +Print column titles (useful for CSV spreadsheets) +.TP +.B \-V, --version +Print version +.SH EXAMPLES +Print the ID for all the items searched in the Tracker source: +.PP +.nf +.RS +grl-launch-0.3 search "" -S grl-tracker-source +.RE +.fi +.PP +.TP +Print the ID and title for the items in the Apple Trailers source: +.PP +.nf +.RS +grl-launch-0.3 -k id,title browse grl-appletrailers-lua +.RE +.fi +.PP +.TP +Print the title for the videos indexed by Tracker: +.PP +.nf +.RS +grl-launch-0.3 -S browse -k title grlcontainer://grl-tracker-source/videos +.RE +.fi +.PP +.SH AUTHOR +This manual page was written by Alberto Garcia . diff --git a/doc/man/meson.build b/doc/man/meson.build new file mode 100644 index 0000000..1240357 --- /dev/null +++ b/doc/man/meson.build @@ -0,0 +1,14 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +manpages = [ + 'grilo-test-ui-0.3.1', + 'grl-inspect-0.3.1', + 'grl-launch-0.3.1', +] + +install_man(manpages) diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 0000000..6872d8c --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,12 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +subdir('man') + +if get_option('enable-gtk-doc') + subdir('grilo') +endif diff --git a/examples/Makefile.am b/examples/Makefile.am new file mode 100644 index 0000000..86d9c10 --- /dev/null +++ b/examples/Makefile.am @@ -0,0 +1,25 @@ +AM_CFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/src/data +LDADD = $(DEPS_LIBS) $(top_builddir)/src/lib@GRL_NAME@.la + +noinst_PROGRAMS = browsing configuring-plugins efficient-metadata-resolution \ + loading-plugins multivalues searching + +browsing_SOURCES = browsing.c + +if BUILD_GRILO_PLS +noinst_PROGRAMS += browsing-pls +browsing_pls_SOURCES = browsing-pls.c +browsing_pls_LDADD = $(LDADD) $(top_builddir)/libs/pls/libgrlpls-@GRL_MAJORMINOR@.la +endif + +configuring_plugins_SOURCES = configuring-plugins.c + +efficient_metadata_resolution_SOURCES = efficient-metadata-resolution.c + +loading_plugins_SOURCES = loading-plugins.c + +multivalues_SOURCES = multivalues.c + +searching_SOURCES = searching.c + +-include $(top_srcdir)/git.mk diff --git a/examples/Makefile.in b/examples/Makefile.in new file mode 100644 index 0000000..691a592 --- /dev/null +++ b/examples/Makefile.in @@ -0,0 +1,737 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +noinst_PROGRAMS = browsing$(EXEEXT) configuring-plugins$(EXEEXT) \ + efficient-metadata-resolution$(EXEEXT) \ + loading-plugins$(EXEEXT) multivalues$(EXEEXT) \ + searching$(EXEEXT) $(am__EXEEXT_1) +@BUILD_GRILO_PLS_TRUE@am__append_1 = browsing-pls +subdir = examples +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +@BUILD_GRILO_PLS_TRUE@am__EXEEXT_1 = browsing-pls$(EXEEXT) +PROGRAMS = $(noinst_PROGRAMS) +am_browsing_OBJECTS = browsing.$(OBJEXT) +browsing_OBJECTS = $(am_browsing_OBJECTS) +browsing_LDADD = $(LDADD) +am__DEPENDENCIES_1 = +browsing_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +am__browsing_pls_SOURCES_DIST = browsing-pls.c +@BUILD_GRILO_PLS_TRUE@am_browsing_pls_OBJECTS = \ +@BUILD_GRILO_PLS_TRUE@ browsing-pls.$(OBJEXT) +browsing_pls_OBJECTS = $(am_browsing_pls_OBJECTS) +am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +@BUILD_GRILO_PLS_TRUE@browsing_pls_DEPENDENCIES = \ +@BUILD_GRILO_PLS_TRUE@ $(am__DEPENDENCIES_2) \ +@BUILD_GRILO_PLS_TRUE@ $(top_builddir)/libs/pls/libgrlpls-@GRL_MAJORMINOR@.la +am_configuring_plugins_OBJECTS = configuring-plugins.$(OBJEXT) +configuring_plugins_OBJECTS = $(am_configuring_plugins_OBJECTS) +configuring_plugins_LDADD = $(LDADD) +configuring_plugins_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +am_efficient_metadata_resolution_OBJECTS = \ + efficient-metadata-resolution.$(OBJEXT) +efficient_metadata_resolution_OBJECTS = \ + $(am_efficient_metadata_resolution_OBJECTS) +efficient_metadata_resolution_LDADD = $(LDADD) +efficient_metadata_resolution_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +am_loading_plugins_OBJECTS = loading-plugins.$(OBJEXT) +loading_plugins_OBJECTS = $(am_loading_plugins_OBJECTS) +loading_plugins_LDADD = $(LDADD) +loading_plugins_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +am_multivalues_OBJECTS = multivalues.$(OBJEXT) +multivalues_OBJECTS = $(am_multivalues_OBJECTS) +multivalues_LDADD = $(LDADD) +multivalues_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +am_searching_OBJECTS = searching.$(OBJEXT) +searching_OBJECTS = $(am_searching_OBJECTS) +searching_LDADD = $(LDADD) +searching_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(browsing_SOURCES) $(browsing_pls_SOURCES) \ + $(configuring_plugins_SOURCES) \ + $(efficient_metadata_resolution_SOURCES) \ + $(loading_plugins_SOURCES) $(multivalues_SOURCES) \ + $(searching_SOURCES) +DIST_SOURCES = $(browsing_SOURCES) $(am__browsing_pls_SOURCES_DIST) \ + $(configuring_plugins_SOURCES) \ + $(efficient_metadata_resolution_SOURCES) \ + $(loading_plugins_SOURCES) $(multivalues_SOURCES) \ + $(searching_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/src/data +LDADD = $(DEPS_LIBS) $(top_builddir)/src/lib@GRL_NAME@.la +browsing_SOURCES = browsing.c +@BUILD_GRILO_PLS_TRUE@browsing_pls_SOURCES = browsing-pls.c +@BUILD_GRILO_PLS_TRUE@browsing_pls_LDADD = $(LDADD) $(top_builddir)/libs/pls/libgrlpls-@GRL_MAJORMINOR@.la +configuring_plugins_SOURCES = configuring-plugins.c +efficient_metadata_resolution_SOURCES = efficient-metadata-resolution.c +loading_plugins_SOURCES = loading-plugins.c +multivalues_SOURCES = multivalues.c +searching_SOURCES = searching.c +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign examples/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +browsing$(EXEEXT): $(browsing_OBJECTS) $(browsing_DEPENDENCIES) $(EXTRA_browsing_DEPENDENCIES) + @rm -f browsing$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(browsing_OBJECTS) $(browsing_LDADD) $(LIBS) + +browsing-pls$(EXEEXT): $(browsing_pls_OBJECTS) $(browsing_pls_DEPENDENCIES) $(EXTRA_browsing_pls_DEPENDENCIES) + @rm -f browsing-pls$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(browsing_pls_OBJECTS) $(browsing_pls_LDADD) $(LIBS) + +configuring-plugins$(EXEEXT): $(configuring_plugins_OBJECTS) $(configuring_plugins_DEPENDENCIES) $(EXTRA_configuring_plugins_DEPENDENCIES) + @rm -f configuring-plugins$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(configuring_plugins_OBJECTS) $(configuring_plugins_LDADD) $(LIBS) + +efficient-metadata-resolution$(EXEEXT): $(efficient_metadata_resolution_OBJECTS) $(efficient_metadata_resolution_DEPENDENCIES) $(EXTRA_efficient_metadata_resolution_DEPENDENCIES) + @rm -f efficient-metadata-resolution$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(efficient_metadata_resolution_OBJECTS) $(efficient_metadata_resolution_LDADD) $(LIBS) + +loading-plugins$(EXEEXT): $(loading_plugins_OBJECTS) $(loading_plugins_DEPENDENCIES) $(EXTRA_loading_plugins_DEPENDENCIES) + @rm -f loading-plugins$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(loading_plugins_OBJECTS) $(loading_plugins_LDADD) $(LIBS) + +multivalues$(EXEEXT): $(multivalues_OBJECTS) $(multivalues_DEPENDENCIES) $(EXTRA_multivalues_DEPENDENCIES) + @rm -f multivalues$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(multivalues_OBJECTS) $(multivalues_LDADD) $(LIBS) + +searching$(EXEEXT): $(searching_OBJECTS) $(searching_DEPENDENCIES) $(EXTRA_searching_DEPENDENCIES) + @rm -f searching$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(searching_OBJECTS) $(searching_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browsing-pls.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browsing.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configuring-plugins.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/efficient-metadata-resolution.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loading-plugins.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multivalues.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/searching.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ + clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ + ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/examples/browsing-pls.c b/examples/browsing-pls.c new file mode 100644 index 0000000..da5d31a --- /dev/null +++ b/examples/browsing-pls.c @@ -0,0 +1,247 @@ +/* + * Browsing in Grilo. + * Shows the first BROWSE_CHUNK_SIZE elements of each browsable source + * + * XXX: No pagination yet! See grilo-test-ui. It's somewhat complicated. + */ + +#include +#include +#include +#include +#include "../libs/pls/grl-pls.h" + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +#define BROWSE_CHUNK_SIZE 10 + +static void source_browser (gpointer data, + gpointer user_data); +static void element_browser (gpointer data, + gpointer user_data); + +static void +element_browser (gpointer data, + gpointer user_data) +{ + GrlMedia *media = GRL_MEDIA (data); + GrlSource *source = GRL_SOURCE (user_data); + + /* Check if we got a valid media object as some plugins may call the callback + with a NULL media under certain circumstances (for example when they + cannot estimate the number of remaining results and they find suddenly they + don't have any more results to send) */ + if (!media) { + g_debug ("Media element is NULL!"); + goto out; + } + + const gchar *title = grl_media_get_title (media); + + /* If the media is a container, that means we will browse it again */ + if (grl_media_is_container (media)) { + guint childcount = grl_media_get_childcount (media); + g_debug ("\t Got '%s' (container with %d elements)", title, childcount); + + source_browser (source, media); + } else { + const gchar *url = grl_media_get_url (media); + const gchar *mime = grl_media_get_mime (media); + GDateTime *date = grl_media_get_modification_date (media); + time_t rawdate = g_date_time_to_unix(date); + g_printf ("\t Got '%s', of type '%s', ctime is '%s'\n", title, mime, ctime(&rawdate)); + g_printf ("\t\t URL: %s\n", url); + } + +out: + g_object_unref (media); +} + +static void +source_browser (gpointer data, + gpointer user_data) +{ + GrlSource *source = GRL_SOURCE (data); + GrlMedia *media = GRL_MEDIA (user_data); + GList *media_elements; + GError *error = NULL; + GList *keys; + GrlOperationOptions *options = NULL; + GrlCaps *caps; + + keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_URL, + GRL_METADATA_KEY_MODIFICATION_DATE, + GRL_METADATA_KEY_MIME, + GRL_METADATA_KEY_CHILDCOUNT, + NULL); + + g_debug ("Detected new source available: '%s'", + grl_source_get_name (source)); + + if (!(grl_source_supported_operations (source) & GRL_OP_BROWSE)) + goto out; + + g_debug ("Browsing source: %s", grl_source_get_name (source)); + /* Here is how you can browse a source, you have to provide: + 1) The source you want to browse contents from. + 2) The container object you want to browse (NULL for the root container) + 3) A list of metadata keys we are interested in. + 4) Options to control certain aspects of the browse operation. + 5) A callback that the framework will invoke for each available result + 6) User data for the callback + It returns an operation identifier that you can use to match results + with the corresponding request (we ignore it here) */ + + caps = grl_source_get_caps (source, GRL_OP_BROWSE); + options = grl_operation_options_new (caps); + grl_operation_options_set_count (options, BROWSE_CHUNK_SIZE); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); + media_elements = grl_pls_browse_sync (GRL_SOURCE (source), + media, keys, + options, + NULL, + &error); + if (!media_elements) { + g_debug ("No elements found for source: %s!", + grl_source_get_name (source)); + goto out; + } + + if (error) + g_error ("Failed to browse source: %s", error->message); + + g_list_foreach (media_elements, element_browser, source); + +out: + g_list_free (keys); + g_clear_object (&options); +} + +static void +load_plugins (gchar* playlist) +{ + GrlRegistry *registry; + GrlSource *source; + GError *error = NULL; + GList *keys; + GrlOperationOptions *options; + GrlCaps *caps; + GrlMedia* media; + gboolean pls_media; + const gchar *mime; + + registry = grl_registry_get_default (); + grl_registry_load_all_plugins (registry, FALSE, NULL); + + /* Activate plugin */ + if (!grl_registry_activate_plugin_by_id (registry, "grl-filesystem", &error)) + g_error ("Failed to load plugin: %s", error->message); + + source = grl_registry_lookup_source (registry, "grl-filesystem"); + if (!source) + g_error ("Unable to load grl-filesystem plugin"); + + if (!(grl_source_supported_operations (source) & GRL_OP_MEDIA_FROM_URI)) + g_error ("Unable to get media from URI"); + + keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, GRL_METADATA_KEY_URL, GRL_METADATA_KEY_MIME, NULL); + if (!keys) + g_error ("Unable to create key list"); + + caps = grl_source_get_caps (source, GRL_OP_MEDIA_FROM_URI); + if (!caps) + g_error ("Unable to get source caps"); + + options = grl_operation_options_new (caps); + if (!options) + g_error ("Unable to create operation options"); + + media = grl_source_get_media_from_uri_sync (source, playlist, keys, options, &error); + if (!media) + g_error ("Unable to get GrlMedia for playlist %s", playlist); + + g_object_unref (options); + + mime = grl_media_get_mime (media); + + pls_media = grl_pls_media_is_playlist (media); + + g_printf("Got Media for %s - mime=%s\n", playlist, mime); + g_printf("\tgrl_pls_media_is_playlist = %d\n", pls_media); + + if (pls_media) { + source_browser (source, media); + } + + g_object_unref (media); + g_object_unref (source); +} + +static void +config_plugins (gchar* chosen_test_path) +{ + GrlRegistry *registry; + GrlConfig *config; + + registry = grl_registry_get_default (); + + /* Configure plugin */ + config = grl_config_new ("grl-filesystem", "Filesystem"); + grl_config_set_string (config, "base-path", chosen_test_path); + grl_registry_add_config (registry, config, NULL); + + g_printf ("config_plugin with %s\n", chosen_test_path); +} + +gint +main (int argc, + gchar *argv[]) +{ + gchar *chosen_test_path; + gchar *file_uri; + GError *error = NULL; + + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + + if (argc != 2) { + g_printf ("Usage: %s \n", argv[0]); + return 1; + } + + chosen_test_path = argv[1]; + GFile *file = g_file_new_for_path (chosen_test_path); + if (!file) { + g_printf ("Invalid file/directory %s\n", argv[1]); + return 1; + } + + GFileInfo *info = g_file_query_info (file, + G_FILE_ATTRIBUTE_STANDARD_TYPE, + 0, + NULL, + &error); + if (!info) { + g_printf ("Invalid file/directory information\n"); + return 1; + } + + if (g_file_info_get_file_type (info) != G_FILE_TYPE_REGULAR) { + return 1; + } + + gchar *dirname = g_path_get_dirname(chosen_test_path); + config_plugins (dirname); + g_free (dirname); + + file_uri = g_filename_to_uri (chosen_test_path, NULL, &error); + + g_object_unref (file); + g_object_unref (info); + load_plugins (file_uri); + g_free (file_uri); + + return 0; +} diff --git a/examples/browsing.c b/examples/browsing.c new file mode 100644 index 0000000..9e49fc2 --- /dev/null +++ b/examples/browsing.c @@ -0,0 +1,137 @@ + +/* + * Browsing in Grilo. + * Shows the first 5 elements of each browsable source + */ + +#include + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +/* This callback is invoked for each result that matches our + browse operation. The arguments are: + 1) The source we obtained the content from. + 2) The operation identifier this result relates to. + 3) A media object representing content that matched the browse operation. + 4) Estimation of the number of remaining media objects that will be sent + after this one as part of the same resultset (0 means that the browse + operation is finished). + 5) User data passed to the grl_media_source_browse method. + 6) A GError if an error happened, NULL otherwise */ +static void +browse_cb (GrlSource *source, + guint browse_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + /* First we check if the operation failed for some reason */ + if (error) { + g_error ("Browse operation failed. Reason: %s", error->message); + } + + /* Check if we received a valid media object as some plugins may call the callback + with a NULL media under certain circumstances (for example when they + cannot estimate the number of remaining results and they find suddenly they + don't have any more results to send) */ + if (media) { + /* Get the metadata we are interested in */ + const gchar *title = grl_media_get_title (media); + + /* If the media is a container that means we could + browse it again (that is, we could use it as the second parameter + of the grl_media_source_browse method) */ + if (grl_media_is_container (media)) { + guint childcount = grl_media_get_childcount (media); + g_debug ("\t Got '%s' (container with %d elements)", title, childcount); + } else { + guint seconds = grl_media_get_duration (media); + const gchar *url = grl_media_get_url (media); + g_debug ("\t Got '%s' (media - length: %d seconds)", title, seconds); + g_debug ("\t\t URL: %s", url); + } + g_object_unref (media); + } + + /* Check if this was the last result */ + if (remaining == 0) { + g_debug ("Browse operation finished!"); + } +} + +static void +source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + static gboolean first = TRUE; + GList * keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_DURATION, + GRL_METADATA_KEY_URL, + GRL_METADATA_KEY_CHILDCOUNT, + GRL_METADATA_KEY_INVALID); + g_debug ("Detected new source available: '%s'", + grl_source_get_name (source)); + + /* We will just issue a browse operation on the first browseble + source we find */ + if (first && + grl_source_supported_operations (source) & GRL_OP_BROWSE) { + GrlOperationOptions *options; + GrlCaps *caps; + first = FALSE; + g_debug ("Browsing source: %s", grl_source_get_name (source)); + /* Here is how you can browse a source, you have to provide: + 1) The source you want to browse contents from. + 2) The container object you want to browse (NULL for the root container) + 3) A list of metadata keys we are interested in. + 4) Options to control certain aspects of the browse operation. + 5) A callback that the framework will invoke for each available result + 6) User data for the callback + It returns an operation identifier that you can use to match results + with the corresponding request (we ignore it here) */ + + caps = grl_source_get_caps (source, GRL_OP_BROWSE); + options = grl_operation_options_new (caps); + grl_operation_options_set_count (options, 5); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); + + grl_source_browse (source, + NULL, + keys, + options, + browse_cb, + NULL); + g_object_unref (caps); + g_object_unref (options); + } + + g_list_free (keys); +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + GError *error = NULL; + + registry = grl_registry_get_default (); + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + if (!grl_registry_load_all_plugins (registry, TRUE, &error)) { + g_error ("Failed to load plugins: %s", error->message); + } +} + +gint +main (int argc, gchar *argv[]) +{ + GMainLoop *loop; + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + load_plugins (); + loop = g_main_loop_new (NULL, FALSE); + g_main_loop_run (loop); + grl_deinit (); + return 0; +} diff --git a/examples/configuring-plugins.c b/examples/configuring-plugins.c new file mode 100644 index 0000000..390896d --- /dev/null +++ b/examples/configuring-plugins.c @@ -0,0 +1,71 @@ + +/* + * Configuring plugins in Grilo. + * Shows how to configure the Youtube plugin. + */ + +#include + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +static void +source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + /* If the Youtube plugin is installed, you should see it here now! */ + g_debug ("Detected new source available: '%s'", + grl_source_get_name (source)); +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + GError *error = NULL; + + registry = grl_registry_get_default (); + + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + + if (!grl_registry_load_all_plugins (registry, TRUE, &error)) { + g_error ("Failed to load plugins: %s", error->message); + } +} + +static void +configure_plugins (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + /* Let's configure only the Youtube plugin (only requires an API key) */ + config = grl_config_new ("grl-youtube", NULL); + grl_config_set_api_key (config, + "AI39si4EfscPllSfUy1IwexMf__kntTL_G5dfSr2iUEVN45RHG" + "q92Aq0lX25OlnOkG6KTN-4soVAkAf67fWYXuHfVADZYr7S1A"); + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); + + /* When the plugin is loaded, the framework will provide + this configuration for it */ +} + +gint +main (int argc, gchar *argv[]) +{ + GMainLoop *loop; + + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + configure_plugins (); /* Configure plugins */ + load_plugins (); /* Load Grilo plugins */ + + /* Run the main loop */ + loop = g_main_loop_new (NULL, FALSE); + g_main_loop_run (loop); + + grl_deinit (); + + return 0; +} diff --git a/examples/efficient-metadata-resolution.c b/examples/efficient-metadata-resolution.c new file mode 100644 index 0000000..18deb09 --- /dev/null +++ b/examples/efficient-metadata-resolution.c @@ -0,0 +1,167 @@ + +/* + * Shows how to get content in an efficient way. + * Search 'rock' content in all searchable sources. + */ + +#include +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +const gchar *target_source_id = NULL; + +static void +resolve_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + if (error) + g_error ("Resolve operation failed. Reason: %s", error->message); + + const gchar *url = grl_media_get_url (media); + g_debug ("\tURL: %s", url); + g_object_unref (media); + exit (0); +} + +static void +search_cb (GrlSource *source, + guint browse_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + if (error) + g_error ("Search operation failed. Reason: %s", error->message); + + if (!media) { + g_error ("No media items found matching the text \"rock\"!"); + return; + } + + g_debug ("Got matching media from %s. Details:", target_source_id); + const gchar *title = grl_media_get_title (media); + g_debug ("\tTitle: %s", title); + const gchar *url = grl_media_get_url (media); + if (url) { + g_debug ("\tURL: %s:", url); + g_object_unref (media); + exit (0); + } else { + g_debug ("URL no available, trying with slow keys now"); + GrlOperationOptions *options; + GrlCaps *caps; + GList *keys = grl_metadata_key_list_new (GRL_METADATA_KEY_URL, GRL_METADATA_KEY_INVALID); + + caps = grl_source_get_caps (source, GRL_OP_RESOLVE); + options = grl_operation_options_new (caps); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); + grl_source_resolve (source, + media, + keys, + options, + resolve_cb, + NULL); + g_object_unref (caps); + g_object_unref (options); + g_list_free (keys); + } +} + +static void +source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + const gchar *source_id = grl_source_get_id (source); + GrlCaps *caps; + GrlOperationOptions *options; + + /* We are looking for one source in particular */ + if (strcmp (source_id, target_source_id)) + return; + + GList *keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_URL, + GRL_METADATA_KEY_INVALID); + + /* The source must be searchable */ + if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH)) + g_error ("Source %s is not searchable!", source_id); + + caps = grl_source_get_caps (source, GRL_OP_SEARCH); + options = grl_operation_options_new (caps); + grl_operation_options_set_count (options, 5); + grl_operation_options_set_resolution_flags (options, + GRL_RESOLVE_IDLE_RELAY + | GRL_RESOLVE_FAST_ONLY); + + /* Retrieve the first media from the source matching the text "rock" */ + g_debug ("Searching \"rock\" in \"%s\"", source_id); + grl_source_search (source, + "rock", + keys, + options, + search_cb, + NULL); + g_object_unref (caps); + g_object_unref (options); + g_list_free (keys); +} + +static void +configure_plugins (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + /* Let's configure only the Youtube plugin (only requires an API key) */ + config = grl_config_new ("grl-youtube", NULL); + grl_config_set_api_key (config, + "AI39si4EfscPllSfUy1IwexMf__kntTL_G5dfSr2iUEVN45RHG" + "q92Aq0lX25OlnOkG6KTN-4soVAkAf67fWYXuHfVADZYr7S1A"); + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + GError *error = NULL; + + registry = grl_registry_get_default (); + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + if (!grl_registry_load_all_plugins (registry, TRUE, &error)) { + g_error ("Failed to load plugins: %s", error->message); + } +} + +gint +main (int argc, gchar *argv[]) +{ + GMainLoop *loop; + grl_init (&argc, &argv); + + if (argc != 2) { + g_print ("Please specify id of the source to search " \ + "(example: grl-youtube)\n"); + exit (1); + } else { + target_source_id = argv[1]; + } + + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + configure_plugins (); + load_plugins (); + loop = g_main_loop_new (NULL, FALSE); + g_main_loop_run (loop); + grl_deinit (); + + return 0; +} diff --git a/examples/loading-plugins.c b/examples/loading-plugins.c new file mode 100644 index 0000000..fa61a65 --- /dev/null +++ b/examples/loading-plugins.c @@ -0,0 +1,73 @@ + +/* + * Loading plugins in Grilo. + * Tracks sources adding and removing + */ + +#include + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +static void +source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + g_debug ("Detected new source available: '%s'", + grl_source_get_name (source)); + + /* Usually you may add the new service to the user interface so the user + can interact with it (browse, search, etc) */ +} + +static void +source_removed_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + g_debug ("Source '%s' is gone", + grl_source_get_name (source)); + + /* Usually you would inform the user that this service is no longer + available (for example a UPnP server was shutdown) and remove it + from the user interface. */ +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + GError *error = NULL; + + registry = grl_registry_get_default (); + + /* These callback will be invoked when media providers + are loaded/unloaded */ + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + g_signal_connect (registry, "source-removed", + G_CALLBACK (source_removed_cb), NULL); + + /* Command the registry to load all available plugins. + The registry will look for plugins in the default + plugin path and directories specified using the + GRL_PLUGIN_PATH environment variable */ + if (!grl_registry_load_all_plugins (registry, TRUE, &error)) { + g_error ("Failed to load plugins: %s", error->message); + } +} + +gint +main (int argc, gchar *argv[]) +{ + GMainLoop *loop; + + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + load_plugins (); /* Load Grilo plugins */ + + /* Run the main loop */ + loop = g_main_loop_new (NULL, FALSE); + g_main_loop_run (loop); + + grl_deinit (); + + return 0; +} diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 0000000..8cd85c7 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,32 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +examples = [ + 'browsing', + 'configuring-plugins', + 'efficient-metadata-resolution', + 'loading-plugins', + 'multivalues', + 'searching', +] + +foreach e: examples + source = e + '.c' + executable(e, + source, + install: false, + link_with: libgrl, + dependencies: libgrl_dep) +endforeach + +if enable_grlpls + executable('browsing-pls', + 'browsing-pls.c', + install: false, + link_with: [libgrl, libgrlpls], + dependencies: libgrl_dep) +endif diff --git a/examples/multivalues.c b/examples/multivalues.c new file mode 100644 index 0000000..d474ae2 --- /dev/null +++ b/examples/multivalues.c @@ -0,0 +1,133 @@ + +/* + * Handling multivalued elements in Grilo. + * Search all 'rock' content in Youtube, and for each one prints the available + * URLs. + */ + +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +static void +search_cb (GrlSource *source, + guint browse_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + guint i; + GrlRelatedKeys *url_info; + + if (error) { + g_error ("Search operation failed. Reason: %s", error->message); + } + + if (media) { + /* Look through all available URLs for this video resource */ + for (i = 0; i < grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_URL); i++) { + /* Here we use the low-level GrlRelatedKeys API for demonstration purposes only, + but we could have just used the more convenient + grl_media_video_get_url_data_nth() API instead in this case */ + url_info = grl_data_get_related_keys (GRL_DATA (media), GRL_METADATA_KEY_URL, i); + g_debug ("\t [%s] Got url '%s' and mime-type '%s'", + grl_media_get_id (media), + grl_related_keys_get_string (url_info, GRL_METADATA_KEY_URL), + grl_related_keys_get_string (url_info, GRL_METADATA_KEY_MIME)); + } + } + + if (remaining == 0) { + g_debug ("Search operation finished!"); + } + + g_object_unref (media); +} + +static void +source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + const gchar *id; + GrlCaps *caps; + GrlOperationOptions *options; + GList * keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_URL, + GRL_METADATA_KEY_MIME, + GRL_METADATA_KEY_INVALID); + + /* Not interested if not searchable */ + if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH)) + return; + + g_debug ("Detected new searchable source available: '%s'", + grl_source_get_name (source)); + + /* Only interested in Youtube */ + id = grl_source_get_id (source); + if (strcmp (id, "grl-youtube")) + return; + + caps = grl_source_get_caps (source, GRL_OP_SEARCH); + options = grl_operation_options_new (caps); + grl_operation_options_set_skip (options, 0); + grl_operation_options_set_count (options, 5); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); + + g_debug ("Searching \"rock\" in Youtube"); + grl_source_search (source, + "rock", + keys, + options, + search_cb, + NULL); + + g_object_unref (options); + g_object_unref (caps); + + g_list_free (keys); +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + GError *error = NULL; + + registry = grl_registry_get_default (); + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + if (!grl_registry_load_all_plugins (registry, TRUE, &error)) { + g_error ("Failed to load plugins: %s", error->message); + } +} + +static void +configure_plugins (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + config = grl_config_new ("grl-youtube", NULL); + grl_config_set_api_key (config, + "AI39si4EfscPllSfUy1IwexMf__kntTL_G5dfSr2iUEVN45RHG" + "q92Aq0lX25OlnOkG6KTN-4soVAkAf67fWYXuHfVADZYr7S1A"); + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +gint +main (int argc, gchar *argv[]) +{ + GMainLoop *loop; + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + configure_plugins (); + load_plugins (); + loop = g_main_loop_new (NULL, FALSE); + g_main_loop_run (loop); + grl_deinit (); + return 0; +} diff --git a/examples/searching.c b/examples/searching.c new file mode 100644 index 0000000..9f20c1f --- /dev/null +++ b/examples/searching.c @@ -0,0 +1,111 @@ + +/* + * Searching in Grilo. + * Search all media in Jamendo with the word 'rock'. + */ + +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT example_log_domain +GRL_LOG_DOMAIN_STATIC(example_log_domain); + +static void +search_cb (GrlSource *source, + guint browse_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + if (error) { + g_error ("Search operation failed. Reason: %s", error->message); + } + + if (media) { + const gchar *title = grl_media_get_title (media); + if (grl_media_is_container (media)) { + guint childcount = grl_media_get_childcount (media); + g_debug ("\t Got '%s' (container with %d elements)", title, childcount); + } else { + guint seconds = grl_media_get_duration (media); + const gchar *url = grl_media_get_url (media); + g_debug ("\t Got '%s' (media - length: %d seconds)", title, seconds); + g_debug ("\t\t URL: %s", url); + } + } + + if (remaining == 0) { + g_debug ("Search operation finished!"); + } else { + g_debug ("\t%d results remaining!", remaining); + } + + g_object_unref (media); +} + +static void +source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) +{ + const gchar *id; + GrlCaps *caps; + GrlOperationOptions *options; + GList * keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_DURATION, + GRL_METADATA_KEY_CHILDCOUNT, + GRL_METADATA_KEY_INVALID); + + /* Not interested if not searchable */ + if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH)) + return; + + g_debug ("Detected new searchable source available: '%s'", + grl_source_get_name (source)); + + /* Only interested in Jamendo */ + id = grl_source_get_id (source); + if (strcmp (id, "grl-jamendo")) + return; + + caps = grl_source_get_caps (source, GRL_OP_SEARCH); + options = grl_operation_options_new (caps); + grl_operation_options_set_count (options, 5); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); + + g_debug ("Searching \"rock\" in Jamendo"); + grl_source_search (source, + "rock", + keys, + options, + search_cb, + NULL); + + g_list_free (keys); +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + GError *error = NULL; + + registry = grl_registry_get_default (); + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + if (!grl_registry_load_all_plugins (registry, TRUE, &error)) { + g_error ("Failed to load plugins: %s", error->message); + } +} + +gint +main (int argc, gchar *argv[]) +{ + GMainLoop *loop; + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (example_log_domain, "example"); + load_plugins (); + loop = g_main_loop_new (NULL, FALSE); + g_main_loop_run (loop); + grl_deinit (); + return 0; +} diff --git a/grilo-0.3.pc.in b/grilo-0.3.pc.in new file mode 100644 index 0000000..b51cb08 --- /dev/null +++ b/grilo-0.3.pc.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/@GRL_NAME@ +plugindir=@GRL_PLUGINS_DIR@ +datarootdir=${prefix}/share +datadir=${datarootdir} +girdir=@INTROSPECTION_GIRDIR@ +typelibdir=@INTROSPECTION_TYPELIBDIR@ + +Name: Grilo Framework +Description: Grilo Framework for multimedia developers +Version: @VERSION@ +Libs: -L${libdir} -l@GRL_NAME@ +Cflags: -I${includedir} +Requires: glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 libxml-2.0 +Requires.Private: diff --git a/grilo-net-0.3.pc.in b/grilo-net-0.3.pc.in new file mode 100644 index 0000000..8f2dc16 --- /dev/null +++ b/grilo-net-0.3.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/@GRL_NAME@ +datarootdir=${prefix}/share +datadir=${datarootdir} +girdir=@INTROSPECTION_GIRDIR@ +typelibdir=@INTROSPECTION_TYPELIBDIR@ + +Name: Grilo networking library +Description: Grilo networking helpers for plug-ins +Requires: @GRL_NAME@ +Version: @GRLNET_VERSION@ +Libs: -L${libdir} -lgrlnet-0.3 +Cflags: -I${includedir} diff --git a/grilo-net-uninstalled.pc.in b/grilo-net-uninstalled.pc.in new file mode 100644 index 0000000..0452707 --- /dev/null +++ b/grilo-net-uninstalled.pc.in @@ -0,0 +1,15 @@ +# the standard variables don't make sense for an uninstalled copy +prefix= +exec_prefix= +libdir= +includedir= +girdir=@abs_top_builddir@/libs/ +typelibdir=@abs_top_builddir@/libs + +Name: Grilo networking library +Description: Grilo networking helpers for plug-ins +Requires: @GRL_NAME@ +Version: @GRLNET_VERSION@ + +Libs: @abs_top_builddir@/libs/net/libgrlnet-0.3.la +Cflags: -I@abs_top_srcdir@/libs -I@abs_top_builddir@/libs diff --git a/grilo-pls-0.3.pc.in b/grilo-pls-0.3.pc.in new file mode 100644 index 0000000..88fadaa --- /dev/null +++ b/grilo-pls-0.3.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/@GRL_NAME@ +datarootdir=${prefix}/share +datadir=${datarootdir} +girdir=@INTROSPECTION_GIRDIR@ +typelibdir=@INTROSPECTION_TYPELIBDIR@ + +Name: Grilo playlist library +Description: Grilo playlist utility +Requires: @GRL_NAME@ +Version: @GRLPLS_VERSION@ +Libs: -L${libdir} -lgrlpls-0.3 +Cflags: -I${includedir} diff --git a/grilo-pls-uninstalled.pc.in b/grilo-pls-uninstalled.pc.in new file mode 100644 index 0000000..326e6a6 --- /dev/null +++ b/grilo-pls-uninstalled.pc.in @@ -0,0 +1,15 @@ +# the standard variables don't make sense for an uninstalled copy +prefix= +exec_prefix= +libdir= +includedir= +girdir=@abs_top_builddir@/libs/ +typelibdir=@abs_top_builddir@/libs + +Name: Grilo playlist library +Description: Grilo playlist utility +Requires: @GRL_NAME@ +Version: @GRLPLS_VERSION@ + +Libs: @abs_top_builddir@/libs/pls/libgrlpls-0.3.la +Cflags: -I@abs_top_srcdir@/libs -I@abs_top_builddir@/libs diff --git a/grilo-uninstalled.pc.in b/grilo-uninstalled.pc.in new file mode 100644 index 0000000..094f9bd --- /dev/null +++ b/grilo-uninstalled.pc.in @@ -0,0 +1,17 @@ +# the standard variables don't make sense for an uninstalled copy +prefix= +exec_prefix= +libdir= +includedir=@abs_top_builddir@/src +plugindir=@abs_top_builddir@ +girdir=@abs_top_builddir@/src +typelibdir=@abs_top_builddir@/src + +Name: Grilo Framework +Description: Grilo Framework for multimedia developers, Not Installed +Version: @VERSION@ +Libs: @abs_top_builddir@/src/lib@GRL_NAME@.la +Cflags: -I@abs_top_srcdir@/src -I@abs_top_srcdir@/src/data +Requires: glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 libxml-2.0 +Requires.Private: + diff --git a/gtk-doc.make b/gtk-doc.make new file mode 100644 index 0000000..f87eaab --- /dev/null +++ b/gtk-doc.make @@ -0,0 +1,320 @@ +# -*- mode: makefile -*- +# +# gtk-doc.make - make rules for gtk-doc +# Copyright (C) 2003 James Henstridge +# 2004-2007 Damon Chaplin +# 2007-2017 Stefan Sauer +# +# 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 3 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, see . + +#################################### +# Everything below here is generic # +#################################### + +if GTK_DOC_USE_LIBTOOL +GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) +GTKDOC_RUN = $(LIBTOOL) --mode=execute +else +GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) +GTKDOC_RUN = +endif + +# We set GPATH here; this gives us semantics for GNU make +# which are more like other make's VPATH, when it comes to +# whether a source that is a target of one rule is then +# searched for in VPATH/GPATH. +# +GPATH = $(srcdir) + +TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) + +SETUP_FILES = \ + $(content_files) \ + $(expand_content_files) \ + $(DOC_MAIN_SGML_FILE) \ + $(DOC_MODULE)-sections.txt \ + $(DOC_MODULE)-overrides.txt + +EXTRA_DIST = \ + $(HTML_IMAGES) \ + $(SETUP_FILES) + +DOC_STAMPS=setup-build.stamp scan-build.stamp sgml-build.stamp \ + html-build.stamp pdf-build.stamp \ + sgml.stamp html.stamp pdf.stamp + +SCANOBJ_FILES = \ + $(DOC_MODULE).args \ + $(DOC_MODULE).hierarchy \ + $(DOC_MODULE).interfaces \ + $(DOC_MODULE).prerequisites \ + $(DOC_MODULE).signals + +REPORT_FILES = \ + $(DOC_MODULE)-undocumented.txt \ + $(DOC_MODULE)-undeclared.txt \ + $(DOC_MODULE)-unused.txt + +gtkdoc-check.test: Makefile + $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ + echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \ + chmod +x $@ + +CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test + +if GTK_DOC_BUILD_HTML +HTML_BUILD_STAMP=html-build.stamp +else +HTML_BUILD_STAMP= +endif +if GTK_DOC_BUILD_PDF +PDF_BUILD_STAMP=pdf-build.stamp +else +PDF_BUILD_STAMP= +endif + +all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) +.PHONY: all-gtk-doc + +if ENABLE_GTK_DOC +all-local: all-gtk-doc +endif + +docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) + +$(REPORT_FILES): sgml-build.stamp + +#### setup #### + +GTK_DOC_V_SETUP=$(GTK_DOC_V_SETUP_@AM_V@) +GTK_DOC_V_SETUP_=$(GTK_DOC_V_SETUP_@AM_DEFAULT_V@) +GTK_DOC_V_SETUP_0=@echo " DOC Preparing build"; + +setup-build.stamp: + -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ + files=`echo $(SETUP_FILES) $(DOC_MODULE).types`; \ + if test "x$$files" != "x" ; then \ + for file in $$files ; do \ + destdir=`dirname $(abs_builddir)/$$file`; \ + test -d "$$destdir" || mkdir -p "$$destdir"; \ + test -f $(abs_srcdir)/$$file && \ + cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ + done; \ + fi; \ + fi + $(AM_V_at)touch setup-build.stamp + +#### scan #### + +GTK_DOC_V_SCAN=$(GTK_DOC_V_SCAN_@AM_V@) +GTK_DOC_V_SCAN_=$(GTK_DOC_V_SCAN_@AM_DEFAULT_V@) +GTK_DOC_V_SCAN_0=@echo " DOC Scanning header files"; + +GTK_DOC_V_INTROSPECT=$(GTK_DOC_V_INTROSPECT_@AM_V@) +GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_@AM_DEFAULT_V@) +GTK_DOC_V_INTROSPECT_0=@echo " DOC Introspecting gobjects"; + +scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB) + $(GTK_DOC_V_SCAN)_source_dir='' ; \ + for i in $(DOC_SOURCE_DIR) ; do \ + _source_dir="$${_source_dir} --source-dir=$$i" ; \ + done ; \ + gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) + $(GTK_DOC_V_INTROSPECT)if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ + scanobj_options=""; \ + gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ + if test "$$?" = "0"; then \ + if test "x$(V)" = "x1"; then \ + scanobj_options="--verbose"; \ + fi; \ + fi; \ + CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ + gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ + else \ + for i in $(SCANOBJ_FILES) ; do \ + test -f $$i || touch $$i ; \ + done \ + fi + $(AM_V_at)touch scan-build.stamp + +$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp + @true + +#### xml #### + +GTK_DOC_V_XML=$(GTK_DOC_V_XML_@AM_V@) +GTK_DOC_V_XML_=$(GTK_DOC_V_XML_@AM_DEFAULT_V@) +GTK_DOC_V_XML_0=@echo " DOC Building XML"; + +sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent + $(GTK_DOC_V_XML)_source_dir='' ; \ + for i in $(DOC_SOURCE_DIR) ; do \ + _source_dir="$${_source_dir} --source-dir=$$i" ; \ + done ; \ + gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) + $(AM_V_at)touch sgml-build.stamp + +sgml.stamp: sgml-build.stamp + @true + +$(DOC_MAIN_SGML_FILE): sgml-build.stamp + @true + +xml/gtkdocentities.ent: Makefile + $(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + echo ""; \ + ) > $@ + +#### html #### + +GTK_DOC_V_HTML=$(GTK_DOC_V_HTML_@AM_V@) +GTK_DOC_V_HTML_=$(GTK_DOC_V_HTML_@AM_DEFAULT_V@) +GTK_DOC_V_HTML_0=@echo " DOC Building HTML"; + +GTK_DOC_V_XREF=$(GTK_DOC_V_XREF_@AM_V@) +GTK_DOC_V_XREF_=$(GTK_DOC_V_XREF_@AM_DEFAULT_V@) +GTK_DOC_V_XREF_0=@echo " DOC Fixing cross-references"; + +html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) + $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \ + mkhtml_options=""; \ + gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ + if test "$$?" = "0"; then \ + if test "x$(V)" = "x1"; then \ + mkhtml_options="$$mkhtml_options --verbose"; \ + fi; \ + fi; \ + gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ + if test "$$?" = "0"; then \ + mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ + fi; \ + cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) + -@test "x$(HTML_IMAGES)" = "x" || \ + for file in $(HTML_IMAGES) ; do \ + test -f $(abs_srcdir)/$$file && cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ + test -f $(abs_builddir)/$$file && cp $(abs_builddir)/$$file $(abs_builddir)/html; \ + done; + $(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) + $(AM_V_at)touch html-build.stamp + +#### pdf #### + +GTK_DOC_V_PDF=$(GTK_DOC_V_PDF_@AM_V@) +GTK_DOC_V_PDF_=$(GTK_DOC_V_PDF_@AM_DEFAULT_V@) +GTK_DOC_V_PDF_0=@echo " DOC Building PDF"; + +pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) + $(GTK_DOC_V_PDF)rm -f $(DOC_MODULE).pdf && \ + mkpdf_options=""; \ + gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ + if test "$$?" = "0"; then \ + if test "x$(V)" = "x1"; then \ + mkpdf_options="$$mkpdf_options --verbose"; \ + fi; \ + fi; \ + if test "x$(HTML_IMAGES)" != "x"; then \ + for img in $(HTML_IMAGES); do \ + part=`dirname $$img`; \ + echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ + if test $$? != 0; then \ + mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ + fi; \ + done; \ + fi; \ + gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) + $(AM_V_at)touch pdf-build.stamp + +############## + +clean-local: + @rm -f *~ *.bak + @rm -rf .libs + @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \ + rm -f $(DOC_MODULE).types; \ + fi + @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-sections" ; then \ + rm -f $(DOC_MODULE)-sections.txt; \ + fi + +distclean-local: + @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ + $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt + @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ + rm -f $(SETUP_FILES) $(DOC_MODULE).types; \ + fi + +maintainer-clean-local: + @rm -rf xml html + +install-data-local: + @installfiles=`echo $(builddir)/html/*`; \ + if test "$$installfiles" = '$(builddir)/html/*'; \ + then echo 1>&2 'Nothing to install' ; \ + else \ + if test -n "$(DOC_MODULE_VERSION)"; then \ + installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ + else \ + installdir="$(DESTDIR)$(TARGET_DIR)"; \ + fi; \ + $(mkinstalldirs) $${installdir} ; \ + for i in $$installfiles; do \ + echo ' $(INSTALL_DATA) '$$i ; \ + $(INSTALL_DATA) $$i $${installdir}; \ + done; \ + if test -n "$(DOC_MODULE_VERSION)"; then \ + mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ + $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ + fi; \ + $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ + fi + +uninstall-local: + @if test -n "$(DOC_MODULE_VERSION)"; then \ + installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ + else \ + installdir="$(DESTDIR)$(TARGET_DIR)"; \ + fi; \ + rm -rf $${installdir} + +# +# Require gtk-doc when making dist +# +if HAVE_GTK_DOC +dist-check-gtkdoc: docs +else +dist-check-gtkdoc: + @echo "*** gtk-doc is needed to run 'make dist'. ***" + @echo "*** gtk-doc was not found when 'configure' ran. ***" + @echo "*** please install gtk-doc and rerun 'configure'. ***" + @false +endif + +dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local + @mkdir $(distdir)/html + @cp ./html/* $(distdir)/html + @-cp ./$(DOC_MODULE).pdf $(distdir)/ + @-cp ./$(DOC_MODULE).types $(distdir)/ + @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ + @cd $(distdir) && rm -f $(DISTCLEANFILES) + @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html + +.PHONY : dist-hook-local docs diff --git a/install-sh b/install-sh new file mode 100755 index 0000000..0360b79 --- /dev/null +++ b/install-sh @@ -0,0 +1,501 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2016-01-11.22; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +tab=' ' +nl=' +' +IFS=" $tab$nl" + +# Set DOITPROG to "echo" to test this script. + +doit=${DOITPROG-} +doit_exec=${doit:-exec} + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +is_target_a_directory=possibly + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) + is_target_a_directory=always + dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) is_target_a_directory=never;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +# We allow the use of options -d and -T together, by making -d +# take the precedence; this is for compatibility with GNU install. + +if test -n "$dir_arg"; then + if test -n "$dst_arg"; then + echo "$0: target directory not allowed when installing a directory." >&2 + exit 1 + fi +fi + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + if test $# -gt 1 || test "$is_target_a_directory" = always; then + if test ! -d "$dst_arg"; then + echo "$0: $dst_arg: Is not a directory." >&2 + exit 1 + fi + fi +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test "$is_target_a_directory" = never; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + dstdir=`dirname "$dst"` + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + oIFS=$IFS + IFS=/ + set -f + set fnord $dstdir + shift + set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + set +f && + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/libs/Makefile.am b/libs/Makefile.am new file mode 100644 index 0000000..dbb585a --- /dev/null +++ b/libs/Makefile.am @@ -0,0 +1,20 @@ +# +# Makefile.am +# +# Author: Víctor M. Jáquez L. +# +# Copyright (C) 2010 Igalia S.L. All rights reserved. + +SUBDIRS = + +if BUILD_GRILO_NET +SUBDIRS += net +endif + +if BUILD_GRILO_PLS +SUBDIRS += pls +endif + +DIST_SUBDIRS = net pls + +-include $(top_srcdir)/git.mk diff --git a/libs/Makefile.in b/libs/Makefile.in new file mode 100644 index 0000000..60c7a34 --- /dev/null +++ b/libs/Makefile.in @@ -0,0 +1,686 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Víctor M. Jáquez L. +# +# Copyright (C) 2010 Igalia S.L. All rights reserved. +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@BUILD_GRILO_NET_TRUE@am__append_1 = net +@BUILD_GRILO_PLS_TRUE@am__append_2 = pls +subdir = libs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = $(am__append_1) $(am__append_2) +DIST_SUBDIRS = net pls +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libs/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign libs/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/libs/meson.build b/libs/meson.build new file mode 100644 index 0000000..be874cb --- /dev/null +++ b/libs/meson.build @@ -0,0 +1,16 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +libs_inc = include_directories('.') + +if enable_grlnet + subdir('net') +endif + +if enable_grlpls + subdir('pls') +endif diff --git a/libs/net/Makefile.am b/libs/net/Makefile.am new file mode 100644 index 0000000..d119bca --- /dev/null +++ b/libs/net/Makefile.am @@ -0,0 +1,78 @@ +# +# Makefile.am +# +# Author: Víctor M. Jáquez L. +# +# Copyright (C) 2010, 2011 Igalia S.L. All rights reserved. + + +lib_LTLIBRARIES = libgrlnet-@GRL_MAJORMINOR@.la + +libgrlnet_@GRL_MAJORMINOR@_la_DEPENDENCIES = \ + $(top_builddir)/src/lib@GRL_NAME@.la + +libgrlnet_@GRL_MAJORMINOR@_la_SOURCES = \ + grl-net-mock.c \ + grl-net-wc.c + +libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS = \ + -I $(top_srcdir)/src \ + -I $(top_srcdir)/src/data \ + -DLOCALEDIR=\"$(localedir)\" \ + $(DEPS_CFLAGS) \ + $(NET_CFLAGS) + +libgrlnet_@GRL_MAJORMINOR@_la_LIBADD = \ + $(top_builddir)/src/lib@GRL_NAME@.la \ + $(DEPS_LIBS) \ + $(NET_LIBS) + +libgrlnet_@GRL_MAJORMINOR@_la_LDFLAGS = \ + -version-info $(GRLNET_LT_VERSION) \ + -no-undefined + +libgrlnet_@GRL_MAJORMINOR@includedir = \ + $(includedir)/@GRL_NAME@/net + +libgrlnet_@GRL_MAJORMINOR@include_HEADERS = \ + grl-net-wc.h \ + grl-net.h + +noinst_HEADERS = \ + grl-net-mock-private.h + +CLEANFILES = *.gir + +# introspection support +if HAVE_INTROSPECTION +-include $(INTROSPECTION_MAKEFILE) +gir_headers = $(patsubst %,$(srcdir)/%, $(libgrlnet_@GRL_MAJORMINOR@include_HEADERS)) +gir_sources = $(patsubst %,$(srcdir)/%, $(libgrlnet_@GRL_MAJORMINOR@_la_SOURCES)) + +INTROSPECTION_GIRS = +INTROSPECTION_SCANNER_ARGS = --warn-all + +introspection_sources = \ + $(gir_headers) \ + $(gir_sources) + +GrlNet-@GRL_MAJORMINOR@.gir: libgrlnet-@GRL_MAJORMINOR@.la +GrlNet_@GRL_MAJORMINOR_NORM@_gir_INCLUDES = GObject-2.0 Gio-2.0 Soup-2.4 +GrlNet_@GRL_MAJORMINOR_NORM@_gir_CFLAGS = -I $(top_srcdir)/src \ + -I $(top_srcdir)/src/data -I $(top_srcdir)/libs +GrlNet_@GRL_MAJORMINOR_NORM@_gir_LIBS = libgrlnet-@GRL_MAJORMINOR@.la \ + $(top_builddir)/src/lib@GRL_NAME@.la +GrlNet_@GRL_MAJORMINOR_NORM@_gir_FILES = $(introspection_sources) +GrlNet_@GRL_MAJORMINOR_NORM@_gir_SCANNERFLAGS = --c-include="net/grl-net.h" +INTROSPECTION_GIRS += GrlNet-@GRL_MAJORMINOR@.gir + +girdir = $(datadir)/gir-1.0 +gir_DATA = $(INTROSPECTION_GIRS) + +typelibdir = $(libdir)/girepository-1.0/ +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +CLEANFILES += $(dist_gir_DATA) $(typelib_DATA) +endif + +-include $(top_srcdir)/git.mk diff --git a/libs/net/Makefile.in b/libs/net/Makefile.in new file mode 100644 index 0000000..69ba5c3 --- /dev/null +++ b/libs/net/Makefile.in @@ -0,0 +1,873 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Víctor M. Jáquez L. +# +# Copyright (C) 2010, 2011 Igalia S.L. All rights reserved. + + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@HAVE_INTROSPECTION_TRUE@am__append_1 = $(dist_gir_DATA) $(typelib_DATA) +subdir = libs/net +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am \ + $(libgrlnet_@GRL_MAJORMINOR@include_HEADERS) $(noinst_HEADERS) \ + $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \ + "$(DESTDIR)$(typelibdir)" \ + "$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 = +am_libgrlnet_@GRL_MAJORMINOR@_la_OBJECTS = \ + libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.lo \ + libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.lo +libgrlnet_@GRL_MAJORMINOR@_la_OBJECTS = \ + $(am_libgrlnet_@GRL_MAJORMINOR@_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +libgrlnet_@GRL_MAJORMINOR@_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) \ + $(libgrlnet_@GRL_MAJORMINOR@_la_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libgrlnet_@GRL_MAJORMINOR@_la_SOURCES) +DIST_SOURCES = $(libgrlnet_@GRL_MAJORMINOR@_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(gir_DATA) $(typelib_DATA) +HEADERS = $(libgrlnet_@GRL_MAJORMINOR@include_HEADERS) \ + $(noinst_HEADERS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +lib_LTLIBRARIES = libgrlnet-@GRL_MAJORMINOR@.la +libgrlnet_@GRL_MAJORMINOR@_la_DEPENDENCIES = \ + $(top_builddir)/src/lib@GRL_NAME@.la + +libgrlnet_@GRL_MAJORMINOR@_la_SOURCES = \ + grl-net-mock.c \ + grl-net-wc.c + +libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS = \ + -I $(top_srcdir)/src \ + -I $(top_srcdir)/src/data \ + -DLOCALEDIR=\"$(localedir)\" \ + $(DEPS_CFLAGS) \ + $(NET_CFLAGS) + +libgrlnet_@GRL_MAJORMINOR@_la_LIBADD = \ + $(top_builddir)/src/lib@GRL_NAME@.la \ + $(DEPS_LIBS) \ + $(NET_LIBS) + +libgrlnet_@GRL_MAJORMINOR@_la_LDFLAGS = \ + -version-info $(GRLNET_LT_VERSION) \ + -no-undefined + +libgrlnet_@GRL_MAJORMINOR@includedir = \ + $(includedir)/@GRL_NAME@/net + +libgrlnet_@GRL_MAJORMINOR@include_HEADERS = \ + grl-net-wc.h \ + grl-net.h + +noinst_HEADERS = \ + grl-net-mock-private.h + +CLEANFILES = *.gir $(am__append_1) +@HAVE_INTROSPECTION_TRUE@gir_headers = $(patsubst %,$(srcdir)/%, $(libgrlnet_@GRL_MAJORMINOR@include_HEADERS)) +@HAVE_INTROSPECTION_TRUE@gir_sources = $(patsubst %,$(srcdir)/%, $(libgrlnet_@GRL_MAJORMINOR@_la_SOURCES)) +@HAVE_INTROSPECTION_TRUE@INTROSPECTION_GIRS = \ +@HAVE_INTROSPECTION_TRUE@ GrlNet-@GRL_MAJORMINOR@.gir +@HAVE_INTROSPECTION_TRUE@INTROSPECTION_SCANNER_ARGS = --warn-all +@HAVE_INTROSPECTION_TRUE@introspection_sources = \ +@HAVE_INTROSPECTION_TRUE@ $(gir_headers) \ +@HAVE_INTROSPECTION_TRUE@ $(gir_sources) + +@HAVE_INTROSPECTION_TRUE@GrlNet_@GRL_MAJORMINOR_NORM@_gir_INCLUDES = GObject-2.0 Gio-2.0 Soup-2.4 +@HAVE_INTROSPECTION_TRUE@GrlNet_@GRL_MAJORMINOR_NORM@_gir_CFLAGS = -I $(top_srcdir)/src \ +@HAVE_INTROSPECTION_TRUE@ -I $(top_srcdir)/src/data -I $(top_srcdir)/libs + +@HAVE_INTROSPECTION_TRUE@GrlNet_@GRL_MAJORMINOR_NORM@_gir_LIBS = libgrlnet-@GRL_MAJORMINOR@.la \ +@HAVE_INTROSPECTION_TRUE@ $(top_builddir)/src/lib@GRL_NAME@.la + +@HAVE_INTROSPECTION_TRUE@GrlNet_@GRL_MAJORMINOR_NORM@_gir_FILES = $(introspection_sources) +@HAVE_INTROSPECTION_TRUE@GrlNet_@GRL_MAJORMINOR_NORM@_gir_SCANNERFLAGS = --c-include="net/grl-net.h" +@HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0 +@HAVE_INTROSPECTION_TRUE@gir_DATA = $(INTROSPECTION_GIRS) +@HAVE_INTROSPECTION_TRUE@typelibdir = $(libdir)/girepository-1.0/ +@HAVE_INTROSPECTION_TRUE@typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libs/net/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign libs/net/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +libgrlnet-@GRL_MAJORMINOR@.la: $(libgrlnet_@GRL_MAJORMINOR@_la_OBJECTS) $(libgrlnet_@GRL_MAJORMINOR@_la_DEPENDENCIES) $(EXTRA_libgrlnet_@GRL_MAJORMINOR@_la_DEPENDENCIES) + $(AM_V_CCLD)$(libgrlnet_@GRL_MAJORMINOR@_la_LINK) -rpath $(libdir) $(libgrlnet_@GRL_MAJORMINOR@_la_OBJECTS) $(libgrlnet_@GRL_MAJORMINOR@_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.lo: grl-net-mock.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) -MT libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.lo -MD -MP -MF $(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.Tpo -c -o libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.lo `test -f 'grl-net-mock.c' || echo '$(srcdir)/'`grl-net-mock.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.Tpo $(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-net-mock.c' object='libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) -c -o libgrlnet_@GRL_MAJORMINOR@_la-grl-net-mock.lo `test -f 'grl-net-mock.c' || echo '$(srcdir)/'`grl-net-mock.c + +libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.lo: grl-net-wc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) -MT libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.lo -MD -MP -MF $(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.Tpo -c -o libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.lo `test -f 'grl-net-wc.c' || echo '$(srcdir)/'`grl-net-wc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.Tpo $(DEPDIR)/libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-net-wc.c' object='libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgrlnet_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) -c -o libgrlnet_@GRL_MAJORMINOR@_la-grl-net-wc.lo `test -f 'grl-net-wc.c' || echo '$(srcdir)/'`grl-net-wc.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-girDATA: $(gir_DATA) + @$(NORMAL_INSTALL) + @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \ + done + +uninstall-girDATA: + @$(NORMAL_UNINSTALL) + @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) +install-typelibDATA: $(typelib_DATA) + @$(NORMAL_INSTALL) + @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(typelibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(typelibdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibdir)" || exit $$?; \ + done + +uninstall-typelibDATA: + @$(NORMAL_UNINSTALL) + @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(typelibdir)'; $(am__uninstall_files_from_dir) +install-libgrlnet_@GRL_MAJORMINOR@includeHEADERS: $(libgrlnet_@GRL_MAJORMINOR@include_HEADERS) + @$(NORMAL_INSTALL) + @list='$(libgrlnet_@GRL_MAJORMINOR@include_HEADERS)'; test -n "$(libgrlnet_@GRL_MAJORMINOR@includedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)" || exit $$?; \ + done + +uninstall-libgrlnet_@GRL_MAJORMINOR@includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(libgrlnet_@GRL_MAJORMINOR@include_HEADERS)'; test -n "$(libgrlnet_@GRL_MAJORMINOR@includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(libgrlnet_@GRL_MAJORMINOR@includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-girDATA \ + install-libgrlnet_@GRL_MAJORMINOR@includeHEADERS \ + install-typelibDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \ + uninstall-libgrlnet_@GRL_MAJORMINOR@includeHEADERS \ + uninstall-typelibDATA + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-girDATA install-html install-html-am \ + install-info install-info-am install-libLTLIBRARIES \ + install-libgrlnet_@GRL_MAJORMINOR@includeHEADERS install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip install-typelibDATA installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-girDATA uninstall-libLTLIBRARIES \ + uninstall-libgrlnet_@GRL_MAJORMINOR@includeHEADERS \ + uninstall-typelibDATA + +.PRECIOUS: Makefile + + +# introspection support +@HAVE_INTROSPECTION_TRUE@-include $(INTROSPECTION_MAKEFILE) + +@HAVE_INTROSPECTION_TRUE@GrlNet-@GRL_MAJORMINOR@.gir: libgrlnet-@GRL_MAJORMINOR@.la + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/libs/net/grl-net-mock-private.h b/libs/net/grl-net-mock-private.h new file mode 100644 index 0000000..ff4d7a4 --- /dev/null +++ b/libs/net/grl-net-mock-private.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2012 Openismus GmbH + * + * Authors: Jens Georg + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_NET_MOCK_PRIVATE_H_ +#define _GRL_NET_MOCK_PRIVATE_H_ + +#include "grl-net-wc.h" + +#define GRL_NET_MOCKED_VAR "GRL_NET_MOCKED" +#define GRL_NET_MOCK_VERSION 1 + +G_GNUC_INTERNAL +gboolean is_mocked (void); + +G_GNUC_INTERNAL +void get_url_mocked (GrlNetWc *self, + const char *url, + GHashTable *headers, + GAsyncResult *result, + GCancellable *cancellable); + +G_GNUC_INTERNAL +void get_content_mocked (GrlNetWc *self, + void *op, + gchar **content, + gsize *length); + +G_GNUC_INTERNAL +void init_mock_requester (GrlNetWc *self); + +G_GNUC_INTERNAL +void finalize_mock_requester (GrlNetWc *self); + +G_GNUC_INTERNAL +void free_mock_op_res (void *op); + +#endif /* _GRL_NET_MOCK_PRIVATE_H_ */ diff --git a/libs/net/grl-net-mock.c b/libs/net/grl-net-mock.c new file mode 100644 index 0000000..0aebceb --- /dev/null +++ b/libs/net/grl-net-mock.c @@ -0,0 +1,270 @@ +/* + * Copyright (C) 2012 Openismus GmbH + * + * Authors: Jens Georg + * Mathias Hasselmann + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include + +#define _GRILO_H_INSIDE_ +#include + +#include "grl-net-mock-private.h" + +static GKeyFile *config = NULL; +static GRegex *ignored_parameters = NULL; +static char *base_path = NULL; +static gboolean enable_mocking = FALSE; +static gint refcount = 0; + +gboolean +is_mocked (void) +{ + return enable_mocking; +} + +void +get_url_mocked (GrlNetWc *self, + const char *url, + GHashTable *headers, + GAsyncResult *result, + GCancellable *cancellable) +{ + char *data_file, *full_path; + GError *error = NULL; + GStatBuf stat_buf; + char *new_url; + + if (ignored_parameters) { + SoupURI *uri = soup_uri_new (url); + const char *query = soup_uri_get_query (uri); + if (query) { + char *new_query = g_regex_replace (ignored_parameters, + query, -1, 0, + "", 0, NULL); + soup_uri_set_query (uri, *new_query ? new_query : NULL); + new_url = soup_uri_to_string (uri, FALSE); + soup_uri_free (uri); + g_free (new_query); + } else { + new_url = g_strdup (url); + } + } else { + new_url = g_strdup (url); + } + + if (!config) { + g_simple_async_result_set_error (G_SIMPLE_ASYNC_RESULT (result), + GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_NETWORK_ERROR, + "%s", + _("No mock definition found")); + g_free (new_url); + g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result)); + g_object_unref (result); + return; + } + + data_file = g_key_file_get_value (config, new_url, "data", &error); + if (error) { + g_simple_async_result_set_error (G_SIMPLE_ASYNC_RESULT (result), + GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_NOT_FOUND, + _("Could not find mock content %s"), + error->message); + g_error_free (error); + g_free (new_url); + g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result)); + g_object_unref (result); + return; + } + if (data_file[0] != '/') { + full_path = g_build_filename (base_path, data_file, NULL); + } else { + full_path = g_strdup (data_file); + } + + if (g_stat (full_path, &stat_buf) < 0) { + g_simple_async_result_set_error (G_SIMPLE_ASYNC_RESULT (result), + GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_NOT_FOUND, + _("Could not access mock content: %s"), + data_file); + g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result)); + g_object_unref (result); + g_free (new_url); + g_clear_pointer (&data_file, g_free); + g_clear_pointer (&full_path, g_free); + + return; + } + g_clear_pointer (&data_file, g_free); + g_clear_pointer (&full_path, g_free); + + g_simple_async_result_set_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result), + new_url, + NULL); + g_simple_async_result_complete_in_idle (G_SIMPLE_ASYNC_RESULT (result)); + g_object_unref (result); +} + +void +get_content_mocked (GrlNetWc *self, + void *op, + gchar **content, + gsize *length) +{ + char *url = (char *) op; + char *data_file = NULL, *full_path = NULL; + GError *error = NULL; + + data_file = g_key_file_get_value (config, url, "data", NULL); + if (data_file[0] != '/') { + full_path = g_build_filename (base_path, data_file, NULL); + } else { + full_path = data_file; + data_file = NULL; + } + g_file_get_contents (full_path, content, length, &error); + + g_clear_pointer (&data_file, g_free); + g_clear_pointer (&full_path, g_free); +} + +void init_mock_requester (GrlNetWc *self) +{ + g_atomic_int_inc (&refcount); + + if (refcount > 1) { + return; + } + + char *config_filename = g_strdup (g_getenv (GRL_NET_MOCKED_VAR)); + enable_mocking = FALSE; + int i; + + if (config_filename == NULL) { + return; + } + + /* Read configuration file. */ + GError *error = NULL; + config = g_key_file_new (); + + GRL_DEBUG ("Loading mock responses from \"%s\"", config_filename); + g_key_file_load_from_file (config, config_filename, G_KEY_FILE_NONE, &error); + + int version = 0; + + if (error) { + GRL_WARNING ("Failed to load mock file \"%s\": %s", + config_filename, error->message); + g_clear_error (&error); + } else { + /* Check if we managed to load a file */ + version = g_key_file_get_integer (config, "default", "version", &error); + + if (error || version < GRL_NET_MOCK_VERSION) { + GRL_WARNING ("Unsupported mock version."); + g_clear_error (&error); + } else { + enable_mocking = TRUE; + } + } + + if (!enable_mocking) { + g_free (config_filename); + g_clear_pointer (&config, g_key_file_unref); + return; + } + + char **parameter_names = g_key_file_get_string_list (config, "default", + "ignored-parameters", + NULL, NULL); + + /* Build regular expressions for ignored query parameters. */ + if (parameter_names) { + GString *pattern = g_string_new ("(?:^|\\&)"); + + if (parameter_names[0] && strcmp(parameter_names[0], "*") == 0) { + g_string_append (pattern, "[^=&]+"); + } else { + g_string_append (pattern, "(?:"); + + for (i = 0; parameter_names[i]; ++i) { + if (i) + g_string_append (pattern, "|"); + + char *escaped = g_regex_escape_string (parameter_names[i], -1); + g_string_append (pattern, escaped); + g_free (escaped); + } + + g_string_append (pattern, ")(?:=[^&]*)?"); + } + + ignored_parameters = g_regex_new (pattern->str, G_REGEX_OPTIMIZE, 0, &error); + + if (error) { + GRL_WARNING ("Failed to compile regular expression " + "for ignored query parameters: %s", error->message); + g_clear_error (&error); + } + + g_strfreev (parameter_names); + g_string_free (pattern, TRUE); + } + + /* Find base path for mock data. */ + GFile *file = g_file_new_for_commandline_arg (config_filename); + GFile *parent = g_file_get_parent (file); + + base_path = g_file_get_path (parent); + + g_object_unref (parent); + g_object_unref (file); + g_free (config_filename); +} + +void finalize_mock_requester (GrlNetWc *self) +{ + if (refcount == 0) { + return; + } + + if (g_atomic_int_dec_and_test (&refcount)) { + g_clear_pointer (&config, g_key_file_unref); + g_clear_pointer (&base_path, g_free); + g_clear_pointer (&ignored_parameters, g_regex_unref); + } +} + +void free_mock_op_res (void *op) +{ + g_free (op); +} diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c new file mode 100644 index 0000000..b52c86c --- /dev/null +++ b/libs/net/grl-net-wc.c @@ -0,0 +1,1124 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * Copyright (C) 2012 Canonical Ltd. + * + * Contact: Iago Toral Quiroga + * + * Authors: Víctor M. Jáquez L. + * Juan A. Suarez Romero + * Jens Georg + * Mathias Hasselmann + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-net-wc + * @short_description: small and simple HTTP client + * + * Most of the Grilo's sources need to access to web resources. The purpose of + * this utility class is to provide a thin and lean mechanism for those plugins + * to interact with those resources. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#define LIBSOUP_USE_UNSTABLE_REQUEST_API + +#include +#include +#include +#include +#include +#include +#include + +#include +#include "grl-net-wc.h" +#include "grl-net-mock-private.h" + +#define GRL_LOG_DOMAIN_DEFAULT wc_log_domain +GRL_LOG_DOMAIN_STATIC(wc_log_domain); + +#define GRL_NET_CAPTURE_DIR_VAR "GRL_NET_CAPTURE_DIR" + +enum { + PROP_0, + PROP_LOG_LEVEL, + PROP_THROTTLING, + PROP_CACHE, + PROP_CACHE_SIZE, + PROP_USER_AGENT +}; + +struct request_res { + SoupRequest *request; + gchar *buffer; + gsize length; + gsize offset; +}; + +struct _GrlNetWcPrivate { + SoupSession *session; + SoupLoggerLogLevel log_level; + /* throttling in secs */ + guint throttling; + /* last request time */ + GTimeVal last_request; + /* closure queue for delayed requests */ + GQueue *pending; + /* cache size in Mb */ + guint cache_size; + gchar *previous_data; +}; + +static const char *capture_dir = NULL; + +GQuark +grl_net_wc_error_quark (void) +{ + return g_quark_from_static_string ("grl-wc-error-quark"); +} + +G_DEFINE_TYPE_WITH_PRIVATE (GrlNetWc, grl_net_wc, G_TYPE_OBJECT); + +static void grl_net_wc_finalize (GObject *object); +static void grl_net_wc_set_property (GObject *object, + guint propid, + const GValue *value, + GParamSpec *pspec); +static void grl_net_wc_get_property (GObject *object, + guint propid, + GValue *value, + GParamSpec *pspec); + +static void +grl_net_wc_class_init (GrlNetWcClass *klass) +{ + GObjectClass *g_klass; + + g_klass = G_OBJECT_CLASS (klass); + g_klass->finalize = grl_net_wc_finalize; + g_klass->set_property = grl_net_wc_set_property; + g_klass->get_property = grl_net_wc_get_property; + + /** + * GrlNetWc::loglevel: + * + * The log level for HTTP connections. This value is used by libsoup. + */ + g_object_class_install_property (g_klass, + PROP_LOG_LEVEL, + g_param_spec_uint ("loglevel", + "Log level", + "Log level for HTTP connections", + 0, 3, 0, + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); + + /** + * GrlNetWc::throttling: + * + * The timeout in seconds between connections. All the connections will be + * queued and each one will be dispatched after waiting this value. + */ + g_object_class_install_property (g_klass, + PROP_THROTTLING, + g_param_spec_uint ("throttling", + "throttle timeout", + "Time to throttle connections", + 0, G_MAXUINT, 0, + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); + /** + * GrlNetWc::cache: + * + * %TRUE if cache must be used. %FALSE otherwise. + */ + g_object_class_install_property (g_klass, + PROP_CACHE, + g_param_spec_boolean ("cache", + "Use cache", + "Use cache", + TRUE, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlNetWc::cache-size: + * + * Maximum size of cache, in Mb. Default value is 10Mb. + */ + g_object_class_install_property (g_klass, + PROP_CACHE_SIZE, + g_param_spec_uint ("cache-size", + "Cache size", + "Size of cache in Mb", + 0, G_MAXUINT, 10, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlNetWc::user-agent: + * + * User agent identifier. + */ + g_object_class_install_property (g_klass, + PROP_USER_AGENT, + g_param_spec_string ("user-agent", + "User Agent", + "User agent identifier", + NULL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +free_op_res (void *op) +{ + struct request_res *rr = op; + + g_object_unref (rr->request); + g_slice_free (struct request_res, rr); +} + +/* + * use-thread-context is available for libsoup-2.4 >= 2.39.0 + * We check in run-time if it's available + */ +static void +set_thread_context (GrlNetWc *self) +{ + GrlNetWcPrivate *priv = self->priv; + GObjectClass *klass = G_OBJECT_GET_CLASS (priv->session); + GParamSpec *spec = g_object_class_find_property (klass, + "use-thread-context"); + if (spec) + g_object_set (priv->session, "use-thread-context", TRUE, NULL); +} + +static void +init_dump_directory (void) +{ + capture_dir = g_getenv (GRL_NET_CAPTURE_DIR_VAR); + + if (capture_dir && is_mocked ()) { + GRL_WARNING ("Cannot capture while mocking is enabled."); + capture_dir = NULL; + return; + } + + if (capture_dir && g_mkdir_with_parents (capture_dir, 0700) != 0) { + GRL_WARNING ("Could not create capture directory \"%s\": %s", + capture_dir, g_strerror (errno)); + capture_dir = NULL; + return; + } +} + +static void +cache_down (GrlNetWc *self) +{ + GFile *cache_dir_file; + GrlNetWcPrivate *priv = self->priv; + SoupSessionFeature *cache = soup_session_get_feature (priv->session, SOUP_TYPE_CACHE); + gchar *cache_dir; + + GRL_DEBUG ("cache down"); + + if (!cache) { + return; + } + + soup_cache_clear (SOUP_CACHE (cache)); + + g_object_get (cache, "cache-dir", &cache_dir, NULL); + cache_dir_file = g_file_new_for_path (cache_dir); + g_free (cache_dir); + + g_file_delete (cache_dir_file, NULL, NULL); + g_object_unref (G_OBJECT (cache_dir_file)); + + soup_session_remove_feature (priv->session, cache); +} + +static void +cache_up (GrlNetWc *self) +{ + SoupCache *cache; + GrlNetWcPrivate *priv = self->priv; + gchar *dir; + + GRL_DEBUG ("cache up"); + + dir = g_dir_make_tmp ("grilo-plugin-cache-XXXXXX", NULL); + if (!dir) + return; + + cache = soup_cache_new (dir, SOUP_CACHE_SINGLE_USER); + g_free (dir); + + soup_session_add_feature (priv->session, + SOUP_SESSION_FEATURE (cache)); + + if (priv->cache_size) { + soup_cache_set_max_size (cache, priv->cache_size * 1024 * 1024); + } + + g_object_unref (cache); +} + +static gboolean +cache_is_available (GrlNetWc *self) +{ + return soup_session_get_feature (self->priv->session, SOUP_TYPE_CACHE) != NULL; +} + +static void +init_requester (GrlNetWc *self) +{ + init_dump_directory (); +} + +static void +finalize_requester (GrlNetWc *self) +{ + GrlNetWcPrivate *priv = self->priv; + + cache_down (self); + g_free (priv->previous_data); +} + +static void +grl_net_wc_init (GrlNetWc *wc) +{ + GRL_LOG_DOMAIN_INIT (wc_log_domain, "wc"); + + wc->priv = grl_net_wc_get_instance_private (wc); + + wc->priv->session = soup_session_async_new (); + wc->priv->pending = g_queue_new (); + + set_thread_context (wc); + init_mock_requester (wc); + init_requester (wc); +} + +static void +grl_net_wc_finalize (GObject *object) +{ + GrlNetWc *wc; + + wc = GRL_NET_WC (object); + grl_net_wc_flush_delayed_requests (wc); + + cache_down (wc); + finalize_requester (wc); + finalize_mock_requester (wc); + + g_queue_free (wc->priv->pending); + g_object_unref (wc->priv->session); + + G_OBJECT_CLASS (grl_net_wc_parent_class)->finalize (object); +} + +static void +grl_net_wc_set_property (GObject *object, + guint propid, + const GValue *value, + GParamSpec *pspec) +{ + GrlNetWc *wc; + + wc = GRL_NET_WC (object); + + switch (propid) { + case PROP_LOG_LEVEL: + grl_net_wc_set_log_level (wc, g_value_get_uint (value)); + break; + case PROP_THROTTLING: + grl_net_wc_set_throttling (wc, g_value_get_uint (value)); + break; + case PROP_CACHE: + grl_net_wc_set_cache (wc, g_value_get_boolean (value)); + break; + case PROP_CACHE_SIZE: + grl_net_wc_set_cache_size (wc, g_value_get_uint (value)); + break; + case PROP_USER_AGENT: + g_object_set (G_OBJECT (wc->priv->session), + "user-agent", g_value_get_string (value), + NULL); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (wc, propid, pspec); + } +} + +static void +grl_net_wc_get_property (GObject *object, + guint propid, + GValue *value, + GParamSpec *pspec) +{ + GrlNetWc *wc; + + wc = GRL_NET_WC (object); + + switch (propid) { + case PROP_LOG_LEVEL: + g_value_set_uint (value, wc->priv->log_level); + break; + case PROP_THROTTLING: + g_value_set_uint (value, wc->priv->throttling); + break; + case PROP_CACHE: + g_value_set_boolean(value, cache_is_available (wc)); + break; + case PROP_CACHE_SIZE: + g_value_set_uint (value, wc->priv->cache_size); + break; + case PROP_USER_AGENT: + g_object_get_property (G_OBJECT (wc->priv->session), "user_agent", value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (wc, propid, pspec); + } +} + +struct request_clos { + GrlNetWc *self; + char *url; + GAsyncResult *result; + GCancellable *cancellable; + GHashTable *headers; + guint source_id; +}; + +static void +request_clos_destroy (gpointer data) +{ + struct request_clos *c = (struct request_clos *) data; + + g_free (c->url); + g_clear_object (&c->cancellable); + g_clear_pointer (&c->headers, g_hash_table_unref); + g_free (c); +} + +static void +parse_error (guint status, + const gchar *reason, + const gchar *response, + GSimpleAsyncResult *result) +{ + if (!response || *response == '\0') + response = reason; + + switch (status) { + case SOUP_STATUS_CANT_RESOLVE: + case SOUP_STATUS_CANT_CONNECT: + case SOUP_STATUS_SSL_FAILED: + case SOUP_STATUS_IO_ERROR: + g_simple_async_result_set_error (result, GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_NETWORK_ERROR, + _("Cannot connect to the server")); + return; + case SOUP_STATUS_CANT_RESOLVE_PROXY: + case SOUP_STATUS_CANT_CONNECT_PROXY: + g_simple_async_result_set_error (result, G_IO_ERROR, + G_IO_ERROR_PROXY_FAILED, + _("Cannot connect to the proxy server")); + return; + case SOUP_STATUS_INTERNAL_SERVER_ERROR: /* 500 */ + case SOUP_STATUS_MALFORMED: + case SOUP_STATUS_BAD_REQUEST: /* 400 */ + g_simple_async_result_set_error (result, GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_PROTOCOL_ERROR, + _("Invalid request URI or header: %s"), + response); + return; + case SOUP_STATUS_UNAUTHORIZED: /* 401 */ + case SOUP_STATUS_FORBIDDEN: /* 403 */ + g_simple_async_result_set_error (result, GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_AUTHENTICATION_REQUIRED, + _("Authentication required: %s"), response); + return; + case SOUP_STATUS_NOT_FOUND: /* 404 */ + g_simple_async_result_set_error (result, GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_NOT_FOUND, + _("The requested resource was not found: %s"), + response); + return; + case SOUP_STATUS_CONFLICT: /* 409 */ + case SOUP_STATUS_PRECONDITION_FAILED: /* 412 */ + g_simple_async_result_set_error (result, GRL_NET_WC_ERROR, + GRL_NET_WC_ERROR_CONFLICT, + _("The entry has been modified since it was downloaded: %s"), + response); + return; + case SOUP_STATUS_CANCELLED: + g_simple_async_result_set_error (result, G_IO_ERROR, + G_IO_ERROR_CANCELLED, + _("Operation was cancelled")); + return; + default: + GRL_DEBUG ("Unhandled status: %s", soup_status_get_phrase (status)); + g_simple_async_result_set_error (result, G_IO_ERROR, + G_IO_ERROR_FAILED, + "%s", soup_status_get_phrase (status)); + } +} + +static char * +build_request_filename (const char *uri) +{ + char *hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1); + + char *filename = g_strdup_printf ("%"G_GINT64_FORMAT "-%s.data", + g_get_monotonic_time (), hash); + + g_free (hash); + return filename; +} + +static void +dump_data (SoupURI *uri, + const char *buffer, + const gsize length) +{ + if (!capture_dir) + return; + + char *uri_string = soup_uri_to_string (uri, FALSE); + + /* Write request content to file in capture directory. */ + char *request_filename = build_request_filename (uri_string); + char *path = g_build_filename (capture_dir, request_filename, NULL); + + GError *error = NULL; + if (!g_file_set_contents (path, buffer, length, &error)) { + GRL_WARNING ("Could not write contents to disk: %s", error->message); + g_error_free (error); + } + + g_free (path); + + /* Append record about the just written file to "grl-net-mock-data-%PID.ini" + * in the capture directory. */ + char *filename = g_strdup_printf ("grl-net-mock-data-%u.ini", getpid()); + path = g_build_filename (capture_dir, filename, NULL); + g_free (filename); + + FILE *stream = g_fopen (path, "at"); + g_free (path); + + if (!stream) { + GRL_WARNING ("Could not write contents to disk: %s", g_strerror (errno)); + } else { + if (ftell (stream) == 0) + fprintf (stream, "[default]\nversion=%d\n\n", GRL_NET_MOCK_VERSION); + + fprintf (stream, "[%s]\ndata=%s\n\n", uri_string, request_filename); + fclose (stream); + } + + g_free (request_filename); + g_free (uri_string); +} + +static void +read_async_cb (GObject *source, + GAsyncResult *res, + gpointer user_data) +{ + GSimpleAsyncResult *result = G_SIMPLE_ASYNC_RESULT (user_data); + struct request_res *rr = g_simple_async_result_get_op_res_gpointer (result);; + + GError *error = NULL; + gssize s = g_input_stream_read_finish (G_INPUT_STREAM (source), res, &error); + + gsize to_read; + + if (s > 0) { + /* Continue reading */ + rr->offset += s; + to_read = rr->length - rr->offset; + + if (!to_read) { + /* Buffer is not enough; we need to assign more space */ + rr->length *= 2; + rr->buffer = g_renew (gchar, rr->buffer, rr->length); + to_read = rr->length - rr->offset; + } + + g_input_stream_read_async (G_INPUT_STREAM (source), + rr->buffer + rr->offset, + to_read, + G_PRIORITY_DEFAULT, + NULL, + read_async_cb, + user_data); + return; + } + + /* Put the end of string */ + rr->buffer[rr->offset] = '\0'; + + g_input_stream_close (G_INPUT_STREAM (source), NULL, NULL); + g_object_unref (source); + + if (error) { + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { + g_simple_async_result_set_error (result, G_IO_ERROR, + G_IO_ERROR_CANCELLED, + _("Operation was cancelled")); + } else { + g_simple_async_result_set_error (result, G_IO_ERROR, + G_IO_ERROR_FAILED, + _("Data not available")); + } + + g_error_free (error); + + g_simple_async_result_complete (result); + g_object_unref (result); + return; + } + + { + SoupMessage *msg = + soup_request_http_get_message (SOUP_REQUEST_HTTP (rr->request)); + + if (msg && msg->status_code != SOUP_STATUS_OK) { + parse_error (msg->status_code, + msg->reason_phrase, + msg->response_body->data, + G_SIMPLE_ASYNC_RESULT (user_data)); + g_object_unref (msg); + } + } + + g_simple_async_result_complete (result); + g_object_unref (result); +} + +static void +reply_cb (GObject *source, + GAsyncResult *res, + gpointer user_data) +{ + GSimpleAsyncResult *result = G_SIMPLE_ASYNC_RESULT (user_data); + struct request_res *rr = g_simple_async_result_get_op_res_gpointer (result); + + GError *error = NULL; + GInputStream *in = soup_request_send_finish (rr->request, res, &error); + + if (error) { + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { + g_simple_async_result_set_from_error (result, error); + } else { + g_simple_async_result_set_error (result, G_IO_ERROR, + G_IO_ERROR_FAILED, + _("Data not available")); + } + g_error_free (error); + + g_simple_async_result_complete (result); + g_object_unref (result); + return; + } + + rr->length = soup_request_get_content_length (rr->request) + 1; + if (rr->length == 1) + rr->length = 50 * 1024; + + rr->buffer = g_new (gchar, rr->length); + + g_input_stream_read_async (in, + rr->buffer, + rr->length, + G_PRIORITY_DEFAULT, + NULL, + read_async_cb, + user_data); +} + +static void +get_url_now (GrlNetWc *self, + const char *url, + GHashTable *headers, + GAsyncResult *result, + GCancellable *cancellable) +{ + GrlNetWcPrivate *priv = self->priv; + SoupURI *uri; + struct request_res *rr = g_slice_new0 (struct request_res); + + g_simple_async_result_set_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result), + rr, + NULL); + + uri = soup_uri_new (url); + if (uri) { + rr->request = soup_session_request_uri (priv->session, uri, NULL); + soup_uri_free (uri); + } else { + rr->request = NULL; + } + + if (!rr->request) { + g_simple_async_result_set_error (G_SIMPLE_ASYNC_RESULT (result), + G_IO_ERROR, + G_IO_ERROR_INVALID_ARGUMENT, + _("Invalid URL %s"), + url); + g_simple_async_result_complete (G_SIMPLE_ASYNC_RESULT (result)); + g_object_unref (result); + return; + } + + if (headers != NULL) { + SoupMessage *message; + GHashTableIter iter; + const char *key, *value; + + message = soup_request_http_get_message (SOUP_REQUEST_HTTP (rr->request)); + + if (message) { + g_hash_table_iter_init (&iter, headers); + while (g_hash_table_iter_next (&iter, (gpointer *) &key, (gpointer *)&value)) { + soup_message_headers_append (message->request_headers, key, value); + } + g_object_unref (message); + } + } + + soup_request_send_async (rr->request, cancellable, reply_cb, result); +} + +static gboolean +get_url_cb (gpointer user_data) +{ + struct request_clos *c = (struct request_clos *) user_data; + + /* validation */ + { + GrlNetWcPrivate *priv = c->self->priv; + struct request_clos *d = g_queue_pop_tail (priv->pending); + g_assert (c == d); + } + + if (is_mocked ()) + get_url_mocked (c->self, c->url, c->headers, c->result, c->cancellable); + else + get_url_now (c->self, c->url, c->headers, c->result, c->cancellable); + + return FALSE; +} + +static void +get_url (GrlNetWc *self, + const char *url, + GHashTable *headers, + GAsyncResult *result, + GCancellable *cancellable) +{ + guint id; + GTimeVal now; + struct request_clos *c; + GrlNetWcPrivate *priv = self->priv; + + /* closure */ + c = g_new (struct request_clos, 1); + c->self = self; + c->url = g_strdup (url); + c->headers = headers? g_hash_table_ref (headers): NULL; + c->result = result; + c->cancellable = cancellable ? g_object_ref (cancellable) : NULL; + + g_get_current_time (&now); + + /* If grl-net-wc is not mocked, we need to check if throttling is set + * otherwise the throttling delay check would always be true */ + if (is_mocked () + || priv->throttling == 0 + || (now.tv_sec - priv->last_request.tv_sec) > priv->throttling) { + priv->last_request = now; + id = g_idle_add_full (G_PRIORITY_HIGH_IDLE, + get_url_cb, c, request_clos_destroy); + } else { + priv->last_request.tv_sec += priv->throttling; + + GRL_DEBUG ("delaying web request by %lu seconds", + priv->last_request.tv_sec - now.tv_sec); + id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, + priv->last_request.tv_sec - now.tv_sec, + get_url_cb, c, request_clos_destroy); + } + g_source_set_name_by_id (id, "[grl-net] get_url_cb"); + + c->source_id = id; + g_queue_push_head (self->priv->pending, c); +} + +static void +get_content (GrlNetWc *self, + void *op, + gchar **content, + gsize *length) +{ + GrlNetWcPrivate *priv = self->priv; + struct request_res *rr = op; + + g_clear_pointer (&priv->previous_data, g_free); + + if (is_mocked ()) { + get_content_mocked (self, op, &(priv->previous_data), length); + } else { + dump_data (soup_request_get_uri (rr->request), + rr->buffer, + rr->offset); + priv->previous_data = rr->buffer; + if (length) { + *length = rr->offset; + } + } + + if (content) + *content = self->priv->previous_data; + else { + if (length) { + *length = 0; + } + } +} + +/** + * grl_net_wc_new: + * + * Creates a new #GrlNetWc. + * + * Returns: a new allocated instance of #GrlNetWc. Do g_object_unref() after + * use it. + */ +GrlNetWc * +grl_net_wc_new () +{ + return g_object_new (GRL_TYPE_NET_WC, + NULL); +} + +/** + * grl_net_wc_request_async: + * @self: a #GrlNetWc instance + * @uri: The URI of the resource to request + * @cancellable: (allow-none): a #GCancellable instance or %NULL to ignore + * @callback: The callback when the result is ready + * @user_data: User data set for the @callback + * + * Request the fetching of a web resource given the @uri. This request is + * asynchronous, thus the result will be returned within the @callback. + */ +void +grl_net_wc_request_async (GrlNetWc *self, + const char *uri, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + grl_net_wc_request_with_headers_hash_async (self, + uri, + NULL, + cancellable, + callback, + user_data); +} + +/** + * grl_net_wc_request_with_headers_async: + * @self: a #GrlNetWc instance + * @uri: The URI of the resource to request + * @cancellable: (allow-none): a #GCancellable instance or %NULL to ignore + * @callback: The callback when the result is ready + * @user_data: User data set for the @callback + * @...: List of tuples of header name and header value, terminated by + * %NULL. + * + * Request the fetching of a web resource given the @uri. This request is + * asynchronous, thus the result will be returned within the @callback. + * + * Since: 0.2.2 + */ +void grl_net_wc_request_with_headers_async (GrlNetWc *self, + const char *uri, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data, + ...) +{ + va_list va_args; + const gchar *header_name = NULL, *header_value = NULL; + GHashTable *headers = NULL; + + va_start (va_args, user_data); + + header_name = va_arg (va_args, const gchar *); + while (header_name) { + header_value = va_arg (va_args, const gchar *); + if (header_value) { + if (headers == NULL) { + headers = g_hash_table_new_full (g_str_hash, + g_str_equal, + g_free, + g_free); + } + g_hash_table_insert (headers, g_strdup (header_name), g_strdup (header_value)); + } + header_name = va_arg (va_args, const gchar *); + } + + va_end (va_args); + + grl_net_wc_request_with_headers_hash_async (self, + uri, + headers, + cancellable, + callback, + user_data); + + g_clear_pointer (&headers, g_hash_table_unref); +} + + +/** + * grl_net_wc_request_with_headers_hash_async: (rename-to grl_net_wc_request_with_headers_async) + * @self: a #GrlNetWc instance + * @uri: The URI of the resource to request + * @headers: (allow-none) (element-type utf8 utf8): a set of additional HTTP + * headers for this request or %NULL to ignore + * @cancellable: (allow-none): a #GCancellable instance or %NULL to ignore + * @callback: The callback when the result is ready + * @user_data: User data set for the @callback + * + * Request the fetching of a web resource given the @uri. This request is + * asynchronous, thus the result will be returned within the @callback. + * + * Since: 0.2.2 + */ +void +grl_net_wc_request_with_headers_hash_async (GrlNetWc *self, + const char *uri, + GHashTable *headers, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ + GSimpleAsyncResult *result; + + result = g_simple_async_result_new (G_OBJECT (self), + callback, + user_data, + grl_net_wc_request_async); + + get_url (self, uri, headers, G_ASYNC_RESULT (result), cancellable); +} + + +/** + * grl_net_wc_request_finish: + * @self: a #GrlNetWc instance + * @result: The result of the request + * @content: (out) (array length=length) (element-type guint8) (allow-none) + * (transfer full): The contents of the resource + * @length: (out) (allow-none): The length of the contents or %NULL if it is not + * needed + * @error: return location for a #GError, or %NULL + * + * Finishes an asynchronous load of the file's contents. + * The contents are placed in contents, and length is set to the size of the + * contents string. + * + * The content address will be invalidated at the next request. So if you + * want to keep it, please copy it into another address. + * + * Returns: %TRUE if the request was successfull. If %FALSE an error occurred. + */ +gboolean +grl_net_wc_request_finish (GrlNetWc *self, + GAsyncResult *result, + gchar **content, + gsize *length, + GError **error) +{ + GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (result); + gboolean ret = TRUE; + + g_warn_if_fail (g_simple_async_result_get_source_tag (res) == + grl_net_wc_request_async); + + void *op = g_simple_async_result_get_op_res_gpointer (res); + + if (g_simple_async_result_propagate_error (res, error) == TRUE) { + ret = FALSE; + goto end_func; + } + + get_content(self, op, content, length); + +end_func: + if (is_mocked ()) + free_mock_op_res (op); + else + free_op_res (op); + + return ret; +} + +/** + * grl_net_wc_set_log_level: + * @self: a #GrlNetWc instance + * @log_level: the libsoup log level to set [0,3] + * + * Setting the log level the logger feature is added into + * the libsoup session. + */ +void +grl_net_wc_set_log_level (GrlNetWc *self, + guint log_level) +{ + SoupLogger *logger; + + g_return_if_fail (log_level <= 3); + g_return_if_fail (GRL_IS_NET_WC (self)); + + if (self->priv->log_level == log_level) + return; + + soup_session_remove_feature_by_type (self->priv->session, SOUP_TYPE_LOGGER); + + logger = soup_logger_new ((SoupLoggerLogLevel) log_level, -1); + soup_session_add_feature (self->priv->session, SOUP_SESSION_FEATURE (logger)); + g_object_unref (logger); + + self->priv->log_level = (SoupLoggerLogLevel) log_level; +} + +/** + * grl_net_wc_set_throttling: + * @self: a #GrlNetWc instance + * @throttling: the number of seconds to wait between requests + * + * Setting this property, the #GrlNetWc will queue all the requests and + * will dispatch them with a pause between them of this value. + */ +void +grl_net_wc_set_throttling (GrlNetWc *self, + guint throttling) +{ + g_return_if_fail (GRL_IS_NET_WC (self)); + + if (throttling > 0) { + /* max conns per host = 1 */ + g_object_set (self->priv->session, + SOUP_SESSION_MAX_CONNS_PER_HOST, 1, NULL); + } else { + /* default value */ + g_object_set (self->priv->session, + SOUP_SESSION_MAX_CONNS_PER_HOST, 2, NULL); + } + + self->priv->throttling = throttling; +} + +/** + * grl_net_wc_set_cache: + * @self: a #GrlNetWc instance + * @use_cache: if cache must be used or not + * + * Sets if cache must be used. Note that this will only work if caching is + * supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE, + * current cache is clean and removed. + * + * Since: 0.1.12 + **/ +void +grl_net_wc_set_cache (GrlNetWc *self, + gboolean use_cache) +{ + g_return_if_fail (GRL_IS_NET_WC (self)); + + if (use_cache && !cache_is_available (self)) + cache_up (self); + else if (!use_cache && cache_is_available (self)) + cache_down (self); +} + +/** + * grl_net_wc_set_cache_size: + * @self: a #GrlNetWc instance + * @cache_size: size of cache (in Mb) + * + * Sets the new maximum size of cache, in Megabytes. Default value is 10. Using + * 0 means no cache will be done. + * + * Since: 0.1.12 + **/ +void +grl_net_wc_set_cache_size (GrlNetWc *self, + guint size) +{ + g_return_if_fail (GRL_IS_NET_WC (self)); + + if (self->priv->cache_size == size) + return; + + self->priv->cache_size = size; + + SoupSessionFeature *cache = soup_session_get_feature (self->priv->session, SOUP_TYPE_CACHE); + if (!cache) + return; + + soup_cache_set_max_size (SOUP_CACHE (cache), size * 1024 * 1024); +} + +/** + * grl_net_wc_flush_delayed_requests: + * @self: a #GrlNetWc instance + * + * This method will flush all the pending request in the queue. + */ +void +grl_net_wc_flush_delayed_requests (GrlNetWc *self) +{ + GrlNetWcPrivate *priv = self->priv; + struct request_clos *c; + + g_return_if_fail (GRL_IS_NET_WC (self)); + + while ((c = g_queue_pop_head (priv->pending))) { + if (c->cancellable) + g_cancellable_cancel (c->cancellable); + /* This will call the destroy notify, request_clos_destroy() */ + g_source_remove (c->source_id); + } + + g_get_current_time (&priv->last_request); +} diff --git a/libs/net/grl-net-wc.h b/libs/net/grl-net-wc.h new file mode 100644 index 0000000..e8da707 --- /dev/null +++ b/libs/net/grl-net-wc.h @@ -0,0 +1,165 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * Copyright (C) 2012 Canonical Ltd. + * + * Contact: Iago Toral Quiroga + * + * Authors: Víctor M. Jáquez L. + * Jens Georg + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_NET_WC_H_ +#define _GRL_NET_WC_H_ + +#include + +G_BEGIN_DECLS + +/** + * GrlNetWcError: + * @GRL_NET_WC_ERROR_UNAVAILABLE: Deprecated. For generic errors, you + * should check for G_IO_ERROR_FAILED from G_IO_ERROR domain. + * @GRL_NET_WC_ERROR_PROTOCOL_ERROR: Invalid URI or header + * @GRL_NET_WC_ERROR_AUTHENTICATION_REQUIRED: Required authentication + * @GRL_NET_WC_ERROR_NOT_FOUND: Request resource not found + * @GRL_NET_WC_ERROR_CONFLICT: The entry has been modified since is was + * downloaded + * @GRL_NET_WC_ERROR_FORBIDDEN: TBD + * @GRL_NET_WC_ERROR_NETWORK_ERROR: Cannot connect to the server + * @GRL_NET_WC_ERROR_PROXY_ERROR: Deprecated. You should check for + * G_IO_ERROR_PROXY_FAILED from G_IO_ERROR domain. + * @GRL_NET_WC_ERROR_CANCELLED: Deprecated. You should check for + * G_IO_ERROR_CANCELLED from G_IO_ERROR domain. + * + * These constants identify all the available errors managed by + * the web client. + */ +typedef enum { + GRL_NET_WC_ERROR_UNAVAILABLE = 1, + GRL_NET_WC_ERROR_PROTOCOL_ERROR, + GRL_NET_WC_ERROR_AUTHENTICATION_REQUIRED, + GRL_NET_WC_ERROR_NOT_FOUND, + GRL_NET_WC_ERROR_CONFLICT, + GRL_NET_WC_ERROR_FORBIDDEN, + GRL_NET_WC_ERROR_NETWORK_ERROR, + GRL_NET_WC_ERROR_PROXY_ERROR, + GRL_NET_WC_ERROR_CANCELLED +} GrlNetWcError; + +#define GRL_TYPE_NET_WC \ + (grl_net_wc_get_type ()) + +#define GRL_NET_WC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRL_TYPE_NET_WC, GrlNetWc)) + +#define GRL_IS_NET_WC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRL_TYPE_NET_WC)) + +#define GRL_NET_WC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), GRL_TYPE_NET_WC, GrlNetWcClass)) + +#define GRL_IS_NET_WC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), GRL_TYPE_NET_WC)) + +#define GRL_NET_WC_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), GRL_TYPE_NET_WC, GrlNetWcClass)) + +#define GRL_NET_WC_ERROR grl_net_wc_error_quark () + +typedef struct _GrlNetWc GrlNetWc; +typedef struct _GrlNetWcClass GrlNetWcClass; +typedef struct _GrlNetWcPrivate GrlNetWcPrivate; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlNetWc, g_object_unref) + +/** + * GrlNetWc: + * @parent: the parent object struct + */ +struct _GrlNetWc +{ + GObject parent; + + /*< private >*/ + GrlNetWcPrivate *priv; +}; + +/** + * GrlNetWcClass: + * @parent_class: the parent class structure + * + * Grilo web client helper class. + * + * It's a simple and thin web client to be used by the sources to download + * content from Internet. + */ +struct _GrlNetWcClass +{ + GObjectClass parent_class; +}; + +GType grl_net_wc_get_type (void) G_GNUC_CONST; + +GQuark grl_net_wc_error_quark (void) G_GNUC_CONST; + +GrlNetWc *grl_net_wc_new (void); + +void grl_net_wc_request_async (GrlNetWc *self, + const char *uri, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +void grl_net_wc_request_with_headers_hash_async (GrlNetWc *self, + const char *uri, + GHashTable *headers, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +void grl_net_wc_request_with_headers_async (GrlNetWc *self, + const char *uri, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data, + ...) G_GNUC_NULL_TERMINATED; + +gboolean grl_net_wc_request_finish (GrlNetWc *self, + GAsyncResult *result, + gchar **content, + gsize *length, + GError **error); + +void grl_net_wc_set_log_level (GrlNetWc *self, + guint log_level); + +void grl_net_wc_set_throttling (GrlNetWc *self, + guint throttling); + +void grl_net_wc_set_cache (GrlNetWc *self, + gboolean use_cache); + +void grl_net_wc_set_cache_size (GrlNetWc *self, + guint cache_size); + +void grl_net_wc_flush_delayed_requests (GrlNetWc *self); + +G_END_DECLS + +#endif /* _GRL_NET_WC_H_ */ diff --git a/libs/net/grl-net.h b/libs/net/grl-net.h new file mode 100644 index 0000000..db55709 --- /dev/null +++ b/libs/net/grl-net.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2010 Igalia S.L. + * + * Contact: Víctor M. Jáquez L. + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_NET_H_ +#define _GRL_NET_H_ + +#include + +#endif /* _GRL_NET_H_ */ diff --git a/libs/net/meson.build b/libs/net/meson.build new file mode 100644 index 0000000..de9b6a6 --- /dev/null +++ b/libs/net/meson.build @@ -0,0 +1,49 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +grlnet_sources = [ + 'grl-net-mock.c', + 'grl-net-wc.c', +] + +grlnet_headers = [ + 'grl-net.h', + 'grl-net-wc.h', +] + +grlnet_priv_headers = [ + 'grl-net-mock-private.h', +] + +configure_file(output: 'config.h', + configuration: cdata) + +install_headers(grlnet_headers, + subdir: '@0@/net'.format(grl_name)) + +libgrlnet = shared_library('grlnet-@0@'.format(grl_majorminor), + sources: grlnet_sources + grlnet_priv_headers, + soversion: soversion, + version: grlnet_lt_version, + install: true, + c_args: '-DHAVE_CONFIG_H', + dependencies: [libsoup_dep, libgrl_dep], + include_directories: libgrl_inc) + +if enable_gir + grlnet_gir = gnome.generate_gir(libgrlnet, + sources: grlnet_headers + grlnet_sources, + namespace: 'GrlNet', + nsversion: grl_majorminor, + identifier_prefix: 'GrlNet', + symbol_prefix: 'grl_net', + dependencies: [ gobject_dep, gio_dep, libsoup_dep ], + includes: [ 'GObject-2.0', 'Gio-2.0', 'Soup-2.4' ], + include_directories: libs_inc, + install: true, + extra_args: [ '--c-include=net/grl-net.h' ]) +endif diff --git a/libs/pls/Makefile.am b/libs/pls/Makefile.am new file mode 100644 index 0000000..f2504af --- /dev/null +++ b/libs/pls/Makefile.am @@ -0,0 +1,74 @@ +# +# Makefile.am +# +# Author: Mateu Batle +# +# Copyright (C) 2013 Collabora Ltd. All rights reserved. + + +lib_LTLIBRARIES = libgrlpls-@GRL_MAJORMINOR@.la + +libgrlpls_@GRL_MAJORMINOR@_la_DEPENDENCIES = \ + $(top_builddir)/src/lib@GRL_NAME@.la + +libgrlpls_@GRL_MAJORMINOR@_la_SOURCES = \ + grl-pls.c + +libgrlpls_@GRL_MAJORMINOR@_la_CFLAGS = \ + -I $(top_srcdir)/src \ + -I $(top_srcdir)/src/data \ + -DLOCALEDIR=\"$(localedir)\" \ + $(DEPS_CFLAGS) \ + $(TOTEM_PL_PARSER_CFLAGS) + +libgrlpls_@GRL_MAJORMINOR@_la_LIBADD = \ + $(top_builddir)/src/lib@GRL_NAME@.la \ + $(DEPS_LIBS) \ + $(TOTEM_PL_PARSER_LIBS) + +libgrlpls_@GRL_MAJORMINOR@_la_LDFLAGS = \ + -version-info $(GRLPLS_LT_VERSION) \ + -no-undefined + +libgrlpls_@GRL_MAJORMINOR@includedir = \ + $(includedir)/@GRL_NAME@/pls + +libgrlpls_@GRL_MAJORMINOR@include_HEADERS = \ + grl-pls.h + +CLEANFILES = *.gir + +# introspection support +if HAVE_INTROSPECTION +-include $(INTROSPECTION_MAKEFILE) +gir_headers = $(patsubst %,$(srcdir)/%, $(libgrlpls_@GRL_MAJORMINOR@include_HEADERS)) +gir_sources = $(patsubst %,$(srcdir)/%, $(libgrlpls_@GRL_MAJORMINOR@_la_SOURCES)) + +INTROSPECTION_GIRS = +INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(top_srcdir)/src +INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)/src --includedir=$(top_builddir)/src + +introspection_sources = \ + $(gir_headers) \ + $(gir_sources) + +GrlPls-@GRL_MAJORMINOR@.gir: libgrlpls-@GRL_MAJORMINOR@.la +GrlPls_@GRL_MAJORMINOR_NORM@_gir_INCLUDES = GObject-2.0 Gio-2.0 +GrlPls_@GRL_MAJORMINOR_NORM@_gir_SCANNERFLAGS = --include-uninstalled=$(top_builddir)/src/Grl-@GRL_MAJORMINOR@.gir +GrlPls_@GRL_MAJORMINOR_NORM@_gir_CFLAGS = -I $(top_srcdir)/src \ + -I $(top_srcdir)/src/data -I $(top_srcdir)/libs +GrlPls_@GRL_MAJORMINOR_NORM@_gir_LIBS = libgrlpls-@GRL_MAJORMINOR@.la \ + $(top_builddir)/src/lib@GRL_NAME@.la +GrlPls_@GRL_MAJORMINOR_NORM@_gir_FILES = $(introspection_sources) +INTROSPECTION_GIRS += GrlPls-@GRL_MAJORMINOR@.gir + +girdir = $(datadir)/gir-1.0 +gir_DATA = $(INTROSPECTION_GIRS) + +typelibdir = $(libdir)/girepository-1.0/ +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +CLEANFILES += $(dist_gir_DATA) $(typelib_DATA) +endif + +-include $(top_srcdir)/git.mk diff --git a/libs/pls/Makefile.in b/libs/pls/Makefile.in new file mode 100644 index 0000000..78765b6 --- /dev/null +++ b/libs/pls/Makefile.in @@ -0,0 +1,794 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Mateu Batle +# +# Copyright (C) 2013 Collabora Ltd. All rights reserved. + + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@HAVE_INTROSPECTION_TRUE@am__append_1 = $(dist_gir_DATA) $(typelib_DATA) +subdir = libs/pls +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am \ + $(libgrlpls_@GRL_MAJORMINOR@include_HEADERS) \ + $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \ + "$(DESTDIR)$(typelibdir)" \ + "$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 = +am_libgrlpls_@GRL_MAJORMINOR@_la_OBJECTS = \ + libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.lo +libgrlpls_@GRL_MAJORMINOR@_la_OBJECTS = \ + $(am_libgrlpls_@GRL_MAJORMINOR@_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +libgrlpls_@GRL_MAJORMINOR@_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libgrlpls_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) \ + $(libgrlpls_@GRL_MAJORMINOR@_la_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libgrlpls_@GRL_MAJORMINOR@_la_SOURCES) +DIST_SOURCES = $(libgrlpls_@GRL_MAJORMINOR@_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(gir_DATA) $(typelib_DATA) +HEADERS = $(libgrlpls_@GRL_MAJORMINOR@include_HEADERS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +lib_LTLIBRARIES = libgrlpls-@GRL_MAJORMINOR@.la +libgrlpls_@GRL_MAJORMINOR@_la_DEPENDENCIES = \ + $(top_builddir)/src/lib@GRL_NAME@.la + +libgrlpls_@GRL_MAJORMINOR@_la_SOURCES = \ + grl-pls.c + +libgrlpls_@GRL_MAJORMINOR@_la_CFLAGS = \ + -I $(top_srcdir)/src \ + -I $(top_srcdir)/src/data \ + -DLOCALEDIR=\"$(localedir)\" \ + $(DEPS_CFLAGS) \ + $(TOTEM_PL_PARSER_CFLAGS) + +libgrlpls_@GRL_MAJORMINOR@_la_LIBADD = \ + $(top_builddir)/src/lib@GRL_NAME@.la \ + $(DEPS_LIBS) \ + $(TOTEM_PL_PARSER_LIBS) + +libgrlpls_@GRL_MAJORMINOR@_la_LDFLAGS = \ + -version-info $(GRLPLS_LT_VERSION) \ + -no-undefined + +libgrlpls_@GRL_MAJORMINOR@includedir = \ + $(includedir)/@GRL_NAME@/pls + +libgrlpls_@GRL_MAJORMINOR@include_HEADERS = \ + grl-pls.h + +CLEANFILES = *.gir $(am__append_1) +@HAVE_INTROSPECTION_TRUE@gir_headers = $(patsubst %,$(srcdir)/%, $(libgrlpls_@GRL_MAJORMINOR@include_HEADERS)) +@HAVE_INTROSPECTION_TRUE@gir_sources = $(patsubst %,$(srcdir)/%, $(libgrlpls_@GRL_MAJORMINOR@_la_SOURCES)) +@HAVE_INTROSPECTION_TRUE@INTROSPECTION_GIRS = \ +@HAVE_INTROSPECTION_TRUE@ GrlPls-@GRL_MAJORMINOR@.gir +@HAVE_INTROSPECTION_TRUE@INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(top_srcdir)/src +@HAVE_INTROSPECTION_TRUE@INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)/src --includedir=$(top_builddir)/src +@HAVE_INTROSPECTION_TRUE@introspection_sources = \ +@HAVE_INTROSPECTION_TRUE@ $(gir_headers) \ +@HAVE_INTROSPECTION_TRUE@ $(gir_sources) + +@HAVE_INTROSPECTION_TRUE@GrlPls_@GRL_MAJORMINOR_NORM@_gir_INCLUDES = GObject-2.0 Gio-2.0 +@HAVE_INTROSPECTION_TRUE@GrlPls_@GRL_MAJORMINOR_NORM@_gir_SCANNERFLAGS = --include-uninstalled=$(top_builddir)/src/Grl-@GRL_MAJORMINOR@.gir +@HAVE_INTROSPECTION_TRUE@GrlPls_@GRL_MAJORMINOR_NORM@_gir_CFLAGS = -I $(top_srcdir)/src \ +@HAVE_INTROSPECTION_TRUE@ -I $(top_srcdir)/src/data -I $(top_srcdir)/libs + +@HAVE_INTROSPECTION_TRUE@GrlPls_@GRL_MAJORMINOR_NORM@_gir_LIBS = libgrlpls-@GRL_MAJORMINOR@.la \ +@HAVE_INTROSPECTION_TRUE@ $(top_builddir)/src/lib@GRL_NAME@.la + +@HAVE_INTROSPECTION_TRUE@GrlPls_@GRL_MAJORMINOR_NORM@_gir_FILES = $(introspection_sources) +@HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0 +@HAVE_INTROSPECTION_TRUE@gir_DATA = $(INTROSPECTION_GIRS) +@HAVE_INTROSPECTION_TRUE@typelibdir = $(libdir)/girepository-1.0/ +@HAVE_INTROSPECTION_TRUE@typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libs/pls/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign libs/pls/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +libgrlpls-@GRL_MAJORMINOR@.la: $(libgrlpls_@GRL_MAJORMINOR@_la_OBJECTS) $(libgrlpls_@GRL_MAJORMINOR@_la_DEPENDENCIES) $(EXTRA_libgrlpls_@GRL_MAJORMINOR@_la_DEPENDENCIES) + $(AM_V_CCLD)$(libgrlpls_@GRL_MAJORMINOR@_la_LINK) -rpath $(libdir) $(libgrlpls_@GRL_MAJORMINOR@_la_OBJECTS) $(libgrlpls_@GRL_MAJORMINOR@_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.lo: grl-pls.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgrlpls_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) -MT libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.lo -MD -MP -MF $(DEPDIR)/libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.Tpo -c -o libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.lo `test -f 'grl-pls.c' || echo '$(srcdir)/'`grl-pls.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.Tpo $(DEPDIR)/libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-pls.c' object='libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgrlpls_@GRL_MAJORMINOR@_la_CFLAGS) $(CFLAGS) -c -o libgrlpls_@GRL_MAJORMINOR@_la-grl-pls.lo `test -f 'grl-pls.c' || echo '$(srcdir)/'`grl-pls.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-girDATA: $(gir_DATA) + @$(NORMAL_INSTALL) + @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \ + done + +uninstall-girDATA: + @$(NORMAL_UNINSTALL) + @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) +install-typelibDATA: $(typelib_DATA) + @$(NORMAL_INSTALL) + @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(typelibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(typelibdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibdir)" || exit $$?; \ + done + +uninstall-typelibDATA: + @$(NORMAL_UNINSTALL) + @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(typelibdir)'; $(am__uninstall_files_from_dir) +install-libgrlpls_@GRL_MAJORMINOR@includeHEADERS: $(libgrlpls_@GRL_MAJORMINOR@include_HEADERS) + @$(NORMAL_INSTALL) + @list='$(libgrlpls_@GRL_MAJORMINOR@include_HEADERS)'; test -n "$(libgrlpls_@GRL_MAJORMINOR@includedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)" || exit $$?; \ + done + +uninstall-libgrlpls_@GRL_MAJORMINOR@includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(libgrlpls_@GRL_MAJORMINOR@include_HEADERS)'; test -n "$(libgrlpls_@GRL_MAJORMINOR@includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(libgrlpls_@GRL_MAJORMINOR@includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-girDATA \ + install-libgrlpls_@GRL_MAJORMINOR@includeHEADERS \ + install-typelibDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \ + uninstall-libgrlpls_@GRL_MAJORMINOR@includeHEADERS \ + uninstall-typelibDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool cscopelist-am ctags-am \ + distclean distclean-compile distclean-generic \ + distclean-libtool distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-girDATA \ + install-html install-html-am install-info install-info-am \ + install-libLTLIBRARIES \ + install-libgrlpls_@GRL_MAJORMINOR@includeHEADERS install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip install-typelibDATA installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am uninstall-girDATA uninstall-libLTLIBRARIES \ + uninstall-libgrlpls_@GRL_MAJORMINOR@includeHEADERS \ + uninstall-typelibDATA + +.PRECIOUS: Makefile + + +# introspection support +@HAVE_INTROSPECTION_TRUE@-include $(INTROSPECTION_MAKEFILE) + +@HAVE_INTROSPECTION_TRUE@GrlPls-@GRL_MAJORMINOR@.gir: libgrlpls-@GRL_MAJORMINOR@.la + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/libs/pls/grl-pls.c b/libs/pls/grl-pls.c new file mode 100644 index 0000000..ba7d849 --- /dev/null +++ b/libs/pls/grl-pls.c @@ -0,0 +1,1390 @@ +/* + * Copyright (C) 2013 Collabora Ltd. + * + * Author: Mateu Batle Sastre + * Bastien Nocera + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-pls + * @short_description: playlist handling functions + * + * Grilo only deals with audio, video or image content, but not with + * playlists. This library allow to identify playlists and browse into them + * exposing playlist entries as GrlMedia objects. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "grl-pls.h" + +#include "grl-operation-priv.h" +#include "grl-sync-priv.h" + +#include +#include +#include +#include +#include +#include +#include + +/* --------- Constants -------- */ + +#define GRL_DATA_PRIV_PLS_IS_PLAYLIST "priv:pls:is_playlist" +#define GRL_DATA_PRIV_PLS_VALID_ENTRIES "priv:pls:valid_entries" + +typedef enum { + GRL_PLS_IS_PLAYLIST_FALSE = -1, + GRL_PLS_IS_PLAYLIST_UNKNOWN = 0, + GRL_PLS_IS_PLAYLIST_TRUE = 1 +} _GrlPlsIsPlaylist; + +/* --------- Logging -------- */ + +#define GRL_LOG_DOMAIN_DEFAULT libpls_log_domain +GRL_LOG_DOMAIN_STATIC(libpls_log_domain); + +/* -------- File info ------- */ + +#ifndef G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID +#define G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID "thumbnail::is-valid" +#endif + +#define FILE_ATTRIBUTES \ + G_FILE_ATTRIBUTE_STANDARD_NAME "," \ + G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "," \ + G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," \ + G_FILE_ATTRIBUTE_STANDARD_TYPE "," \ + G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "," \ + G_FILE_ATTRIBUTE_STANDARD_SIZE "," \ + G_FILE_ATTRIBUTE_TIME_MODIFIED "," \ + G_FILE_ATTRIBUTE_THUMBNAIL_PATH "," \ + G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "," \ + G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID + +/* -------- Data structures ------- */ + +struct _GrlPlsPrivate { + gpointer user_data; + GCancellable *cancellable; + GrlPlsFilterFunc filter_func; + GPtrArray *entries; +}; + +struct OperationState { + GrlSource *source; + guint operation_id; + gboolean cancelled; + gboolean completed; + gboolean started; + GrlSourceBrowseSpec *bs; +}; + +/* -------- Prototypes ------- */ + +static void +grl_pls_cancel_cb (struct OperationState *op_state); +static GrlMedia* +grl_media_new_from_pls_entry (const gchar *uri, + GHashTable *metadata); + +/* -------- Variables ------- */ + +static GHashTable *operations = NULL; + +/* -------- Functions ------- */ + +static void +grl_pls_private_free (struct _GrlPlsPrivate *priv) +{ + g_return_if_fail (priv); + + g_clear_object (&priv->cancellable); + g_free (priv); +} + +static void +grl_source_browse_spec_free (GrlSourceBrowseSpec *spec) +{ + g_clear_object (&spec->source); + g_clear_object (&spec->container); + + if (spec->keys) { + /* TODO */ + spec->keys = NULL; + } + + g_clear_object (&spec->options); + + if (spec->user_data) { + struct _GrlPlsPrivate *priv = (struct _GrlPlsPrivate *) spec->user_data; + grl_pls_private_free (priv); + } + + g_free (spec); +} + +static void +grl_pls_entries_array_free (GPtrArray *entries) +{ + g_return_if_fail (entries); + + g_ptr_array_free (entries, TRUE); +} + +static void +grl_pls_valid_entries_ptrarray_free (GPtrArray *valid_entries) +{ + g_return_if_fail (valid_entries); + + g_ptr_array_free (valid_entries, TRUE); +} + +static void +grl_pls_init (void) +{ + static gboolean initialized = FALSE; + + if (!initialized) { + GRL_LOG_DOMAIN_INIT (libpls_log_domain, "pls"); + + operations = g_hash_table_new_full (g_direct_hash, g_direct_equal, + NULL, + (GDestroyNotify) grl_source_browse_spec_free); + + initialized = TRUE; + } +} + +static gboolean +mime_is_video (const gchar *mime) +{ + return g_content_type_is_a (mime, "video/*"); +} + +static gboolean +mime_is_audio (const gchar *mime) +{ + return g_content_type_is_a (mime, "audio/*"); +} + +static gboolean +mime_is_image (const gchar *mime) +{ + return g_content_type_is_a (mime, "image/*"); +} + +static void +operation_state_free (struct OperationState *op_state) +{ + g_return_if_fail (op_state); + + GRL_DEBUG ("%s (%p)", __FUNCTION__, op_state); + + g_object_unref (op_state->source); + g_free (op_state); +} + +/* + * operation_set_finished: + * + * Sets operation as finished (we have already emitted the last result + * to the user). + */ +static void +operation_set_finished (guint operation_id) +{ + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + grl_operation_remove (operation_id); +} + +/* + * operation_set_completed: + * + * Sets the operation as completed (we have already received the last + * result in the relay cb. If it is finsihed it is also completed). + */ +static void +operation_set_completed (guint operation_id) +{ + struct OperationState *op_state; + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = grl_operation_get_private_data (operation_id); + + if (op_state) { + op_state->completed = TRUE; + } +} + +/* + * operation_is_completed: + * + * Checks if operation is completed (we have already received the last + * result in the relay cb. A finished operation is also a completed + * operation). + */ +static gboolean +operation_is_completed (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return !op_state || op_state->completed; +} + +/* + * operation_set_cancelled: + * + * Sets the operation as cancelled (a valid operation, i.e., not + * finished, was cancelled) + */ +static void +operation_set_cancelled (guint operation_id) +{ + struct OperationState *op_state; + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = grl_operation_get_private_data (operation_id); + + if (op_state) { + op_state->cancelled = TRUE; + } +} + +/* + * operation_is_cancelled: + * + * Checks if operation is cancelled (a valid operation that was + * cancelled). + */ +static gboolean +operation_is_cancelled (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return op_state && op_state->cancelled; +} + +/* + * operation_set_ongoing: + * + * Sets the operation as ongoing (operation is valid, not finished, not started + * and not cancelled) + */ +static void +operation_set_ongoing (GrlSource *source, guint operation_id, GrlSourceBrowseSpec *bs) +{ + struct OperationState *op_state; + + g_return_if_fail (source); + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = g_new0 (struct OperationState, 1); + op_state->source = g_object_ref (source); + op_state->operation_id = operation_id; + op_state->bs = bs; + + grl_operation_set_private_data (operation_id, + op_state, + (GrlOperationCancelCb) grl_pls_cancel_cb, + (GDestroyNotify) operation_state_free); +} + +/* + * operation_is_ongoing: + * + * Checks if operation is ongoing (operation is valid, and it is not + * finished nor cancelled). + */ +static gboolean +operation_is_ongoing (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return op_state && !op_state->cancelled; +} + +static void +grl_pls_cancel_cb (struct OperationState *op_state) +{ + struct _GrlPlsPrivate *priv; + + g_return_if_fail (op_state); + + GRL_DEBUG ("%s (%p)", __FUNCTION__, op_state); + + if (!operation_is_ongoing (op_state->operation_id)) { + GRL_DEBUG ("Tried to cancel invalid or already cancelled operation. " + "Skipping..."); + return; + } + + operation_set_cancelled (op_state->operation_id); + + /* Cancel the totem playlist parsing operation */ + priv = (struct _GrlPlsPrivate *) op_state->bs->user_data; + if (priv && !g_cancellable_is_cancelled (priv->cancellable)) { + g_cancellable_cancel (priv->cancellable); + } +} + +/** + * grl_pls_mime_is_playlist: + * @mime: mime type of the playlist + * + * Check if mime type corresponds to a playlist or not. + * This is quick to determine, but it does not offer full guarantees. + * + * Returns: %TRUE if mime type is a playlist recognized mime type + * + */ +static gboolean +grl_pls_mime_is_playlist (const gchar *mime) +{ + grl_pls_init(); + + GRL_DEBUG ("%s (\"%s\")", __FUNCTION__, mime); + + g_return_val_if_fail (mime, FALSE); + + return g_str_has_prefix (mime, "audio/x-ms-asx") || + g_str_has_prefix (mime, "audio/mpegurl") || + g_str_has_prefix (mime, "audio/x-mpegurl") || + g_str_has_prefix (mime, "audio/x-scpls"); +} + +static gboolean +grl_pls_file_is_playlist (const gchar *uri) +{ + char *filename; + gboolean ret; + + grl_pls_init(); + + GRL_DEBUG ("%s (\"%s\")", __FUNCTION__, uri); + + g_return_val_if_fail (uri, FALSE); + + filename = g_filename_from_uri (uri, NULL, NULL); + if (!filename) + return FALSE; + + ret = totem_pl_parser_can_parse_from_filename (filename, FALSE); + g_free (filename); + return ret; +} + +/** + * grl_pls_media_is_playlist: + * @media: GrlMedia + * + * Check if a file identified by GrlMedia object is a playlist or not. + * This function does blocking I/O. + * + * Returns: %TRUE if a GrlMedia is recognized as a playlist. + * + * Since: 0.2.0 + */ +gboolean +grl_pls_media_is_playlist (GrlMedia *media) +{ + const gchar *playlist_url; + gpointer ptr; + _GrlPlsIsPlaylist is_pls; + + grl_pls_init(); + + GRL_DEBUG ("%s (\"%p\") id=%s", __FUNCTION__, media, + media ? grl_media_get_id(media) : NULL); + + g_return_val_if_fail (media, FALSE); + + is_pls = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (media), GRL_DATA_PRIV_PLS_IS_PLAYLIST)); + if (is_pls != GRL_PLS_IS_PLAYLIST_UNKNOWN) { + GRL_DEBUG ("%s : using cached value = %d", __FUNCTION__, (is_pls == GRL_PLS_IS_PLAYLIST_TRUE)); + return (is_pls == GRL_PLS_IS_PLAYLIST_TRUE); + } + + playlist_url = grl_media_get_url (media); + if (!playlist_url) { + GRL_DEBUG ("%s: no URL found", __FUNCTION__); + return FALSE; + } + + is_pls = grl_pls_file_is_playlist (playlist_url) ? + GRL_PLS_IS_PLAYLIST_TRUE : GRL_PLS_IS_PLAYLIST_FALSE; + + ptr = GINT_TO_POINTER (is_pls); + g_object_set_data (G_OBJECT (media), GRL_DATA_PRIV_PLS_IS_PLAYLIST, ptr); + GRL_DEBUG ("%s : caching value = %d", __FUNCTION__, is_pls); + + return (is_pls == GRL_PLS_IS_PLAYLIST_TRUE); +} + +static void +grl_pls_playlist_entry_parsed_cb (TotemPlParser *parser, + const gchar *uri, + GHashTable *metadata, + gpointer user_data) +{ + GrlSourceBrowseSpec *bs = (GrlSourceBrowseSpec *) user_data; + struct _GrlPlsPrivate *priv; + GrlMedia *media; + GError *_error; + + priv = bs->user_data; + + GRL_DEBUG ("%s (parser=%p, uri=\"%s\", metadata=%p, user_data=%p)", + __FUNCTION__, parser, uri, metadata, user_data); + + g_return_if_fail (TOTEM_IS_PL_PARSER (parser)); + g_return_if_fail (uri); + g_return_if_fail (metadata); + g_return_if_fail (user_data); + g_return_if_fail (bs->user_data); + + priv = (struct _GrlPlsPrivate *) bs->user_data; + + /* Ignore elements after operation has completed */ + if (operation_is_completed (bs->operation_id)) { + GRL_WARNING ("Entry parsed after playlist completed for operation %d", + bs->operation_id); + return; + } + + /* Check if cancelled */ + if (operation_is_cancelled (bs->operation_id)) { + GRL_DEBUG ("Operation was cancelled, skipping result until getting the last one"); + /* Wait for the last element */ + _error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED, + _("Operation was cancelled")); + bs->callback (bs->source, bs->operation_id, NULL, 0, priv->user_data, _error); + g_error_free (_error); + return; + } + + media = grl_media_new_from_pls_entry (uri, metadata); + if (priv->filter_func != NULL) + media = (priv->filter_func) (bs->source, media, priv->user_data); + + if (media && priv->entries) { + GRL_DEBUG ("New playlist entry: URI=%s", uri); + g_ptr_array_add (priv->entries, media); + } else { + GRL_DEBUG ("Ignored playlist entry: URI=%s", uri); + } +} + +static GrlMedia* +grl_media_new_from_pls_entry (const gchar *uri, + GHashTable *metadata) +{ + GFile *file; + GrlOperationOptions *options; + GrlMedia *media; + const gchar *title, *thumbnail; + const gchar *description, *mimetype; + const gchar *duration_ms; + const gchar *audio_track; + + GRL_DEBUG ("%s (\"%s\")", __FUNCTION__, uri); + + g_return_val_if_fail (uri, NULL); + + file = g_file_new_for_uri (uri); + options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY); + media = grl_pls_file_to_media (NULL, file, NULL, FALSE, options); + g_object_unref (options); + g_object_unref (file); + + title = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_TITLE); + if (title) + grl_media_set_title (media, title); + duration_ms = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_DURATION_MS); + if (duration_ms != NULL) { + grl_media_set_duration (media, g_ascii_strtoll (duration_ms, NULL, -1) / 1000); + } else { + gint64 duration; + + duration = totem_pl_parser_parse_duration (g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_DURATION), FALSE); + if (duration > 0) + grl_media_set_duration (media, duration); + } + thumbnail = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_IMAGE_URI); + if (thumbnail) + grl_media_set_thumbnail (media, thumbnail); + description = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_DESCRIPTION); + if (description) + grl_media_set_description (media, description); + mimetype = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_CONTENT_TYPE); + if (mimetype) + grl_media_set_mime (media, mimetype); + +/* For older totem-pl-parser versions */ +#ifndef TOTEM_PL_PARSER_FIELD_AUDIO_TRACK +#define TOTEM_PL_PARSER_FIELD_AUDIO_TRACK "audio-track" +#endif + audio_track = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_AUDIO_TRACK); + if (audio_track) + grl_data_set_int (GRL_DATA (media), GRL_METADATA_KEY_AUDIO_TRACK, atoi (audio_track)); + + if (grl_media_is_audio (media)) { + grl_media_set_album (media, g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_ALBUM)); + grl_media_set_artist (media, g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_AUTHOR)); + grl_media_set_genre (media, g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_GENRE)); + } + + return media; +} + +static gint +grl_pls_browse_report_error (GrlSourceBrowseSpec *bs, const gchar *message) +{ + struct _GrlPlsPrivate *priv = (struct _GrlPlsPrivate *) bs->user_data; + + GError *error = g_error_new_literal (GRL_CORE_ERROR, + GRL_CORE_ERROR_BROWSE_FAILED, + message); + bs->callback (bs->source, bs->operation_id, bs->container, 0, priv->user_data, error); + g_error_free (error); + + return FALSE; +} + +static gboolean +grl_pls_browse_report_results (GrlSourceBrowseSpec *bs) +{ + guint skip; + guint count; + guint remaining; + GPtrArray *valid_entries; + struct _GrlPlsPrivate *priv; + gboolean called_from_plugin; + + GRL_DEBUG ("%s (bs=%p)", __FUNCTION__, bs); + + g_return_val_if_fail (bs, FALSE); + g_return_val_if_fail (bs->container, FALSE); + g_return_val_if_fail (bs->options, FALSE); + g_return_val_if_fail (bs->operation_id, FALSE); + g_return_val_if_fail (bs->user_data, FALSE); + + priv = bs->user_data; + + valid_entries = g_object_get_data (G_OBJECT (bs->container), + GRL_DATA_PRIV_PLS_VALID_ENTRIES); + if (valid_entries) { + skip = grl_operation_options_get_skip (bs->options); + if (skip > valid_entries->len) + skip = valid_entries->len; + + count = grl_operation_options_get_count (bs->options); + if (skip + count > valid_entries->len) + count = valid_entries->len - skip; + + remaining = MIN (valid_entries->len - skip, count); + } else { + skip = 0; + count = 0; + remaining = 0; + } + + GRL_DEBUG ("%s, skip: %d, count: %d, remaining: %d, num entries: %d", + __FUNCTION__, skip, count, remaining, valid_entries ? valid_entries->len : 0); + + if (remaining) { + int i; + + for (i = 0;i < count;i++) { + GrlMedia *content; + + content = g_ptr_array_index (valid_entries, skip + i); + g_object_ref (content); + remaining--; + bs->callback (bs->source, + bs->operation_id, + content, + remaining, + priv->user_data, + NULL); + GRL_DEBUG ("callback called source=%p id=%d content=%p remaining=%d user_data=%p", + bs->source, bs->operation_id, content, remaining, priv->user_data); + } + } else { + bs->callback (bs->source, + bs->operation_id, + NULL, + 0, + priv->user_data, + NULL); + } + + called_from_plugin = g_hash_table_lookup (operations, + GUINT_TO_POINTER (bs->operation_id)) == NULL; + + if (!called_from_plugin) { + operation_set_completed (bs->operation_id); + operation_set_finished (bs->operation_id); + g_hash_table_remove (operations, GUINT_TO_POINTER (bs->operation_id)); + } + + return FALSE; +} + +static void +grl_pls_playlist_parse_cb (GObject *object, + GAsyncResult *result, + gpointer user_data) +{ + TotemPlParser *parser = (TotemPlParser *) object; + TotemPlParserResult retval; + GrlSourceBrowseSpec *bs = (GrlSourceBrowseSpec *) user_data; + struct _GrlPlsPrivate *priv; + GError *error = NULL; + guint i; + GPtrArray *valid_entries; + + GRL_DEBUG ("%s (object=%p, result=%p, user_data=%p)", __FUNCTION__, object, result, user_data); + + g_return_if_fail (object); + g_return_if_fail (result); + g_return_if_fail (bs); + g_return_if_fail (bs->operation_id); + g_return_if_fail (bs->container); + g_return_if_fail (bs->user_data); + + priv = bs->user_data; + + retval = totem_pl_parser_parse_finish (parser, result, &error); + if (retval != TOTEM_PL_PARSER_RESULT_SUCCESS) { + if (retval == TOTEM_PL_PARSER_RESULT_ERROR) { + if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + GRL_ERROR ("Playlist parsing failed, retval=%d code=%d msg=%s", retval, error->code, error->message); + g_error_free (error); + } + return; + } + + valid_entries = g_object_get_data (G_OBJECT (bs->container), GRL_DATA_PRIV_PLS_VALID_ENTRIES); + + /* process all entries to see which ones are valid */ + for (i = 0;i < priv->entries->len;i++) { + struct GrlMedia *media; + media = g_ptr_array_index (priv->entries, i); + g_ptr_array_add (valid_entries, g_object_ref (media)); + } + + /* at this point we can free entries, not used anymore */ + grl_pls_entries_array_free (priv->entries); + priv->entries = NULL; + + if (grl_media_is_container (bs->container)) { + grl_media_set_childcount (bs->container, valid_entries->len); + } + + grl_pls_browse_report_results (bs); +} + +static gboolean +check_options (GrlSource *source, + GrlSupportedOps operation, + GrlOperationOptions *options) +{ + if (grl_operation_options_get_count (options) == 0) + return FALSE; + + /* Check only if the source supports the operation */ + if (grl_source_supported_operations (source) & operation) { + GrlCaps *caps; + caps = grl_source_get_caps (source, operation); + return grl_operation_options_obey_caps (options, caps, NULL, NULL); + } else { + return TRUE; + } +} + +static void +multiple_result_async_cb (GrlSource *source, + guint op_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (error) { + ds->error = g_error_copy (error); + + /* Free previous results */ + g_list_foreach (ds->data, (GFunc) g_object_unref, NULL); + g_list_free (ds->data); + + ds->data = NULL; + ds->complete = TRUE; + return; + } + + if (media) { + ds->data = g_list_prepend (ds->data, media); + } + + if (remaining == 0) { + ds->data = g_list_reverse (ds->data); + ds->complete = TRUE; + } +} + +/** + * grl_pls_browse_by_spec: + * @source: a source + * @filter_func: (scope async) (allow-none): A filter function, or %NULL + * @bs: a GrlSourceBrowseSpec structure with details of the browsing operation + * + * Browse into a playlist. The playlist entries are + * returned via the bs->callback function as GrlMedia objects. + * This function is more suitable to be called from plugins, which by + * design get the GrlSourceBrowseSpec already filled in. + * + * The bs->playlist provided could be of any GrlMedia class, + * as long as its URI points to a valid playlist file. + * + * This function is asynchronous. + * + * See #grl_pls_browse() and #grl_source_browse() function for additional + * information and sample code. + * + * Since: 0.2.0 + */ +void +grl_pls_browse_by_spec (GrlSource *source, + GrlPlsFilterFunc filter_func, + GrlSourceBrowseSpec *bs) +{ + TotemPlParser *parser; + const char *playlist_url; + struct _GrlPlsPrivate *priv; + GPtrArray *valid_entries; + + grl_pls_init(); + + GRL_DEBUG (__FUNCTION__); + + g_return_if_fail (GRL_IS_SOURCE (source)); + g_return_if_fail (GRL_IS_MEDIA (bs->container)); + g_return_if_fail (GRL_IS_OPERATION_OPTIONS (bs->options)); + g_return_if_fail (bs->callback != NULL); + g_return_if_fail (grl_source_supported_operations (bs->source) & + GRL_OP_BROWSE); + g_return_if_fail (check_options (source, GRL_OP_BROWSE, bs->options)); + + priv = g_new0 (struct _GrlPlsPrivate, 1); + priv->user_data = bs->user_data; + priv->cancellable = g_cancellable_new (); + priv->filter_func = filter_func; + bs->user_data = priv; + + playlist_url = grl_media_get_url (bs->container); + if (!playlist_url) { + GRL_DEBUG ("%s : Unable to get URL from Media %p", __FUNCTION__, bs->container); + grl_pls_browse_report_error (bs, "Unable to get URL from Media"); + return; + } + + /* check if we have the entries cached or not */ + valid_entries = g_object_get_data (G_OBJECT (bs->container), GRL_DATA_PRIV_PLS_VALID_ENTRIES); + if (valid_entries) { + guint id; + + GRL_DEBUG ("%s : using cached data bs=%p", __FUNCTION__, bs); + id = g_idle_add ((GSourceFunc) grl_pls_browse_report_results, bs); + g_source_set_name_by_id (id, "[grl-pls] grl_pls_browse_report_results"); + return; + } + + priv->entries = g_ptr_array_new_with_free_func (g_object_unref); + valid_entries = g_ptr_array_new_with_free_func (g_object_unref); + + parser = totem_pl_parser_new (); + + g_object_set_data_full (G_OBJECT (bs->container), + GRL_DATA_PRIV_PLS_VALID_ENTRIES, + valid_entries, + (GDestroyNotify) grl_pls_valid_entries_ptrarray_free); + + /* + * disable-unsafe: if %TRUE the parser will not parse unsafe locations, + * such as local devices and local files if the playlist isn't local. + * This is useful if the library is parsing a playlist from a remote + * location such as a website. */ + g_object_set (parser, + "recurse", FALSE, + "disable-unsafe", TRUE, + NULL); + g_signal_connect (G_OBJECT (parser), + "entry-parsed", + G_CALLBACK (grl_pls_playlist_entry_parsed_cb), + bs); + + totem_pl_parser_parse_async (parser, + playlist_url, + FALSE, + priv->cancellable, + grl_pls_playlist_parse_cb, + bs); + + g_object_unref (parser); +} + +/** + * grl_pls_browse: + * @source: a source + * @playlist: a playlist + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @filter_func: (scope async) (allow-none): A filter function, or %NULL + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Browse into a playlist. The playlist entries are + * returned via the @callback function as GrlMedia objects. + * This function imitates the API and way of working of + * #grl_source_browse. + * + * The @playlist provided could be of any GrlMedia class, + * as long as its URI points to a valid playlist file. + * + * This function is asynchronous. + * + * See #grl_source_browse() function for additional information + * and sample code. + * + * Returns: the operation identifier + * + * Since: 0.2.0 + */ +guint +grl_pls_browse (GrlSource *source, + GrlMedia *playlist, + const GList *keys, + GrlOperationOptions *options, + GrlPlsFilterFunc filter_func, + GrlSourceResultCb callback, + gpointer userdata) +{ + GrlSourceBrowseSpec *bs; + + grl_pls_init(); + + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + g_return_val_if_fail (GRL_IS_MEDIA (playlist), 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_BROWSE, 0); + g_return_val_if_fail (check_options (source, GRL_OP_BROWSE, options), 0); + + bs = g_new0 (GrlSourceBrowseSpec, 1); + + bs->source = g_object_ref (source); + bs->container = g_object_ref (playlist); + /* TODO: what to do with keys */ + bs->keys = NULL; + bs->options = grl_operation_options_copy (options); + bs->callback = callback; + bs->user_data = userdata; + bs->operation_id = grl_operation_generate_id (); + + g_hash_table_insert (operations, GUINT_TO_POINTER (bs->operation_id), bs); + + operation_set_ongoing (source, bs->operation_id, bs); + + grl_pls_browse_by_spec (source, filter_func, bs); + + return bs->operation_id; +} + +/** + * grl_pls_browse_sync: + * @source: a source + * @playlist: a playlist + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @filter_func: (scope async) (allow-none): A filter function, or %NULL + * @options: options wanted for that operation + * @error: a #GError, or @NULL + * + * Browse into a playlist. The playlist entries are + * returned via the @callback function as GrlMedia objects. + * This function imitates the API and way of working of + * #grl_source_browse_sync. + * + * The filter function @filter_func will be used for plugins + * or applications to be able to refuse particular entries from + * being listed. + * + * If a %NULL filter function is passed, the media will be added + * with only the metadata coming from the playlist included. + * + * This function is synchronous. + * + * See #grl_source_browse_sync() function for additional information + * and sample code. + * + * Returns: (element-type Grl.Media) (transfer full): a #GList with #GrlMedia + * elements. After use g_object_unref() every element and g_list_free() the + * list. + * + * Since: 0.2.0 + */ +GList * +grl_pls_browse_sync (GrlSource *source, + GrlMedia *playlist, + const GList *keys, + GrlOperationOptions *options, + GrlPlsFilterFunc filter_func, + GError **error) +{ + GrlDataSync *ds; + GList *result; + + grl_pls_init(); + + GRL_DEBUG (__FUNCTION__); + + ds = g_slice_new0 (GrlDataSync); + + if (grl_pls_browse (source, + playlist, + keys, + options, + filter_func, + multiple_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) + g_propagate_error (error, ds->error); + + result = (GList *) ds->data; + g_slice_free (GrlDataSync, ds); + + return result; +} + +static gboolean +mime_is_media (const gchar *mime, GrlTypeFilter filter) +{ + if (!mime) + return FALSE; + if (!strcmp (mime, "inode/directory")) + return TRUE; + if (filter & GRL_TYPE_FILTER_AUDIO && + mime_is_audio (mime)) + return TRUE; + if (filter & GRL_TYPE_FILTER_VIDEO && + mime_is_video (mime)) + return TRUE; + if (filter & GRL_TYPE_FILTER_IMAGE && + mime_is_image (mime)) + return TRUE; + return FALSE; +} + +static gboolean +file_is_valid_content (GFileInfo *info, gboolean fast, GrlOperationOptions *options) +{ + const gchar *mime; + const gchar *mime_filter = NULL; + GValue *mime_filter_value = NULL; + GValue *min_date_value = NULL; + GValue *max_date_value = NULL; + GDateTime *min_date = NULL; + GDateTime *max_date = NULL; + GDateTime *file_date = NULL; + GrlTypeFilter type_filter; + gboolean is_media = TRUE; + GFileType type; + + /* Ignore hidden files */ + if (g_file_info_get_is_hidden (info)) { + is_media = FALSE; + goto end; + } + + type = g_file_info_get_file_type (info); + + /* Directories are always accepted */ + if (type == G_FILE_TYPE_DIRECTORY) { + goto end; + } + + type_filter = options? grl_operation_options_get_type_filter (options): GRL_TYPE_FILTER_ALL; + + /* In fast mode we do not check mime-types, any non-hidden file is accepted */ + if (fast) { + if (type_filter == GRL_TYPE_FILTER_NONE) { + is_media = FALSE; + } + goto end; + } + + /* Filter by type */ + mime = g_file_info_get_content_type (info); + if (!mime_is_media (mime, type_filter)) { + is_media = FALSE; + goto end; + } + + /* Filter by mime */ + mime_filter_value = + options? grl_operation_options_get_key_filter (options, + GRL_METADATA_KEY_MIME): NULL; + if (mime_filter_value) { + mime_filter = g_value_get_string (mime_filter_value); + } + + if (mime_filter && g_strcmp0 (mime, mime_filter) != 0) { + is_media = FALSE; + goto end; + } + + /* Filter by date */ + if (options) { + grl_operation_options_get_key_range_filter (options, + GRL_METADATA_KEY_MODIFICATION_DATE, + &min_date_value, + &max_date_value); + } + + if (min_date_value) { + min_date = g_date_time_ref (g_value_get_boxed (min_date_value)); + } + if (max_date_value) { + max_date = g_date_time_ref (g_value_get_boxed (max_date_value)); + } + + if (min_date || max_date) { + GTimeVal time = {0,}; + + g_file_info_get_modification_time (info, &time); + file_date = g_date_time_new_from_timeval_utc (&time); + } + + if (min_date && file_date && g_date_time_compare (min_date, file_date) > 0) { + is_media = FALSE; + goto end; + } + + if (max_date && file_date && g_date_time_compare (max_date, file_date) < 0) { + is_media = FALSE; + goto end; + } + + end: + g_clear_pointer (&file_date, g_date_time_unref); + g_clear_pointer (&min_date, g_date_time_unref); + g_clear_pointer (&max_date, g_date_time_unref); + + return is_media; +} + +static void +set_container_childcount (GFile *file, + GrlMedia *media, + GrlOperationOptions *options) +{ + GFileEnumerator *e; + GFileInfo *info; + GError *error = NULL; + gint count = 0; + char *uri; + + /* in fast mode we don't compute mime-types because it is slow, + so we can only check if the directory is totally empty (no subdirs, + and no files), otherwise we just say we do not know the actual + childcount */ + if (grl_operation_options_get_resolution_flags (options) & GRL_RESOLVE_FAST_ONLY) { + grl_media_set_childcount (media, + GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN); + return; + } + + /* Open directory */ + uri = g_file_get_uri (file); + GRL_DEBUG ("Opening directory '%s' for childcount", uri); + g_free (uri); + e = g_file_enumerate_children (file, + FILE_ATTRIBUTES, + G_FILE_QUERY_INFO_NONE, + NULL, + &error); + if (!e) { + GRL_DEBUG ("Failed to open directory: %s", error->message); + g_error_free (error); + return; + } + + /* Count valid entries */ + count = 0; + while ((info = g_file_enumerator_next_file (e, NULL, NULL)) != NULL) { + if (file_is_valid_content (info, FALSE, options)) + count++; + g_object_unref (info); + } + + g_object_unref (e); + + grl_media_set_childcount (media, count); +} + +static void +set_media_id_from_file (GrlMedia *media, + GFile *file) +{ + char *uri; + + uri = g_file_get_uri (file); + grl_media_set_id (media, uri); + g_free (uri); +} + +/** + * grl_pls_file_to_media: + * @content: an existing #GrlMedia for the file, or %NULL + * @file: a #GFile pointing to the file or directory in question + * @info: an existing #GFileInfo, or %NULL + * @handle_pls: Whether playlists should be handled as containers + * @options: a #GrlOperationOptions representing the options to apply + * to this operation. + * + * This function will update (if @content is non-%NULL) or create a + * GrlMedia and populate it with information from @info. + * + * If @info is %NULL, a call to g_file_query_info() will be made. + * + * This function is useful for plugins that browse the local filesystem + * and want to easily create GrlMedia from filesystem information. + * + * Returns: (transfer full): a new #GrlMedia. + * + * Since: 0.2.0 + */ +GrlMedia * +grl_pls_file_to_media (GrlMedia *content, + GFile *file, + GFileInfo *info, + gboolean handle_pls, + GrlOperationOptions *options) +{ + GrlMedia *media = NULL; + gchar *str; + gchar *extension; + const gchar *mime; + gboolean thumb_failed, thumb_is_valid; + GError *error = NULL; + gboolean is_pls = FALSE; + + g_return_val_if_fail (file != NULL, NULL); + g_return_val_if_fail (options != NULL, NULL); + + grl_pls_init (); + + if (!info) { + if (!g_file_has_uri_scheme (file, "http") && + !g_file_has_uri_scheme (file, "https")) + info = g_file_query_info (file, + FILE_ATTRIBUTES, + 0, + NULL, + &error); + } else { + info = g_object_ref (info); + } + + /* Update mode */ + if (content) + media = content; + + if (info == NULL) { + char *uri; + + uri = g_file_get_uri (file); + GRL_DEBUG ("Failed to get info for file '%s': %s", uri, + error ? error->message : "No details"); + g_free (uri); + + if (!media) { + media = grl_media_new (); + set_media_id_from_file (media, file); + } + + /* Title */ + str = g_file_get_basename (file); + + /* Remove file extension */ + extension = g_strrstr (str, "."); + if (extension) { + *extension = '\0'; + } + + grl_media_set_title (media, str); + grl_data_set_boolean (GRL_DATA (media), GRL_METADATA_KEY_TITLE_FROM_FILENAME, TRUE); + g_clear_error (&error); + g_free (str); + } else { + GTimeVal time; + GDateTime *date_time; + + mime = g_file_info_get_content_type (info); + + if (!media) { + if (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY) { + media = GRL_MEDIA (grl_media_container_new ()); + } else if (handle_pls && grl_pls_mime_is_playlist (mime)) { + media = GRL_MEDIA (grl_media_container_new ()); + is_pls = TRUE; + } else if (mime_is_video (mime)) { + media = grl_media_video_new (); + } else if (mime_is_audio (mime)) { + media = grl_media_audio_new (); + } else if (mime_is_image (mime)) { + media = grl_media_image_new (); + } else { + media = grl_media_new (); + } + set_media_id_from_file (media, file); + } else { + if (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY && + !grl_media_is_container (media)) { + char *uri; + + uri = g_file_get_uri (file); + GRL_DEBUG ("URI '%s' is a directory but the passed media item is not GrlMedia container type", uri); + g_free (uri); + return NULL; + } + } + + if (!grl_media_is_container (media)) { + grl_media_set_mime (media, mime); + } + + /* Size */ + grl_media_set_size (media, g_file_info_get_size (info)); + + /* Title */ + str = g_strdup (g_file_info_get_display_name (info)); + + /* Remove file extension */ + if (!grl_media_is_container (media) || is_pls) { + extension = g_strrstr (str, "."); + if (extension) { + *extension = '\0'; + } + } + + grl_media_set_title (media, str); + g_free (str); + + grl_data_set_boolean (GRL_DATA (media), GRL_METADATA_KEY_TITLE_FROM_FILENAME, TRUE); + + /* Date */ + g_file_info_get_modification_time (info, &time); + date_time = g_date_time_new_from_timeval_utc (&time); + grl_media_set_modification_date (media, date_time); + g_date_time_unref (date_time); + + /* Thumbnail */ + thumb_failed = + g_file_info_get_attribute_boolean (info, + G_FILE_ATTRIBUTE_THUMBNAILING_FAILED); + thumb_is_valid = TRUE; + if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID)) + thumb_is_valid = + g_file_info_get_attribute_boolean (info, + G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID); + + if (!thumb_failed && thumb_is_valid) { + const gchar *thumb = + g_file_info_get_attribute_byte_string (info, + G_FILE_ATTRIBUTE_THUMBNAIL_PATH); + if (thumb) { + gchar *thumb_uri = g_filename_to_uri (thumb, NULL, NULL); + if (thumb_uri) { + grl_media_set_thumbnail (media, thumb_uri); + g_free (thumb_uri); + } + } + } + + g_object_unref (info); + } + + /* URL */ + str = g_file_get_uri (file); + grl_media_set_url (media, str); + g_free (str); + + /* Childcount */ + if (grl_media_is_container (media) && !is_pls) + set_container_childcount (file, media, options); + + return media; +} + +/** + * grl_pls_get_file_attributes: + * + * Returns the list of attributes to pass to + * g_file_query_info() to make it possible to + * populate a GrlMedia using grl_pls_file_to_media(). + * + * Do not free the result of this function. + * + * Returns: (transfer none): a string containing the + * list of attributes. + * + * Since: 0.2.0 + */ +const char * +grl_pls_get_file_attributes (void) +{ + return FILE_ATTRIBUTES; +} diff --git a/libs/pls/grl-pls.h b/libs/pls/grl-pls.h new file mode 100644 index 0000000..659d90e --- /dev/null +++ b/libs/pls/grl-pls.h @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2013 Collabora Ltd. + * + * Authors: Mateu Batle Sastre + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_PLS_H_ +#define _GRL_PLS_H_ + +#include +#include + +G_BEGIN_DECLS + +/** + * GrlPlsFilterFunc: + * @source: the #GrlSource the browse call came from + * @media: (transfer full): a #GrlMedia to operate on + * @user_data: user data passed to the browse call + * + * Callback type to filter, or modify #GrlMedia created + * when parsing a playlist using one of grl_pls_browse(), + * grl_pls_browse_sync() or grl_pls_browse_by_spec(). + * + * The callback is responsible for unreffing @media when returning %NULL or + * another #GrlMedia. + * + * Returns: (transfer full): %NULL to not add this entry to the results, + * or a new #GrlMedia populated with metadata of your choice. + */ +typedef GrlMedia * (*GrlPlsFilterFunc) (GrlSource *source, + GrlMedia *media, + gpointer user_data); + +gboolean grl_pls_media_is_playlist (GrlMedia *media); + +void grl_pls_browse_by_spec (GrlSource *source, + GrlPlsFilterFunc filter_func, + GrlSourceBrowseSpec *bs); + +guint grl_pls_browse (GrlSource *source, + GrlMedia *playlist, + const GList *keys, + GrlOperationOptions *options, + GrlPlsFilterFunc filter_func, + GrlSourceResultCb callback, + gpointer user_data); + +GList *grl_pls_browse_sync (GrlSource *source, + GrlMedia *playlist, + const GList *keys, + GrlOperationOptions *options, + GrlPlsFilterFunc filter_func, + GError **error); + +GrlMedia * grl_pls_file_to_media (GrlMedia *content, + GFile *file, + GFileInfo *info, + gboolean handle_pls, + GrlOperationOptions *options); + +const char * grl_pls_get_file_attributes (void); + +G_END_DECLS + +#endif /* _GRL_PLS_H_ */ diff --git a/libs/pls/meson.build b/libs/pls/meson.build new file mode 100644 index 0000000..1dfc51c --- /dev/null +++ b/libs/pls/meson.build @@ -0,0 +1,43 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +grlpls_sources = [ + 'grl-pls.c', +] + +grlpls_headers = [ + 'grl-pls.h', +] + +configure_file(output: 'config.h', + configuration: cdata) + +install_headers(grlpls_headers, + subdir: '@0@/pls'.format(grl_name)) + +libgrlpls = shared_library('grlpls-@0@'.format(grl_majorminor), + sources: grlpls_sources, + install: true, + soversion: soversion, + version: grlpls_lt_version, + c_args: '-DHAVE_CONFIG_H', + dependencies: [totem_plparser_dep, libgrl_dep], + include_directories: libgrl_inc) + +if enable_gir + gnome.generate_gir(libgrlpls, + sources: grlpls_headers + grlpls_sources, + namespace: 'GrlPls', + nsversion: grl_majorminor, + identifier_prefix: 'GrlPls', + symbol_prefix: 'grl_pls', + dependencies: [ gobject_dep, gio_dep ], + includes: [ 'GObject-2.0', 'Gio-2.0', grl_gir[0] ], + include_directories: libs_inc, + install: true, + extra_args: [ '--c-include=pls/grl-pls.h' ]) +endif diff --git a/ltmain.sh b/ltmain.sh new file mode 100644 index 0000000..30be9c8 --- /dev/null +++ b/ltmain.sh @@ -0,0 +1,11149 @@ +#! /bin/sh +## DO NOT EDIT - This file generated from ./build-aux/ltmain.in +## by inline-source v2014-01-03.01 + +# libtool (GNU libtool) 2.4.6 +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996-2015 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool 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. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool 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, see . + + +PROGRAM=libtool +PACKAGE=libtool +VERSION=2.4.6 +package_revision=2.4.6 + + +## ------ ## +## Usage. ## +## ------ ## + +# Run './libtool --help' for help with using this script from the +# command line. + + +## ------------------------------- ## +## User overridable command paths. ## +## ------------------------------- ## + +# After configure completes, it has a better idea of some of the +# shell tools we need than the defaults used by the functions shared +# with bootstrap, so set those here where they can still be over- +# ridden by the user, but otherwise take precedence. + +: ${AUTOCONF="autoconf"} +: ${AUTOMAKE="automake"} + + +## -------------------------- ## +## Source external libraries. ## +## -------------------------- ## + +# Much of our low-level functionality needs to be sourced from external +# libraries, which are installed to $pkgauxdir. + +# Set a version string for this script. +scriptversion=2015-01-20.17; # UTC + +# General shell script boiler plate, and helper functions. +# Written by Gary V. Vaughan, 2004 + +# Copyright (C) 2004-2015 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# 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 3 of the License, or +# (at your option) any later version. + +# As a special exception to the GNU General Public License, if you distribute +# this file as part of a program or library that is built using GNU Libtool, +# you may include this file under the same distribution terms that you use +# for the rest of that program. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNES 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, see . + +# Please report bugs or propose patches to gary@gnu.org. + + +## ------ ## +## Usage. ## +## ------ ## + +# Evaluate this file near the top of your script to gain access to +# the functions and variables defined here: +# +# . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh +# +# If you need to override any of the default environment variable +# settings, do that before evaluating this file. + + +## -------------------- ## +## Shell normalisation. ## +## -------------------- ## + +# Some shells need a little help to be as Bourne compatible as possible. +# Before doing anything else, make sure all that help has been provided! + +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac +fi + +# NLS nuisances: We save the old values in case they are required later. +_G_user_locale= +_G_safe_locale= +for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test set = \"\${$_G_var+set}\"; then + save_$_G_var=\$$_G_var + $_G_var=C + export $_G_var + _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" + _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" + fi" +done + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Make sure IFS has a sensible default +sp=' ' +nl=' +' +IFS="$sp $nl" + +# There are apparently some retarded systems that use ';' as a PATH separator! +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + + +## ------------------------- ## +## Locate command utilities. ## +## ------------------------- ## + + +# func_executable_p FILE +# ---------------------- +# Check that FILE is an executable regular file. +func_executable_p () +{ + test -f "$1" && test -x "$1" +} + + +# func_path_progs PROGS_LIST CHECK_FUNC [PATH] +# -------------------------------------------- +# Search for either a program that responds to --version with output +# containing "GNU", or else returned by CHECK_FUNC otherwise, by +# trying all the directories in PATH with each of the elements of +# PROGS_LIST. +# +# CHECK_FUNC should accept the path to a candidate program, and +# set $func_check_prog_result if it truncates its output less than +# $_G_path_prog_max characters. +func_path_progs () +{ + _G_progs_list=$1 + _G_check_func=$2 + _G_PATH=${3-"$PATH"} + + _G_path_prog_max=0 + _G_path_prog_found=false + _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} + for _G_dir in $_G_PATH; do + IFS=$_G_save_IFS + test -z "$_G_dir" && _G_dir=. + for _G_prog_name in $_G_progs_list; do + for _exeext in '' .EXE; do + _G_path_prog=$_G_dir/$_G_prog_name$_exeext + func_executable_p "$_G_path_prog" || continue + case `"$_G_path_prog" --version 2>&1` in + *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; + *) $_G_check_func $_G_path_prog + func_path_progs_result=$func_check_prog_result + ;; + esac + $_G_path_prog_found && break 3 + done + done + done + IFS=$_G_save_IFS + test -z "$func_path_progs_result" && { + echo "no acceptable sed could be found in \$PATH" >&2 + exit 1 + } +} + + +# We want to be able to use the functions in this file before configure +# has figured out where the best binaries are kept, which means we have +# to search for them ourselves - except when the results are already set +# where we skip the searches. + +# Unless the user overrides by setting SED, search the path for either GNU +# sed, or the sed that truncates its output the least. +test -z "$SED" && { + _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for _G_i in 1 2 3 4 5 6 7; do + _G_sed_script=$_G_sed_script$nl$_G_sed_script + done + echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed + _G_sed_script= + + func_check_prog_sed () + { + _G_path_prog=$1 + + _G_count=0 + printf 0123456789 >conftest.in + while : + do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo '' >> conftest.nl + "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break + diff conftest.out conftest.nl >/dev/null 2>&1 || break + _G_count=`expr $_G_count + 1` + if test "$_G_count" -gt "$_G_path_prog_max"; then + # Best one so far, save it but keep looking for a better one + func_check_prog_result=$_G_path_prog + _G_path_prog_max=$_G_count + fi + # 10*(2^10) chars as input seems more than enough + test 10 -lt "$_G_count" && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out + } + + func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin + rm -f conftest.sed + SED=$func_path_progs_result +} + + +# Unless the user overrides by setting GREP, search the path for either GNU +# grep, or the grep that truncates its output the least. +test -z "$GREP" && { + func_check_prog_grep () + { + _G_path_prog=$1 + + _G_count=0 + _G_path_prog_max=0 + printf 0123456789 >conftest.in + while : + do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo 'GREP' >> conftest.nl + "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break + diff conftest.out conftest.nl >/dev/null 2>&1 || break + _G_count=`expr $_G_count + 1` + if test "$_G_count" -gt "$_G_path_prog_max"; then + # Best one so far, save it but keep looking for a better one + func_check_prog_result=$_G_path_prog + _G_path_prog_max=$_G_count + fi + # 10*(2^10) chars as input seems more than enough + test 10 -lt "$_G_count" && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out + } + + func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin + GREP=$func_path_progs_result +} + + +## ------------------------------- ## +## User overridable command paths. ## +## ------------------------------- ## + +# All uppercase variable names are used for environment variables. These +# variables can be overridden by the user before calling a script that +# uses them if a suitable command of that name is not already available +# in the command search PATH. + +: ${CP="cp -f"} +: ${ECHO="printf %s\n"} +: ${EGREP="$GREP -E"} +: ${FGREP="$GREP -F"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} + + +## -------------------- ## +## Useful sed snippets. ## +## -------------------- ## + +sed_dirname='s|/[^/]*$||' +sed_basename='s|^.*/||' + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s|\([`"$\\]\)|\\\1|g' + +# Same as above, but do not quote variable references. +sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' + +# Sed substitution that converts a w32 file name or path +# that contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + +# Re-'\' parameter expansions in output of sed_double_quote_subst that +# were '\'-ed in input to the same. If an odd number of '\' preceded a +# '$' in input to sed_double_quote_subst, that '$' was protected from +# expansion. Since each input '\' is now two '\'s, look for any number +# of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. +_G_bs='\\' +_G_bs2='\\\\' +_G_bs4='\\\\\\\\' +_G_dollar='\$' +sed_double_backslash="\ + s/$_G_bs4/&\\ +/g + s/^$_G_bs2$_G_dollar/$_G_bs&/ + s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g + s/\n//g" + + +## ----------------- ## +## Global variables. ## +## ----------------- ## + +# Except for the global variables explicitly listed below, the following +# functions in the '^func_' namespace, and the '^require_' namespace +# variables initialised in the 'Resource management' section, sourcing +# this file will not pollute your global namespace with anything +# else. There's no portable way to scope variables in Bourne shell +# though, so actually running these functions will sometimes place +# results into a variable named after the function, and often use +# temporary variables in the '^_G_' namespace. If you are careful to +# avoid using those namespaces casually in your sourcing script, things +# should continue to work as you expect. And, of course, you can freely +# overwrite any of the functions or variables defined here before +# calling anything to customize them. + +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +# Allow overriding, eg assuming that you follow the convention of +# putting '$debug_cmd' at the start of all your functions, you can get +# bash to show function call trace with: +# +# debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name +debug_cmd=${debug_cmd-":"} +exit_cmd=: + +# By convention, finish your script with: +# +# exit $exit_status +# +# so that you can set exit_status to non-zero if you want to indicate +# something went wrong during execution without actually bailing out at +# the point of failure. +exit_status=$EXIT_SUCCESS + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath=$0 + +# The name of this program. +progname=`$ECHO "$progpath" |$SED "$sed_basename"` + +# Make sure we have an absolute progpath for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` + progdir=`cd "$progdir" && pwd` + progpath=$progdir/$progname + ;; + *) + _G_IFS=$IFS + IFS=${PATH_SEPARATOR-:} + for progdir in $PATH; do + IFS=$_G_IFS + test -x "$progdir/$progname" && break + done + IFS=$_G_IFS + test -n "$progdir" || progdir=`pwd` + progpath=$progdir/$progname + ;; +esac + + +## ----------------- ## +## Standard options. ## +## ----------------- ## + +# The following options affect the operation of the functions defined +# below, and should be set appropriately depending on run-time para- +# meters passed on the command line. + +opt_dry_run=false +opt_quiet=false +opt_verbose=false + +# Categories 'all' and 'none' are always available. Append any others +# you will pass as the first argument to func_warning from your own +# code. +warning_categories= + +# By default, display warnings according to 'opt_warning_types'. Set +# 'warning_func' to ':' to elide all warnings, or func_fatal_error to +# treat the next displayed warning as a fatal error. +warning_func=func_warn_and_continue + +# Set to 'all' to display all warnings, 'none' to suppress all +# warnings, or a space delimited list of some subset of +# 'warning_categories' to display only the listed warnings. +opt_warning_types=all + + +## -------------------- ## +## Resource management. ## +## -------------------- ## + +# This section contains definitions for functions that each ensure a +# particular resource (a file, or a non-empty configuration variable for +# example) is available, and if appropriate to extract default values +# from pertinent package files. Call them using their associated +# 'require_*' variable to ensure that they are executed, at most, once. +# +# It's entirely deliberate that calling these functions can set +# variables that don't obey the namespace limitations obeyed by the rest +# of this file, in order that that they be as useful as possible to +# callers. + + +# require_term_colors +# ------------------- +# Allow display of bold text on terminals that support it. +require_term_colors=func_require_term_colors +func_require_term_colors () +{ + $debug_cmd + + test -t 1 && { + # COLORTERM and USE_ANSI_COLORS environment variables take + # precedence, because most terminfo databases neglect to describe + # whether color sequences are supported. + test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} + + if test 1 = "$USE_ANSI_COLORS"; then + # Standard ANSI escape sequences + tc_reset='' + tc_bold=''; tc_standout='' + tc_red=''; tc_green='' + tc_blue=''; tc_cyan='' + else + # Otherwise trust the terminfo database after all. + test -n "`tput sgr0 2>/dev/null`" && { + tc_reset=`tput sgr0` + test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` + tc_standout=$tc_bold + test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` + test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` + test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` + test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` + test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` + } + fi + } + + require_term_colors=: +} + + +## ----------------- ## +## Function library. ## +## ----------------- ## + +# This section contains a variety of useful functions to call in your +# scripts. Take note of the portable wrappers for features provided by +# some modern shells, which will fall back to slower equivalents on +# less featureful shells. + + +# func_append VAR VALUE +# --------------------- +# Append VALUE onto the existing contents of VAR. + + # We should try to minimise forks, especially on Windows where they are + # unreasonably slow, so skip the feature probes when bash or zsh are + # being used: + if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then + : ${_G_HAVE_ARITH_OP="yes"} + : ${_G_HAVE_XSI_OPS="yes"} + # The += operator was introduced in bash 3.1 + case $BASH_VERSION in + [12].* | 3.0 | 3.0*) ;; + *) + : ${_G_HAVE_PLUSEQ_OP="yes"} + ;; + esac + fi + + # _G_HAVE_PLUSEQ_OP + # Can be empty, in which case the shell is probed, "yes" if += is + # useable or anything else if it does not work. + test -z "$_G_HAVE_PLUSEQ_OP" \ + && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ + && _G_HAVE_PLUSEQ_OP=yes + +if test yes = "$_G_HAVE_PLUSEQ_OP" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_append () + { + $debug_cmd + + eval "$1+=\$2" + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_append () + { + $debug_cmd + + eval "$1=\$$1\$2" + } +fi + + +# func_append_quoted VAR VALUE +# ---------------------------- +# Quote VALUE and append to the end of shell variable VAR, separated +# by a space. +if test yes = "$_G_HAVE_PLUSEQ_OP"; then + eval 'func_append_quoted () + { + $debug_cmd + + func_quote_for_eval "$2" + eval "$1+=\\ \$func_quote_for_eval_result" + }' +else + func_append_quoted () + { + $debug_cmd + + func_quote_for_eval "$2" + eval "$1=\$$1\\ \$func_quote_for_eval_result" + } +fi + + +# func_append_uniq VAR VALUE +# -------------------------- +# Append unique VALUE onto the existing contents of VAR, assuming +# entries are delimited by the first character of VALUE. For example: +# +# func_append_uniq options " --another-option option-argument" +# +# will only append to $options if " --another-option option-argument " +# is not already present somewhere in $options already (note spaces at +# each end implied by leading space in second argument). +func_append_uniq () +{ + $debug_cmd + + eval _G_current_value='`$ECHO $'$1'`' + _G_delim=`expr "$2" : '\(.\)'` + + case $_G_delim$_G_current_value$_G_delim in + *"$2$_G_delim"*) ;; + *) func_append "$@" ;; + esac +} + + +# func_arith TERM... +# ------------------ +# Set func_arith_result to the result of evaluating TERMs. + test -z "$_G_HAVE_ARITH_OP" \ + && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ + && _G_HAVE_ARITH_OP=yes + +if test yes = "$_G_HAVE_ARITH_OP"; then + eval 'func_arith () + { + $debug_cmd + + func_arith_result=$(( $* )) + }' +else + func_arith () + { + $debug_cmd + + func_arith_result=`expr "$@"` + } +fi + + +# func_basename FILE +# ------------------ +# Set func_basename_result to FILE with everything up to and including +# the last / stripped. +if test yes = "$_G_HAVE_XSI_OPS"; then + # If this shell supports suffix pattern removal, then use it to avoid + # forking. Hide the definitions single quotes in case the shell chokes + # on unsupported syntax... + _b='func_basename_result=${1##*/}' + _d='case $1 in + */*) func_dirname_result=${1%/*}$2 ;; + * ) func_dirname_result=$3 ;; + esac' + +else + # ...otherwise fall back to using sed. + _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' + _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` + if test "X$func_dirname_result" = "X$1"; then + func_dirname_result=$3 + else + func_append func_dirname_result "$2" + fi' +fi + +eval 'func_basename () +{ + $debug_cmd + + '"$_b"' +}' + + +# func_dirname FILE APPEND NONDIR_REPLACEMENT +# ------------------------------------------- +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +eval 'func_dirname () +{ + $debug_cmd + + '"$_d"' +}' + + +# func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT +# -------------------------------------------------------- +# Perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# For efficiency, we do not delegate to the functions above but instead +# duplicate the functionality here. +eval 'func_dirname_and_basename () +{ + $debug_cmd + + '"$_b"' + '"$_d"' +}' + + +# func_echo ARG... +# ---------------- +# Echo program name prefixed message. +func_echo () +{ + $debug_cmd + + _G_message=$* + + func_echo_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_IFS + $ECHO "$progname: $_G_line" + done + IFS=$func_echo_IFS +} + + +# func_echo_all ARG... +# -------------------- +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + + +# func_echo_infix_1 INFIX ARG... +# ------------------------------ +# Echo program name, followed by INFIX on the first line, with any +# additional lines not showing INFIX. +func_echo_infix_1 () +{ + $debug_cmd + + $require_term_colors + + _G_infix=$1; shift + _G_indent=$_G_infix + _G_prefix="$progname: $_G_infix: " + _G_message=$* + + # Strip color escape sequences before counting printable length + for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" + do + test -n "$_G_tc" && { + _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` + _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` + } + done + _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes + + func_echo_infix_1_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_infix_1_IFS + $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 + _G_prefix=$_G_indent + done + IFS=$func_echo_infix_1_IFS +} + + +# func_error ARG... +# ----------------- +# Echo program name prefixed message to standard error. +func_error () +{ + $debug_cmd + + $require_term_colors + + func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 +} + + +# func_fatal_error ARG... +# ----------------------- +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + $debug_cmd + + func_error "$*" + exit $EXIT_FAILURE +} + + +# func_grep EXPRESSION FILENAME +# ----------------------------- +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $debug_cmd + + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_len STRING +# --------------- +# Set func_len_result to the length of STRING. STRING may not +# start with a hyphen. + test -z "$_G_HAVE_XSI_OPS" \ + && (eval 'x=a/b/c; + test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ + && _G_HAVE_XSI_OPS=yes + +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_len () + { + $debug_cmd + + func_len_result=${#1} + }' +else + func_len () + { + $debug_cmd + + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` + } +fi + + +# func_mkdir_p DIRECTORY-PATH +# --------------------------- +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + $debug_cmd + + _G_directory_path=$1 + _G_dir_list= + + if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then + + # Protect directory names starting with '-' + case $_G_directory_path in + -*) _G_directory_path=./$_G_directory_path ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$_G_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + _G_dir_list=$_G_directory_path:$_G_dir_list + + # If the last portion added has no slash in it, the list is done + case $_G_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` + done + _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` + + func_mkdir_p_IFS=$IFS; IFS=: + for _G_dir in $_G_dir_list; do + IFS=$func_mkdir_p_IFS + # mkdir can fail with a 'File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$_G_dir" 2>/dev/null || : + done + IFS=$func_mkdir_p_IFS + + # Bail out if we (or some other process) failed to create a directory. + test -d "$_G_directory_path" || \ + func_fatal_error "Failed to create '$1'" + fi +} + + +# func_mktempdir [BASENAME] +# ------------------------- +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, BASENAME is the basename for that directory. +func_mktempdir () +{ + $debug_cmd + + _G_template=${TMPDIR-/tmp}/${1-$progname} + + if test : = "$opt_dry_run"; then + # Return a directory name, but don't create it in dry-run mode + _G_tmpdir=$_G_template-$$ + else + + # If mktemp works, use that first and foremost + _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` + + if test ! -d "$_G_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + _G_tmpdir=$_G_template-${RANDOM-0}$$ + + func_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$_G_tmpdir" + umask $func_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$_G_tmpdir" || \ + func_fatal_error "cannot create temporary directory '$_G_tmpdir'" + fi + + $ECHO "$_G_tmpdir" +} + + +# func_normal_abspath PATH +# ------------------------ +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +func_normal_abspath () +{ + $debug_cmd + + # These SED scripts presuppose an absolute path with a trailing slash. + _G_pathcar='s|^/\([^/]*\).*$|\1|' + _G_pathcdr='s|^/[^/]*||' + _G_removedotparts=':dotsl + s|/\./|/|g + t dotsl + s|/\.$|/|' + _G_collapseslashes='s|/\{1,\}|/|g' + _G_finalslash='s|/*$|/|' + + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` + while :; do + # Processed it all yet? + if test / = "$func_normal_abspath_tpath"; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result"; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result +} + + +# func_notquiet ARG... +# -------------------- +# Echo program name prefixed message only when not in quiet mode. +func_notquiet () +{ + $debug_cmd + + $opt_quiet || func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + + +# func_relative_path SRCDIR DSTDIR +# -------------------------------- +# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. +func_relative_path () +{ + $debug_cmd + + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=$func_dirname_result + if test -z "$func_relative_path_tlibdir"; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done + + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test -n "$func_stripname_result"; then + func_append func_relative_path_result "/$func_stripname_result" + fi + + # Normalisation. If bindir is libdir, return '.' else relative path. + if test -n "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + fi + + test -n "$func_relative_path_result" || func_relative_path_result=. + + : +} + + +# func_quote_for_eval ARG... +# -------------------------- +# Aesthetically quote ARGs to be evaled later. +# This function returns two values: +# i) func_quote_for_eval_result +# double-quoted, suitable for a subsequent eval +# ii) func_quote_for_eval_unquoted_result +# has all characters that are still active within double +# quotes backslashified. +func_quote_for_eval () +{ + $debug_cmd + + func_quote_for_eval_unquoted_result= + func_quote_for_eval_result= + while test 0 -lt $#; do + case $1 in + *[\\\`\"\$]*) + _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; + *) + _G_unquoted_arg=$1 ;; + esac + if test -n "$func_quote_for_eval_unquoted_result"; then + func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" + else + func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" + fi + + case $_G_unquoted_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and variable expansion + # for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + _G_quoted_arg=\"$_G_unquoted_arg\" + ;; + *) + _G_quoted_arg=$_G_unquoted_arg + ;; + esac + + if test -n "$func_quote_for_eval_result"; then + func_append func_quote_for_eval_result " $_G_quoted_arg" + else + func_append func_quote_for_eval_result "$_G_quoted_arg" + fi + shift + done +} + + +# func_quote_for_expand ARG +# ------------------------- +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + $debug_cmd + + case $1 in + *[\\\`\"]*) + _G_arg=`$ECHO "$1" | $SED \ + -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; + *) + _G_arg=$1 ;; + esac + + case $_G_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + _G_arg=\"$_G_arg\" + ;; + esac + + func_quote_for_expand_result=$_G_arg +} + + +# func_stripname PREFIX SUFFIX NAME +# --------------------------------- +# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_stripname () + { + $debug_cmd + + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary variable first. + func_stripname_result=$3 + func_stripname_result=${func_stripname_result#"$1"} + func_stripname_result=${func_stripname_result%"$2"} + }' +else + func_stripname () + { + $debug_cmd + + case $2 in + .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; + *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; + esac + } +fi + + +# func_show_eval CMD [FAIL_EXP] +# ----------------------------- +# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + $debug_cmd + + _G_cmd=$1 + _G_fail_exp=${2-':'} + + func_quote_for_expand "$_G_cmd" + eval "func_notquiet $func_quote_for_expand_result" + + $opt_dry_run || { + eval "$_G_cmd" + _G_status=$? + if test 0 -ne "$_G_status"; then + eval "(exit $_G_status); $_G_fail_exp" + fi + } +} + + +# func_show_eval_locale CMD [FAIL_EXP] +# ------------------------------------ +# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + $debug_cmd + + _G_cmd=$1 + _G_fail_exp=${2-':'} + + $opt_quiet || { + func_quote_for_expand "$_G_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + $opt_dry_run || { + eval "$_G_user_locale + $_G_cmd" + _G_status=$? + eval "$_G_safe_locale" + if test 0 -ne "$_G_status"; then + eval "(exit $_G_status); $_G_fail_exp" + fi + } +} + + +# func_tr_sh +# ---------- +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + $debug_cmd + + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} + + +# func_verbose ARG... +# ------------------- +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $debug_cmd + + $opt_verbose && func_echo "$*" + + : +} + + +# func_warn_and_continue ARG... +# ----------------------------- +# Echo program name prefixed warning message to standard error. +func_warn_and_continue () +{ + $debug_cmd + + $require_term_colors + + func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 +} + + +# func_warning CATEGORY ARG... +# ---------------------------- +# Echo program name prefixed warning message to standard error. Warning +# messages can be filtered according to CATEGORY, where this function +# elides messages where CATEGORY is not listed in the global variable +# 'opt_warning_types'. +func_warning () +{ + $debug_cmd + + # CATEGORY must be in the warning_categories list! + case " $warning_categories " in + *" $1 "*) ;; + *) func_internal_error "invalid warning category '$1'" ;; + esac + + _G_category=$1 + shift + + case " $opt_warning_types " in + *" $_G_category "*) $warning_func ${1+"$@"} ;; + esac +} + + +# func_sort_ver VER1 VER2 +# ----------------------- +# 'sort -V' is not generally available. +# Note this deviates from the version comparison in automake +# in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a +# but this should suffice as we won't be specifying old +# version formats or redundant trailing .0 in bootstrap.conf. +# If we did want full compatibility then we should probably +# use m4_version_compare from autoconf. +func_sort_ver () +{ + $debug_cmd + + printf '%s\n%s\n' "$1" "$2" \ + | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n +} + +# func_lt_ver PREV CURR +# --------------------- +# Return true if PREV and CURR are in the correct order according to +# func_sort_ver, otherwise false. Use it like this: +# +# func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." +func_lt_ver () +{ + $debug_cmd + + test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` +} + + +# Local variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-time-zone: "UTC" +# End: +#! /bin/sh + +# Set a version string for this script. +scriptversion=2014-01-07.03; # UTC + +# A portable, pluggable option parser for Bourne shell. +# Written by Gary V. Vaughan, 2010 + +# Copyright (C) 2010-2015 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# 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 3 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, see . + +# Please report bugs or propose patches to gary@gnu.org. + + +## ------ ## +## Usage. ## +## ------ ## + +# This file is a library for parsing options in your shell scripts along +# with assorted other useful supporting features that you can make use +# of too. +# +# For the simplest scripts you might need only: +# +# #!/bin/sh +# . relative/path/to/funclib.sh +# . relative/path/to/options-parser +# scriptversion=1.0 +# func_options ${1+"$@"} +# eval set dummy "$func_options_result"; shift +# ...rest of your script... +# +# In order for the '--version' option to work, you will need to have a +# suitably formatted comment like the one at the top of this file +# starting with '# Written by ' and ending with '# warranty; '. +# +# For '-h' and '--help' to work, you will also need a one line +# description of your script's purpose in a comment directly above the +# '# Written by ' line, like the one at the top of this file. +# +# The default options also support '--debug', which will turn on shell +# execution tracing (see the comment above debug_cmd below for another +# use), and '--verbose' and the func_verbose function to allow your script +# to display verbose messages only when your user has specified +# '--verbose'. +# +# After sourcing this file, you can plug processing for additional +# options by amending the variables from the 'Configuration' section +# below, and following the instructions in the 'Option parsing' +# section further down. + +## -------------- ## +## Configuration. ## +## -------------- ## + +# You should override these variables in your script after sourcing this +# file so that they reflect the customisations you have added to the +# option parser. + +# The usage line for option parsing errors and the start of '-h' and +# '--help' output messages. You can embed shell variables for delayed +# expansion at the time the message is displayed, but you will need to +# quote other shell meta-characters carefully to prevent them being +# expanded when the contents are evaled. +usage='$progpath [OPTION]...' + +# Short help message in response to '-h' and '--help'. Add to this or +# override it after sourcing this library to reflect the full set of +# options your script accepts. +usage_message="\ + --debug enable verbose shell tracing + -W, --warnings=CATEGORY + report the warnings falling in CATEGORY [all] + -v, --verbose verbosely report processing + --version print version information and exit + -h, --help print short or long help message and exit +" + +# Additional text appended to 'usage_message' in response to '--help'. +long_help_message=" +Warning categories include: + 'all' show all warnings + 'none' turn off all the warnings + 'error' warnings are treated as fatal errors" + +# Help message printed before fatal option parsing errors. +fatal_help="Try '\$progname --help' for more information." + + + +## ------------------------- ## +## Hook function management. ## +## ------------------------- ## + +# This section contains functions for adding, removing, and running hooks +# to the main code. A hook is just a named list of of function, that can +# be run in order later on. + +# func_hookable FUNC_NAME +# ----------------------- +# Declare that FUNC_NAME will run hooks added with +# 'func_add_hook FUNC_NAME ...'. +func_hookable () +{ + $debug_cmd + + func_append hookable_fns " $1" +} + + +# func_add_hook FUNC_NAME HOOK_FUNC +# --------------------------------- +# Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must +# first have been declared "hookable" by a call to 'func_hookable'. +func_add_hook () +{ + $debug_cmd + + case " $hookable_fns " in + *" $1 "*) ;; + *) func_fatal_error "'$1' does not accept hook functions." ;; + esac + + eval func_append ${1}_hooks '" $2"' +} + + +# func_remove_hook FUNC_NAME HOOK_FUNC +# ------------------------------------ +# Remove HOOK_FUNC from the list of functions called by FUNC_NAME. +func_remove_hook () +{ + $debug_cmd + + eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' +} + + +# func_run_hooks FUNC_NAME [ARG]... +# --------------------------------- +# Run all hook functions registered to FUNC_NAME. +# It is assumed that the list of hook functions contains nothing more +# than a whitespace-delimited list of legal shell function names, and +# no effort is wasted trying to catch shell meta-characters or preserve +# whitespace. +func_run_hooks () +{ + $debug_cmd + + case " $hookable_fns " in + *" $1 "*) ;; + *) func_fatal_error "'$1' does not support hook funcions.n" ;; + esac + + eval _G_hook_fns=\$$1_hooks; shift + + for _G_hook in $_G_hook_fns; do + eval $_G_hook '"$@"' + + # store returned options list back into positional + # parameters for next 'cmd' execution. + eval _G_hook_result=\$${_G_hook}_result + eval set dummy "$_G_hook_result"; shift + done + + func_quote_for_eval ${1+"$@"} + func_run_hooks_result=$func_quote_for_eval_result +} + + + +## --------------- ## +## Option parsing. ## +## --------------- ## + +# In order to add your own option parsing hooks, you must accept the +# full positional parameter list in your hook function, remove any +# options that you action, and then pass back the remaining unprocessed +# options in '_result', escaped suitably for +# 'eval'. Like this: +# +# my_options_prep () +# { +# $debug_cmd +# +# # Extend the existing usage message. +# usage_message=$usage_message' +# -s, --silent don'\''t print informational messages +# ' +# +# func_quote_for_eval ${1+"$@"} +# my_options_prep_result=$func_quote_for_eval_result +# } +# func_add_hook func_options_prep my_options_prep +# +# +# my_silent_option () +# { +# $debug_cmd +# +# # Note that for efficiency, we parse as many options as we can +# # recognise in a loop before passing the remainder back to the +# # caller on the first unrecognised argument we encounter. +# while test $# -gt 0; do +# opt=$1; shift +# case $opt in +# --silent|-s) opt_silent=: ;; +# # Separate non-argument short options: +# -s*) func_split_short_opt "$_G_opt" +# set dummy "$func_split_short_opt_name" \ +# "-$func_split_short_opt_arg" ${1+"$@"} +# shift +# ;; +# *) set dummy "$_G_opt" "$*"; shift; break ;; +# esac +# done +# +# func_quote_for_eval ${1+"$@"} +# my_silent_option_result=$func_quote_for_eval_result +# } +# func_add_hook func_parse_options my_silent_option +# +# +# my_option_validation () +# { +# $debug_cmd +# +# $opt_silent && $opt_verbose && func_fatal_help "\ +# '--silent' and '--verbose' options are mutually exclusive." +# +# func_quote_for_eval ${1+"$@"} +# my_option_validation_result=$func_quote_for_eval_result +# } +# func_add_hook func_validate_options my_option_validation +# +# You'll alse need to manually amend $usage_message to reflect the extra +# options you parse. It's preferable to append if you can, so that +# multiple option parsing hooks can be added safely. + + +# func_options [ARG]... +# --------------------- +# All the functions called inside func_options are hookable. See the +# individual implementations for details. +func_hookable func_options +func_options () +{ + $debug_cmd + + func_options_prep ${1+"$@"} + eval func_parse_options \ + ${func_options_prep_result+"$func_options_prep_result"} + eval func_validate_options \ + ${func_parse_options_result+"$func_parse_options_result"} + + eval func_run_hooks func_options \ + ${func_validate_options_result+"$func_validate_options_result"} + + # save modified positional parameters for caller + func_options_result=$func_run_hooks_result +} + + +# func_options_prep [ARG]... +# -------------------------- +# All initialisations required before starting the option parse loop. +# Note that when calling hook functions, we pass through the list of +# positional parameters. If a hook function modifies that list, and +# needs to propogate that back to rest of this script, then the complete +# modified list must be put in 'func_run_hooks_result' before +# returning. +func_hookable func_options_prep +func_options_prep () +{ + $debug_cmd + + # Option defaults: + opt_verbose=false + opt_warning_types= + + func_run_hooks func_options_prep ${1+"$@"} + + # save modified positional parameters for caller + func_options_prep_result=$func_run_hooks_result +} + + +# func_parse_options [ARG]... +# --------------------------- +# The main option parsing loop. +func_hookable func_parse_options +func_parse_options () +{ + $debug_cmd + + func_parse_options_result= + + # this just eases exit handling + while test $# -gt 0; do + # Defer to hook functions for initial option parsing, so they + # get priority in the event of reusing an option name. + func_run_hooks func_parse_options ${1+"$@"} + + # Adjust func_parse_options positional parameters to match + eval set dummy "$func_run_hooks_result"; shift + + # Break out of the loop if we already parsed every option. + test $# -gt 0 || break + + _G_opt=$1 + shift + case $_G_opt in + --debug|-x) debug_cmd='set -x' + func_echo "enabling shell trace mode" + $debug_cmd + ;; + + --no-warnings|--no-warning|--no-warn) + set dummy --warnings none ${1+"$@"} + shift + ;; + + --warnings|--warning|-W) + test $# = 0 && func_missing_arg $_G_opt && break + case " $warning_categories $1" in + *" $1 "*) + # trailing space prevents matching last $1 above + func_append_uniq opt_warning_types " $1" + ;; + *all) + opt_warning_types=$warning_categories + ;; + *none) + opt_warning_types=none + warning_func=: + ;; + *error) + opt_warning_types=$warning_categories + warning_func=func_fatal_error + ;; + *) + func_fatal_error \ + "unsupported warning category: '$1'" + ;; + esac + shift + ;; + + --verbose|-v) opt_verbose=: ;; + --version) func_version ;; + -\?|-h) func_usage ;; + --help) func_help ;; + + # Separate optargs to long options (plugins may need this): + --*=*) func_split_equals "$_G_opt" + set dummy "$func_split_equals_lhs" \ + "$func_split_equals_rhs" ${1+"$@"} + shift + ;; + + # Separate optargs to short options: + -W*) + func_split_short_opt "$_G_opt" + set dummy "$func_split_short_opt_name" \ + "$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + # Separate non-argument short options: + -\?*|-h*|-v*|-x*) + func_split_short_opt "$_G_opt" + set dummy "$func_split_short_opt_name" \ + "-$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + --) break ;; + -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; + *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; + esac + done + + # save modified positional parameters for caller + func_quote_for_eval ${1+"$@"} + func_parse_options_result=$func_quote_for_eval_result +} + + +# func_validate_options [ARG]... +# ------------------------------ +# Perform any sanity checks on option settings and/or unconsumed +# arguments. +func_hookable func_validate_options +func_validate_options () +{ + $debug_cmd + + # Display all warnings if -W was not given. + test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" + + func_run_hooks func_validate_options ${1+"$@"} + + # Bail if the options were screwed! + $exit_cmd $EXIT_FAILURE + + # save modified positional parameters for caller + func_validate_options_result=$func_run_hooks_result +} + + + +## ----------------- ## +## Helper functions. ## +## ----------------- ## + +# This section contains the helper functions used by the rest of the +# hookable option parser framework in ascii-betical order. + + +# func_fatal_help ARG... +# ---------------------- +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + $debug_cmd + + eval \$ECHO \""Usage: $usage"\" + eval \$ECHO \""$fatal_help"\" + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + + +# func_help +# --------- +# Echo long help message to standard output and exit. +func_help () +{ + $debug_cmd + + func_usage_message + $ECHO "$long_help_message" + exit 0 +} + + +# func_missing_arg ARGNAME +# ------------------------ +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + $debug_cmd + + func_error "Missing argument for '$1'." + exit_cmd=exit +} + + +# func_split_equals STRING +# ------------------------ +# Set func_split_equals_lhs and func_split_equals_rhs shell variables after +# splitting STRING at the '=' sign. +test -z "$_G_HAVE_XSI_OPS" \ + && (eval 'x=a/b/c; + test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ + && _G_HAVE_XSI_OPS=yes + +if test yes = "$_G_HAVE_XSI_OPS" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_split_equals () + { + $debug_cmd + + func_split_equals_lhs=${1%%=*} + func_split_equals_rhs=${1#*=} + test "x$func_split_equals_lhs" = "x$1" \ + && func_split_equals_rhs= + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_split_equals () + { + $debug_cmd + + func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` + func_split_equals_rhs= + test "x$func_split_equals_lhs" = "x$1" \ + || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` + } +fi #func_split_equals + + +# func_split_short_opt SHORTOPT +# ----------------------------- +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +if test yes = "$_G_HAVE_XSI_OPS" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_split_short_opt () + { + $debug_cmd + + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"} + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_split_short_opt () + { + $debug_cmd + + func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` + func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` + } +fi #func_split_short_opt + + +# func_usage +# ---------- +# Echo short help message to standard output and exit. +func_usage () +{ + $debug_cmd + + func_usage_message + $ECHO "Run '$progname --help |${PAGER-more}' for full usage" + exit 0 +} + + +# func_usage_message +# ------------------ +# Echo short help message to standard output. +func_usage_message () +{ + $debug_cmd + + eval \$ECHO \""Usage: $usage"\" + echo + $SED -n 's|^# || + /^Written by/{ + x;p;x + } + h + /^Written by/q' < "$progpath" + echo + eval \$ECHO \""$usage_message"\" +} + + +# func_version +# ------------ +# Echo version message to standard output and exit. +func_version () +{ + $debug_cmd + + printf '%s\n' "$progname $scriptversion" + $SED -n ' + /(C)/!b go + :more + /\./!{ + N + s|\n# | | + b more + } + :go + /^# Written by /,/# warranty; / { + s|^# || + s|^# *$|| + s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| + p + } + /^# Written by / { + s|^# || + p + } + /^warranty; /q' < "$progpath" + + exit $? +} + + +# Local variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-time-zone: "UTC" +# End: + +# Set a version string. +scriptversion='(GNU libtool) 2.4.6' + + +# func_echo ARG... +# ---------------- +# Libtool also displays the current mode in messages, so override +# funclib.sh func_echo with this custom definition. +func_echo () +{ + $debug_cmd + + _G_message=$* + + func_echo_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_IFS + $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" + done + IFS=$func_echo_IFS +} + + +# func_warning ARG... +# ------------------- +# Libtool warnings are not categorized, so override funclib.sh +# func_warning with this simpler definition. +func_warning () +{ + $debug_cmd + + $warning_func ${1+"$@"} +} + + +## ---------------- ## +## Options parsing. ## +## ---------------- ## + +# Hook in the functions to make sure our own options are parsed during +# the option parsing loop. + +usage='$progpath [OPTION]... [MODE-ARG]...' + +# Short help message in response to '-h'. +usage_message="Options: + --config show all configuration variables + --debug enable verbose shell tracing + -n, --dry-run display commands without modifying any files + --features display basic configuration information and exit + --mode=MODE use operation mode MODE + --no-warnings equivalent to '-Wnone' + --preserve-dup-deps don't remove duplicate dependency libraries + --quiet, --silent don't print informational messages + --tag=TAG use configuration variables from tag TAG + -v, --verbose print more informational messages than default + --version print version information + -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] + -h, --help, --help-all print short, long, or detailed help message +" + +# Additional text appended to 'usage_message' in response to '--help'. +func_help () +{ + $debug_cmd + + func_usage_message + $ECHO "$long_help_message + +MODE must be one of the following: + + clean remove files from the build directory + compile compile a source file into a libtool object + execute automatically set library path, then run a program + finish complete the installation of libtool libraries + install install libraries or executables + link create a library or an executable + uninstall remove libraries from an installed directory + +MODE-ARGS vary depending on the MODE. When passed as first option, +'--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. +Try '$progname --help --mode=MODE' for a more detailed description of MODE. + +When reporting a bug, please describe a test case to reproduce it and +include the following information: + + host-triplet: $host + shell: $SHELL + compiler: $LTCC + compiler flags: $LTCFLAGS + linker: $LD (gnu? $with_gnu_ld) + version: $progname (GNU libtool) 2.4.6 + automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` + autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` + +Report bugs to . +GNU libtool home page: . +General help using GNU software: ." + exit 0 +} + + +# func_lo2o OBJECT-NAME +# --------------------- +# Transform OBJECT-NAME from a '.lo' suffix to the platform specific +# object suffix. + +lo2o=s/\\.lo\$/.$objext/ +o2lo=s/\\.$objext\$/.lo/ + +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_lo2o () + { + case $1 in + *.lo) func_lo2o_result=${1%.lo}.$objext ;; + * ) func_lo2o_result=$1 ;; + esac + }' + + # func_xform LIBOBJ-OR-SOURCE + # --------------------------- + # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) + # suffix to a '.lo' libtool-object suffix. + eval 'func_xform () + { + func_xform_result=${1%.*}.lo + }' +else + # ...otherwise fall back to using sed. + func_lo2o () + { + func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` + } + + func_xform () + { + func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` + } +fi + + +# func_fatal_configuration ARG... +# ------------------------------- +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func__fatal_error ${1+"$@"} \ + "See the $PACKAGE documentation for more information." \ + "Fatal configuration error." +} + + +# func_config +# ----------- +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" + + # Now print the configurations for the tags. + for tagname in $taglist; do + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" + done + + exit $? +} + + +# func_features +# ------------- +# Display the features supported by this script. +func_features () +{ + echo "host: $host" + if test yes = "$build_libtool_libs"; then + echo "enable shared libraries" + else + echo "disable shared libraries" + fi + if test yes = "$build_old_libs"; then + echo "enable static libraries" + else + echo "disable static libraries" + fi + + exit $? +} + + +# func_enable_tag TAGNAME +# ----------------------- +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname=$1 + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf=/$re_begincf/,/$re_endcf/p + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac + + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + + +# func_check_version_match +# ------------------------ +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +# libtool_options_prep [ARG]... +# ----------------------------- +# Preparation for options parsed by libtool. +libtool_options_prep () +{ + $debug_mode + + # Option defaults: + opt_config=false + opt_dlopen= + opt_dry_run=false + opt_help=false + opt_mode= + opt_preserve_dup_deps=false + opt_quiet=false + + nonopt= + preserve_args= + + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + esac + + # Pass back the list of options. + func_quote_for_eval ${1+"$@"} + libtool_options_prep_result=$func_quote_for_eval_result +} +func_add_hook func_options_prep libtool_options_prep + + +# libtool_parse_options [ARG]... +# --------------------------------- +# Provide handling for libtool specific options. +libtool_parse_options () +{ + $debug_cmd + + # Perform our own loop to consume as many options as possible in + # each iteration. + while test $# -gt 0; do + _G_opt=$1 + shift + case $_G_opt in + --dry-run|--dryrun|-n) + opt_dry_run=: + ;; + + --config) func_config ;; + + --dlopen|-dlopen) + opt_dlopen="${opt_dlopen+$opt_dlopen +}$1" + shift + ;; + + --preserve-dup-deps) + opt_preserve_dup_deps=: ;; + + --features) func_features ;; + + --finish) set dummy --mode finish ${1+"$@"}; shift ;; + + --help) opt_help=: ;; + + --help-all) opt_help=': help-all' ;; + + --mode) test $# = 0 && func_missing_arg $_G_opt && break + opt_mode=$1 + case $1 in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $_G_opt" + exit_cmd=exit + break + ;; + esac + shift + ;; + + --no-silent|--no-quiet) + opt_quiet=false + func_append preserve_args " $_G_opt" + ;; + + --no-warnings|--no-warning|--no-warn) + opt_warning=false + func_append preserve_args " $_G_opt" + ;; + + --no-verbose) + opt_verbose=false + func_append preserve_args " $_G_opt" + ;; + + --silent|--quiet) + opt_quiet=: + opt_verbose=false + func_append preserve_args " $_G_opt" + ;; + + --tag) test $# = 0 && func_missing_arg $_G_opt && break + opt_tag=$1 + func_append preserve_args " $_G_opt $1" + func_enable_tag "$1" + shift + ;; + + --verbose|-v) opt_quiet=false + opt_verbose=: + func_append preserve_args " $_G_opt" + ;; + + # An option not handled by this hook function: + *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; + esac + done + + + # save modified positional parameters for caller + func_quote_for_eval ${1+"$@"} + libtool_parse_options_result=$func_quote_for_eval_result +} +func_add_hook func_parse_options libtool_parse_options + + + +# libtool_validate_options [ARG]... +# --------------------------------- +# Perform any sanity checks on option settings and/or unconsumed +# arguments. +libtool_validate_options () +{ + # save first non-option argument + if test 0 -lt $#; then + nonopt=$1 + shift + fi + + # preserve --debug + test : = "$debug_cmd" || func_append preserve_args " --debug" + + case $host in + # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 + # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 + *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps + ;; + esac + + $opt_help || { + # Sanity checks first: + func_check_version_match + + test yes != "$build_libtool_libs" \ + && test yes != "$build_old_libs" \ + && func_fatal_configuration "not configured to build any kind of library" + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test execute != "$opt_mode"; then + func_error "unrecognized option '-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help=$help + help="Try '$progname --help --mode=$opt_mode' for more information." + } + + # Pass back the unparsed argument list + func_quote_for_eval ${1+"$@"} + libtool_validate_options_result=$func_quote_for_eval_result +} +func_add_hook func_validate_options libtool_validate_options + + +# Process options as early as possible so that --help and --version +# can return quickly. +func_options ${1+"$@"} +eval set dummy "$func_options_result"; shift + + + +## ----------- ## +## Main. ## +## ----------- ## + +magic='%%%MAGIC variable%%%' +magic_exe='%%%MAGIC EXE variable%%%' + +# Global variables. +extracted_archives= +extracted_serial=0 + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# func_generated_by_libtool +# True iff stdin has been generated by Libtool. This function is only +# a basic sanity check; it will hardly flush out determined imposters. +func_generated_by_libtool_p () +{ + $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_p file +# True iff FILE is a libtool '.la' library or '.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool '.la' library or '.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if 'file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case $lalib_p_line in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test yes = "$lalib_p" +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + test -f "$1" && + $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $debug_cmd + + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$sp$nl + eval cmd=\"$cmd\" + IFS=$save_ifs + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# 'FILE.' does not work on cygwin managed mounts. +func_source () +{ + $debug_cmd + + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case $lt_sysroot:$1 in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result='='$func_stripname_result + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $debug_cmd + + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case "$@ " in + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with '--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=$1 + if test yes = "$build_libtool_libs"; then + write_lobj=\'$2\' + else + write_lobj=none + fi + + if test yes = "$build_old_libs"; then + write_oldobj=\'$3\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T </dev/null` + if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly +# configured wine environment available, with the winepath program in $build's +# $PATH. Assumes ARG has no leading or trailing path separator characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $debug_cmd + + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result= + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result"; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $debug_cmd + + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $debug_cmd + + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $debug_cmd + + if test -z "$2" && test -n "$1"; then + func_error "Could not determine host file name corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result=$1 + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $debug_cmd + + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " '$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result=$3 + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $debug_cmd + + case $4 in + $1 ) func_to_host_path_result=$3$func_to_host_path_result + ;; + esac + case $4 in + $2 ) func_append func_to_host_path_result "$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via '$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $debug_cmd + + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $debug_cmd + + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result=$1 +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result=$func_convert_core_msys_to_w32_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result=$func_convert_core_file_wine_to_w32_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result=$func_cygpath_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result=$func_cygpath_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via '$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $debug_cmd + + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd=func_convert_path_$func_stripname_result + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $debug_cmd + + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result=$1 +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result=$func_convert_core_msys_to_w32_result + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 + + +# func_convert_path_cygwin_to_w32 ARG +# Convert path ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_path_cygwin_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_cygwin_to_w32 + + +# func_convert_path_nix_to_w32 ARG +# Convert path ARG from *nix to w32 format. Requires a wine environment and +# a working winepath. Returns result in func_to_host_file_result. +func_convert_path_nix_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result=$func_convert_core_path_wine_to_w32_result + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_nix_to_w32 + + +# func_convert_path_msys_to_cygwin ARG +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_path_msys_to_cygwin () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" + func_to_host_path_result=$func_cygpath_result + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_msys_to_cygwin + + +# func_convert_path_nix_to_cygwin ARG +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in +# func_to_host_file_result. +func_convert_path_nix_to_cygwin () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" + func_to_host_path_result=$func_cygpath_result + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_nix_to_cygwin + + +# func_dll_def_p FILE +# True iff FILE is a Windows DLL '.def' file. +# Keep in sync with _LT_DLL_DEF_P in libtool.m4 +func_dll_def_p () +{ + $debug_cmd + + func_dll_def_p_tmp=`$SED -n \ + -e 's/^[ ]*//' \ + -e '/^\(;.*\)*$/d' \ + -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ + -e q \ + "$1"` + test DEF = "$func_dll_def_p_tmp" +} + + +# func_mode_compile arg... +func_mode_compile () +{ + $debug_cmd + + # Get the compilation command and the source file. + base_compile= + srcfile=$nonopt # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg=$arg + arg_mode=normal + ;; + + target ) + libobj=$arg + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + test -n "$libobj" && \ + func_fatal_error "you cannot specify '-o' more than once" + arg_mode=target + continue + ;; + + -pie | -fpie | -fPIE) + func_append pie_flag " $arg" + continue + ;; + + -shared | -static | -prefer-pic | -prefer-non-pic) + func_append later " $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + lastarg= + save_ifs=$IFS; IFS=, + for arg in $args; do + IFS=$save_ifs + func_append_quoted lastarg "$arg" + done + IFS=$save_ifs + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result + + # Add the arguments to base_compile. + func_append base_compile " $lastarg" + continue + ;; + + *) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg=$srcfile + srcfile=$arg + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + func_append_quoted base_compile "$lastarg" + done # for arg + + case $arg_mode in + arg) + func_fatal_error "you must specify an argument for -Xcompile" + ;; + target) + func_fatal_error "you must specify a target with '-o'" + ;; + *) + # Get the name of the library object. + test -z "$libobj" && { + func_basename "$srcfile" + libobj=$func_basename_result + } + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + case $libobj in + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) + func_xform "$libobj" + libobj=$func_xform_result + ;; + esac + + case $libobj in + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; + *) + func_fatal_error "cannot determine name of library object from '$libobj'" + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -shared) + test yes = "$build_libtool_libs" \ + || func_fatal_configuration "cannot build a shared library" + build_old_libs=no + continue + ;; + + -static) + build_libtool_libs=no + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + func_quote_for_eval "$libobj" + test "X$libobj" != "X$func_quote_for_eval_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name '$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname=$func_basename_result + xdir=$func_dirname_result + lobj=$xdir$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test yes = "$build_old_libs"; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test no = "$compiler_c_o"; then + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext + lockfile=$output_obj.lock + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test yes = "$need_locks"; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test warn = "$need_locks"; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + func_append removelist " $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + func_append removelist " $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test yes = "$build_libtool_libs"; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test no != "$pic_mode"; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + func_append command " -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test warn = "$need_locks" && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test yes = "$suppress_opt"; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test yes = "$build_old_libs"; then + if test yes != "$pic_mode"; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test yes = "$compiler_c_o"; then + func_append command " -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + func_append command "$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test warn = "$need_locks" && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test no != "$need_locks"; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { + test compile = "$opt_mode" && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $opt_mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only + -shared do not build a '.o' file suitable for static linking + -static only build a '.o' file suitable for static linking + -Wc,FLAG pass FLAG directly to the compiler + +COMPILE-COMMAND is a command to be used in creating a 'standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix '.c' with the +library object suffix, '.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to '-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the '--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the 'install' or 'cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) + -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE use a list of object files found in FILE to specify objects + -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) + +All other options (arguments beginning with '-') are ignored. + +Every other argument is treated as a filename. Files ending in '.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in '.la', then a libtool library is created, +only library objects ('.lo' files) may be specified, and '-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created +using 'ar' and 'ranlib', or on Windows using 'lib'. + +If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode '$opt_mode'" + ;; + esac + + echo + $ECHO "Try '$progname --help' for more information about other modes." +} + +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test : = "$opt_help"; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | $SED -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + $SED '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi + + +# func_mode_execute arg... +func_mode_execute () +{ + $debug_cmd + + # The first argument is the command name. + cmd=$nonopt + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $opt_dlopen; do + test -f "$file" \ + || func_fatal_help "'$file' is not a file" + + dir= + case $file in + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "'$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "'$file' was not linked with '-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir=$func_dirname_result + + if test -f "$dir/$objdir/$dlname"; then + func_append dir "/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir=$func_dirname_result + ;; + + *) + func_warning "'-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir=$absdir + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic=$magic + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -* | *.la | *.lo ) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file=$progdir/$program + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file=$progdir/$program + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_append_quoted args "$file" + done + + if $opt_dry_run; then + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + echo "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + else + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd=\$cmd$args + fi +} + +test execute = "$opt_mode" && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $debug_cmd + + libs= + libdirs= + admincmds= + + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + func_append libdirs " $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + func_append libs " $opt" + else + func_warning "'$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument '$opt'" + fi + done + + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi + + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and '=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || func_append admincmds " + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_quiet && exit $EXIT_SUCCESS + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the '-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the '$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the '$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the '$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" + fi + echo + + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi + exit $EXIT_SUCCESS +} + +test finish = "$opt_mode" && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $debug_cmd + + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || + # Allow the use of GNU shtool's install command. + case $nonopt in *shtool*) :;; *) false;; esac + then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + func_append install_prog "$func_quote_for_eval_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=false + stripme= + no_mode=: + for arg + do + arg2= + if test -n "$dest"; then + func_append files " $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=: ;; + -f) + if $install_cp; then :; else + prev=$arg + fi + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + if test X-m = "X$prev" && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + func_append install_prog " $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" + fi + func_append install_shared_prog " $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the '$prev' option requires an argument" + + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_for_eval "$install_override_mode" + func_append install_shared_prog " -m $func_quote_for_eval_result" + fi + fi + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=: + if $isdir; then + destdir=$dest + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir=$func_dirname_result + destname=$func_basename_result + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "'$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "'$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=$magic + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + func_append staticlibs " $file" + ;; + + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "'$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) func_append current_libdirs " $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) func_append future_libdirs " $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir=$func_dirname_result + func_append dir "$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking '$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname=$1 + shift + + srcname=$realname + test -n "$relink_command" && srcname=${realname}T + + # Install the shared library and build the symlinks. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme=$stripme + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme= + ;; + esac + ;; + os2*) + case $realname in + *_dll.a) + tstripme= + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try 'ln -sf' first, because the 'ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib=$destdir/$realname + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name=$func_basename_result + instname=$dir/${name}i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && func_append staticlibs " $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=$destdir/$destname + else + func_basename "$file" + destfile=$func_basename_result + destfile=$destdir/$destfile + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest=$destfile + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to '$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test yes = "$build_old_libs"; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=$destdir/$destname + else + func_basename "$file" + destfile=$func_basename_result + destfile=$destdir/$destfile + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext= + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=.exe + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script '$wrapper'" + + finalize=: + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "'$lib' has not been installed in '$libdir'" + finalize=false + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test no = "$fast_install" && test -n "$relink_command"; then + $opt_dry_run || { + if $finalize; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file=$func_basename_result + outputname=$tmpdir/$file + # Replace the output file specification. + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_quiet || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink '$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file=$outputname + else + func_warning "cannot relink '$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name=$func_basename_result + + # Set up the ranlib parameters. + oldlib=$destdir/$name + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $tool_oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run '$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test install = "$opt_mode" && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $debug_cmd + + my_outputname=$1 + my_originator=$2 + my_pic_p=${3-false} + my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms=${my_outputname}S.c + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist=$output_objdir/$my_outputname.nm + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) + +/* External symbol declarations for the compiler. */\ +" + + if test yes = "$dlself"; then + func_verbose "generating symbol list for '$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from '$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols=$output_objdir/$outputname.exp + $opt_dry_run || { + $RM $export_symbols + eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from '$dlprefile'" + func_basename "$dlprefile" + name=$func_basename_result + case $host in + *cygwin* | *mingw* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename= + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname"; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename=$func_basename_result + else + # no lafile. user explicitly requested -dlpreopen . + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename"; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + func_show_eval '$RM "${nlist}I"' + if test -n "$global_symbol_to_import"; then + eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' + fi + + echo >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +extern LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[];\ +" + + if test -s "$nlist"I; then + echo >> "$output_objdir/$my_dlsyms" "\ +static void lt_syminit(void) +{ + LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; + for (; symbol->name; ++symbol) + {" + $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" + echo >> "$output_objdir/$my_dlsyms" "\ + } +}" + fi + echo >> "$output_objdir/$my_dlsyms" "\ +LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{ {\"$my_originator\", (void *) 0}," + + if test -s "$nlist"I; then + echo >> "$output_objdir/$my_dlsyms" "\ + {\"@INIT@\", (void *) <_syminit}," + fi + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + echo >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + $my_pic_p && pic_flag_for_symtable=" $pic_flag" + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) func_append symtab_cflags " $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' + + # Transform the symbol file into the correct name. + symfileobj=$output_objdir/${my_outputname}S.$objext + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for '$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` + fi +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $debug_cmd + + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $debug_cmd + + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +# Despite the name, also deal with 64 bit binaries. +func_win32_libid () +{ + $debug_cmd + + win32_libid_type=unknown + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then + case $nm_interface in + "MS dumpbin") + if func_cygming_ms_implib_p "$1" || + func_cygming_gnu_implib_p "$1" + then + win32_nmres=import + else + win32_nmres= + fi + ;; + *) + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | + $SED -n -e ' + 1,100{ + / I /{ + s|.*|import| + p + q + } + }'` + ;; + esac + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $debug_cmd + + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $debug_cmd + + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive that possess that section. Heuristic: eliminate + # all those that have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $debug_cmd + + if func_cygming_gnu_implib_p "$1"; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1"; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result= + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $debug_cmd + + f_ex_an_ar_dir=$1; shift + f_ex_an_ar_oldlib=$1 + if test yes = "$lock_old_archive_extraction"; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test yes = "$lock_old_archive_extraction"; then + $opt_dry_run || rm -f "$lockfile" + fi + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $debug_cmd + + my_gentop=$1; shift + my_oldlibs=${1+"$@"} + my_oldobjs= + my_xlib= + my_xabs= + my_xdir= + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib=$func_basename_result + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir=$my_gentop/$my_xlib_u + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + func_basename "$darwin_archive" + darwin_base_archive=$func_basename_result + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches; do + func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" + $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" + cd "unfat-$$/$darwin_base_archive-$darwin_arch" + func_extract_an_archive "`pwd`" "$darwin_base_archive" + cd "$darwin_curdir" + $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` + done + + func_extract_archives_result=$my_oldobjs +} + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory where it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=${1-no} + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + file=\"\$0\"" + + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=\"$qECHO\" + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ that is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options that match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + case \" \$* \" in + *\\ --lt-*) + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done ;; + esac + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` + done + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test yes = "$fast_install"; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + \$ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # fixup the dll searchpath if we need to. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + # Export our shlibpath_var if we have one. + if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` + + export $shlibpath_var +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. + func_exec_program \${1+\"\$@\"} + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} + + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#ifdef _MSC_VER +# include +# include +# include +#else +# include +# include +# ifdef __CYGWIN__ +# include +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) + +/* declarations of non-ANSI functions */ +#if defined __MINGW32__ +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +# endif +#elif defined __CYGWIN__ +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined other_platform || defined ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined _MSC_VER +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +#elif defined __MINGW32__ +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined __CYGWIN__ +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined other platforms ... */ +#endif + +#if defined PATH_MAX +# define LT_PATHMAX PATH_MAX +#elif defined MAXPATHLEN +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +/* path handling portability macros */ +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ + defined __OS2__ +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free (stale); stale = 0; } \ +} while (0) + +#if defined LT_DEBUGWRAPPER +static int lt_debug = 1; +#else +static int lt_debug = 0; +#endif + +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); +void lt_dump_script (FILE *f); +EOF + + cat <= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", + nonempty (path)); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + size_t tmp_len; + char *concat_name; + + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", + nonempty (wrapper)); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined HAVE_DOS_BASED_FILE_SYSTEM + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined HAVE_DOS_BASED_FILE_SYSTEM + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = (size_t) (q - p); + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + lt_debugprintf (__FILE__, __LINE__, + "checking path component for symlinks: %s\n", + tmp_pathspec); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + lt_fatal (__FILE__, __LINE__, + "error accessing file \"%s\": %s", + tmp_pathspec, nonnull (strerror (errno))); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal (__FILE__, __LINE__, + "could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (STREQ (str, pat)) + *str = '\0'; + } + return str; +} + +void +lt_debugprintf (const char *file, int line, const char *fmt, ...) +{ + va_list args; + if (lt_debug) + { + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); + } +} + +static void +lt_error_core (int exit_status, const char *file, + int line, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *file, int line, const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); + va_end (ap); +} + +static const char * +nonnull (const char *s) +{ + return s ? s : "(null)"; +} + +static const char * +nonempty (const char *s) +{ + return (s && !*s) ? "(empty)" : nonnull (s); +} + +void +lt_setenv (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_setenv) setting '%s' to '%s'\n", + nonnull (name), nonnull (value)); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + size_t len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + size_t orig_value_len = strlen (orig_value); + size_t add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + size_t len = strlen (new_value); + while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[--len] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -n -e ' +s/^\(.\{79\}\)\(..*\)/\1\ +\2/ +h +s/\([\\"]\)/\\\1/g +s/$/\\n/ +s/\([^\n]*\).*/ fputs ("\1", f);/p +g +D' + cat <<"EOF" +} +EOF +} +# end: func_emit_cwrapperexe_src + +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $debug_cmd + + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + +# func_suncc_cstd_abi +# !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! +# Several compiler flags select an ABI that is incompatible with the +# Cstd library. Avoid specifying it if any are in CXXFLAGS. +func_suncc_cstd_abi () +{ + $debug_cmd + + case " $compile_command " in + *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) + suncc_use_cstd_abi=no + ;; + *) + suncc_use_cstd_abi=yes + ;; + esac +} + +# func_mode_link arg... +func_mode_link () +{ + $debug_cmd + + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # what system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll that has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + bindir= + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + os2dllname= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=false + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module=$wl-single_module + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test yes != "$build_libtool_libs" \ + && func_fatal_configuration "cannot build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg=$1 + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + bindir) + bindir=$arg + prev= + continue + ;; + dlfiles|dlprefiles) + $preload || { + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=: + } + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test no = "$dlself"; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test dlprefiles = "$prev"; then + dlself=yes + elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test dlfiles = "$prev"; then + func_append dlfiles " $arg" + else + func_append dlprefiles " $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols=$arg + test -f "$arg" \ + || func_fatal_error "symbol file '$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex=$arg + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) func_append deplibs " $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir=$arg + prev= + continue + ;; + mllvm) + # Clang does not use LLVM to link, so we can simply discard any + # '-mllvm $arg' options when doing the link step. + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# func_append moreargs " $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test none = "$pic_object" && + test none = "$non_pic_object"; then + func_fatal_error "cannot find name of object for '$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + if test none != "$pic_object"; then + # Prepend the subdirectory the object is found in. + pic_object=$xdir$pic_object + + if test dlfiles = "$prev"; then + if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test dlprefiles = "$prev"; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=$pic_object + fi + + # Non-PIC object. + if test none != "$non_pic_object"; then + # Prepend the subdirectory the object is found in. + non_pic_object=$xdir$non_pic_object + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test none = "$pic_object"; then + arg=$non_pic_object + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=$pic_object + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "'$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file '$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + os2dllname) + os2dllname=$arg + prev= + continue + ;; + precious_regex) + precious_files_regex=$arg + prev= + continue + ;; + release) + release=-$arg + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test rpath = "$prev"; then + case "$rpath " in + *" $arg "*) ;; + *) func_append rpath " $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) func_append xrpath " $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds=$arg + prev= + continue + ;; + weak) + func_append weak_libs " $arg" + prev= + continue + ;; + xcclinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg=$arg + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "'-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -bindir) + prev=bindir + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test X-export-symbols = "X$arg"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between '-L' and '$1'" + else + func_fatal_error "need path for '-L' option" + fi + fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of '$dir'" + dir=$absdir + ;; + esac + case "$deplibs " in + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; + *) + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; + *) func_append deplibs " -L$dir" ;; + esac + func_append lib_search_path " $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) func_append dllsearchpath ":$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test X-lc = "X$arg" || test X-lm = "X$arg"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test X-lc = "X$arg" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) + # Do not include libc due to us having libc/libc_r. + test X-lc = "X$arg" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + func_append deplibs " System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test X-lc = "X$arg" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test X-lc = "X$arg" && continue + ;; + esac + elif test X-lc_r = "X$arg"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + func_append deplibs " $arg" + continue + ;; + + -mllvm) + prev=mllvm + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot|--sysroot) + func_append compiler_flags " $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + func_append compiler_flags " $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) func_append new_inherited_linker_flags " $arg" ;; + esac + continue + ;; + + -multi_module) + single_module=$wl-multi_module + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "'-no-install' is ignored for $host" + func_warning "assuming '-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -os2dllname) + prev=os2dllname + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + =*) + func_stripname '=' '' "$dir" + dir=$lt_sysroot$func_stripname_result + ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) func_append xrpath " $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs=$IFS; IFS=, + for flag in $args; do + IFS=$save_ifs + func_quote_for_eval "$flag" + func_append arg " $func_quote_for_eval_result" + func_append compiler_flags " $func_quote_for_eval_result" + done + IFS=$save_ifs + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs=$IFS; IFS=, + for flag in $args; do + IFS=$save_ifs + func_quote_for_eval "$flag" + func_append arg " $wl$func_quote_for_eval_result" + func_append compiler_flags " $wl$func_quote_for_eval_result" + func_append linker_flags " $func_quote_for_eval_result" + done + IFS=$save_ifs + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + ;; + + # Flags to be passed through unchanged, with rationale: + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler + # -r[0-9][0-9]* specify processor for the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler + # +DA*, +DD* enable 64-bit mode for the HP compiler + # -q* compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC + # -F/path path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC + # -fstack-protector* stack protector flags for GCC + # @file GCC response files + # -tp=* Portland pgcc target processor selection + # --sysroot=* for sysroot support + # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + # -specs=* GCC specs files + # -stdlib=* select c++ std lib with clang + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ + -specs=*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + func_append compile_command " $arg" + func_append finalize_command " $arg" + func_append compiler_flags " $arg" + continue + ;; + + -Z*) + if test os2 = "`expr $host : '.*\(os2\)'`"; then + # OS/2 uses -Zxxx to specify OS/2-specific options + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case $arg in + -Zlinker | -Zstack) + prev=xcompiler + ;; + esac + continue + else + # Otherwise treat like 'Some other compiler flag' below + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + fi + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + ;; + + *.$objext) + # A standard object. + func_append objs " $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test none = "$pic_object" && + test none = "$non_pic_object"; then + func_fatal_error "cannot find name of object for '$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + test none = "$pic_object" || { + # Prepend the subdirectory the object is found in. + pic_object=$xdir$pic_object + + if test dlfiles = "$prev"; then + if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test dlprefiles = "$prev"; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=$pic_object + } + + # Non-PIC object. + if test none != "$non_pic_object"; then + # Prepend the subdirectory the object is found in. + non_pic_object=$xdir$non_pic_object + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test none = "$pic_object"; then + arg=$non_pic_object + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=$pic_object + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "'$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + func_append deplibs " $arg" + func_append old_deplibs " $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + func_resolve_sysroot "$arg" + if test dlfiles = "$prev"; then + # This library was specified with -dlopen. + func_append dlfiles " $func_resolve_sysroot_result" + prev= + elif test dlprefiles = "$prev"; then + # The library was specified with -dlpreopen. + func_append dlprefiles " $func_resolve_sysroot_result" + prev= + else + func_append deplibs " $func_resolve_sysroot_result" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the '$prevarg' option requires an argument" + + if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname=$func_basename_result + libobjs_save=$libobjs + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + # Definition is injected by LT_CONFIG during libtool generation. + func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" + + func_dirname "$output" "/" "" + output_objdir=$func_dirname_result$objdir + func_to_tool_file "$output_objdir/" + tool_output_objdir=$func_to_tool_file_result + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_preserve_dup_deps; then + case "$libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append libs " $deplib" + done + + if test lib = "$linkmode"; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; + esac + func_append pre_post_deps " $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=false + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test lib,link = "$linkmode,$pass"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs=$tmp_deplibs + fi + + if test lib,link = "$linkmode,$pass" || + test prog,scan = "$linkmode,$pass"; then + libs=$deplibs + deplibs= + fi + if test prog = "$linkmode"; then + case $pass in + dlopen) libs=$dlfiles ;; + dlpreopen) libs=$dlprefiles ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test lib,dlpreopen = "$linkmode,$pass"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + func_resolve_sysroot "$lib" + case $lib in + *.la) func_source "$func_resolve_sysroot_result" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + func_basename "$deplib" + deplib_base=$func_basename_result + case " $weak_libs " in + *" $deplib_base "*) ;; + *) func_append deplibs " $deplib" ;; + esac + done + done + libs=$dlprefiles + fi + if test dlopen = "$pass"; then + # Collect dlpreopened libraries + save_deplibs=$deplibs + deplibs= + fi + + for deplib in $libs; do + lib= + found=false + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + func_append compiler_flags " $deplib" + if test lib = "$linkmode"; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test lib != "$linkmode" && test prog != "$linkmode"; then + func_warning "'-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test lib = "$linkmode"; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib=$searchdir/lib$name$search_ext + if test -f "$lib"; then + if test .la = "$search_ext"; then + found=: + else + found=false + fi + break 2 + fi + done + done + if $found; then + # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test yes = "$allow_libtool_libs_with_static_runtimes"; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll=$l + done + if test "X$ll" = "X$old_library"; then # only static version available + found=false + func_dirname "$lib" "" "." + ladir=$func_dirname_result + lib=$ladir/$old_library + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + else + # deplib doesn't seem to be a libtool library + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + ;; # -l + *.ltframework) + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test lib = "$linkmode"; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test conv = "$pass" && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + prog) + if test conv = "$pass"; then + deplibs="$deplib $deplibs" + continue + fi + if test scan = "$pass"; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + *) + func_warning "'-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test link = "$pass"; then + func_stripname '-R' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) func_append xrpath " $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) + func_resolve_sysroot "$deplib" + lib=$func_resolve_sysroot_result + ;; + *.$libext) + if test conv = "$pass"; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=false + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=: + fi + ;; + pass_all) + valid_a_lib=: + ;; + esac + if $valid_a_lib; then + echo + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + else + echo + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not use here." + fi + ;; + esac + continue + ;; + prog) + if test link != "$pass"; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test conv = "$pass"; then + deplibs="$deplib $deplibs" + elif test prog = "$linkmode"; then + if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + func_append newdlprefiles " $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + func_append newdlfiles " $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=: + continue + ;; + esac # case $deplib + + $found || test -f "$lib" \ + || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "'$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir=$func_dirname_result + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + if test lib,link = "$linkmode,$pass" || + test prog,scan = "$linkmode,$pass" || + { test prog != "$linkmode" && test lib != "$linkmode"; }; then + test -n "$dlopen" && func_append dlfiles " $dlopen" + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" + fi + + if test conv = "$pass"; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for '$lib'" + fi + # It is a libtool convenience library, so add in its objects. + func_append convenience " $ladir/$objdir/$old_library" + func_append old_convenience " $ladir/$objdir/$old_library" + elif test prog != "$linkmode" && test lib != "$linkmode"; then + func_fatal_error "'$lib' is not a convenience library" + fi + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_preserve_dup_deps; then + case "$tmp_libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append tmp_libs " $deplib" + done + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + if test -n "$old_library" && + { test yes = "$prefer_static_libs" || + test built,no = "$prefer_static_libs,$installed"; }; then + linklib=$old_library + else + for l in $old_library $library_names; do + linklib=$l + done + fi + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for '$lib'" + fi + + # This library was specified with -dlopen. + if test dlopen = "$pass"; then + test -z "$libdir" \ + && func_fatal_error "cannot -dlopen a convenience library: '$lib'" + if test -z "$dlname" || + test yes != "$dlopen_support" || + test no = "$build_libtool_libs" + then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + func_append dlprefiles " $lib $dependency_libs" + else + func_append newdlfiles " $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of '$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir=$ladir + fi + ;; + esac + func_basename "$lib" + laname=$func_basename_result + + # Find the relevant object directory and library name. + if test yes = "$installed"; then + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library '$lib' was moved." + dir=$ladir + absdir=$abs_ladir + libdir=$abs_ladir + else + dir=$lt_sysroot$libdir + absdir=$lt_sysroot$libdir + fi + test yes = "$hardcode_automatic" && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir=$ladir + absdir=$abs_ladir + # Remove this search path later + func_append notinst_path " $abs_ladir" + else + dir=$ladir/$objdir + absdir=$abs_ladir/$objdir + # Remove this search path later + func_append notinst_path " $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test dlpreopen = "$pass"; then + if test -z "$libdir" && test prog = "$linkmode"; then + func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" + fi + case $host in + # special handling for platforms with PE-DLLs. + *cygwin* | *mingw* | *cegcc* ) + # Linker will automatically link against shared library if both + # static and shared are present. Therefore, ensure we extract + # symbols from the import library if a shared library is present + # (otherwise, the dlopen module name will be incorrect). We do + # this by putting the import library name into $newdlprefiles. + # We recover the dlopen module name by 'saving' the la file + # name in a special purpose variable, and (later) extracting the + # dlname from the la file. + if test -n "$dlname"; then + func_tr_sh "$dir/$linklib" + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" + func_append newdlprefiles " $dir/$linklib" + else + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + fi + ;; + * ) + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + func_append newdlprefiles " $dir/$dlname" + else + func_append newdlprefiles " $dir/$linklib" + fi + ;; + esac + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test lib = "$linkmode"; then + deplibs="$dir/$old_library $deplibs" + elif test prog,link = "$linkmode,$pass"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test prog = "$linkmode" && test link != "$pass"; then + func_append newlib_search_path " $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=false + if test no != "$link_all_deplibs" || test -z "$library_names" || + test no = "$build_libtool_libs"; then + linkalldeplibs=: + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + esac + # Need to link against all dependency_libs? + if $linkalldeplibs; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_preserve_dup_deps; then + case "$tmp_libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append tmp_libs " $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test prog,link = "$linkmode,$pass"; then + if test -n "$library_names" && + { { test no = "$prefer_static_libs" || + test built,yes = "$prefer_static_libs,$installed"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then + # Make sure the rpath contains only unique directories. + case $temp_rpath: in + *"$absdir:"*) ;; + *) func_append temp_rpath "$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) func_append compile_rpath " $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if $alldeplibs && + { test pass_all = "$deplibs_check_method" || + { test yes = "$build_libtool_libs" && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test built = "$use_static_libs" && test yes = "$installed"; then + use_static_libs=no + fi + if test -n "$library_names" && + { test no = "$use_static_libs" || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc* | *os2*) + # No point in relinking DLLs because paths are not encoded + func_append notinst_deplibs " $lib" + need_relink=no + ;; + *) + if test no = "$installed"; then + func_append notinst_deplibs " $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule= + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule=$dlpremoduletest + break + fi + done + if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then + echo + if test prog = "$linkmode"; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test lib = "$linkmode" && + test yes = "$hardcode_into_libs"; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) func_append compile_rpath " $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname=$1 + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname=$dlname + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc* | *os2*) + func_arith $current - $age + major=$func_arith_result + versuffix=-$major + ;; + esac + eval soname=\"$soname_spec\" + else + soname=$realname + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot=$soname + func_basename "$soroot" + soname=$func_basename_result + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from '$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for '$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test prog = "$linkmode" || test relink != "$opt_mode"; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test no = "$hardcode_direct"; then + add=$dir/$linklib + case $host in + *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; + *-*-sysv4*uw2*) add_dir=-L$dir ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir=-L$dir ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we cannot + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library"; then + echo + echo "*** And there doesn't seem to be a static archive available" + echo "*** The link will probably fail, sorry" + else + add=$dir/$old_library + fi + elif test -n "$old_library"; then + add=$dir/$old_library + fi + fi + esac + elif test no = "$hardcode_minus_L"; then + case $host in + *-*-sunos*) add_shlibpath=$dir ;; + esac + add_dir=-L$dir + add=-l$name + elif test no = "$hardcode_shlibpath_var"; then + add_shlibpath=$dir + add=-l$name + else + lib_linked=no + fi + ;; + relink) + if test yes = "$hardcode_direct" && + test no = "$hardcode_direct_absolute"; then + add=$dir/$linklib + elif test yes = "$hardcode_minus_L"; then + add_dir=-L$absdir + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + func_append add_dir " -L$inst_prefix_dir$libdir" + ;; + esac + fi + add=-l$name + elif test yes = "$hardcode_shlibpath_var"; then + add_shlibpath=$dir + add=-l$name + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test yes != "$lib_linked"; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) func_append compile_shlibpath "$add_shlibpath:" ;; + esac + fi + if test prog = "$linkmode"; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test yes != "$hardcode_direct" && + test yes != "$hardcode_minus_L" && + test yes = "$hardcode_shlibpath_var"; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) func_append finalize_shlibpath "$libdir:" ;; + esac + fi + fi + fi + + if test prog = "$linkmode" || test relink = "$opt_mode"; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test yes = "$hardcode_direct" && + test no = "$hardcode_direct_absolute"; then + add=$libdir/$linklib + elif test yes = "$hardcode_minus_L"; then + add_dir=-L$libdir + add=-l$name + elif test yes = "$hardcode_shlibpath_var"; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) func_append finalize_shlibpath "$libdir:" ;; + esac + add=-l$name + elif test yes = "$hardcode_automatic"; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib"; then + add=$inst_prefix_dir$libdir/$linklib + else + add=$libdir/$linklib + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir=-L$libdir + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + func_append add_dir " -L$inst_prefix_dir$libdir" + ;; + esac + fi + add=-l$name + fi + + if test prog = "$linkmode"; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test prog = "$linkmode"; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test unsupported != "$hardcode_direct"; then + test -n "$old_library" && linklib=$old_library + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test yes = "$build_libtool_libs"; then + # Not a shared library + if test pass_all != "$deplibs_check_method"; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + echo + $ECHO "*** Warning: This system cannot link to static lib archive $lib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + if test yes = "$module"; then + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using 'nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** 'nm' from GNU binutils and a full rebuild may help." + fi + if test no = "$build_old_libs"; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test lib = "$linkmode"; then + if test -n "$dependency_libs" && + { test yes != "$hardcode_into_libs" || + test yes = "$build_old_libs" || + test yes = "$link_static"; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) func_append xrpath " $temp_xrpath";; + esac;; + *) func_append temp_deplibs " $libdir";; + esac + done + dependency_libs=$temp_deplibs + fi + + func_append newlib_search_path " $absdir" + # Link against this library + test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result";; + *) func_resolve_sysroot "$deplib" ;; + esac + if $opt_preserve_dup_deps; then + case "$tmp_libs " in + *" $func_resolve_sysroot_result "*) + func_append specialdeplibs " $func_resolve_sysroot_result" ;; + esac + fi + func_append tmp_libs " $func_resolve_sysroot_result" + done + + if test no != "$link_all_deplibs"; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + path= + case $deplib in + -L*) path=$deplib ;; + *.la) + func_resolve_sysroot "$deplib" + deplib=$func_resolve_sysroot_result + func_dirname "$deplib" "" "." + dir=$func_dirname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of '$dir'" + absdir=$dir + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names"; then + for tmp in $deplibrary_names; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl"; then + depdepl=$absdir/$objdir/$depdepl + darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" + func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" + path= + fi + fi + ;; + *) + path=-L$absdir/$objdir + ;; + esac + else + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "'$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "'$deplib' seems to be moved" + + path=-L$absdir + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test link = "$pass"; then + if test prog = "$linkmode"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs=$newdependency_libs + if test dlpreopen = "$pass"; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test dlopen != "$pass"; then + test conv = "$pass" || { + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) func_append lib_search_path " $dir" ;; + esac + done + newlib_search_path= + } + + if test prog,link = "$linkmode,$pass"; then + vars="compile_deplibs finalize_deplibs" + else + vars=deplibs + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) func_append tmp_libs " $deplib" ;; + esac + ;; + *) func_append tmp_libs " $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + + # Add Sun CC postdeps if required: + test CXX = "$tagname" && { + case $host_os in + linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C++ 5.9 + func_suncc_cstd_abi + + if test no != "$suncc_use_cstd_abi"; then + func_append postdeps ' -library=Cstd -library=Crun' + fi + ;; + esac + ;; + + solaris*) + func_cc_basename "$CC" + case $func_cc_basename_result in + CC* | sunCC*) + func_suncc_cstd_abi + + if test no != "$suncc_use_cstd_abi"; then + func_append postdeps ' -library=Cstd -library=Crun' + fi + ;; + esac + ;; + esac + } + + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i= + ;; + esac + if test -n "$i"; then + func_append tmp_libs " $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test prog = "$linkmode"; then + dlfiles=$newdlfiles + fi + if test prog = "$linkmode" || test lib = "$linkmode"; then + dlprefiles=$newdlprefiles + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + func_warning "'-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "'-l' and '-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "'-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "'-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "'-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "'-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "'-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs=$output + func_append objs "$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form 'libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test no = "$module" \ + && func_fatal_help "libtool library '$output' must begin with 'lib'" + + if test no != "$need_lib_prefix"; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test pass_all != "$deplibs_check_method"; then + func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" + else + echo + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + func_append libobjs " $objs" + fi + fi + + test no = "$dlself" \ + || func_warning "'-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test 1 -lt "$#" \ + && func_warning "ignoring multiple '-rpath's for a libtool library" + + install_libdir=$1 + + oldlibs= + if test -z "$rpath"; then + if test yes = "$build_libtool_libs"; then + # Building a libtool convenience library. + # Some compilers have problems with a '.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "'-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "'-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs=$IFS; IFS=: + set dummy $vinfo 0 0 0 + shift + IFS=$save_ifs + + test -n "$7" && \ + func_fatal_help "too many parameters to '-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major=$1 + number_minor=$2 + number_revision=$3 + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # that has an extra 1 added just for fun + # + case $version_type in + # correct linux to gnu/linux during the next big refactor + darwin|freebsd-elf|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age=$number_minor + revision=$number_revision + ;; + freebsd-aout|qnx|sunos) + current=$number_major + revision=$number_minor + age=0 + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age=$number_minor + revision=$number_minor + lt_irix_increment=no + ;; + esac + ;; + no) + current=$1 + revision=$2 + age=$3 + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT '$current' must be a nonnegative integer" + func_fatal_error "'$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION '$revision' must be a nonnegative integer" + func_fatal_error "'$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE '$age' must be a nonnegative integer" + func_fatal_error "'$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE '$age' is greater than the current interface number '$current'" + func_fatal_error "'$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + # On Darwin other compilers + case $CC in + nagfor*) + verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" + ;; + *) + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + esac + ;; + + freebsd-aout) + major=.$current + versuffix=.$current.$revision + ;; + + freebsd-elf) + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision + ;; + + irix | nonstopux) + if test no = "$lt_irix_increment"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring=$verstring_prefix$major.$revision + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test 0 -ne "$loop"; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring=$verstring_prefix$major.$iface:$verstring + done + + # Before this point, $major must not contain '.'. + major=.$major + versuffix=$major.$revision + ;; + + linux) # correct to gnu/linux during the next big refactor + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=.$current.$age.$revision + verstring=$current.$age.$revision + + # Add in all the interfaces that we are compatible with. + loop=$age + while test 0 -ne "$loop"; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring=$verstring:$iface.0 + done + + # Make executables depend on our current version. + func_append verstring ":$current.0" + ;; + + qnx) + major=.$current + versuffix=.$current + ;; + + sco) + major=.$current + versuffix=.$current + ;; + + sunos) + major=.$current + versuffix=.$current.$revision + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 file systems. + func_arith $current - $age + major=$func_arith_result + versuffix=-$major + ;; + + *) + func_fatal_configuration "unknown library version type '$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring=0.0 + ;; + esac + if test no = "$need_version"; then + versuffix= + else + versuffix=.0.0 + fi + fi + + # Remove version info from name if versioning should be avoided + if test yes,no = "$avoid_version,$need_version"; then + major= + versuffix= + verstring= + fi + + # Check to see if the archive will have undefined symbols. + if test yes = "$allow_undefined"; then + if test unsupported = "$allow_undefined_flag"; then + if test yes = "$build_old_libs"; then + func_warning "undefined symbols not allowed in $host shared libraries; building static only" + build_libtool_libs=no + else + func_fatal_error "can't build $host shared library unless -no-undefined is specified" + fi + fi + else + # Don't allow undefined symbols. + allow_undefined_flag=$no_undefined_flag + fi + + fi + + func_generate_dlsyms "$libname" "$libname" : + func_append libobjs " $symfileobj" + test " " = "$libobjs" && libobjs= + + if test relink != "$opt_mode"; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) + if test -n "$precious_files_regex"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + func_append removelist " $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then + func_append oldlibs " $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + func_replace_sysroot "$libdir" + func_append temp_xrpath " -R$func_replace_sysroot_result" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + done + if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles=$dlfiles + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) func_append dlfiles " $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles=$dlprefiles + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) func_append dlprefiles " $lib" ;; + esac + done + + if test yes = "$build_libtool_libs"; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + func_append deplibs " System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test yes = "$build_libtool_need_lc"; then + func_append deplibs " -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release= + versuffix= + major= + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + $nocaseglob + else + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + fi + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib=$potent_lib + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | $SED 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; + *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + func_append newdeplibs " $a_deplib" + a_deplib= + break 2 + fi + done + done + fi + if test -n "$a_deplib"; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib"; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + func_append newdeplibs " $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test yes = "$allow_libtool_libs_with_static_runtimes"; then + case " $predeps $postdeps " in + *" $a_deplib "*) + func_append newdeplibs " $a_deplib" + a_deplib= + ;; + esac + fi + if test -n "$a_deplib"; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib=$potent_lib # see symlink-check above in file_magic test + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + func_append newdeplibs " $a_deplib" + a_deplib= + break 2 + fi + done + done + fi + if test -n "$a_deplib"; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib"; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + func_append newdeplibs " $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs= + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` + if test yes = "$allow_libtool_libs_with_static_runtimes"; then + for i in $predeps $postdeps; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` + done + fi + case $tmp_deplibs in + *[!\ \ ]*) + echo + if test none = "$deplibs_check_method"; then + echo "*** Warning: inter-library dependencies are not supported in this platform." + else + echo "*** Warning: inter-library dependencies are not known to be supported." + fi + echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + ;; + esac + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + if test yes = "$droppeddeps"; then + if test yes = "$module"; then + echo + echo "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + echo "*** a static module, that should work as long as the dlopening" + echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using 'nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** 'nm' from GNU binutils and a full rebuild may help." + fi + if test no = "$build_old_libs"; then + oldlibs=$output_objdir/$libname.$libext + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + echo "*** The inter-library dependencies that have been dropped here will be" + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." + + if test no = "$allow_undefined"; then + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" + echo "*** it was explicitly requested with -no-undefined," + echo "*** libtool will only create a static version of it." + if test no = "$build_old_libs"; then + oldlibs=$output_objdir/$libname.$libext + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + func_append new_libs " -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) func_append new_libs " $deplib" ;; + esac + ;; + *) func_append new_libs " $deplib" ;; + esac + done + deplibs=$new_libs + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test yes = "$build_libtool_libs"; then + # Remove $wl instances when linking with ld. + # FIXME: should test the right _cmds variable. + case $archive_cmds in + *\$LD\ *) wl= ;; + esac + if test yes = "$hardcode_into_libs"; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath=$finalize_rpath + test relink = "$opt_mode" || rpath=$compile_rpath$rpath + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + func_replace_sysroot "$libdir" + libdir=$func_replace_sysroot_result + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append dep_rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_append perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=$hardcode_libdirs + eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + func_append rpath "$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath=$finalize_shlibpath + test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname=$1 + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname=$realname + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib=$output_objdir/$realname + linknames= + for link + do + func_append linknames " $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols=$output_objdir/$libname.uexp + func_append delfiles " $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + func_dll_def_p "$export_symbols" || { + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols=$export_symbols + export_symbols= + always_export_symbols=yes + } + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for '$libname.la'" + export_symbols=$output_objdir/$libname.exp + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs=$IFS; IFS='~' + for cmd1 in $cmds; do + IFS=$save_ifs + # Take the normal branch if the nm_file_list_spec branch + # doesn't work or if tool conversion is not needed. + case $nm_file_list_spec~$to_tool_file_cmd in + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) + try_normal_branch=yes + eval cmd=\"$cmd1\" + func_len " $cmd" + len=$func_len_result + ;; + *) + try_normal_branch=no + ;; + esac + if test yes = "$try_normal_branch" \ + && { test "$len" -lt "$max_cmd_len" \ + || test "$max_cmd_len" -le -1; } + then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + elif test -n "$nm_file_list_spec"; then + func_basename "$output" + output_la=$func_basename_result + save_libobjs=$libobjs + save_output=$output + output=$output_objdir/$output_la.nm + func_to_tool_file "$output" + libobjs=$nm_file_list_spec$func_to_tool_file_result + func_append delfiles " $output" + func_verbose "creating $NM input file list: $output" + for obj in $save_libobjs; do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > "$output" + eval cmd=\"$cmd1\" + func_show_eval "$cmd" 'exit $?' + output=$save_output + libobjs=$save_libobjs + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS=$save_ifs + if test -n "$export_symbols_regex" && test : != "$skipped_export"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols=$export_symbols + test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test : != "$skipped_export" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for '$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands, which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + func_append delfiles " $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + func_append tmp_deplibs " $test_deplib" + ;; + esac + done + deplibs=$tmp_deplibs + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test yes = "$compiler_needs_object" && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $convenience + func_append libobjs " $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + func_append linker_flags " $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test relink = "$opt_mode"; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test yes = "$module" && test -n "$module_cmds"; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test : != "$skipped_export" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + func_basename "$output" + output_la=$func_basename_result + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then + output=$output_objdir/$output_la.lnkscript + func_verbose "creating GNU ld script: $output" + echo 'INPUT (' > $output + for obj in $save_libobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + echo ')' >> $output + func_append delfiles " $output" + func_to_tool_file "$output" + output=$func_to_tool_file_result + elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then + output=$output_objdir/$output_la.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test yes = "$compiler_needs_object"; then + firstobj="$1 " + shift + fi + for obj + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + func_append delfiles " $output" + func_to_tool_file "$output" + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-$k.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test -z "$objlist" || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test 1 -eq "$k"; then + # The first file doesn't have a previous command to add. + reload_objs=$objlist + eval concat_cmds=\"$reload_cmds\" + else + # All subsequent reloadable object files will link in + # the last one created. + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-$k.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-$k.$objext + objlist=" $obj" + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds$reload_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + func_append delfiles " $output" + + else + output= + fi + + ${skipped_export-false} && { + func_verbose "generating symbol list for '$libname.la'" + export_symbols=$output_objdir/$libname.exp + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + } + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs=$IFS; IFS='~' + for cmd in $concat_cmds; do + IFS=$save_ifs + $opt_quiet || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test relink = "$opt_mode"; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS=$save_ifs + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + ${skipped_export-false} && { + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols=$export_symbols + test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for '$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands, which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + func_append delfiles " $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + } + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test yes = "$module" && test -n "$module_cmds"; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $dlprefiles + func_append libobjs " $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs=$IFS; IFS='~' + for cmd in $cmds; do + IFS=$sp$nl + eval cmd=\"$cmd\" + IFS=$save_ifs + $opt_quiet || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test relink = "$opt_mode"; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS=$save_ifs + + # Restore the uninstalled library and exit + if test relink = "$opt_mode"; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test yes = "$module" || test yes = "$export_dynamic"; then + # On all known operating systems, these are identical. + dlname=$soname + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + func_warning "'-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "'-l' and '-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "'-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "'-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "'-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "'-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object '$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj=$output + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # if reload_cmds runs $LD directly, get rid of -Wl from + # whole_archive_flag_spec and hope we can get by with turning comma + # into space. + case $reload_cmds in + *\$LD[\ \$]*) wl= ;; + esac + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` + reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags + else + gentop=$output_objdir/${obj}x + func_append generated " $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # If we're not building shared, we need to use non_pic_objs + test yes = "$build_libtool_libs" || libobjs=$non_pic_objects + + # Create the old-style object. + reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs + + output=$obj + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + test yes = "$build_libtool_libs" || { + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + } + + if test -n "$pic_flag" || test default != "$pic_mode"; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output=$libobj + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "'-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "'-release' is ignored for programs" + + $preload \ + && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ + && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test CXX = "$tagname"; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + func_append compile_command " $wl-bind_at_load" + func_append finalize_command " $wl-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + func_append new_libs " -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) func_append new_libs " $deplib" ;; + esac + ;; + *) func_append new_libs " $deplib" ;; + esac + done + compile_deplibs=$new_libs + + + func_append compile_command " $compile_deplibs" + func_append finalize_command " $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_append perm_rpath " $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) func_append dllsearchpath ":$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=$hardcode_libdirs + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath=$rpath + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) func_append finalize_perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=$hardcode_libdirs + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath=$rpath + + if test -n "$libobjs" && test yes = "$build_old_libs"; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" false + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=: + case $host in + *cegcc* | *mingw32ce*) + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=false + ;; + *cygwin* | *mingw* ) + test yes = "$build_libtool_libs" || wrappers_required=false + ;; + *) + if test no = "$need_relink" || test yes != "$build_libtool_libs"; then + wrappers_required=false + fi + ;; + esac + $wrappers_required || { + # Replace the output file specification. + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + link_command=$compile_command$compile_rpath + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.$objext"; then + func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' + fi + + exit $exit_status + } + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + func_append rpath "$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + func_append rpath "$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test yes = "$no_install"; then + # We don't need to create a wrapper script. + link_command=$compile_var$compile_command$compile_rpath + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + exit $EXIT_SUCCESS + fi + + case $hardcode_action,$fast_install in + relink,*) + # Fast installation is not supported + link_command=$compile_var$compile_command$compile_rpath + relink_command=$finalize_var$finalize_command$finalize_rpath + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "'$output' will be relinked during installation" + ;; + *,yes) + link_command=$finalize_var$compile_command$finalize_rpath + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` + ;; + *,no) + link_command=$compile_var$compile_command$compile_rpath + relink_command=$finalize_var$finalize_command$finalize_rpath + ;; + *,needless) + link_command=$finalize_var$compile_command$finalize_rpath + relink_command= + ;; + esac + + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output_objdir/$outputname" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource=$output_path/$objdir/lt-$output_name.c + cwrapper=$output_path/$output_name.exe + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host"; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + case $build_libtool_libs in + convenience) + oldobjs="$libobjs_save $symfileobj" + addlibs=$convenience + build_libtool_libs=no + ;; + module) + oldobjs=$libobjs_save + addlibs=$old_convenience + build_libtool_libs=no + ;; + *) + oldobjs="$old_deplibs $non_pic_objects" + $preload && test -f "$symfileobj" \ + && func_append oldobjs " $symfileobj" + addlibs=$old_convenience + ;; + esac + + if test -n "$addlibs"; then + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $addlibs + func_append oldobjs " $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $dlprefiles + func_append oldobjs " $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + echo "copying selected object files to avoid basename conflicts..." + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase=$func_basename_result + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + func_append oldobjs " $gentop/$newobj" + ;; + *) func_append oldobjs " $obj" ;; + esac + done + fi + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + elif test -n "$archiver_list_spec"; then + func_verbose "using command file archive linking..." + for obj in $oldobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > $output_objdir/$libname.libcmd + func_to_tool_file "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_file_result" + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj"; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test -z "$oldobjs"; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test yes = "$build_old_libs" && old_library=$libname.$libext + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + if test yes = "$hardcode_automatic"; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test yes = "$installed"; then + if test -z "$install_libdir"; then + break + fi + output=$output_objdir/${outputname}i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name=$func_basename_result + func_resolve_sysroot "$deplib" + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` + test -z "$libdir" && \ + func_fatal_error "'$deplib' is not a valid libtool archive" + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" + ;; + -L*) + func_stripname -L '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -L$func_replace_sysroot_result" + ;; + -R*) + func_stripname -R '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -R$func_replace_sysroot_result" + ;; + *) func_append newdependency_libs " $deplib" ;; + esac + done + dependency_libs=$newdependency_libs + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name=$func_basename_result + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "'$lib' is not a valid libtool archive" + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" + ;; + *) func_append newdlfiles " $lib" ;; + esac + done + dlfiles=$newdlfiles + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name=$func_basename_result + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "'$lib' is not a valid libtool archive" + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" + ;; + esac + done + dlprefiles=$newdlprefiles + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; + *) abs=`pwd`"/$lib" ;; + esac + func_append newdlfiles " $abs" + done + dlfiles=$newdlfiles + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; + *) abs=`pwd`"/$lib" ;; + esac + func_append newdlprefiles " $abs" + done + dlprefiles=$newdlprefiles + fi + $RM $output + # place dlname in correct position for cygwin + # In fact, it would be nice if we could use this code for all target + # systems that can't hard-code library paths into their executables + # and that have no shared library path variable independent of PATH, + # but it turns out we can't easily determine that from inspecting + # libtool variables, so we have to hard-code the OSs to which it + # applies here; at the moment, that means platforms that use the PE + # object format with DLL files. See the long comment at the top of + # tests/bindir.at for full details. + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test -n "$bindir"; then + func_relative_path "$install_libdir" "$bindir" + tdlname=$func_relative_path_result/$dlname + else + # Otherwise fall back on heuristic. + tdlname=../bin/$dlname + fi + ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that cannot go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test no,yes = "$installed,$need_relink"; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +if test link = "$opt_mode" || test relink = "$opt_mode"; then + func_mode_link ${1+"$@"} +fi + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $debug_cmd + + RM=$nonopt + files= + rmforce=false + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=$magic + + for arg + do + case $arg in + -f) func_append RM " $arg"; rmforce=: ;; + -*) func_append RM " $arg" ;; + *) func_append files " $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + for file in $files; do + func_dirname "$file" "" "." + dir=$func_dirname_result + if test . = "$dir"; then + odir=$objdir + else + odir=$dir/$objdir + fi + func_basename "$file" + name=$func_basename_result + test uninstall = "$opt_mode" && odir=$dir + + # Remember odir for removal later, being careful to avoid duplicates + if test clean = "$opt_mode"; then + case " $rmdirs " in + *" $odir "*) ;; + *) func_append rmdirs " $odir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif $rmforce; then + continue + fi + + rmfiles=$file + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + func_append rmfiles " $odir/$n" + done + test -n "$old_library" && func_append rmfiles " $odir/$old_library" + + case $opt_mode in + clean) + case " $library_names " in + *" $dlname "*) ;; + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; + esac + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && test none != "$pic_object"; then + func_append rmfiles " $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && test none != "$non_pic_object"; then + func_append rmfiles " $dir/$non_pic_object" + fi + fi + ;; + + *) + if test clean = "$opt_mode"; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + func_append rmfiles " $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + func_append rmfiles " $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + func_append rmfiles " $odir/$name $odir/${name}S.$objext" + if test yes = "$fast_install" && test -n "$relink_command"; then + func_append rmfiles " $odir/lt-$name" + fi + if test "X$noexename" != "X$name"; then + func_append rmfiles " $odir/lt-$noexename.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + + # Try to remove the $objdir's in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then + func_mode_uninstall ${1+"$@"} +fi + +test -z "$opt_mode" && { + help=$generic_help + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode '$opt_mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# where we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: diff --git a/m4/intltool.m4 b/m4/intltool.m4 new file mode 100644 index 0000000..c25b7b1 --- /dev/null +++ b/m4/intltool.m4 @@ -0,0 +1,212 @@ +## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- +## Copyright (C) 2001 Eazel, Inc. +## Author: Maciej Stachowiak +## Kenneth Christiansen +## +## 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +## +## As a special exception to the GNU General Public License, if you +## distribute this file as part of a program that contains a +## configuration script generated by Autoconf, you may include it under +## the same distribution terms that you use for the rest of that program. + +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) +# serial 42 IT_PROG_INTLTOOL +AC_DEFUN([IT_PROG_INTLTOOL], [ +AC_PREREQ([2.50])dnl +AC_REQUIRE([AM_NLS])dnl + +case "$am__api_version" in + 1.[01234]) + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) + ;; + *) + ;; +esac + +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` +if test -n "$1"; then + AC_MSG_CHECKING([for intltool >= $1]) + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) +fi + +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) +fi + +if test -z "$AM_DEFAULT_VERBOSITY"; then + AM_DEFAULT_VERBOSITY=1 +fi +AC_SUBST([AM_DEFAULT_VERBOSITY]) + +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' +INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' +AC_SUBST(INTLTOOL_V_MERGE) +AC_SUBST(INTLTOOL__v_MERGE_) +AC_SUBST(INTLTOOL__v_MERGE_0) + +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' +intltool__v_merge_options_0='-q' +AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) +AC_SUBST(intltool__v_merge_options_) +AC_SUBST(intltool__v_merge_options_0) + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' +else + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' +fi + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + +_IT_SUBST(INTLTOOL_DESKTOP_RULE) +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) +_IT_SUBST(INTLTOOL_KEYS_RULE) +_IT_SUBST(INTLTOOL_PROP_RULE) +_IT_SUBST(INTLTOOL_OAF_RULE) +_IT_SUBST(INTLTOOL_PONG_RULE) +_IT_SUBST(INTLTOOL_SERVER_RULE) +_IT_SUBST(INTLTOOL_SHEET_RULE) +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) +_IT_SUBST(INTLTOOL_UI_RULE) +_IT_SUBST(INTLTOOL_XAM_RULE) +_IT_SUBST(INTLTOOL_KBD_RULE) +_IT_SUBST(INTLTOOL_XML_RULE) +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) +_IT_SUBST(INTLTOOL_CAVES_RULE) +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) +_IT_SUBST(INTLTOOL_THEME_RULE) +_IT_SUBST(INTLTOOL_SERVICE_RULE) +_IT_SUBST(INTLTOOL_POLICY_RULE) + +# Check the gettext tools to make sure they are GNU +AC_PATH_PROG(XGETTEXT, xgettext) +AC_PATH_PROG(MSGMERGE, msgmerge) +AC_PATH_PROG(MSGFMT, msgfmt) +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi + +AC_PATH_PROG(INTLTOOL_PERL, perl) +if test -z "$INTLTOOL_PERL"; then + AC_MSG_ERROR([perl not found]) +fi +AC_MSG_CHECKING([for perl >= 5.8.1]) +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) +else + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` + AC_MSG_RESULT([$IT_PERL_VERSION]) +fi +if test "x$2" != "xno-xml"; then + AC_MSG_CHECKING([for XML::Parser]) + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + AC_MSG_RESULT([ok]) + else + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile +AC_SUBST(ALL_LINGUAS) + +IT_PO_SUBDIR([po]) + +]) + + +# IT_PO_SUBDIR(DIRNAME) +# --------------------- +# All po subdirs have to be declared with this macro; the subdir "po" is +# declared by IT_PROG_INTLTOOL. +# +AC_DEFUN([IT_PO_SUBDIR], +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. +dnl +dnl The following CONFIG_COMMANDS should be executed at the very end +dnl of config.status. +AC_CONFIG_COMMANDS_PRE([ + AC_CONFIG_COMMANDS([$1/stamp-it], [ + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) + fi + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" + >"$1/stamp-it.tmp" + [sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" + ] + [sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r $1/POTFILES + } + ' "$1/Makefile.in" >"$1/Makefile"] + rm -f "$1/Makefile.tmp" + mv "$1/stamp-it.tmp" "$1/stamp-it" + ]) +])dnl +]) + +# _IT_SUBST(VARIABLE) +# ------------------- +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST +# +AC_DEFUN([_IT_SUBST], +[ +AC_SUBST([$1]) +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) +] +) + +# deprecated macros +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) +# A hint is needed for aclocal from Automake <= 1.9.4: +# AC_DEFUN([AC_PROG_INTLTOOL], ...) + diff --git a/m4/introspection.m4 b/m4/introspection.m4 new file mode 100644 index 0000000..bfc52be --- /dev/null +++ b/m4/introspection.m4 @@ -0,0 +1,94 @@ +dnl -*- mode: autoconf -*- +dnl Copyright 2009 Johan Dahlin +dnl +dnl This file is free software; the author(s) gives unlimited +dnl permission to copy and/or distribute it, with or without +dnl modifications, as long as this notice is preserved. +dnl + +# serial 1 + +m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], +[ + AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first + AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first + AC_BEFORE([LT_INIT],[$0])dnl setup libtool first + + dnl enable/disable introspection + m4_if([$2], [require], + [dnl + enable_introspection=yes + ],[dnl + AC_ARG_ENABLE(introspection, + AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], + [Enable introspection for this build]),, + [enable_introspection=auto]) + ])dnl + + AC_MSG_CHECKING([for gobject-introspection]) + + dnl presence/version checking + AS_CASE([$enable_introspection], + [no], [dnl + found_introspection="no (disabled, use --enable-introspection to enable)" + ],dnl + [yes],[dnl + PKG_CHECK_EXISTS([gobject-introspection-1.0],, + AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) + PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], + found_introspection=yes, + AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) + ],dnl + [auto],[dnl + PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) + ],dnl + [dnl + AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) + ])dnl + + AC_MSG_RESULT([$found_introspection]) + + INTROSPECTION_SCANNER= + INTROSPECTION_COMPILER= + INTROSPECTION_GENERATE= + INTROSPECTION_GIRDIR= + INTROSPECTION_TYPELIBDIR= + if test "x$found_introspection" = "xyes"; then + INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` + INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` + INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` + INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` + INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" + INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` + INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` + INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection + fi + AC_SUBST(INTROSPECTION_SCANNER) + AC_SUBST(INTROSPECTION_COMPILER) + AC_SUBST(INTROSPECTION_GENERATE) + AC_SUBST(INTROSPECTION_GIRDIR) + AC_SUBST(INTROSPECTION_TYPELIBDIR) + AC_SUBST(INTROSPECTION_CFLAGS) + AC_SUBST(INTROSPECTION_LIBS) + AC_SUBST(INTROSPECTION_MAKEFILE) + + AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") +]) + + +dnl Usage: +dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) + +AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], +[ + _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) +]) + +dnl Usage: +dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) + + +AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], +[ + _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) +]) diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..1d44bd2 --- /dev/null +++ b/meson.build @@ -0,0 +1,128 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +project('grilo', 'c', + version: '0.3.6', + default_options: [ + 'buildtype=debugoptimized', + 'c_std=gnu99', + 'warning_level=1' + ], + license: 'LGPL 2.1', + meson_version: '>= 0.36.0') + +grilo_version = meson.project_version() +grlnet_version = meson.project_version() +grlpls_version = meson.project_version() + +# maintaining compatibility with the previous libtool versioning +# current = minor * 100 + micro +version_array = grilo_version.split('.') +soversion = version_array[0] +current = version_array[1].to_int() * 100 + version_array[2].to_int() + +# Increase the age everytime new API is added +grilo_interface_age = 1 +grlnet_interface_age = 0 +grlpls_interface_age = 0 + +grilo_lt_version = '@0@.@1@.@2@'.format(soversion, current, grilo_interface_age) +grlnet_lt_version = '@0@.@1@.@2@'.format(soversion, current, grlnet_interface_age) +grlpls_lt_version = '@0@.@1@.@2@'.format(soversion, current, grlpls_interface_age) + +grl_majorminor = '@0@.@1@'.format(version_array[0], version_array[1]) +grl_name = '@0@-@1@'.format(meson.project_name(), grl_majorminor) + +glib2_required = '2.44' +glib2_required_info = '>= @0@'.format(glib2_required) + +gio_dep = dependency('gio-2.0', version: glib2_required_info, required: true) +glib_dep = dependency('glib-2.0', version: glib2_required_info, required: true) +gmodule_dep = dependency('gmodule-2.0', version: glib2_required_info, required: true) +gobject_dep = dependency('gobject-2.0', version: glib2_required_info, required: true) +libxml_dep = dependency('libxml-2.0', required: true) + +enable_grlnet = get_option('enable-grl-net') +if enable_grlnet + libsoup_dep = dependency('libsoup-2.4', version: '>= 2.41.3', required: true) +endif + +enable_grlpls = get_option('enable-grl-pls') +if enable_grlpls + totem_plparser_dep = dependency('totem-plparser', version: '>= 3.4.1', required: true) +endif + +enable_gir = get_option('enable-introspection') or get_option('enable-vala') +if enable_gir + find_program('g-ir-scanner', required: true) +endif + +enable_vala = get_option('enable-vala') +if enable_vala + vapigen = find_program('vapigen', required: true) +endif + +enable_testui = get_option('enable-test-ui') +if enable_testui + gtk_dep = dependency('gtk+-3.0', version: '>= 3.0', required: true) + oauth_dep = dependency('oauth', required: false) +endif + +prefix = get_option('prefix') +libdir = join_paths(prefix, get_option('libdir')) +plugins_dir = join_paths(libdir, grl_name) +localedir = join_paths(prefix, get_option('localedir')) + +cdata = configuration_data() +cdata.set_quoted('VERSION', grilo_version) +cdata.set('GRLNET_VERSION', grlnet_version) +cdata.set('GRLPLS_VERSION', grlpls_version) +cdata.set_quoted('GRL_MAJORMINOR', grl_majorminor) +cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name()) +cdata.set_quoted('GRL_PLUGINS_DIR', plugins_dir) +cdata.set_quoted('LOCALEDIR', localedir) +if enable_testui + cdata.set('HAVE_OAUTH', oauth_dep.found()) +endif + +pkgconfig_files = [ + 'grilo-@0@'.format(grl_majorminor), + 'grilo-net-@0@'.format(grl_majorminor), + 'grilo-pls-@0@'.format(grl_majorminor), +] + +pkgconf = configuration_data() +pkgconf.set('prefix', prefix) +pkgconf.set('exec_prefix', '${prefix}') +pkgconf.set('libdir', libdir) +pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir'))) +pkgconf.set('GRL_NAME', grl_name) +pkgconf.set('GRL_PLUGINS_DIR', plugins_dir) +pkgconf.set('INTROSPECTION_GIRDIR', '${datarootdir}/gir-1.0') +pkgconf.set('INTROSPECTION_TYPELIBDIR', '${libdir}/girepository-1.0'.format(get_option('libdir'))) +pkgconf.set('VERSION', grilo_version) +pkgconf.set('GRLNET_VERSION', grlnet_version) +pkgconf.set('GRLPLS_VERSION', grlpls_version) + +foreach p: pkgconfig_files + infile = p + '.pc.in' + outfile = p + '.pc' + configure_file(input: infile, + output: outfile, + configuration: pkgconf, + install_dir: '@0@/pkgconfig'.format(get_option('libdir'))) +endforeach + +gnome = import('gnome') + +subdir('src') +subdir('libs') +subdir('bindings') +subdir('po') +subdir('tools') +subdir('examples') +subdir('doc') diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..5f396a1 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,6 @@ +option('enable-grl-net', type: 'boolean', value: true, description: 'Enable Grilo Net library') +option('enable-grl-pls', type: 'boolean', value: true, description: 'Enable Grilo Pls library') +option('enable-gtk-doc', type: 'boolean', value: false, description: 'Enable generating the API reference') +option('enable-introspection', type: 'boolean', value: true, description: 'Enable GObject Introspection') +option('enable-test-ui', type: 'boolean', value: true, description: 'Build Test UI') +option('enable-vala', type: 'boolean', value: true, description: 'Enable Vala (enables GObject Introspection)') diff --git a/missing b/missing new file mode 100755 index 0000000..b7e571e --- /dev/null +++ b/missing @@ -0,0 +1,215 @@ +#!/bin/sh +# Common wrapper for a few potentially missing GNU programs. + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. + +# 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, 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, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try '$0 --help' for more information" + exit 1 +fi + +case $1 in + + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; + + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" + exit 1 + ;; + +esac + +# Run the given program, remember its exit status. +"$@"; st=$? + +# If it succeeded, we are done. +test $st -eq 0 && exit 0 + +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi + +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'autom4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..d0a0b52 --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1,47 @@ +as +bg +bs +ca +ca@valencia +cs +da +de +el +en_GB +eo +es +eu +fr +fur +gl +he +hr +hu +id +it +ja +ko +lt +lv +ml +ne +nl +nb +oc +pa +pl +pt +pt_BR +ro +ru +sk +sl +sr +sr@latin +sv +tg +tr +uk +zh_CN +zh_HK +zh_TW diff --git a/po/Makefile.in.in b/po/Makefile.in.in new file mode 100644 index 0000000..fcd2c3b --- /dev/null +++ b/po/Makefile.in.in @@ -0,0 +1,221 @@ +# Makefile for program source directory in GNU NLS utilities package. +# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper +# Copyright (C) 2004-2008 Rodney Dawes +# +# This file may be copied and used freely without restrictions. It may +# be used in projects which are not available under a GNU Public License, +# but which still want to provide support for the GNU gettext functionality. +# +# - Modified by Owen Taylor to use GETTEXT_PACKAGE +# instead of PACKAGE and to look for po2tbl in ./ not in intl/ +# +# - Modified by jacob berkman to install +# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize +# +# - Modified by Rodney Dawes for use with intltool +# +# We have the following line for use by intltoolize: +# INTLTOOL_MAKEFILE + +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +PACKAGE = @PACKAGE@ +VERSION = @VERSION@ + +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = @top_builddir@ +VPATH = @srcdir@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +datadir = @datadir@ +datarootdir = @datarootdir@ +libdir = @libdir@ +localedir = @localedir@ +subdir = po +install_sh = @install_sh@ +# Automake >= 1.8 provides @mkdir_p@. +# Until it can be supposed, use the safe fallback: +mkdir_p = $(install_sh) -d + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ + +GMSGFMT = @GMSGFMT@ +MSGFMT = @MSGFMT@ +XGETTEXT = @XGETTEXT@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist +GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot + +ALL_LINGUAS = @ALL_LINGUAS@ + +PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) + +USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) + +USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) + +POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) + +DISTFILES = Makefile.in.in POTFILES.in $(POFILES) +EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS + +POTFILES = \ +# This comment gets stripped out + +CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) + +.SUFFIXES: +.SUFFIXES: .po .pox .gmo .mo .msg .cat + +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) +INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) +INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; + +.po.pox: + $(MAKE) $(GETTEXT_PACKAGE).pot + $(MSGMERGE) $* $(GETTEXT_PACKAGE).pot -o $*.pox + +.po.mo: + $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< + +.po.gmo: + $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ + && rm -f $$file && $(GMSGFMT) -o $$file $< + +.po.cat: + sed -f ../intl/po2msg.sed < $< > $*.msg \ + && rm -f $@ && gencat $@ $*.msg + + +all: all-@USE_NLS@ + +all-yes: $(CATALOGS) +all-no: + +$(GETTEXT_PACKAGE).pot: $(POTFILES) + $(GENPOT) + +install: install-data +install-data: install-data-@USE_NLS@ +install-data-no: all +install-data-yes: all + linguas="$(USE_LINGUAS)"; \ + for lang in $$linguas; do \ + dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ + $(mkdir_p) $$dir; \ + if test -r $$lang.gmo; then \ + $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ + echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ + else \ + $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ + echo "installing $(srcdir)/$$lang.gmo as" \ + "$$dir/$(GETTEXT_PACKAGE).mo"; \ + fi; \ + if test -r $$lang.gmo.m; then \ + $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ + echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ + else \ + if test -r $(srcdir)/$$lang.gmo.m ; then \ + $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ + $$dir/$(GETTEXT_PACKAGE).mo.m; \ + echo "installing $(srcdir)/$$lang.gmo.m as" \ + "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ + else \ + true; \ + fi; \ + fi; \ + done + +# Empty stubs to satisfy archaic automake needs +dvi info ctags tags CTAGS TAGS ID: + +# Define this as empty until I found a useful application. +install-exec installcheck: + +uninstall: + linguas="$(USE_LINGUAS)"; \ + for lang in $$linguas; do \ + rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ + rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ + done + +check: all $(GETTEXT_PACKAGE).pot + rm -f missing notexist + srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m + if [ -r missing -o -r notexist ]; then \ + exit 1; \ + fi + +mostlyclean: + rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp + rm -f .intltool-merge-cache + +clean: mostlyclean + +distclean: clean + rm -f Makefile Makefile.in POTFILES stamp-it + rm -f *.mo *.msg *.cat *.cat.m *.gmo + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + rm -f Makefile.in.in + +distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: $(DISTFILES) + dists="$(DISTFILES)"; \ + extra_dists="$(EXTRA_DISTFILES)"; \ + for file in $$extra_dists; do \ + test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ + done; \ + for file in $$dists; do \ + test -f $$file || file="$(srcdir)/$$file"; \ + ln $$file $(distdir) 2> /dev/null \ + || cp -p $$file $(distdir); \ + done + +update-po: Makefile + $(MAKE) $(GETTEXT_PACKAGE).pot + tmpdir=`pwd`; \ + linguas="$(USE_LINGUAS)"; \ + for lang in $$linguas; do \ + echo "$$lang:"; \ + result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ + if $$result; then \ + if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ + rm -f $$tmpdir/$$lang.new.po; \ + else \ + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ + :; \ + else \ + echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ + rm -f $$tmpdir/$$lang.new.po; \ + exit 1; \ + fi; \ + fi; \ + else \ + echo "msgmerge for $$lang.gmo failed!"; \ + rm -f $$tmpdir/$$lang.new.po; \ + fi; \ + done + +Makefile POTFILES: stamp-it + @if test ! -f $@; then \ + rm -f stamp-it; \ + $(MAKE) stamp-it; \ + fi + +stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ + $(SHELL) ./config.status + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..83ff461 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,7 @@ +libs/net/grl-net-mock.c +libs/net/grl-net-wc.c +libs/pls/grl-pls.c +src/grilo.c +src/grl-multiple.c +src/grl-registry.c +src/grl-source.c diff --git a/po/as.po b/po/as.po new file mode 100644 index 0000000..aee6b90 --- /dev/null +++ b/po/as.po @@ -0,0 +1,193 @@ +# Assamese translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# +# ngoswami , 2013. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2013-09-14 02:57+0000\n" +"PO-Revision-Date: 2013-09-17 17:23+0530\n" +"Last-Translator: Nilamdyuti Goswami \n" +"Language-Team: Assamese \n" +"Language: as\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Lokalize 1.5\n" + +#: ../libs/net/grl-net-mock.c:85 +msgid "No mock definition found" +msgstr "কোনো কৃত্ৰিম বিৱৰণ পোৱা নগল" + +#: ../libs/net/grl-net-mock.c:97 +#, c-format +msgid "Could not find mock content %s" +msgstr "কৃত্ৰিম সমল %s পোৱা নগল" + +#: ../libs/net/grl-net-mock.c:117 +msgid "Could not access mock content" +msgstr "কৃত্ৰিম সমল অভিগম কৰিব পৰা নগল" + +#: ../libs/net/grl-net-wc.c:468 +msgid "Cannot connect to the server" +msgstr "চাৰ্ভাৰৰ সৈতে সংযোগ কৰিব নোৱাৰি" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "প্ৰক্সি চাৰ্ভাৰলৈ সংযোগ কৰিব নোৱাৰি" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "অবৈধ অনুৰোধ URl অথবা হেডাৰ: %s" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "প্ৰমাণীকৰণৰ প্ৰয়োজন: %s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "অনুৰোধ কৰা উৎস পোৱা নগল: %s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "প্ৰৱিষ্টিক ডাউনল'ডৰ পিছত পৰিবৰ্তন কৰা হৈছিল: %s" + +#: ../libs/net/grl-net-wc.c:506 ../libs/net/grl-net-wc.c:615 +#: ../src/grl-source.c:1710 ../src/grl-source.c:1805 ../src/grl-source.c:1948 +#: ../src/grl-source.c:2184 ../src/grl-source.c:2304 +#, c-format +msgid "Operation was cancelled" +msgstr "কাৰ্য্য বাতিল কৰা হৈছিল" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "অনিয়ন্ত্ৰিত অৱস্থা: %s" + +#: ../libs/net/grl-net-wc.c:619 ../libs/net/grl-net-wc.c:660 +msgid "Data not available" +msgstr "তথ্য উপলব্ধ নহয়" + +#: ../libs/net/grl-net-wc.c:713 +#, c-format +msgid "Invalid URL %s" +msgstr "অবৈধ URL %s" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Grilo প্লাগিনসমূহ অন্তৰ্ভুক্ত কৰা চেমিকলন-পৃথকিত পথবোৰ" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Grilo প্লাগিনসমূহ অন্তৰ্ভুক্ত কৰা কলন-পৃথকিত পথবোৰ" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "ব্যৱহাৰ কৰিবলৈ Grilo প্লাগিনসমূহৰ কলন-পৃথকিত তালিকা" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "Grilo বিকল্পসমূহ" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "Grilo বিকল্পসমূহ দেখুৱাওক" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "সন্ধান কৰিব পৰা কোনো উৎস উপলব্ধ নাই" + +#: ../src/grl-multiple.c:485 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "URI '%s' ৰ বাবে মাধ্যম সমাধান কৰিব পৰা নগল" + +#: ../src/grl-registry.c:328 ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "প্লাগিন '%s' ইতিমধ্যে ল'ড কৰা আছে" + +#: ../src/grl-registry.c:340 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "%s ৰ পৰা প্লাগিন আৰম্ভ কৰিবলৈ ব্যৰ্থ" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "আইডি '%s' ৰ সৈতে উৎস পোৱা নগল" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "%s ৰ পৰা প্লাগিন ল'ড কৰিবলৈ ব্যৰ্থ" + +#: ../src/grl-registry.c:806 +#, c-format +msgid "Invalid plugin file %s" +msgstr "অবৈধ প্লাগিন ফাইল %s" + +#: ../src/grl-registry.c:817 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' এটা বৈধ প্লাগিন ফাইল নহয়" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "প্লাগিন '%s' ল'ড কৰিবলৈ অক্ষম" + +#: ../src/grl-registry.c:847 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "প্লাগিন '%s' ইতিমধ্যে অস্তিত্ববান" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "সকলো সংৰূপিত প্লাগিন পথ অবৈধ" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "প্লাগিন '%s' উপলব্ধ নহয়" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "প্লাগিন পোৱা নগল: '%s'" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "মেটাডাটা কি' '%s' ৰেজিস্টাৰ কৰিব নোৱাৰি" + +#: ../src/grl-registry.c:1587 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "প্লাগিন সংৰূপত 'plugin-id' প্ৰসংগ নাই" + +#: ../src/grl-source.c:2633 +#, c-format +msgid "Some keys could not be written" +msgstr "কিছুমান কি' লিখিব পৰা নগল" + +#: ../src/grl-source.c:2705 +#, c-format +msgid "None of the specified keys are writable" +msgstr "ধাৰ্য্য কৰা কোনো কি'য়ে লিখাৰ যোগ্য নহয়" + +#: ../src/grl-source.c:3997 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "মাধ্যমৰ কোনো 'id' নাই, আতৰাব নোৱাৰি" + diff --git a/po/bg.po b/po/bg.po new file mode 100644 index 0000000..4205bad --- /dev/null +++ b/po/bg.po @@ -0,0 +1,196 @@ +# Bulgarian translation of grilo po-file. +# Copyright (C) 2016 Free Software Foundation, Inc. +# This file is distributed under the same license as the grilo package. +# Alexander Shopov , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-25 16:09+0300\n" +"PO-Revision-Date: 2016-09-25 15:41+0300\n" +"Last-Translator: Alexander Shopov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Няма дефиниция на имитиращ обект" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Имитиращият обект е без съдържание: %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Имитиращото съдържание е недостъпно: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Неуспешна връзка към сървъра" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Неуспешна връзка към сървъра-посредник" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Неправилен адрес или заглавна част на заявката: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Задължително е да се идентифицирате: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Заявеният ресурс не е открит: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Обектът е променен след изтеглянето му: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Действието е отменено" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Необработено състояние: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:644 +msgid "Data not available" +msgstr "Няма данни" + +#: ../libs/net/grl-net-wc.c:695 +#, c-format +msgid "Invalid URL %s" +msgstr "Неправилен адрес: %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Пътища, разделени с „;“, с приставки на Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Пътища, разделени с „:“, с приставки на Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Пътища, разделени с „:“, с приставки на Grilo за ползване" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Опции на Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Извеждане на опциите на Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Няма източници, поддържащи търсене" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "На адреса „%s“ не може да бъде открита медия" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Приставката „%s“ вече е заредена" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Приставката в „%s“ не може да се инициализира" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Ключът за метаданни „%s“ вече е регистриран с различен формат" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ключът за метаданни „%s“ не може да бъде регистриран" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Източник с идентификатор „%s“ липсва" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Приставката в „%s“ не може да се зареди" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Неправилен файл за приставка „%s“" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "„%s“ не е файл за приставка" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Приставката в „%s“ вече съществува" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Неправилен път: „%s“" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Всички настроени пътища за приставки са грешни" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Приставката „%s“ липсва" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Приставката „%s“ липсва" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Настройките за приставка не съдържат указател към „plugin-id“" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Някои ключове не могат да се запишат" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "В никой от посочените ключове не може да се пише" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Медията е без идентификатор и не може да бъде премахната" diff --git a/po/bs.po b/po/bs.po new file mode 100644 index 0000000..8f2f79f --- /dev/null +++ b/po/bs.po @@ -0,0 +1,192 @@ +# Bosnian translation for bosnianuniversetranslation +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the bosnianuniversetranslation package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: bosnianuniversetranslation\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2015-02-26 21:35+0000\n" +"PO-Revision-Date: 2014-01-08 15:57+0000\n" +"Last-Translator: Almir Husic \n" +"Language-Team: Bosnian \n" +"Language: bs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-10-23 07:21+0000\n" +"X-Generator: Launchpad (build 17203)\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nema pronađene lažne def." + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Ne mogu naći lažni sadržaj %s" + +#: ../libs/net/grl-net-mock.c:118 +msgid "Could not access mock content" +msgstr "Ne mogu pristupiti lažnom sadržaju" + +#: ../libs/net/grl-net-wc.c:467 +msgid "Cannot connect to the server" +msgstr "Ne mogu se spojiti na server" + +#: ../libs/net/grl-net-wc.c:473 +msgid "Cannot connect to the proxy server" +msgstr "Ne mogu se spojiti na proxy server" + +#: ../libs/net/grl-net-wc.c:480 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Nevažeći zahtjev URL ili zaglavlje: %s" + +#: ../libs/net/grl-net-wc.c:487 +#, c-format +msgid "Authentication required: %s" +msgstr "Potrebna autentifikacija: %s" + +#: ../libs/net/grl-net-wc.c:492 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Zahtjevani resurs nije pronađen: %s" + +#: ../libs/net/grl-net-wc.c:499 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Unos je modificiran otkako je preuzet: %s" + +#: ../libs/net/grl-net-wc.c:505 ../libs/net/grl-net-wc.c:614 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1822 ../src/grl-source.c:1922 +#: ../src/grl-source.c:2069 ../src/grl-source.c:2310 ../src/grl-source.c:2430 +#, c-format +msgid "Operation was cancelled" +msgstr "Operacija je prekinuta" + +#: ../libs/net/grl-net-wc.c:508 +#, c-format +msgid "Unhandled status: %s" +msgstr "Nepodržan status: %s" + +#: ../libs/net/grl-net-wc.c:618 ../libs/net/grl-net-wc.c:659 +msgid "Data not available" +msgstr "Podaci nisu dostupni" + +#: ../libs/net/grl-net-wc.c:712 +#, c-format +msgid "Invalid URL %s" +msgstr "Nevažeći URL %s" + +#: ../src/grilo.c:228 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semikolone-razdvojene putevima sadrže Grilo puginove" + +#: ../src/grilo.c:230 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Kolone-razdojene putevima sadrže Grilo pluginove" + +#: ../src/grilo.c:233 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Lista razdvojenih kolona Grilo pruginova za upotrebu" + +#: ../src/grilo.c:238 +msgid "Grilo Options" +msgstr "Grilo Opcije" + +#: ../src/grilo.c:239 +msgid "Show Grilo Options" +msgstr "Prikaži Grilo Opcije" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "Nemadostupnih pretraživih izvora" + +#: ../src/grl-multiple.c:487 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Ne mogu riješiti medij za URL '%s'" + +#: ../src/grl-registry.c:536 ../src/grl-registry.c:1368 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Plugin '%s' je već učitan" + +#: ../src/grl-registry.c:560 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Neuspjelo inicijaliziranje plugina iz %s" + +#: ../src/grl-registry.c:747 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ključ metapodataka '%s' ne može biti registriran" + +#: ../src/grl-registry.c:1084 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Izvor sa id '%s' nije pronađen" + +#: ../src/grl-registry.c:1135 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Neuspjelo učitavanje plugina iz %s" + +#: ../src/grl-registry.c:1144 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Neispravan plugin fajl %s" + +#: ../src/grl-registry.c:1155 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' nije validan plugin fajl" + +#: ../src/grl-registry.c:1174 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "Nije moguće učitavanje plugina '%s'" + +#: ../src/grl-registry.c:1185 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Plugin '%s' već postoji" + +#: ../src/grl-registry.c:1310 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Svi konfigurisani plugin putevi su nevažeći" + +#: ../src/grl-registry.c:1357 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Plugin '%s' nije dostupan" + +#: ../src/grl-registry.c:1585 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Plugin nije pronađen: '%s'" + +#: ../src/grl-registry.c:1934 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Plugin konfiguracija ne sadrži 'plugin-id' referencu" + +#: ../src/grl-source.c:2759 +#, c-format +msgid "Some keys could not be written" +msgstr "Neki ključevi ne mogu biti zapisani" + +#: ../src/grl-source.c:2832 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nijedan od specificiranih ključeva nije upisiv" + +#: ../src/grl-source.c:4175 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Medij nema 'id', ne mogu ukloniti" diff --git a/po/ca.po b/po/ca.po new file mode 100644 index 0000000..d9cbd91 --- /dev/null +++ b/po/ca.po @@ -0,0 +1,199 @@ +# Catalan translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Gil Forcada , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-08-28 17:24+0000\n" +"PO-Revision-Date: 2017-09-01 00:52+0200\n" +"Last-Translator: Gil Forcada \n" +"Language-Team: Catalan \n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Poedit 1.8.11\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "No s'ha trobat cap definició fictícia" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "No s'ha pogut trobar el contingut fictici %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "No s'ha pogut accedir al contingut fictici %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "No es pot connectar al servidor" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "No es pot connectar al servidor intermediari" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "L'URI de la petició o la capçalera no són vàlides: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Cal autenticació: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "No s'ha trobat el recurs sol·licitat: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "S'ha modificat l'entrada des que es va baixar: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "S'ha cancel·lat l'operació" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Les dades no estan disponibles" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "L'URL %s no és vàlid" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Camins a connectors del Grilo separats per punts i comes" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Camins a connectors del Grilo separats per dos punts" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Llista de connectors del Grilo que s'utilitzen separats per dos punts" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opcions del Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostra les opcions del Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "No hi ha cap font a la que es puguin fer cerques" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "No s'ha pogut resoldre el medi per a l'URI «%s»" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Ja està carregat el connector «%s»" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "No s'ha pogut inicialitzar el connector des de %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "La clau de metadades «%s» ja està registrada en un format diferent" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "No es pot registrar la clau de metadades «%s»" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "No s'ha trobat la font amb l'identificador «%s»" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "No s'ha pogut carregar el connector des de %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "El fitxer de connector %s no és vàlid" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "El fitxer de connector «%s» no és vàlid" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Ja existeix el connector «%s»" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "El camí %s no és vàlid" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "No hi ha cap camí a connectors configurat que sigui vàlid" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "El connector «%s» no està disponible" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "No s'ha trobat el connector: «%s»" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "A la configuració del connector li manca la referència «plugin-id»" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "No s'han pogut escriure algunes claus" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "No hi ha cap clau, de les especificades, que s'hi pugui escriure" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "El medi no té «id», no es pot suprimir" + +#~ msgid "Unhandled status: %s" +#~ msgstr "No es gestiona l'estat: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "No s'ha pogut carregar el connector «%s»" diff --git a/po/ca@valencia.po b/po/ca@valencia.po new file mode 100644 index 0000000..aee622f --- /dev/null +++ b/po/ca@valencia.po @@ -0,0 +1,199 @@ +# Catalan translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Gil Forcada , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-09-19 10:43+0000\n" +"PO-Revision-Date: 2017-09-01 00:52+0200\n" +"Last-Translator: Xavi Ivars \n" +"Language-Team: Catalan \n" +"Language: ca-valencia\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Poedit 1.8.11\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "No s'ha trobat cap definició fictícia" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "No s'ha pogut trobar el contingut fictici %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "No s'ha pogut accedir al contingut fictici %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "No es pot connectar al servidor" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "No es pot connectar al servidor intermediari" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "L'URI de la petició o la capçalera no són vàlides: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Cal autenticació: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "No s'ha trobat el recurs sol·licitat: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "S'ha modificat l'entrada des que es va baixar: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "S'ha cancel·lat l'operació" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Les dades no estan disponibles" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "L'URL %s no és vàlid" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Camins a connectors del Grilo separats per punts i comes" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Camins a connectors del Grilo separats per dos punts" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Llista de connectors del Grilo que s'utilitzen separats per dos punts" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opcions del Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostra les opcions del Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "No hi ha cap font a la que es puguen fer cerques" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "No s'ha pogut resoldre el medi per a l'URI «%s»" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Ja està carregat el connector «%s»" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "No s'ha pogut inicialitzar el connector des de %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "La clau de metadades «%s» ja està registrada en un format diferent" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "No es pot registrar la clau de metadades «%s»" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "No s'ha trobat la font amb l'identificador «%s»" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "No s'ha pogut carregar el connector des de %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "El fitxer de connector %s no és vàlid" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "El fitxer de connector «%s» no és vàlid" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Ja existeix el connector «%s»" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "El camí %s no és vàlid" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "No hi ha cap camí a connectors configurat que siga vàlid" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "El connector «%s» no està disponible" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "No s'ha trobat el connector: «%s»" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "A la configuració del connector li falta la referència «plugin-id»" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "No s'han pogut escriure algunes claus" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "No hi ha cap clau, de les especificades, que s'hi puga escriure" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "El medi no té «id», no es pot suprimir" + +#~ msgid "Unhandled status: %s" +#~ msgstr "No es gestiona l'estat: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "No s'ha pogut carregar el connector «%s»" diff --git a/po/cs.po b/po/cs.po new file mode 100644 index 0000000..d21bbf4 --- /dev/null +++ b/po/cs.po @@ -0,0 +1,193 @@ +# Czech translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# +# Marek Černocký , 2013, 2015, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-14 14:01+0200\n" +"Last-Translator: Marek Černocký \n" +"Language-Team: Czech \n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"X-Generator: Gtranslator 2.91.6\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nebyla nalezena žádná definice simulace" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nelze najít simulovaný obsah %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nelze přistupovat k simulovanému obsahu: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nelze se připojit k serveru" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nelze se připojit k serveru proxy" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Neplatná adresa URI nebo hlavička požadavku: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Vyžadována autentizace: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Požadovaný prostředek nebyl nalezen: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Záznam byl od doby svého stažení změněn: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operace byla zrušena" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Data nejsou dostupná" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Neplatná adresa URL %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Středníky oddělené cesty obsahující zásuvné moduly Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Seznam cest, oddělených dvojtečkami, se zásuvnými moduly Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Seznam zásuvných modulů Grilo, oddělených dvojtečkami, k načtení" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Volby Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Zobrazit volby Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nejsou k dispozici žádné prohledávatelné zdroje" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Nelze najít multimediální obsah z adresy URI „%s“" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Zásuvný modul „%s“ je již načten" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Selhala inicializace zásuvného modulu z %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Klíč metadat „%s“ je již zaregistrován v jiném formátu" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Klíč metadat „%s“ nelze zaregistrovat" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Zdroj s id „%s“ nebyl nalezen" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Selhalo načtení zásuvného modulu z %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Neplatný soubor zásuvného modulu %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "„%s“ není platný souboru zásuvného modulu" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Zásuvný modul „%s“ již existuje" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Neplatná cesta %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Všechny nastavené cesty k zásuvným modulům jsou neplatné" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Zásuvný modul „%s“ není dostupný" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Zásuvný modul nebyl nalezen: „%s“" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Nastavení zásuvného modulu neobsahuje údaj „plugin-id“" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Některé klíče nemohly být zapsány" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Žádný ze zadaných klíčů není zapisovatelný" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Multimediální obsah nemá žádné „id“, nelze jej odstranit" diff --git a/po/da.po b/po/da.po new file mode 100644 index 0000000..302a61e --- /dev/null +++ b/po/da.po @@ -0,0 +1,201 @@ +# Danish translation for grilo. +# Copyright (C) 2013, 2016 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Ask Hjorth Larsen , 2013, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: " +"https://bugzilla.gnome.org/enter_bug.cgi?product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-06-27 22:25+0000\n" +"PO-Revision-Date: 2016-03-20 04:55+0100\n" +"Last-Translator: Ask Hjorth Larsen \n" +"Language-Team: Danish \n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Ingen modeldefinition fundet" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Kunne ikke finde modelindhold %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Kunne ikke tilgå modelindhold: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Kan ikke forbinde til serveren" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Kan ikke forbinde tli proxyserveren" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Ugyldig forespørgsels-URI eller hoved: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Godkendelse påkrævet: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Den forespurgte ressource blev ikke fundet: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Posten er blevet ændret siden den blev hentet: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operationen blev annulleret" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Data ikke tilgængelige" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Ugyldig URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semikolon-adskilte stier som indeholder Grilo-udvidelsesmoduler" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Kolon-adskilte stier som indeholder Grilo-udvidelsesmoduler" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Kolon-adskilt liste af Grilo-udvidelsesmoduler, der skal bruges" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Indstillinger for Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Vis indstillinger for Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Ingen tilgængelige ressourcer, der kan søges i" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Kunne ikke evaluere medie for URI'en “%s”" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Udvidelsesmodulet “%s” er allerede indlæst" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Kunne ikke klargøre udvidelsesmodul fra %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadata-nøglen “%s” er allerede registreret i andet format" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metadata-nøglen “%s” kan ikke registreres" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Kilde med id “%s” blev ikke fundet" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Kunne ikke indlæse udvidelsesmodul fra %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ugyldig udvidelsesmodulfil %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "“%s” er ikke en gyldig udvidelsesmodulfil" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Udvidelsesmodulet “%s” findes allerede" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ugyldig sti %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Alle konfigurerede udvidelsesmodulstier er ugyldige" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Udvidelsesmodulet “%s” er ikke tilgængeligt" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Udvidelsesmodul ikke fundet: “%s”" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "" +"Udvidelsesmodulkonfigurationen indeholder ikke nogen “plugin-id”-reference" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Visse nøgler kunne ikke skrives" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Der kan ikke skrives til nogen af de angivne nøgler" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Mediet har ingen “id”, kan ikke fjerne" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Uhåndteret status: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Kan ikke indlæse udvidelsesmodul “%s”" + + diff --git a/po/de.po b/po/de.po new file mode 100644 index 0000000..81dc439 --- /dev/null +++ b/po/de.po @@ -0,0 +1,198 @@ +# German translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Christian Kirbach , 2013. +# Wolfgang Stöggl , 2013, 2015. +# Bernd Homuth , 2015. +# Mario Blättermann , 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-17 13:13+0200\n" +"Last-Translator: Mario Blättermann \n" +"Language-Team: Deutsch \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.7\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Modell-Definition konnte nicht gefunden werden" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Modell-Inhalt %s konnte nicht gefunden werden" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Auf Modell-Inhalt konnte nicht zugegriffen werden: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Es kann keine Verbindung zum Server hergestellt werden" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Es kann keine Verbindung zum Proxy-Server hergestellt werden" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Ungültige Anfrageadresse oder Kopfzeilen: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Legitimierung erforderlich: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Die angeforderte Ressource wurde nicht gefunden: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Seit dem Herunterladen wurde der Eintrag geändert: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Vorgang wurde abgebrochen" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Daten nicht verfügbar" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Ungültige Adresse %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semikolon-getrennte Dateipfade, die Grilo-Erweiterungen beinhalten" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Doppelpunkt-getrennte Dateipfade, die Grilo-Erweiterungen beinhalten" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Doppelpunkt-getrennte Liste von zu verwendenden Grilo-Erweiterungen" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo-Optionen" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Grilo-Optionen anzeigen" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Keine durchsuchbaren Quellen verfügbar" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Das Medium für die Adresse »%s« konnte nicht aufgelöst werden" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Erweiterung »%s« wurde bereits geladen" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Erweiterung konnte nicht von %s initialisiert werden" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "" +"Metadatenschlüssel »%s« ist bereits in einem anderen Format registriert " +"worden" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Metadatenschlüssel »%s« kann nicht registriert werden" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Quelle mit Kennung »%s« wurde nicht gefunden" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Laden der Erweiterung von »%s« schlug fehl" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ungültige Erweiterungs-Datei %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "»%s« ist keine gültige Erweiterungs-Datei" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Erweiterung »%s« existiert bereits" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ungültiger Pfad %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Alle konfigurierten Pfade zu Erweiterungen sind ungültig" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Erweiterung »%s« ist nicht verfügbar" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Erweiterung wurde nicht gefunden: »%s«" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "" +"Die Konfiguration der Erweiterung enthält nicht die »plugin-id«-Referenz" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Einige Schlüssel konnten nicht geschrieben werden" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Keiner der angegebenen Schlüssel kann beschrieben werden" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Medium hat keine »id« und kann nicht entfernt werden" diff --git a/po/el.po b/po/el.po new file mode 100644 index 0000000..5559b3d --- /dev/null +++ b/po/el.po @@ -0,0 +1,207 @@ +# Greek translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Dimitris Spingos , 2013. +# Dimitris Spingos (Δημήτρης Σπίγγος) , 2013. +# Efstathios Iosifidis , 2013, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2015-12-16 13:15+0000\n" +"PO-Revision-Date: 2016-03-02 01:30+0200\n" +"Last-Translator: Efstathios Iosifidis \n" +"Language-Team: Greek, Modern (1453-) \n" +"Language: el\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 2.91.7\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Δεν βρέθηκε εικονικός ορισμός" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Αδύνατη η εύρεση εικονικού περιεχομένου: %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +#| msgid "Could not access mock content" +msgid "Could not access mock content: %s" +msgstr "Αδύνατη η πρόσβαση εικονικού περιεχομένου: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Αδύνατη η σύνδεση με τον διακομιστή" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Αδύνατη η σύνδεση με τον διακομιστή διαμεσολάβησης" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Άκυρο αίτημα URI ή κεφαλίδας: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Απαιτείται πιστοποίηση: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Δεν βρέθηκε ο ζητούμενος πόρος: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Η είσοδος έχει τροποποιηθεί από τη στιγμή της λήψης: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Η λειτουργία ακυρώθηκε" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Ανεπίλυτη κατάσταση: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Μη διαθέσιμα δεδομένα" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Μη έγκυρη διεύθυνση %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Διαδρομές διαχωριζόμενες με ; που περιέχουν πρόσθετα Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Διαδρομές διαχωριζόμενες με διπλή τελεία που περιέχουν πρόσθετα Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "" +"Λίστα των διαχωριζόμενων με διπλή τελεία προσθέτων Grilo που χρησιμοποιούνται" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Επιλογές Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Εμφάνιση επιλογών Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Χωρίς διαθέσιμες πηγές αναζήτησης" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Αδύνατη η επίλυση μέσων για URI '%s'" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1373 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Το πρόσθετο '%s' είναι ήδη φορτωμένο" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Αποτυχία αρχικοποίησης προσθέτου από %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Το πλήκτρο μεταδεδομένων '%s' είναι καταχωρημένο με διαφορετική μορφή" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Το πλήκτρο μεταδεδομένων '%s' δεν μπορεί να καταχωριστεί" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Δεν βρέθηκε η πηγή με αναγνωριστικό '%s'" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Αποτυχία φόρτωσης πρόσθετου από %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Άκυρο αρχείο προσθέτου %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "Το '%s' δεν είναι έγκυρο αρχείο προσθέτου" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Το πρόσθετο '%s' υπάρχει ήδη" + +#: ../src/grl-registry.c:1257 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "Μη έγκυρη διαδρομή %s" + +#: ../src/grl-registry.c:1323 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Όλες οι ρυθμισμένες διαδρομές προσθέτου είναι άκυρες" + +#: ../src/grl-registry.c:1362 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Το πρόσθετο '%s' δεν είναι διαθέσιμο" + +#: ../src/grl-registry.c:1590 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Δεν βρέθηκε το πρόσθετο: '%s'" + +#: ../src/grl-registry.c:1901 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Η ρύθμιση του προσθέτου δεν περιέχει την αναφορά 'plugin-id'" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Μερικά κλειδιά δεν μπόρεσαν να γραφτούν" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Κανένα από τα συγκεκριμένα κλειδιά δεν είναι εγγράψιμο" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Μέσα που δεν έχουν 'id', δεν μπορούν να αφαιρεθούν" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Αδύνατη η φόρτωση του προσθέτου '%s'" diff --git a/po/en_GB.po b/po/en_GB.po new file mode 100644 index 0000000..5ad2fee --- /dev/null +++ b/po/en_GB.po @@ -0,0 +1,197 @@ +# British English translation for grilo. +# Copyright (C) 2016 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Abigail Brady , Bastien Nocera , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-09-14 19:51+0000\n" +"PO-Revision-Date: 2016-09-18 11:02+0200\n" +"Last-Translator: David King \n" +"Language-Team: British English \n" +"Language: en_GB\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);;\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "No mock definition found" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Could not find mock content %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Could not access mock content: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Cannot connect to the server" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Cannot connect to the proxy server" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Invalid request URI or header: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Authentication required: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "The requested resource was not found: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "The entry has been modified since it was downloaded: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operation was cancelled" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Unhandled status: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:644 +msgid "Data not available" +msgstr "Data not available" + +#: ../libs/net/grl-net-wc.c:695 +#, c-format +msgid "Invalid URL %s" +msgstr "Invalid URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semicolon-separated paths containing Grilo plugins" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Colon-separated paths containing Grilo plugins" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Colon-separated list of Grilo plugins to use" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo Options" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Show Grilo Options" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "No searchable sources available" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Could not resolve media for URI '%s'" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Plugin '%s' is already loaded" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Failed to initialise plugin from %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadata key '%s' already registered in different format" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metadata key '%s' cannot be registered" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Source with id '%s' was not found" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Failed to load plugin from %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Invalid plugin file %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' is not a valid plugin file" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Plugin '%s' already exists" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Invalid path %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "All configured plugin paths are invalid" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Plugin '%s' not available" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Plugin not found: '%s'" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Plugin configuration does not contain 'plugin-id' reference" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Some keys could not be written" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "None of the specified keys are writable" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Media has no 'id', cannot remove" diff --git a/po/eo.po b/po/eo.po new file mode 100644 index 0000000..b59ca3b --- /dev/null +++ b/po/eo.po @@ -0,0 +1,202 @@ +# Esperanto translation for grilo. +# Copyright (C) 2013 Free Software Foundation, Inc. +# This file is distributed under the same license as the grilo package. +# Kristjan SCHMIDT , 2013, 2017. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?product=grilo&" +"keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-03-11 23:09+0000\n" +"PO-Revision-Date: 2017-06-11 22:06+0200\n" +"Last-Translator: Kristjan SCHMIDT \n" +"Language-Team: Esperanto \n" +"Language: eo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Virtaal 0.7.1\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Ne trovis model-difinon" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Ne eblas trovi model-enhavon %s" + +#: ../libs/net/grl-net-mock.c:116 +#, fuzzy, c-format +#| msgid "Could not access mock content" +msgid "Could not access mock content: %s" +msgstr "Ne eblas aliri model-enhavon: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Ne eblas konekti la servilo" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Ne eblas konekti al la prokura servilo" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Nevalida peto-adreso aŭ paĝokapo: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Aŭtentokontrolo bezonatas: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Ne trovis la petitan risurcon: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "La elemento estas ŝanĝita ekde sia elŝuto: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "La operacio estas ĉesigita" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Datumoj ne disponeblas" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Nevalida adreso %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Punktokomo-apartigitaj vojoj, kiuj enhavas Grilo-kromprogramoj" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Dupunkto-apartigitaj vojoj, kiuj enhavas Grilo-kromprogramoj" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Dupunkto-apartigita listo de uzendaj Grilo-kromprogramoj" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Agordoj de Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Montri agordojn de Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Neniu traserĉeblaj fontoj disponeblas" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Ne eblis solvi la datumportilo por adreso '%s'" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "La kromprogramo '%s' jam estas ŝagita" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Malsukcesis pravalorizi kromprogramon de %s" + +#: ../src/grl-registry.c:530 +#, c-format +#| msgid "Metadata key '%s' cannot be registered" +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadatum-ŝlosilo '%s' jam estas registrita en alia formo" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ne eblas registri metadatum-ŝlosilon '%s'" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Ne trovis la fonton kun la identigilo '%s'" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Malsukcesis ŝargi kromprogramon de %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Nevalida kromprogram-dosiero %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' ne estas valida kromprogram-dosiero" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Kromprogramo '%s' jam ekzistas" + +#: ../src/grl-registry.c:1259 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "Nevalida vojo %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Ĉiuj agorditaj kromprogram-vojoj estas nevalidaj" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Kromprogramo '%s' ne disponeblas" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Ne trovis kromprogramon: '%s'" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Kromprogram-agordo ne entenas 'plugin-id'-referencon" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Ne eblis skribi kelkajn ŝlosilojn" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Neniu de la specifitaj ŝlosiloj estas skribelaj" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "La datumportilo ne havas identigilon kaj ne eblas forigi ĝin" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Netraktita stato: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Ne eblas ŝargi kromprogramon '%s'" diff --git a/po/es.po b/po/es.po new file mode 100644 index 0000000..8c76c19 --- /dev/null +++ b/po/es.po @@ -0,0 +1,212 @@ +# Spanish translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# miguel rodriguez nuñez , 2013. +# Miguel Rodríguez Núñez , 2013. +# Daniel Mustieles , 2013, 2015, 2016, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-21 09:20+0200\n" +"Last-Translator: Daniel Mustieles \n" +"Language-Team: es \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 2.91.6\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "No se ha encontrado la definición de la simulación" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "No se ha podido encontrar el contenido de la simulación %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "No se ha podido acceder al contenido de la simulación: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "No se puede conectar con el servidor" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "No se puede conectar con el servidor proxy" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI o cabecera solicitada no válida: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Se necesita autenticación: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "No se encontró el recurso solicitado: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "La entrada se ha modificado desde que se descargó: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Se canceló la operación" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Información no disponible" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s no válido" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "" +"Las rutas de los complementos de Grilo están separadas por punto y coma" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Las rutas de los complementos de Grilo están separadas por dos puntos" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Las listas de complementos de Grilo están separadas por dos puntos" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opciones de Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostrar las opciones de Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "No hay fuentes en las que buscar" + +#: src/grl-multiple.c:511 +#, c-format +#| msgid "Could not resolve media for URI '%s'" +msgid "Could not resolve media for URI “%s”" +msgstr "No se han podido resolver los medios para el URI «%s»" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +#| msgid "Plugin '%s' is already loaded" +msgid "Plugin “%s” is already loaded" +msgstr "El complemento «%s» ya está cargado" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Falló al inicializar el complemento desde %s" + +#: src/grl-registry.c:530 +#, c-format +#| msgid "Metadata key '%s' already registered in different format" +msgid "Metadata key “%s” already registered in different format" +msgstr "Clave del metadato «%s» ya registrada en otro formato" + +#: src/grl-registry.c:543 +#, c-format +#| msgid "Metadata key '%s' cannot be registered" +msgid "Metadata key “%s” cannot be registered" +msgstr "No se ha podido registrar la clave del metadato «%s»" + +#: src/grl-registry.c:983 +#, c-format +#| msgid "Source with id '%s' was not found" +msgid "Source with id “%s” was not found" +msgstr "No se encontró la fuente con el ID «%s»" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Falló al cargar el complemento desde %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Archivo de complemento %s no válido" + +#: src/grl-registry.c:1077 +#, c-format +#| msgid "'%s' is not a valid plugin file" +msgid "“%s” is not a valid plugin file" +msgstr "«%s» no es un archivo de complemento válido" + +#: src/grl-registry.c:1096 +#, c-format +#| msgid "Plugin '%s' already exists" +msgid "Plugin “%s” already exists" +msgstr "El complemento «%s» ya existe" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ruta %s no válida" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Ninguna de las rutas configuradas de complemento son válidas" + +#: src/grl-registry.c:1366 +#, c-format +#| msgid "Plugin '%s' not available" +msgid "Plugin “%s” not available" +msgstr "Complemento «%s» no disponible" + +#: src/grl-registry.c:1594 +#, c-format +#| msgid "Plugin not found: '%s'" +msgid "Plugin not found: “%s”" +msgstr "No se encontró el complemento: «%s»" + +#: src/grl-registry.c:1905 +#, c-format +#| msgid "Plugin configuration does not contain 'plugin-id' reference" +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "La configuración del complemento no contiene la referencia «plugin-id»" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Algunas claves no se han podido escribir" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Ninguna de las claves especificadas es modificable" + +#: src/grl-source.c:4198 +#, c-format +#| msgid "Media has no 'id', cannot remove" +msgid "Media has no “id”, cannot remove" +msgstr "El medio no tiene «id», no se puede eliminar" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Estado no manejado: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "No se puede cargar el complemento «%s»" diff --git a/po/eu.po b/po/eu.po new file mode 100644 index 0000000..86ff0ba --- /dev/null +++ b/po/eu.po @@ -0,0 +1,201 @@ +# Basque translation for grilo. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Iñaki Larrañaga Murgoitio , 2014, 2016. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-20 20:06+0100\n" +"PO-Revision-Date: 2016-03-20 20:10+0100\n" +"Last-Translator: dooteo \n" +"Language-Team: Basque \n" +"Language: eu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Lokalize 2.0\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Ez da simulazioaren definiziorik aurkitu" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Ezin izan da '%s' simulazioaren edukirik aurkitu" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Ezin izan da simulazioaren edukia atzitu: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Ezin da zerbitzariarekin konektatu" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Ezin da proxy zerbitzariarekin konektatu" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Baliogabeko URI eskaera edo goiburua: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autentifikazioa behar da: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Ez da eskatutako baliabidea aurkitu: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Sarrera deskargatu zenetik aldatu egin da: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Eragiketa bertan behera utzi da" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Kudeatu gabeko egoera: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Datuak ez daude eskuragarri" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Baliogabeko URLa: %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Puntu eta komaz bereiztutako bide-izenek Grilo-ren osagaiak dituzte" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Bi puntuz bereiztutako bide-izenek Grilo-ren osagaiak dituzte" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Bi puntuz bereiztutako Grilo-ren osagaien zerrenda" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo-ren aukerak" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Erakutsi Grilo-ren aukerak" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Ez dago iturburu eskuragarri bilaketak egiteko" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Ezin izan da '%s' URIaren euskarria ebatzi" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "'%s' osagaia jadanik kargatuta dago" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Huts egin du osagaia '%s'(e)tik hasieratzean" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "" +"'%s' meta-datuen gakoa beste formatu batean jadanik erregistratuta dago." + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ezin da '%s' meta-datuen gakoa erregistratu" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Ez da '%s' IDko iturbururik aurkitu" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Huts egin du '%s'(e)tik osagaia kargatzean" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Baliogabeko '%s' fitxategiaren osagaia" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' ez da baliozko osagai-fitxategia" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "'%s' osagaia badago lehendik ere" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Baliogabeko \"%s\" bide-izena" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Konfiguratutako osagaien bide-izen guztiak baliogabekoak dira" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "'%s' osagaia ez dago erabilgarri" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Ezin izan da osagaia aurkitu: %s" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Osagaiaren konfigurazioak ez dauka 'plugin-id' erreferentziarik" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Ezin izan dira gako batzuk idatzi" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Zehaztutako gakoetariko bat bera ere ez da idazgarria" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Euskarriak ez dauka 'ID'rik, ezin da kendu" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Ezin da '%s' osagaia kargatu" diff --git a/po/fr.po b/po/fr.po new file mode 100644 index 0000000..50a5242 --- /dev/null +++ b/po/fr.po @@ -0,0 +1,202 @@ +# French translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Alain Lojewski , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-02-02 11:20+0000\n" +"PO-Revision-Date: 2016-02-02 17:21+0100\n" +"Last-Translator: Alain Lojewski \n" +"Language-Team: GNOME French Team \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Aucune définition simulée n'a été trouvée" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Impossible de trouver le contenu simulé %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Impossible d'accéder au contenu simulé : %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Impossible de se connecter au serveur" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Impossible de se connecter au serveur mandataire" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI de requête ou d'en-tête non valide : %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Authentification nécessaire : %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "La ressource demandée n'a pas été trouvée : %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "L'entrée a été modifiée depuis son téléchargement : %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "L'opération a été annulée" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "État non pris en charge : %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Données indisponibles" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s non valide" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Chemins séparés par des points-virgules contenant des greffons Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Chemins séparés par des deux-points contenant des greffons Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "" +"Liste des greffons de Grilo séparés par des deux-points devant être utilisés" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Options de Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Afficher les options de Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Aucune source pouvant être recherchée n'est disponible" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Impossible de résoudre le média pour L'URI « %s »" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Le greffon « %s » est déjà chargé" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Échec d'initialisation du greffon depuis %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "" +"La clé « %s » des métadonnées est déjà enregistrée dans un format différent" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "La clé « %s » des métadonnées ne peut pas être enregistrée" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "La source avec l'identifiant « %s » n'a pas été trouvée" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Échec de chargement du greffon depuis %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Fichier %s du greffon non valide" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "« %s » n'est pas un fichier de greffon valide" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Le greffon « %s » existe déjà" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Chemin %s non valide" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Tous les chemins du greffon configurés sont non valides" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Le greffon « %s » n'est pas disponible" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Greffon non trouvé : « %s »" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "La configuration du greffon ne contient pas la référence « plugin-id »" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Quelques clés n'ont pas pu être enregistrées" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Aucune des clés spécifiées n'est enregistrable" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Le média n'a pas d'identifiant « id », impossible de le retirer" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Impossible de charger le greffon « %s »" diff --git a/po/fur.po b/po/fur.po new file mode 100644 index 0000000..aa05ba1 --- /dev/null +++ b/po/fur.po @@ -0,0 +1,194 @@ +# Friulian translation for grilo. +# Copyright (C) 2016 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Fabio Tomat , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-26 22:16+0200\n" +"Last-Translator: Fabio Tomat \n" +"Language-Team: Friulian \n" +"Language: fur\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.7\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nissune definizion de simulazion cjatade" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Impussibil cjatâ i contignûts de simulazion %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Impussibil acedi al contignût mock: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Impussibil conetisi al servidôr" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Impussibil conetisi al servidôr proxy" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Header o URI domandât no valit: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autenticazion necessarie: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "La risorse domandade no je stade cjatade: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "L'element al è stât modificât di cuant che al è stât scjariât: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "La operazion e je stade scancelade" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Dâts no disponibii" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s no valit" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Percors, separâts di un pont e virgule, che a tegnin i plugin di Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Percors, separâts di doi ponts, che a tegnin i plugin di Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Liste, separade da doi ponts, dai plugin par Grilo di doprâ" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opzions di Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostre Opzions di Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "No je disponibil nissune sorzint di ricercje" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Impussibil risolvi il contignût multimediâl par l'URI “%s”" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Il plugin “%s” al è za cjariât" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Iniziazion dal plugin da %s falide" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "La clâf di metadâts “%s” e je za regjistrade in formât diferent" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "La clâf di metadâts “%s” no pues jessi regjistrade" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "La risorse cun id “%s” no je stade cjatade" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Impussibil cjariâ plugin da %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "file di plugin %s no valit" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "“%s” nol è un file di plugin valit" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Il plugin “%s” al esist za" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Percors %s no valit" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Ducj i percors di plugin configurâts no son valits" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Plugin “%s” no disponibil" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Plugin no cjatât: “%s”" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "La configurazion dal plugin no à il riferiment “plugin-id”" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Cualchi clâf no pues jessi scrite" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nissune des clâfs specificadis e pues jessi scrite" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Il contignût multimediâl nol à “id”, impussibil gjavâlu" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Stât no gjestît: %s" diff --git a/po/gl.po b/po/gl.po new file mode 100644 index 0000000..0ee300c --- /dev/null +++ b/po/gl.po @@ -0,0 +1,200 @@ +# Galician translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Fran Dieguez , 2013, 2016. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-02-23 22:35+0100\n" +"PO-Revision-Date: 2016-02-23 22:36+0200\n" +"Last-Translator: Fran Dieguez \n" +"Language-Team: gnome-l10n-gl@gnome.org\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Virtaal 0.7.1\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Non se atopou a definición da mofa" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Non foi posíbel atopar o contido da mofa %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Non foi posibel acceder ao contido da mofa: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Non foi posíbel conectarse ao servidor" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Non foi posíbel conectarse ao servidor proxy" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI ou cabeceira da petición non válida: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autenticación requirida: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "O recurso solicitado non foi atopado: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "A entrada foi modificada desde que foi subida: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Cancelouse a operación" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Estado non xestionado: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Datos non dispoñíbel" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s non válida" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Rutas separadas por punto e comas que conteñen os engadidos de Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Rutas separadas por comas que conteñen os engadidos de Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Lista separada por comas dos engadidos de Grilo a usar" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opcións de Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostra as opcións de Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Non hai ningunha orixe buscábel dispoñíbel" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Non foi posíbel resolver o media para o URI «%s»" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "O engadido «%s» xa está cargado" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Produciuse un fallo ao inicializar o engadido desde %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "A chave «%s» dos metadatos xa está rexistrada nun formato distinto" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "A chave «%s» dos metadatos non poden rexistrarse" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Non foi posíbel atopar a orixe co id «%s»" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Produciuse un fallo ao cargar o engadido desde %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ficheiro de engadido %s non válido" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "«%s» non é un ficheiro de engadido válido" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "O engadido «%s» xa existe" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ruta %s non válida" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Todas as rutas de engadidos configuradas non son válidas" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "O engadido «%s» non está dispoñíbel" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Non foi posíbel atopar o engadido: «%s»" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "A configuración do engadido non contén a referencia de «plugin-id»" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Algunhas chaves non poden escribirse." + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Ningunha das chaves especificadas son escribíbeis." + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "O media non ten «id», non pode eliminarse" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Non foi posíbel cargar o engadido «%s»" diff --git a/po/he.po b/po/he.po new file mode 100644 index 0000000..7b2275e --- /dev/null +++ b/po/he.po @@ -0,0 +1,201 @@ +# Hebrew translations for PACKAGE package. +# Copyright (C) 2014 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# יוסף אור בוצ׳קו , 2014. +# Yosef Or Boczko , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-12-31 17:28+0200\n" +"PO-Revision-Date: 2015-12-31 17:28+0200\n" +"Last-Translator: Yosef Or Boczko \n" +"Language-Team: עברית <>\n" +"Language: he\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 2.91.6\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "No mock definition found" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Could not find mock content %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Could not access mock content: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Cannot connect to the server" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Cannot connect to the proxy server" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Invalid request URI or header: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Authentication required: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "The requested resource was not found: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "The entry has been modified since it was downloaded: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operation was cancelled" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Unhandled status: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Data not available" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Invalid URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semicolon-separated paths containing Grilo plugins" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Colon-separated paths containing Grilo plugins" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Colon-separated list of Grilo plugins to use" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo Options" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Show Grilo Options" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "No searchable sources available" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Could not resolve media for URI '%s'" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1376 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Plugin '%s' is already loaded" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Failed to initialize plugin from %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadata key '%s' already registered in different format" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metadata key '%s' cannot be registered" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Source with id '%s' was not found" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Failed to load plugin from %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Invalid plugin file %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' is not a valid plugin file" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Plugin '%s' already exists" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Invalid path %s" + +#: ../src/grl-registry.c:1325 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "All configured plugin paths are invalid" + +#: ../src/grl-registry.c:1365 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Plugin '%s' not available" + +#: ../src/grl-registry.c:1593 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Plugin not found: '%s'" + +#: ../src/grl-registry.c:1904 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Plugin configuration does not contain 'plugin-id' reference" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Some keys could not be written" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "None of the specified keys are writable" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Media has no 'id', cannot remove" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Unable to load plugin '%s'" diff --git a/po/hr.po b/po/hr.po new file mode 100644 index 0000000..e7cb70c --- /dev/null +++ b/po/hr.po @@ -0,0 +1,194 @@ +# Croatian translation for grilo. +# Copyright (C) 2018 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-10-16 22:06+0000\n" +"PO-Revision-Date: 2018-03-16 19:16+0100\n" +"Language-Team: Croatian \n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Last-Translator: \n" +"X-Generator: Poedit 2.0.6\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nemoguć pronalazak definicije" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nemoguć pronalazak sadržaja %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nemoguć pristup sadržaju: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nemoguće povezivanje s poslužiteljem" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nemoguće povezivanje s proxy poslužiteljem" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Neispravan zahtjevani URI ili zaglavalje: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Potrebna je ovjera: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Zatraženi resurs nije pronađen: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Unos je promijenjen od kada je preuzet: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Radnja je prekinuta" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Podaci nisu dostupni" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Neispravan URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Putanje koje sadrže Grilo priključak odvojene točka-zarezom" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Putanje koje sadrže Grilo priključak odvojene dvotočkom" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Popis koji sadrži Grilo priključak odvojen dvotočkom" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo mogućnosti" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Prikaži Grilo mogućnosti" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nema dopstupnih pretraživih izvora" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Nemoguće razrješavanje medija za URI '%s'" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Priključak '%s' je već učitan" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Neuspjelo pokretanje priključka iz %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Ključ metapodataka '%s' je već registriran u drugom formatu" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ključ metapodataka '%s' se ne može registrirati" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Izvor s id '%s' nije pronađen" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Neuspjelo učitavanje priključka iz %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Neispravna datoteka priključka %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' nije valjana datoteka priključka" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Priključak '%s' već postoji" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Neispravna putanja %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Sve podešene putanje priključaka su neispravne" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Priključak '%s' nije dostupan" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Priključak nije pronađen: '%s'" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Podešavanje priključka ne sadrži 'plugin-id' napomenu" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Određeni ključevi ne mogu biti zapisani" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nijedan od navedenih ključeva nije zapisiv" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Medij nema 'id', ne može se ukloniti" diff --git a/po/hu.po b/po/hu.po new file mode 100644 index 0000000..d45052d --- /dev/null +++ b/po/hu.po @@ -0,0 +1,202 @@ +# Hungarian translation of grilo +# Copyright (C) 2013. Free Software Foundation, Inc. +# This file is distributed under the same license as the grilo package. +# +# Gabor Kelemen , 2013. +# Balázs Úr , 2015. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-12 20:24+0200\n" +"Last-Translator: Meskó Balázs \n" +"Language-Team: Hungarian \n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.7\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nem található vázlatos definíció" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nem található vázlatos tartalom: %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nem érhető el a vázlatos tartalom: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nem lehet kapcsolódni a kiszolgálóhoz" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nem lehet kapcsolódni a proxykiszolgálóhoz." + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Érvénytelen kérés URI vagy -fejléc: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Hitelesítés szükséges: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "A kért erőforrás nem található: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "A bejegyzés módosítva lett letöltése óta: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "A művelet megszakítva" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Nem érhetők el az adatok" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Érvénytelen URL: %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "" +"Grilo bővítményeket tartalmazó útvonalak pontosvesszőkkel elválasztott " +"listája" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "" +"Grilo bővítményeket tartalmazó útvonalak vesszőkkel elválasztott listája" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Használandó Grilo bővítmények vesszőkkel elválasztott listája" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo beállítások" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "A Grilo beállításainak megjelenítése" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nem érhetők el kereshető források" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Nem oldható fel a média a(z) „%s” URI-címhez" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "A bővítmény („%s”) már be van töltve" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "A bővítmény előkészítése sikertelen innen: %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "A(z) „%s” metaadatkulcs már regisztrálva van eltérő formátumban" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "A(z) „%s” metaadatkulcs nem regisztrálható" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Nem található „%s” azonosítójú forrás" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "A bővítmény betöltése sikertelen innen: %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Érvénytelen bővítményfájl: %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "„%s” nem érvényes bővítményfájl" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "A(z) „%s” bővítmény már létezik" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Érvénytelen útvonal: %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Minden beállított bővítményútvonal érvénytelen" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "A(z) „%s” bővítmény nem érhető el" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "A bővítmény nem található: „%s”" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "A bővítmény beállítása nem tartalmazza a „plugin-id” hivatkozást" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Néhány kulcs nem írható ki" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "A megadott kulcsok egyike sem írható" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "A média nem rendelkezik „id”-vel, nem távolítható el" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Nem kezelt állapot: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "A bővítmény („%s”) nem tölthető be" diff --git a/po/id.po b/po/id.po new file mode 100644 index 0000000..18a363d --- /dev/null +++ b/po/id.po @@ -0,0 +1,194 @@ +# Indonesian translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Andika Triwidada , 2013, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-23 10:11+0700\n" +"Last-Translator: Andika Triwidada \n" +"Language-Team: Indonesian \n" +"Language: id\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.11\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Definisi mock tak ditemukan" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Tak bisa temukan isi mock %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Tak bisa mengakses isi mock: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Tak bisa menyambung ke server" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Tak bisa menyambung ke server proksi" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI atau header permintaan tak valid: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Perlu otentikasi: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Sumber daya yang diminta tak ditemukan: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Entri telah berubah sejak diunduh: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operasi dibatalkan" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Data tak tersedia" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s tak valid" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Path yang dipisah titik koma yang memuat pengaya Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Path yang dipisah titik dua yang memuat pengaya Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Daftar yang dipisah titik dua dari pengaya Grilo yang akan dipakai" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opsi Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Tampilkan Opsi Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Tak tersedia sumber yang dapat dicari" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Tak bisa menentukan media bagi URI \"%s\"" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Pengaya \"%s\" telah dimuat" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Gagal menginisialisasi pengaya dari %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Kunci metadata \"%s\" sudah terdaftar dalam format lain" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Kunci metadata \"%s\" tak bisa didaftar" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Sumber dengan id \"%s\" tak ditemukan" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Gagal memuat pengaya dari %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Berkas pengaya %s tak valid" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "\"%s\" bukan berkas pengaya yang valid" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Pengaya \"%s\" telah ada" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Path %s tak valid" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Semua path pengaya yang ditata tak valid" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Pengaya \"%s\" tak tersedia" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Pengaya tak ditemukan: \"%s\"" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Konfigurasi pengaya tak memuat acuan \"plugin-id\"" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Beberapa kunci tak bisa ditulisi" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Kunci yang dinyatakan tak ada yang bisa ditulisi" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Media tak punya \"id\", tak bisa menghapus" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Status yang tak tertangani: %s" diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..9085cd2 --- /dev/null +++ b/po/it.po @@ -0,0 +1,196 @@ +# Italian translation for grilo. +# Copyright (C) 2013, 2015, 2018 The Free Software Foundation, Inc. +# This file is distributed under the same license as the grilo package. +# Claudio Arseni , 2013, 2015. +# Milo Casagrande , 2018. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-07-19 08:43+0200\n" +"Last-Translator: Milo Casagrande \n" +"Language-Team: tp@lists.linux.it\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.6\n" +"X-Project-Style: gnome\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nessuna definizione della simulazione trovata" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Impossibile trovare i contenuti della simulazione %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Impossibile accedere al contenuto mock: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Impossibile connettersi al server" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Impossibile connettersi al server proxy" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Header o URI richiesto non valido: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autenticazione richiesta: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "La risorsa richiesta non è stata trovata: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "La voce è stata modificata dopo lo scaricamento: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operazione annullata" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Dati non disponibili" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s non valido" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Percorsi, separati da punto e virgola, contenenti i plugin di Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Percorsi, separati da due punti, contenenti i plugin di Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Elenco, separato da due punti, dei plugin di Grilo da usare" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opzioni di Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostra le opzioni di Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Non è disponibile alcuna sorgente di ricerca" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Impossibile risolvere il contenuto multimediale per l'URI «%s»" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Il plugin «%s» è già caricato" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Inizializzazione del plugin da %s non riuscita" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "La chiave dei metadati «%s» è già registrata in un formato differente" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "La chiave dei metadati «%s» non può essere registrata" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "La risorsa con ID «%s» non è stata trovata" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Caricamento del plugin da %s non riuscito" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "File di plugin %s non valido" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "«%s» non è un file di plugin valido" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Plugin «%s» già esistente" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Percorso %s non valido" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Tutti i percorsi configurati per i plugin non sono validi" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Plugin «%s» non disponibile" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Plugin non trovato: «%s»" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "La configurazione del plugin non contiene il riferimento «plugin-id»" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Alcune chiavi non possono essere scritte" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nessuna delle chiavi specificate può essere scritta" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Il contenuto multimediale non ha «ID». Impossibile rimuoverlo" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Stato non gestito: %s" diff --git a/po/ja.po b/po/ja.po new file mode 100644 index 0000000..d205f24 --- /dev/null +++ b/po/ja.po @@ -0,0 +1,187 @@ +# Japanese translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Nishio Futoshi , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2013-07-25 07:42+0000\n" +"PO-Revision-Date: 2013-07-24 22:00+0900\n" +"Last-Translator: Nishio Futoshi \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +# Mockをモックと訳出した。 +#: ../libs/net/grl-net-mock.c:79 +msgid "No mock definition found" +msgstr "モックの定義が見つかりません" + +#: ../libs/net/grl-net-mock.c:91 +#, c-format +msgid "Could not find mock content %s" +msgstr "モックのコンテンツ %s が見つかりません" + +#: ../libs/net/grl-net-mock.c:111 +msgid "Could not access mock content" +msgstr "モックのコンテンツにアクセスできません" + +#: ../libs/net/grl-net-wc.c:468 +msgid "Cannot connect to the server" +msgstr "サーバーへ接続できません" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "プロキシサーバーへ接続できません" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "要求された URI またはヘッダーが無効です: %s" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "認証が必要です: %s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "要求したリソースが見つかりませんでした: %s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "その項目は、ダウンロード後に変更が加えられています: %s" + +# cancell を キャンセルと訳出した +#: ../libs/net/grl-net-wc.c:506 ../libs/net/grl-net-wc.c:614 +#: ../src/grl-source.c:1717 ../src/grl-source.c:1814 ../src/grl-source.c:1957 +#: ../src/grl-source.c:2201 ../src/grl-source.c:2323 +#, c-format +msgid "Operation was cancelled" +msgstr "操作がキャンセルされました" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "扱えないステータス: %s" + +#: ../libs/net/grl-net-wc.c:618 ../libs/net/grl-net-wc.c:659 +msgid "Data not available" +msgstr "データは利用できません" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Grilo プラグインを含むパスのリスト (セミコロン区切り)" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Grilo プラグインを含むパスのリスト (コロン区切り)" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "使用する Grilo プラグインのリスト (コロン区切り)" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "Grilo のオプション" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "Grilo のオプションを表示する" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "利用できる検索可能なソースがありません" + +#: ../src/grl-multiple.c:488 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "URI '%s' に対応するメディアが判別できません" + +#: ../src/grl-registry.c:328 ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "プラグイン '%s' は既にロードされています" + +#: ../src/grl-registry.c:340 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "%s のプラグインの初期化に失敗しました" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "識別子 '%s' のソースが見つかりません" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "%s のプラグインのロードに失敗しました" + +#: ../src/grl-registry.c:806 +#, c-format +msgid "Invalid plugin file %s" +msgstr "プラグインのファイル %s は無効です" + +#: ../src/grl-registry.c:817 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' は有効なプラグインのファイルではありません" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "プラグイン '%s' はロードできません" + +#: ../src/grl-registry.c:847 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "プラグイン '%s' は既に存在します" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "設定されたプラグインのパスが全て無効です" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "プラグイン '%s' は利用できません" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "プラグインが見つかりません: '%s'" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "メタデーターのキー '%s' は登録できません" + +#: ../src/grl-registry.c:1585 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "プラグインの設定に、'plugin-id' の参照が含まれていません" + +#: ../src/grl-source.c:2653 +#, c-format +msgid "Some keys could not be written" +msgstr "書き込めなかったキーがあります" + +#: ../src/grl-source.c:2727 +#, c-format +msgid "None of the specified keys are writable" +msgstr "指定されたキーに書き込み可能なものはありません" + +#: ../src/grl-source.c:4019 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "メディアに 'id' がありません。移動できません" diff --git a/po/ko.po b/po/ko.po new file mode 100644 index 0000000..59a5adb --- /dev/null +++ b/po/ko.po @@ -0,0 +1,209 @@ +# Korean translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Seong-ho Cho , 2013, 2015, 2016. +# +# NOTE: +# - mock: 고유명사입니다. "목"(x) "모크"라고 음역하십시오. +# - Grilo: 프로그램의 명칭입니다. "그릴로"라고 음역합니다. +# - content: 자주 사용하는 IT 용어입니다. +# "컨텐츠"(x) "컨텐트"로 음역하십시오. 복수명사일 경우에도 마찬가지입니다. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2015-12-16 13:15+0000\n" +"PO-Revision-Date: 2016-03-03 18:29+0900\n" +"Last-Translator: Seong-ho Cho \n" +"Language-Team: GNOME Korea \n" +"Language: ko\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Gtranslator 2.91.7\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "모크 정의를 찾을 수 없습니다" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "%s 모크 컨텐트를 찾을 수 없습니다" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +#| msgid "Could not access mock content" +msgid "Could not access mock content: %s" +msgstr "모크 컨텐트에 접근할 수 없습니다: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "서버에 연결할 수 없습니다" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "프록시 서버에 연결할 수 없습니다" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "잘못된 URI 또는 헤더 요청입니다: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "인증이 필요합니다: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "요청한 자원을 찾을 수 없습니다: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "다운로드한 다음에 항목이 수정되었습니다: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "동작을 취소했습니다" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "처리하지 못한 상태: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "데이터가 없습니다" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "잘못된 URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "그릴로 플러그인이 있는 세미콜론 구분 경로입니다" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "그릴로 플러그인이 있는 콜론 구분 경로입니다" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "사용하려는 그릴로 플러그인의 콜론 구분 목록입니다" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "그릴로 옵션" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "그릴로 옵션 표시" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "검색할 수 있는 원본이 없습니다" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "URI '%s'의 미디어를 분석할 수 없습니다" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1373 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "'%s' 플러그인은 이미 불러왔습니다" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "%s에서 플러그인을 초기화하는데 실패했습니다" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "'%s' 메타데이터 키를 이미 다른 형식으로 등록했습니다" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "'%s' 메타데이터 키를 등록할 수 없습니다" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "'%s' ID의 원본을 찾을 수 없습니다" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "%s에서 플러그인을 불러오는데 실패했습니다" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "잘못된 플러그인 파일 %s입니다" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' 요소는 유효한 플러그인 파일이 아닙니다" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "'%s' 플러그인이 이미 있습니다" + +#: ../src/grl-registry.c:1257 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "잘못된 경로 %s" + +#: ../src/grl-registry.c:1323 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "설정한 모든 플러그인 경로가 잘못되었습니다" + +#: ../src/grl-registry.c:1362 +#, c-format +msgid "Plugin '%s' not available" +msgstr "'%s' 플러그인이 없습니다" + +#: ../src/grl-registry.c:1590 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "플러그인을 찾지 못했습니다: '%s'" + +#: ../src/grl-registry.c:1901 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "플러그인 설정에 'plugin-id' 참조가 없습니다" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "일부 키에 기록할 수 없습니다" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "기록 가능한 지정 키가 없습니다" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "미디어에 'id'가 없어 제거할 수 없습니다" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "'%s' 플러그인을 불러올 수 없습니다" diff --git a/po/lt.po b/po/lt.po new file mode 100644 index 0000000..61f478c --- /dev/null +++ b/po/lt.po @@ -0,0 +1,202 @@ +# Lithuanian translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Aurimas Černius , 2013, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-01-06 11:14+0000\n" +"PO-Revision-Date: 2016-01-06 20:05+0200\n" +"Last-Translator: Aurimas Černius \n" +"Language-Team: Lietuvių \n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Poedit 1.8.6\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nerastas imitacijos apibrėžimas" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nepavyko rasti imitacijos turinio %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nepavyko pasiekti imitacijos turinio: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nepavyko prisijungti prie serverio" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nepavyko prisijungti prie tarpinio serverio" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Netinkamas užklausos URI arba antraštė: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Reikia patvirtinti tapatybę: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Prašomas resursas nerastas: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Įrašas buvo pakeistas po jo parsiuntimo: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Veiksmo buvo atsisakyta" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Neapdorota būsena: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Nėra prieinamų duomenų" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Blogai suformuotas URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Kabliataškiais skiriami Grilo įskiepių keliai" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Dvitaškiais skiriami Grilo įskiepių keliai" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Dvitaškiais skiriamas naudojamų Grilo įskiepių sąrašas" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo parametrai" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Rodyti Grilo parametrus" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nėra ieškomų šaltinių" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Nepavyko išspręsti medijos URI „%s“" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1376 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Įskiepis „%s“ jau įkeltas" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Nepavyko inicijuoti įskiepio iš %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metaduomenų raktas „%s“ jau užregistruotas kitam formatui" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metaduomenų raktas „%s“ negali būti užregistruotas" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Nerastas šaltinis su id „%s“" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Nepavyko įkelti įskiepio iš %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Netinkamas įskiepio failas %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "„%s“ yra netinkamas įskiepio failas" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Įskiepis „%s“ jau yra" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Neteisingas kelias %s" + +#: ../src/grl-registry.c:1325 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Visi nustatyti įskiepių keliai yra netinkami" + +#: ../src/grl-registry.c:1365 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Įskiepis „%s“ neprieinamas" + +#: ../src/grl-registry.c:1593 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Įskiepis nerastas: „%s“" + +#: ../src/grl-registry.c:1904 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Įskiepio konfigūracija neturi „plugin-id“ nuorodos" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Kai kurių raktų negalima rašyti" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nė vienas iš nurodytų raktų nėra rašomas" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Medija neturi „id“, negalima pašalinti" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Nepavyko įkelti įskiepio „%s“" diff --git a/po/lv.po b/po/lv.po new file mode 100644 index 0000000..892cc96 --- /dev/null +++ b/po/lv.po @@ -0,0 +1,208 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Rūdolfs Mazurs , 2013, 2014, 2015, 2016. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=grilo&" +"keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2015-12-16 13:15+0000\n" +"PO-Revision-Date: 2016-02-06 16:12+0200\n" +"Last-Translator: Rūdolfs Mazurs \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" +"X-Generator: Lokalize 2.0\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nav atrasta maketa definīcija" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +#| msgid "Cannot find media %s" +msgid "Could not find mock content %s" +msgstr "Nevar atrast maketa saturu %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nevar piekļūt maketa saturam %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nevar savienoties ar serveri" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nevar savienoties ar starpniekserveri" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Nederīgs pieprasītais URI vai galvene — %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Nepieciešama autentifikācija — %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Pieprasītais resurs netika atrasts — %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Ieraksts ir mainījies kopš tas tika lejupielādēts — %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Darbība tika atcelta" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Neapstrādātās status — %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +#| msgid "\"source-id\" not available" +msgid "Data not available" +msgstr "Dati nav pieejami" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +#| msgid "Invalid identifier %s" +msgid "Invalid URL %s" +msgstr "Nederīgs URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Ar semikolu atdalītie ceļi, kuri satur Grilo spraudņus" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Ar kolu atdalītie ceļi, kuri satur Grilo spraudņus" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Ar kolu atdalītie ceļi, kuri satur Grilo izmantojamos spraudņus" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo opcijas" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Rādīt Grilo opcijas" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nav atrastu meklējamu avotu" + +#: ../src/grl-multiple.c:511 +#, c-format +#| msgid "Cannot get media from %s" +msgid "Could not resolve media for URI '%s'" +msgstr "Nevarēja uzmeklēt mediju “%s” URI" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1373 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Spraudnis “%s” jau ir ielādēts" + +#: ../src/grl-registry.c:488 +#, c-format +#| msgid "Failed to get media from uri: %s" +msgid "Failed to initialize plugin from %s" +msgstr "Neizdevās inicializēt spraudni no %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadatu atslēga “%s” jau ir reģistrēta citam formātam" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metadatu atslēgu “%s” nevar reģistrēt" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Avots ar id “%s” nav atrasts" + +#: ../src/grl-registry.c:1057 +#, c-format +#| msgid "Failed to get media from uri: %s" +msgid "Failed to load plugin from %s" +msgstr "Nevarēja ielādēt spraudni no %s" + +#: ../src/grl-registry.c:1066 +#, c-format +#| msgid "Invalid identifier %s" +msgid "Invalid plugin file %s" +msgstr "Nederīga spraudņa datne %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "“%s” nav derīga spraudņa datne" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Spraudnis “%s” jau eksistē" + +#: ../src/grl-registry.c:1257 +#, c-format +#| msgid "Invalid identifier %s" +msgid "Invalid path %s" +msgstr "Nederīgs ceļš %s" + +#: ../src/grl-registry.c:1323 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Visi konfigurētie spraudņu ceļi ir nederīgi" + +#: ../src/grl-registry.c:1362 +#, c-format +#| msgid "\"source-id\" not available" +msgid "Plugin '%s' not available" +msgstr "Spraudnis “%s” nav pieejams" + +#: ../src/grl-registry.c:1590 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Spraudnis nav atrasts — “%s”" + +#: ../src/grl-registry.c:1901 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Spraudņa konfigurācija nesatur “plugin-id” norādi" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Dažas atslēgas nevar rakstīt" + +#: ../src/grl-source.c:2855 +#, c-format +#| msgid "specified keys are not writable" +msgid "None of the specified keys are writable" +msgstr "Neviena no norādītajām atslēgām nav rakstāmas" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Medijam nav “id”, nevar izņemt" diff --git a/po/meson.build b/po/meson.build new file mode 100644 index 0000000..785b2da --- /dev/null +++ b/po/meson.build @@ -0,0 +1,58 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +i18n = import('i18n') + +langs = [ + 'as', + 'bg', + 'bs', + 'ca', + 'ca@valencia', + 'cs', + 'da', + 'de', + 'el', + 'en_GB', + 'eo', + 'es', + 'eu', + 'fr', + 'fur', + 'gl', + 'he', + 'hu', + 'id', + 'it', + 'ja', + 'ko', + 'lt', + 'lv', + 'ml', + 'nb', + 'nl', + 'oc', + 'pa', + 'pl', + 'pt', + 'pt_BR', + 'ru', + 'sk', + 'sl', + 'sr', + 'sr@latin', + 'sv', + 'tg', + 'tr', + 'uk', + 'zh_CN', + 'zh_HK', + 'zh_TW', +] + +i18n.gettext(meson.project_name(), + languages: langs, preset: 'glib') diff --git a/po/ml.po b/po/ml.po new file mode 100644 index 0000000..ef53136 --- /dev/null +++ b/po/ml.po @@ -0,0 +1,190 @@ +# Malayalam translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Anish Sheela , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2013-10-24 08:14+0000\n" +"PO-Revision-Date: 2013-11-01 02:01+0530\n" +"Last-Translator: Anish Sheela \n" +"Language-Team: Malayalam \n" +"Language: ml\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../libs/net/grl-net-mock.c:85 +msgid "No mock definition found" +msgstr "" + +#: ../libs/net/grl-net-mock.c:97 +#, c-format +msgid "Could not find mock content %s" +msgstr "" + +#: ../libs/net/grl-net-mock.c:117 +msgid "Could not access mock content" +msgstr "" + +#: ../libs/net/grl-net-wc.c:468 +msgid "Cannot connect to the server" +msgstr "സേവകനുമായി ബന്ധപ്പെടാന്‍ കഴിയുന്നില്ല" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "പ്രോക്സി സേവകനുമായി ബന്ധപ്പെടാന്‍ കഴിയുന്നില്ല" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "തിരിച്ചറിയല്‍ ആവശ്യമാണു്: %s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "അപേക്ഷിച്ച വിഭവം കാണുന്നില്ല: %s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "ഡൌണ്‍ലോഡ് ചെയ്ത ശേഷം ഈ എന്‍ട്രി മാറ്റി: %s" + +#: ../libs/net/grl-net-wc.c:506 ../libs/net/grl-net-wc.c:615 +#: ../src/grl-source.c:1710 ../src/grl-source.c:1805 ../src/grl-source.c:1948 +#: ../src/grl-source.c:2184 ../src/grl-source.c:2304 +#, c-format +msgid "Operation was cancelled" +msgstr "പ്രക്രിയ റദ്ദാക്കിയിരിക്കുന്നു" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "" + +#: ../libs/net/grl-net-wc.c:619 ../libs/net/grl-net-wc.c:660 +msgid "Data not available" +msgstr "വിവരം ലഭ്യമല്ല" + +#: ../libs/net/grl-net-wc.c:713 +#, c-format +msgid "Invalid URL %s" +msgstr "അസാധുവായ URL %s" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "" + +#: ../src/grl-multiple.c:485 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "" + +#: ../src/grl-registry.c:328 ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "" + +#: ../src/grl-registry.c:340 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "" + +#: ../src/grl-registry.c:806 +#, c-format +msgid "Invalid plugin file %s" +msgstr "" + +#: ../src/grl-registry.c:817 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "സംയോജകം %s പ്രാവര്‍ത്തികമാക്കാന്‍ കഴിയുന്നില്ല" + +#: ../src/grl-registry.c:847 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "'%s' എന്ന സംയോജകം കാണുന്നില്ല" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "" + +#: ../src/grl-registry.c:1587 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "" + +#: ../src/grl-source.c:2633 +#, c-format +msgid "Some keys could not be written" +msgstr "" + +#: ../src/grl-source.c:2705 +#, c-format +msgid "None of the specified keys are writable" +msgstr "" + +#: ../src/grl-source.c:3997 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "" diff --git a/po/nb.po b/po/nb.po new file mode 100644 index 0000000..c636c50 --- /dev/null +++ b/po/nb.po @@ -0,0 +1,195 @@ +# Norwegian bokmål translation of grilo. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Kjartan Maraas , 2013-2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo 3.19.x\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-10 20:00+0100\n" +"PO-Revision-Date: 2016-01-10 20:01+0100\n" +"Last-Translator: Kjartan Maraas \n" +"Language-Team: Norwegian bokmål \n" +"Language: nb\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Ingen prototypedefinisjon funnet" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Fant ikke prototypeinnhold %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Kunne ikke aksessere prototypeinnhold: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Kunne ikke koble til tjener" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Kan ikke koble til proxytjener" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Ugyldig URI eller header for forespørsel: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autentisering kreves: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Forespurt ressurs ble ikke funnet: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Oppføringen har blitt endret siden den ble lastet ned: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operasjonen ble avbrutt" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Uhåndtert status: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Data er ikke tilgjengelig" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Ugyldig URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semikolon-separerte stier som inneholder tillegg for Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Kolon-separerte stier som inneholder tillegg for Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Kolon-separert liste med Grilo-tillegg som skal brukes" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Alternativer for Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Vis alternativer for Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Ingen søkbare ressurser tilgjengelig" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Kunne ikke slå opp medie for URI «%s»" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1376 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Tillegg «%s» er lastet allerede" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Klarte ikke å initiere tillegg fra %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadatanøkkel «%s» er allerede registrert i et annet format" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metadatanøkkel «%s» kan ikke registreres" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Kilde med id «%s» ble ikke funnet" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Klarte ikke å laste tillegg fra %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ugyldig fil for tillegg %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "«%s» er ikke en gyldig fil for tillegg" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Tillegg «%s» eksisterer allerede" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ugyldig sti %s" + +#: ../src/grl-registry.c:1325 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Alle konfigurerte stier for tillegg er ugyldige" + +#: ../src/grl-registry.c:1365 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Tillegg «%s» er ikke tilgjengelig" + +#: ../src/grl-registry.c:1593 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Tillegg ble ikke funnet: «%s»" + +#: ../src/grl-registry.c:1904 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Konfigurasjon av tillegg inneholder ikke referanse til «plugin-id»" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Noen nøkle kunne ikke skrives" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Ingen av de oppgitte nøklene er skrivbare" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Medie har ikke «id», kan ikke fjerne" diff --git a/po/ne.po b/po/ne.po new file mode 100644 index 0000000..a3c9723 --- /dev/null +++ b/po/ne.po @@ -0,0 +1,193 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: Gnome Nepali Translation Project\n" +"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-06-29 15:20+0000\n" +"PO-Revision-Date: 2017-08-16 14:21+0545\n" +"Language-Team: Nepali Translation Team \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.3\n" +"Last-Translator: Pawan Chitrakar \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: ne\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "कुनै नक्कली परिभाषा फेला परेन" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "नक्कली सामग्री %s फेला पार्न सकेन" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "नक्कली सामग्री पहुँच गर्न सकेन:%s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "सर्भरमा जडान गर्न सकिँदैन" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "प्रोक्सी सर्भर जडान गर्न सक्दैन" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI वा हेडरको अवैध अनुरोध URI वा हेडर: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "%s प्रमाणिकरण आवश्यक छ ।" + +#: ../libs/net/grl-net-wc.c:474 +#, fuzzy, c-format +msgid "The requested resource was not found: %s" +msgstr "%s फेला परेन" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "सञ्चालन रद्द भएको छ" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "डाटा उपलब्ध छैन" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "अवैध यूआरएल %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "ग्रिलो विकल्प" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "ग्रिलो विकल्प देखाउनुहोस्" + +#: ../src/grl-multiple.c:134 +#, fuzzy, c-format +msgid "No searchable sources available" +msgstr "स्रोत" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "URI '%s' को लागि मिडिया समाधान गर्न सकेन" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, fuzzy, c-format +msgid "Plugin '%s' is already loaded" +msgstr "अनुप्रयोग सुची पहिले नै लोड भइसकेको छ" + +#: ../src/grl-registry.c:488 +#, fuzzy, c-format +msgid "Failed to initialize plugin from %s" +msgstr "\"%s\" प्लगइनबाट यो सन्देश हो।" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "" + +#: ../src/grl-registry.c:543 +#, fuzzy, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "डाइरेक्टरी फेला पार्न सक्दैन %s" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "स्रोत %s पाइएन" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "प्लगइन लोड गर्न असफल: %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "अवैध प्लगइन फाइल %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' अवैध प्लगिन फाइल" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "प्लगिन '%s' पहिले नै अवस्थित छ" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "अवैध मार्ग %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "प्लगइन %s उपलब्ध छैन" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "प्लगिन फेला परेन : '%s'" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "" + +#: ../src/grl-source.c:2782 +#, fuzzy, c-format +msgid "Some keys could not be written" +msgstr "यो ठेगाना पुस्तिकामा ठेगाना लेख्न सकेन।" + +#: ../src/grl-source.c:2855 +#, fuzzy, c-format +msgid "None of the specified keys are writable" +msgstr "कुनै पनि निर्दिष्ट गरिएको फाँटले समावेश गर्दछ:" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "" diff --git a/po/nl.po b/po/nl.po new file mode 100644 index 0000000..698f5dd --- /dev/null +++ b/po/nl.po @@ -0,0 +1,199 @@ +# Dutch translation for grilo. +# Copyright (C) 2016 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Nathan Follens , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-06-22 21:11+0000\n" +"PO-Revision-Date: 2016-06-25 22:05+0100\n" +"Last-Translator: Justin van Steijn \n" +"Language-Team: Dutch \n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.6.10\n" + +# https://nl.wikipedia.org/wiki/Mockobject +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Geen mock-definitie gevonden" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Kon mock-inhoud %s niet vinden" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Kon mock-inhoud niet benaderen: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Kan niet verbinden met de server" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Kan niet verbinden met de proxyserver" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Ongeldige aanvraag-URI of header: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Authenticatie vereist: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "De gevraagde bron is niet gevonden: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Het item is gewijzigd sinds de download: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Bewerking geannuleerd" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Niet-afgehandelde status: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:644 +msgid "Data not available" +msgstr "Gegevens niet beschikbaar" + +#: ../libs/net/grl-net-wc.c:695 +#, c-format +msgid "Invalid URL %s" +msgstr "Ongeldige URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Paden met Grilo-plug-ins, gescheiden door puntkomma's" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Paden met Grilo-plug-ins, gescheiden door dubbelpunten" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Lijst van te gebruiken Grilo-plug-ins, gescheiden door dubbelpunten" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo-opties" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Grilo-opties tonen" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Geen doorzoekbare bronnen beschikbaar" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Kon media voor URI ‘%s’ niet oplossen" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Plug-in ‘%s’ is al geladen" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Plug-in initialiseren van %s mislukt" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Metadatasleutel ‘%s’ al geregistreerd in een ander formaat" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Metadatasleutel ‘%s’ kan niet geregistreerd worden" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Bron met id ‘%s’ niet gevonden" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Plug-in laden van %s mislukt" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ongeldig plug-inbestand %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "‘%s’ is geen geldig plug-inbestand" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Plug-in ‘%s’ bestaat al" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ongeldig pad %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Alle geconfigureerde plug-inpaden zijn ongeldig" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Plug-in ‘%s’ niet beschikbaar" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Plug-in niet gevonden: ‘%s’" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Plug-inconfiguratie bevat geen ‘plugin-id’-verwijzing" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Sommige sleutels konden niet geschreven worden" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Geen van de opgegeven sleutels zijn beschrijfbaar" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Media heeft geen ‘id’, kan niet verwijderen" diff --git a/po/oc.po b/po/oc.po new file mode 100644 index 0000000..b7c425b --- /dev/null +++ b/po/oc.po @@ -0,0 +1,206 @@ +# Occitan translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Cédric Valmary , 2015. +# Cédric Valmary (Tot en òc) , 2015. +# Cédric Valmary (totenoc.eu) , 2016. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-05-05 20:05+0000\n" +"PO-Revision-Date: 2016-05-05 21:50+0200\n" +"Last-Translator: Cédric Valmary (totenoc.eu) \n" +"Language-Team: Tot En Òc\n" +"Language: oc\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Virtaal 0.7.1\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Cap de definicion simulada es pas estada trobada" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Impossible de trobar lo contengut simulat %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Impossible d'accedir al contengut simulat : %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Impossible de se connectar al servidor" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Impossible de se connectar al servidor mandatari" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI de requèsta o d'entèsta invalida : %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autentificacion necessària : %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "La ressorsa demandada es pas estada trobada : %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "L'entrada es estada modificada dempuèi son telecargament : %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "L'operacion es estada anullada" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Estat pas pres en carga : %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Donadas indisponiblas" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s invalida" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Camins separats per de punts-virgulas que contenon d'empeutons Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Camins separats per de dos-punts que contenon d'empeutons Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "" +"Lista dels empeutons de Grilo separats per de dos-punts que devon èsser " +"utilizats" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opcions de Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Afichar las opcions de Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Cap de font que pòsca èsser recercada es pas disponibla" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Impossible de resòlvre lo mèdia per L'URI « %s »" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "L'empeuton « %s » es ja cargat" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Fracàs d'inicializacion de l'empeuton dempuèi %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "" +"La clau « %s » de las metadonadas es ja enregistrada dins un autre format" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "La clau « %s » de las metadonadas pòt pas èsser enregistrada" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "La font amb l'identificant « %s » es pas estada trobada" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Fracàs de cargament de l'empeuton dempuèi %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Fichièr %s de l'empeuton invalid" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "« %s » es pas un fichièr d'empeuton valid" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "L'empeuton « %s » existís ja" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Camin %s invalid" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Totes los camins de l'empeuton configurats son invalids" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "L'empeuton « %s » es pas disponible" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Empeuton pas trobat : « %s »" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "La configuracion de l'empeuton conten pas la referéncia « plugin-id »" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Qualques claus an pas pogut èsser enregistradas" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Cap de las claus especificadas es pas enregistrabla" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Lo mèdia a pas d'identificant « id », impossible de lo levar" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Impossible de cargar l'empeuton « %s »" diff --git a/po/pa.po b/po/pa.po new file mode 100644 index 0000000..3cbc646 --- /dev/null +++ b/po/pa.po @@ -0,0 +1,3592 @@ +# translation of seahorse.HEAD.po to Punjabi +# This file is distributed under the same license as the PACKAGE package. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. +# +# ASB , 2004, 2007. +# Amanpreet Singh Alam , 2008. +# A S Alam , 2009, 2010, 2011, 2012, 2013, 2014. +msgid "" +msgstr "" +"Project-Id-Version: seahorse.HEAD\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2013-12-19 13:19+0000\n" +"PO-Revision-Date: 2014-09-21 09:53-0500\n" +"Last-Translator: A S Alam \n" +"Language-Team: Punjabi/Panjabi \n" +"Language: pa\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.5\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "ਕੋਈ ਨਕਲੀ ਪਰਿਭਾਸ਼ਾ ਨਹੀਂ ਮਿਲੀ" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "ਨਕਲੀ ਸਮਗਰੀ %s ਲੱਭੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#: ../libs/net/grl-net-mock.c:118 +msgid "Could not access mock content" +msgstr "ਨਕਲੀ ਸਮਗਰੀ ਵਰਤੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#: ../libs/net/grl-net-wc.c:468 +#| msgid "Couldn't connect to seahorse-daemon" +msgid "Cannot connect to the server" +msgstr "ਸਰਵਰ ਨਾਲ ਜੁੜਿਆ ਨਹੀਂ ਜਾ ਸਕਦਾ" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "ਪਰਾਕਸੀ ਸਰਵਰ ਨਾਲ ਕੁਨੈਕਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਦਾ" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +#| msgid "Invalid key type for decryption: %s" +msgid "Invalid request URI or header: %s" +msgstr "ਗਲਤ ਮੰਗਿਆ URI ਜਾਂ ਹੈੱਡਰ: %s" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "ਪਰਮਾਣਕਿਤਾ ਲੋੜੀਦੀ: %s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "ਮੰਗਿਆ ਸਰੋਤ ਨਹੀਂ ਲੱਭਿਆ: %s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "ਡਾਊਨਲੋਡ ਕਰਨ ਦੇ ਬਾਅਦ ਐਂਟਰੀ ਨੂੰ ਬਦਲਿਆ ਗਿਆ ਹੈ: %s" + +#: ../libs/net/grl-net-wc.c:506 ../libs/net/grl-net-wc.c:615 +#: ../src/grl-source.c:1710 ../src/grl-source.c:1805 ../src/grl-source.c:1948 +#: ../src/grl-source.c:2184 ../src/grl-source.c:2304 +#, c-format +#| msgid "The operation was cancelled" +msgid "Operation was cancelled" +msgstr "ਓਪਰੇਸ਼ਨ ਰੱਦ ਕੀਤਾ ਗਿਆ" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "ਅਣ-ਹੈਂਡਲ ਹਾਲਤ: %s" + +#: ../libs/net/grl-net-wc.c:619 ../libs/net/grl-net-wc.c:660 +#| msgid "Unavailable" +msgid "Data not available" +msgstr "ਡਾਟਾ ਮੌਜੂਦ ਨਹੀਂ" + +#: ../libs/net/grl-net-wc.c:713 +#, c-format +#| msgid "Invalid key id: %s" +msgid "Invalid URL %s" +msgstr "ਗਲਤ URL %s" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "ਗਰੀਲੋ ਪਲੱਗਇਣ ਰੱਖਣ ਵਾਲੇ ਮਾਰਗ (ਅਰਧ-ਵਿਰਾਮ ਚਿੰਨ੍ਹ ਨਾਲ ਵੱਖਰੇ)" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "ਗਰੀਲੋ ਪਲੱਗਇਣ ਰੱਖਣ ਵਾਲੇ ਮਾਰਗ (ਕਾਲਨ ਚਿੰਨ੍ਹ ਨਾਲ ਵੱਖਰੇ ਕੀਤੇ)" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "ਵਰਤਣ ਲਈ ਗਰੀਲੋ ਪਲੱਗਇਣ ਦੀ ਸੂਚੀ (ਕਾਲਨ ਚਿੰਨ੍ਹ ਨਾਲ ਵੱਖਰੇ ਕੀਤੇ)" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "ਗਰੀਲੋ ਚੋਣਾਂ" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "ਗਰੀਲੋ ਚੋਣਾਂ ਵੇਖਾਓ" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "ਕੋਈ ਖੋਜ ਯੋਗ ਸਰੋਤ ਮੌਜੂਦ ਨਹੀਂ" + +#: ../src/grl-multiple.c:485 +#, c-format +#| msgid "Couldn't resolve address: %s" +msgid "Could not resolve media for URI '%s'" +msgstr "URI '%s' ਲਈ ਮੀਡਿਆ ਲੱਭਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#: ../src/grl-registry.c:328 ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "ਪਲੱਗਇਨ '%s' ਪਹਿਲਾਂ ਹੀ ਲੋਡ ਹੈ" + +#: ../src/grl-registry.c:340 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "%s ਤੋਂ ਪਲੱਗਇਨ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਫੇਲ੍ਹ ਹੈ" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "id '%s' ਨਾਲ ਸਰੋਤ ਲੱਭਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "%s ਤੋਂ ਪਲੱਗਇਨ ਲੋਡ ਕਰਨ ਲਈ ਫੇਲ੍ਹ ਹੈ" + +#: ../src/grl-registry.c:806 +#, c-format +#| msgid "Invalid key id: %s" +msgid "Invalid plugin file %s" +msgstr "ਗਲਤ ਪਲੱਗਇਨ ਫਾਇਲ %s" + +#: ../src/grl-registry.c:817 +#, c-format +#| msgid "File is not a valid .desktop file" +msgid "'%s' is not a valid plugin file" +msgstr "'%s' ਜਾਇਜ਼ ਪਲੱਗਇਨ ਫਾਇਲ ਨਹੀਂ ਹੈ" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "'%s' ਪਲੱਗਇਨ ਲੋਡ ਕਰਨ ਲਈ ਅਸਮਰੱਥ" + +#: ../src/grl-registry.c:847 +#, c-format +#| msgid "The item already exists" +msgid "Plugin '%s' already exists" +msgstr "ਪਲੱਗਇਨ '%s' ਪਹਿਲਾਂ ਹੀ ਮੌਜੂਦ ਹੈ" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "ਸਭ ਸੰਰਚਨਾ-ਯੋਗ ਪਲੱਗਇਨ ਮਾਰਗ ਮੌਜੂਦ ਨਹੀਂ" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "ਪਲੱਗਇਨ '%s' ਮੌਜੂਦ ਨਹੀਂ" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "ਪਲੱਗਇਨ ਨਹੀਂ ਲੱਭੀ: '%s'" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "ਮੇਟਾਡਾਟਾ ਕੁੰਜੀ '%s' ਰਜਿਸਟਰ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ" + +#: ../src/grl-registry.c:1587 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "ਪਲੱਗਇਨ ਸੰਰਚਨਾ ਵਿੱਚ 'plugin-id' ਹਵਾਲਾ ਮੌਜੂਦ ਨਹੀਂ ਹੈ" + +#: ../src/grl-source.c:2633 +#, c-format +msgid "Some keys could not be written" +msgstr "ਕੁਝ ਕੁੰਜੀਆਂ ਨੂੰ ਲਿਖਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#: ../src/grl-source.c:2705 +#, c-format +msgid "None of the specified keys are writable" +msgstr "ਤਹਿ ਕੀਤੀਆਂ ਕੁੰਜੀਆਂ ਵਿੱਚੋਂ ਕੋਈ ਵੀ ਲਿਖਣਯੋਗ ਨਹੀਂ ਹੈ" + +#: ../src/grl-source.c:3997 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "ਮੀਡਿਆ ਦਾ ਕੋਈ 'id' ਨਹੀਂ ਹੈ, ਹਟਾਇਆ ਨਹੀਂ ਜਾ ਸਕਦਾ" + +#~ msgid "Contributions:" +#~ msgstr "ਯੋਗਦਾਨ:" + +#~ msgid "Passwords and Keys" +#~ msgstr "ਪਾਸਵਰਡ ਅਤੇ ਕੁੰਜੀਆਂ" + +#~ msgid "translator-credits" +#~ msgstr "" +#~ "ਅਮਨਪਰੀਤ ਸਿੰਘ ਆਲਮ\n" +#~ "ਪੰਜਾਬ ਓਪਨ ਸੋਰਸ ਟੀਮ ਦਾ ਉੱਦਮ\n" +#~ "http://www.satluj.com/" + +#~ msgid "Seahorse Project Homepage" +#~ msgstr "ਸੀ-ਹਾਰਸ ਪ੍ਰੋਜੈਕਟ ਮੇਨ ਪੇਜ਼" + +#~ msgid "Cannot delete" +#~ msgstr "ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't export keys" +#~ msgstr "ਕੁੰਜੀ ਐਕਸਪੋਰਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't export data" +#~ msgstr "ਡਾਟਾ ਐਕਸਪੋਰਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Could not display help: %s" +#~ msgstr "ਮੱਦਦ ਵੇਖਾਈ ਨਹੀਂ ਜਾ ਸਕੀ: %s" + +#~ msgid "_File" +#~ msgstr "ਫਾਇਲ(_F)" + +#~ msgid "E_xport..." +#~ msgstr "ਐਕਸਪੋਰਟ(_x)..." + +#~ msgid "Export to a file" +#~ msgstr "ਫਾਇਲ ਵਿੱਚ ਐਕਸਪੋਰਟ" + +#~ msgid "_Edit" +#~ msgstr "ਸੋਧ(_E)" + +#~ msgid "Copy to the clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਵਿੱਚ ਕਾਪੀ ਕਰੋ" + +#~ msgid "_Delete" +#~ msgstr "ਹਟਾਓ(_D)" + +#~ msgid "Delete selected items" +#~ msgstr "ਚੁਣੀਆਂ ਆਈਟਮਾਂ ਹਟਾਓ" + +#~ msgid "Show the properties of this item" +#~ msgstr "ਇਹ ਆਈਟਮ ਦੀ ਵਿਸ਼ੇਸ਼ਤਾ ਵੇਖਾਓ" + +#~ msgid "Show the properties of this keyring" +#~ msgstr "ਇਹ ਕੀਰਿੰਗ ਦੀ ਵਿਸ਼ੇਸ਼ਤਾ ਵੇਖਾਓ" + +#~ msgid "Prefere_nces" +#~ msgstr "ਮੇਰੀ ਪਸੰਦ(_n)" + +#~ msgid "Change preferences for this program" +#~ msgstr "ਇਹ ਪਰੋਗਰਾਮ ਲਈ ਪਸੰਦ ਬਦਲੋ" + +#~ msgid "_View" +#~ msgstr "ਵੇਖੋ(_V)" + +#~ msgid "_Help" +#~ msgstr "ਮੱਦਦ(_H)" + +#~ msgid "About this program" +#~ msgstr "ਇਹ ਪਰੋਗਰਾਮ ਬਾਰੇ" + +#~ msgid "_Contents" +#~ msgstr "ਸਮੱਗਰੀ(_C)" + +#~ msgid "Show Seahorse help" +#~ msgstr "ਸੀ-ਹਾਰਸ ਮੱਦਦ ਵੇਖੋ" + +#~ msgid "Export" +#~ msgstr "ਐਕਸਪੋਰਟ" + +#~ msgid "Passwords" +#~ msgstr "ਪਾਸਵਰਡ" + +#~ msgid "Stored personal passwords, credentials and secrets" +#~ msgstr "ਸੰਭਾਲੇ ਹੋਏ ਨਿੱਜੀ ਪਾਸਵਰਡ, ਸਨਦ (credential) ਅਤੇ ਭੇਦ" + +#~ msgid "New password keyring" +#~ msgstr "ਨਵਾਂ ਪਾਸਵਰਡ ਕੀਰਿੰਗ" + +#~ msgid "Used to store application and network passwords" +#~ msgstr "ਐਪਲੀਕੇਸ਼ਨ ਅਤੇ ਨੈੱਟਵਰਕ ਪਾਸਵਰਡ ਸੰਭਾਲਣ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ" + +#~ msgid "New password..." +#~ msgstr "ਨਵਾਂ ਪਾਸਵਰਡ..." + +#~ msgid "Safely store a password or secret." +#~ msgstr "ਪਾਸਵਰਡ ਜਾਂ ਭੇਦ ਸੁਰੱਖਿਅਤ ਢੰਗ ਨਾਲ ਸਟੋਰ ਕਰੋ।" + +#~ msgid "Password Keyring" +#~ msgstr "ਪਾਸਵਰਡ ਕੀਰਿੰਗ" + +#~ msgid "Stored Password" +#~ msgstr "ਸਟੋਰ ਕੀਤੇ ਪਾਸਵਰਡ" + +#~ msgid "Add Password" +#~ msgstr "ਪਾਸਵਰਡ ਸ਼ਾਮਲ" + +#~ msgid "Couldn't add item" +#~ msgstr "ਆਈਟਮ ਜੋੜੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Access a network share or resource" +#~ msgstr "ਇੱਕ ਨੈੱਟਵਰਕ ਸਾਂਝ ਜਾਂ ਸਰੋਤ ਵਰਤੋਂ" + +#~ msgid "Access a website" +#~ msgstr "ਇੱਕ ਵੈੱਬਸਾਇਟ ਵਰਤੋਂ" + +#~ msgid "Unlocks a PGP key" +#~ msgstr "ਇੱਕ PGP ਕੁੰਜੀ ਅਣ-ਲਾਕ ਕਰੋ" + +#~ msgid "Unlocks a Secure Shell key" +#~ msgstr "ਇੱਕ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ (SSH) ਕੁੰਜੀ" + +#~ msgid "Saved password or login" +#~ msgstr "ਸੰਭਾਲਿਆ ਪਾਸਵਰਡ ਜਾਂ ਲਾਗਇਨ" + +#~ msgid "Network Credentials" +#~ msgstr "ਨੈੱਟਵਰਕ ਕਰਿਡਿਨਟੀਸ" + +#~ msgid "Password" +#~ msgstr "ਪਾਸਵਰਡ" + +#~ msgid "Couldn't change password." +#~ msgstr "ਪਾਸਵਰਡ ਬਦਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ ਹੈ।" + +#~ msgid "Couldn't set description." +#~ msgstr "ਵੇਰਵਾ ਸੈੱਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ ਹੈ।" + +#~ msgid "IM account password for " +#~ msgstr "ਇਸ ਲਈ IM ਅਕਾਊਂਟ ਪਾਸਵਰਡ " + +#~ msgid "Password or secret" +#~ msgstr "ਪਾਸਵਰਡ ਜਾਂ ਭੇਦ" + +#~ msgid "Network password" +#~ msgstr "ਨੈੱਟਵਰਕ ਪਾਸਵਰਡ" + +#~ msgid "Stored note" +#~ msgstr "ਸੰਭਾਲਿਆ ਨੋਟ" + +#~ msgid "Keyring password" +#~ msgstr "ਕੀਰਿੰਗ ਪਾਸਵਰਡ" + +#~ msgid "Encryption key password" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀ ਪਾਸਵਰਡ" + +#~ msgid "Key storage password" +#~ msgstr "ਕੁੰਜੀ ਸਟੋਰੇਜ਼ ਪਾਸਵਰਡ" + +#~ msgid "Google Chrome password" +#~ msgstr "ਗੂਗਲ ਕਰੋਮ ਪਾਸਵਰਡ" + +#~ msgid "Gnome Online Accounts password" +#~ msgstr "ਗਨੋਮ ਆਨਲਾਈਨ ਅਕਾਊਂਟ ਪਾਸਵਰਡ" + +#~ msgid "Telepathy password" +#~ msgstr "ਟੈਲੀਪੈਥੀ ਪਾਸਵਰਡ" + +#~ msgid "Instant messaging password" +#~ msgstr "ਤੁਰੰਤ ਮੈਸਜ਼ਿੰਗ ਪਾਸਵਰਡ" + +#~ msgid "Network Manager secret" +#~ msgstr "ਨੈੱਟਵਰਕ ਮੈਨੇਜਰ ਭੇਦ" + +#~ msgid "Are you sure you want to delete the password '%s'?" +#~ msgstr "ਕੀ ਤੁਸੀਂ '%s' ਪਾਸਵਰਡ ਨੂੰ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Are you sure you want to delete %d password?" +#~ msgid_plural "Are you sure you want to delete %d passwords?" +#~ msgstr[0] "ਕੀ ਤੁਸੀਂ %d ਪਾਸਵਰਡਾਂ ਨੂੰ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" +#~ msgstr[1] "ਕੀ ਤੁਸੀਂ %d ਪਾਸਵਰਡਾਂ ਨੂੰ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Add Password Keyring" +#~ msgstr "ਕੀਰਿੰਗ ਪਾਸਵਰਡ ਸ਼ਾਮਲ" + +#~ msgid "Couldn't add keyring" +#~ msgstr "ਕੀਰਿੰਗ ਸ਼ਾਮਲ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "A keyring that is automatically unlocked on login" +#~ msgstr "ਇੱਕ ਕੀਰਿੰਗ, ਜੋ ਕਿ ਲਾਗਇਨ ਸਮੇਂ ਆਪਣੇ ਆਪ ਹੀ ਅਣ-ਲਾਕ ਹੋਵੇ" + +#~ msgid "A keyring used to store passwords" +#~ msgstr "ਪਾਸਵਰਡ ਸੰਭਾਲਣ ਲਈ ਵਰਤਣ ਲਈ ਕੀਰਿੰਗ" + +#~ msgid "Couldn't set default keyring" +#~ msgstr "ਡਿਫਾਲਟ ਕੀਰਿੰਗ ਸੈੱਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't change keyring password" +#~ msgstr "ਕੀਰਿੰਗ ਪਾਸਵਰਡ ਬਦਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#~ msgid "_Set as default" +#~ msgstr "ਡਿਫਾਲਟ ਸੈੱਟ ਕਰੋ(_S)" + +#~ msgid "Applications usually store new passwords in the default keyring." +#~ msgstr "ਐਪਲੀਕੇਸ਼ਨਾਂ ਅਕਸਰ ਨਵੇਂ ਪਾਸਵਰਡ ਡਿਫਾਲਟ ਕੀਰਿੰਗ ਵਿੱਚ ਸੰਭਾਲਦੀਆਂ ਹਨ।" + +#~ msgid "Change _Password" +#~ msgstr "ਪਾਸਵਰਡ ਬਦਲੋ(_P)" + +#~ msgid "Change the unlock password of the password storage keyring" +#~ msgstr "ਪਾਸਵਰਡ ਸਟੋਰੇਜ਼ ਕੀਰਿੰਗ ਲਈ ਅਣ-ਲਾਕ ਪਾਸਵਰਡ ਬਦਲੋ" + +#~ msgid "Are you sure you want to delete the password keyring '%s'?" +#~ msgstr "ਕੀ ਤੁਸੀਂ '%s' ਕੀਰਿੰਗ ਪਾਸਵਰਡ ਨੂੰ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "I understand that all items will be permanently deleted." +#~ msgstr "ਮੈਂ ਸਮਝਦਾ/ਸਮਝਦੀ ਹਾਂ ਕਿ ਸਭ ਆਈਟਮਾਂ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਈਆਂ ਜਾਣਗੀਆਂ।" + +#~ msgid "" +#~ "Please choose a name for the new keyring. You will be prompted for an " +#~ "unlock password." +#~ msgstr "ਨਵੇਂ ਕੀਰਿੰਗ ਲਈ ਇੱਕ ਨਾਂ ਦਿਓ। ਤੁਹਾਨੂੰ ਇੱਕ ਅਣ-ਲਾਕ ਪਾਸਵਰਡ ਲਈ ਪੁੱਛਿਆ ਜਾਵੇਗਾ।" + +#~ msgid "New Keyring Name:" +#~ msgstr "ਨਵਾਂ ਕੀਰਿੰਗ ਨਾਂ:" + +#~ msgid "The host name or address of the server." +#~ msgstr "ਸਰਵਰ ਦਾ ਹੋਸਟ ਨਾਂ ਜਾਂ ਐਡਰੈੱਸ।" + +#~ msgid "_Description:" +#~ msgstr "ਵੇਰਵਾ(_D):" + +#~ msgid "_Password:" +#~ msgstr "ਪਾਸਵਰਡ(_P):" + +#~ msgid "_Show Password" +#~ msgstr "ਪਾਸਵਰਡ ਵੇਖੋ(_S)" + +#~ msgid "_Keyring:" +#~ msgstr "ਕੀਰਿੰਗ(_K):" + +#~ msgid "Use:" +#~ msgstr "ਵਰਤੋਂ:" + +#~ msgid "Type:" +#~ msgstr "ਟਾਈਪ:" + +#~ msgid "Server:" +#~ msgstr "ਸਰਵਰ:" + +#~ msgid "Login:" +#~ msgstr "ਲਾਗਇਨ:" + +#~ msgid "Show pass_word" +#~ msgstr "ਪਾਸਵਰਡ ਵੇਖੋ(_w)" + +#~ msgid "Password:" +#~ msgstr "ਪਾਸਵਰਡ:" + +#~ msgid "Key" +#~ msgstr "ਕੁੰਜੀ" + +#~ msgid "Technical Details:" +#~ msgstr "ਤਕਨੀਕੀ ਵੇਰਵਾ:" + +#~ msgid "Details" +#~ msgstr "ਵੇਰਵਾ" + +#~ msgid "Name:" +#~ msgstr "ਨਾਂ:" + +#~ msgid "Created:" +#~ msgstr "ਬਣਾਇਆ:" + +#~ msgid "Keyring" +#~ msgstr "ਕੀਰਿੰਗ" + +#~ msgid "Display flags" +#~ msgstr "ਡਿਸਪਲੇਅ ਨਿਸ਼ਾਨ" + +#~ msgid "Displayed date and/or time properties" +#~ msgstr "ਵੇਖਾਏ ਜਾਂਦੇ ਮਿਤੀ ਅਤੇ/ਜਾਂ ਟਾਈਮ ਵਿਸ਼ੇਸ਼ਤਾ" + +#~ msgid "Lazy mode" +#~ msgstr "ਸੁਸਤ ਮੋਡ" + +#~ msgid "Lazy mode doesn't normalize entered date and time values" +#~ msgstr "ਸੁਸਤ ਮੋਡ ਆਮ ਤੌਰ ਉੱਤੇ ਮਿਤੀ ਅਤੇ ਟਾਈਮ ਮੁੱਲ ਦਿੱਤੇ ਨਹੀਂ ਜਾਂਦੇ ਹਨ" + +#~ msgid "Year" +#~ msgstr "ਸਾਲ" + +#~ msgid "Displayed year" +#~ msgstr "ਵੇਖਾਇਆ ਸਾਲ" + +#~ msgid "Month" +#~ msgstr "ਮਹੀਨਾ" + +#~ msgid "Displayed month" +#~ msgstr "ਵੇਖਾਇਆ ਮਹੀਨਾ" + +#~ msgid "Day" +#~ msgstr "ਦਿਨ" + +#~ msgid "Displayed day of month" +#~ msgstr "ਮਹੀਨੇ ਦਾ ਵੇਖਾਇਆ ਦਿਨ" + +#~ msgid "Hour" +#~ msgstr "ਘੰਟਾ" + +#~ msgid "Displayed hour" +#~ msgstr "ਵੇਖਾਇਆ ਘੰਟਾ" + +#~ msgid "Minute" +#~ msgstr "ਮਿੰਟ" + +#~ msgid "Displayed minute" +#~ msgstr "ਵੇਖਾਇਆ ਮਿੰਟ" + +#~ msgid "Second" +#~ msgstr "ਸਕਿੰਟ" + +#~ msgid "Displayed second" +#~ msgstr "ਵੇਖਾਇਆ ਸਕਿੰਟ" + +#~ msgid "Lower limit year" +#~ msgstr "ਹੇਠਲਾ ਸੀਮਾ ਸਾਲ" + +#~ msgid "Year part of the lower date limit" +#~ msgstr "ਹੇਠਲੀ ਮਿਤੀ ਲਿਮਟ ਦਾ ਸਾਲ ਭਾਗ" + +#~ msgid "Upper limit year" +#~ msgstr "ਉਤਲੀ ਸੀਮਾ ਸਾਲ" + +#~ msgid "Year part of the upper date limit" +#~ msgstr "ਉਤਲੀ ਮਿਤੀ ਸੀਮਾ ਦਾ ਸਾਲ ਭਾਗ" + +#~ msgid "Lower limit month" +#~ msgstr "ਹੇਠਲੀ ਸੀਮਾ ਮਹੀਨਾ" + +#~ msgid "Month part of the lower date limit" +#~ msgstr "ਹੇਠਲੀ ਮਿਤੀ ਸੀਮਾ ਦਾ ਮਹੀਨਾ ਭਾਗ" + +#~ msgid "Upper limit month" +#~ msgstr "ਉਤਲੀ ਸੀਮਾ ਮਹੀਨਾ" + +#~ msgid "Month part of the upper date limit" +#~ msgstr "ਉਤਲੀ ਮਿਤੀ ਸੀਮਾ ਦਾ ਮਹੀਨਾ ਭਾਗ" + +#~ msgid "Lower limit day" +#~ msgstr "ਹੇਠਲੀ ਸੀਮਾ ਦਿਨ" + +#~ msgid "Day of month part of the lower date limit" +#~ msgstr "ਹੇਠਲੀ ਮਿਤੀ ਸੀਮਾ ਦਾ ਮਹੀਨੇ ਦਾ ਦਿਨ" + +#~ msgid "Upper limit day" +#~ msgstr "ਉਤਲੀ ਸੀਮਾ ਦਿਨ" + +#~ msgid "Day of month part of the upper date limit" +#~ msgstr "ਉਤਲੀ ਮਿਤੀ ਸੀਮਾ ਦਾ ਮਹੀਨਾ ਦਾ ਦਿਨ" + +#~ msgid "Lower limit hour" +#~ msgstr "ਹੇਠਲੀ ਸੀਮਾ ਘੰਟਾ" + +#~ msgid "Hour part of the lower time limit" +#~ msgstr "ਹੇਠਲੀ ਸਮਾਂ ਸੀਮਾ ਦਾ ਘੰਟਾ ਭਾਗ" + +#~ msgid "Upper limit hour" +#~ msgstr "ਉਤਲੀ ਸੀਮਾ ਘੰਟਾ" + +#~ msgid "Hour part of the upper time limit" +#~ msgstr "ਉਤਲਾ ਟਾਈਮ ਲਿਮਟ ਦਾ ਘੰਟਾ ਭਾਗ" + +#~ msgid "Lower limit minute" +#~ msgstr "ਹੇਠਲਾ ਸੀਮਾ ਮਿੰਟ" + +#~ msgid "Minute part of the lower time limit" +#~ msgstr "ਹੇਠਲੀ ਸਮਾਂ ਸੀਮਾ ਦਾ ਮਿੰਟ ਭਾਗ" + +#~ msgid "Upper limit minute" +#~ msgstr "ਉਤਲੀ ਸੀਮਾ ਮਿੰਟ" + +#~ msgid "Minute part of the upper time limit" +#~ msgstr "ਉਤਲੀ ਸਮਾਂ ਸੀਮਾ ਦਾ ਮਿੰਟ ਭਾਗ" + +#~ msgid "Lower limit second" +#~ msgstr "ਹੇਠਲੀ ਸੀਮਾ ਸਕਿੰਟ" + +#~ msgid "Second part of the lower time limit" +#~ msgstr "ਹੇਠਲੀ ਸਮਾਂ ਸੀਮਾ ਦਾ ਸਕਿੰਟ ਭਾਗ" + +#~ msgid "Upper limit second" +#~ msgstr "ਉਤਲੀ ਸੀਮਾ ਸਕਿੰਟ" + +#~ msgid "Second part of the upper time limit" +#~ msgstr "ਉਤਲੀ ਸਮਾਂ ਸੀਮਾ ਦਾ ਸਕਿੰਟ ਭਾਗ" + +#~ msgid "calendar:week_start:0" +#~ msgstr "0" + +#~ msgid "Date" +#~ msgstr "ਮਿਤੀ" + +#~ msgid "Enter the date directly" +#~ msgstr "ਮਿਤੀ ਸਿੱਧੀ ਲਿਖੋ" + +#~ msgid "Select Date" +#~ msgstr "ਮਿਤੀ ਚੁਣੋ" + +#~ msgid "Select the date from a calendar" +#~ msgstr "ਇੱਕ ਕੈਲੰਡਰ ਤੋਂ ਮਿਤੀ ਚੁਣੋ" + +#~ msgid "Time" +#~ msgstr "ਸਮਾਂ" + +#~ msgid "Enter the time directly" +#~ msgstr "ਸਿੱਧਾ ਸਮਾਂ ਦਿਓ" + +#~ msgid "Select Time" +#~ msgstr "ਸਮਾਂ ਚੁਣੋ" + +#~ msgid "Select the time from a list" +#~ msgstr "ਲਿਸਟ 'ਚੋਂ ਸਮਾਂ ਚੁਣੋ" + +#~ msgid "24hr: no" +#~ msgstr "24hr: no" + +#~ msgid "AM" +#~ msgstr "AM" + +#~ msgid "PM" +#~ msgstr "PM" + +#~ msgid "%02d:%02d:%02d %s" +#~ msgstr "%02d:%02d:%02d %s" + +#~ msgid "%02d:%02d %s" +#~ msgstr "%02d:%02d %s" + +#~ msgid "%02d:%02d:%02d" +#~ msgstr "%02d:%02d:%02d" + +#~ msgid "%02d:%02d" +#~ msgstr "%02d:%02d" + +#~ msgid "%04d-%02d-%02d" +#~ msgstr "%04d-%02d-%02d" + +#~ msgid "%u:%u:%u" +#~ msgstr "%u:%u:%u" + +#~ msgid "initial temporary item" +#~ msgstr "ਸ਼ੁਰੂਆਤੀ ਆਰਜ਼ੀ ਆਈਟਮ" + +#~ msgid "Add Key Server" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ ਸ਼ਾਮਿਲ" + +#~ msgid "Key Server Type:" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ ਟਾਈਪ:" + +#~ msgid "Host:" +#~ msgstr "ਹੋਸਟ:" + +#~ msgid ":" +#~ msgstr ":" + +#~ msgid "The port to access the server on." +#~ msgstr "ਸਰਵਰ ਦੀ ਵਰਤੋਂ ਲਈ ਪੋਰਟ ਹੈ।" + +#~ msgid "Version of this application" +#~ msgstr "ਇਸ ਐਪਲੀਕੇਸ਼ਨ ਦਾ ਵਰਜਨ" + +#~ msgid "- System Settings" +#~ msgstr "- ਸਿਸਟਮ ਸੈਟਿੰਗ" + +#~ msgid "Don't display a window" +#~ msgstr "ਵਿੰਡੋ ਨਾ ਵੇਖਾਓ" + +#~ msgid "Enter PIN or password for: %s" +#~ msgstr "%s: ਲਈ ਪਿੰਨ ਜਾਂ ਪਾਸਵਰਡ ਦਿਓ" + +#~ msgid "Confirm:" +#~ msgstr "ਪੁਸ਼ਟੀ:" + +#~ msgid "Not a valid Key Server address." +#~ msgstr "ਇੱਕ ਠੀਕ ਕੁੰਜੀ ਸਰਵਰ ਐਡਰੈੱਸ ਨਹੀਂ ਹੈ।" + +#~ msgid "" +#~ "For help contact your system adminstrator or the administrator of the key " +#~ "server." +#~ msgstr "ਮੱਦਦ ਲਈ ਆਪਣੇ ਸਿਸਟਮ ਪਰਸ਼ਾਸ਼ਕ ਜਾਂ ਕੁੰਜੀ ਸਰਵਰ ਦੇ ਪਰਸ਼ਾਸ਼ਕ ਨਾਲ ਸੰਪਰਕ ਕਰੋ।" + +#~ msgid "URL" +#~ msgstr "URL" + +#~ msgid "Custom" +#~ msgstr "ਕਸਟਮ" + +#~ msgid "None: Don't publish keys" +#~ msgstr "ਕੋਈ ਨਹੀਂ: ਕੁੰਜੀਆਂ ਪਬਲਿਸ਼ ਨਾ ਕਰੋ" + +#~ msgid "Preferences" +#~ msgstr "ਮੇਰੀ ਪਸੰਦ" + +#~ msgid "_Find keys via:" +#~ msgstr "ਕੁੰਜੀ ਖੋਜੋ ਰਾਹੀਂ(_F):" + +#~ msgid "_Publish keys to:" +#~ msgstr "ਕੁੰਜੀਆਂ ਪਬਲਿਸ਼ ਕਰੋ(_P):" + +#~ msgid "Automatically retrieve keys from _key servers" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ ਤੋਂ ਕੁੰਜੀਆਂ ਆਟੋਮੈਟਿਕ ਹੀ ਲਵੋ(_k)" + +#~ msgid "Automatically synchronize _modified keys with key servers" +#~ msgstr "ਸੋਧੀਆਂ ਕੁੰਜੀਆਂ ਨੂੰ ਕੁੰਜੀ ਸਰਵਰ ਨਾਲ ਆਟੋਮੈਟਿਕ ਸਮਕਾਲੀ ਕਰੋ(_m)" + +#~ msgid "Key Servers" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ" + +#~ msgctxt "Validity" +#~ msgid "Unknown" +#~ msgstr "ਅਣਜਾਣ" + +#~ msgctxt "Validity" +#~ msgid "Never" +#~ msgstr "ਕਦੇ ਨਹੀਂ" + +#~ msgctxt "Validity" +#~ msgid "Marginal" +#~ msgstr "ਅਧੂਰਾ" + +#~ msgctxt "Validity" +#~ msgid "Full" +#~ msgstr "ਪੂਰਾ" + +#~ msgctxt "Validity" +#~ msgid "Ultimate" +#~ msgstr "ਬੇਅੰਤ" + +#~ msgctxt "Validity" +#~ msgid "Disabled" +#~ msgstr "ਆਯੋਗ" + +#~ msgctxt "Validity" +#~ msgid "Revoked" +#~ msgstr "ਮਨਸੂਖ" + +#~ msgid "Never E_xpires" +#~ msgstr "ਕਦੇ ਮਿਆਦ ਨਾ ਪੁੱਗੇ(_x)" + +#~ msgid "If key never expires" +#~ msgstr "ਜੇ ਕੁੰਜੀ ਦੀ ਮਿਆਦ ਕਦੇ ਨਾ ਪੁੱਗੇ" + +#~ msgid "Key _Type:" +#~ msgstr "ਕੁੰਜੀ ਕਿਸਮ(_T):" + +#~ msgid "Key _Length:" +#~ msgstr "ਕੁੰਜੀ ਲੰਬਾਈ(_L):" + +#~ msgid "Expiration Date:" +#~ msgstr "ਮਿਆਦ:" + +#~ msgid "Length of Key" +#~ msgstr "ਕੁੰਜੀ ਦੀ ਲੰਬਾਈ" + +#~ msgid "Generate a new subkey" +#~ msgstr "ਇੱਕ ਨਵੀਂ ਸਬ-ਕੁੰਜੀ ਬਣਾਓ" + +#~ msgid "Add User ID" +#~ msgstr "ਯੂਜ਼ਰ ID ਸ਼ਾਮਲ" + +#~ msgid "Must be at least 5 characters long" +#~ msgstr "ਘੱਟੋ-ਘੱਟ 5 ਅੱਖਰ ਹੋਣੇ ਲਾਜ਼ਮੀ ਹਨ" + +#~ msgid "Optional email address" +#~ msgstr "ਚੋਣਵਾਂ ਈ-ਮੇਲ ਐਡਰੈੱਸ" + +#~ msgid "Optional comment describing key" +#~ msgstr "ਚੋਣਵੀਂ ਕੁੰਜੀ ਵੇਰਵਾ ਟਿੱਪਣੀ" + +#~ msgid "Full _Name:" +#~ msgstr "ਪੂਰਾ ਨਾਂ(_N):" + +#~ msgid "_Email Address:" +#~ msgstr "ਈ-ਮੇਲ ਐਡਰੈੱਸ(_E):" + +#~ msgid "Key Co_mment:" +#~ msgstr "ਕੁੰਜੀ ਟਿੱਪਣੀ(_m):" + +#~ msgid "Create the new user ID" +#~ msgstr "ਨਵਾਂ ਯੂਜ਼ਰ ID ਬਣਾਓ" + +#~ msgid "_Never expires" +#~ msgstr "ਕਦੇ ਨਹੀਂ ਮਿਆਦ ਪੁੱਗਦੀ(_N)" + +#~ msgid "Revoke key" +#~ msgstr "ਕੁੰਜੀ ਮਨਸੂਖ" + +#~ msgid "C_hange" +#~ msgstr "ਬਦਲੋ(_h)" + +#~ msgid "Couldn't add subkey" +#~ msgstr "ਸਬ-ਕੁੰਜੀ ਸ਼ਾਮਲ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Add subkey to %s" +#~ msgstr "%s ਵਿੱਚ ਸਬ-ਕੁੰਜੀ ਸ਼ਾਮਲ" + +#~ msgid "DSA (sign only)" +#~ msgstr "DSA (ਸਿਰਫ਼ ਸਾਇਨ)" + +#~ msgid "ElGamal (encrypt only)" +#~ msgstr "ElGamal (ਸਿਰਫ਼ ਇੰਕ੍ਰਿਪਟ)" + +#~ msgid "RSA (sign only)" +#~ msgstr "RSA (ਕੇਵਲ ਸਾਇਨ)" + +#~ msgid "RSA (encrypt only)" +#~ msgstr "RSA (ਕੇਵਲ ਇੰਕ੍ਰਿਪਟ)" + +#~ msgid "Couldn't add user id" +#~ msgstr "ਯੂਜ਼ਰ id ਸ਼ਾਮਲ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Add user ID to %s" +#~ msgstr "%s ਲਈ ਯੂਜ਼ਰ ID ਸ਼ਾਮਲ" + +#~ msgid "Decryption failed. You probably do not have the decryption key." +#~ msgstr "ਡਿ-ਕ੍ਰਿਪਸ਼ਨ ਫੇਲ੍ਹ ਹੋਈ। ਸ਼ਾਇਦ ਤੁਹਾਡੇ ਕੋਲ ਡਿ-ਕ੍ਰਿਪਟ ਕੁੰਜੀ ਨਹੀਂ ਹੈ।" + +#~ msgid "Invalid expiry date" +#~ msgstr "ਅਢੁੱਕਵੀਂ ਮਿਆਦ" + +#~ msgid "The expiry date must be in the future" +#~ msgstr "ਮਿਆਦ ਭਵਿੱਖ ਵਿੱਚ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ" + +#~ msgid "Couldn't change expiry date" +#~ msgstr "ਮਿਆਦ ਮਿਤੀ ਬਦਲੀ ਨਹੀਂ ਜਾ ਸਕਦੀ" + +#~ msgid "Expiry: %s" +#~ msgstr "ਮਿਆਦ: %s" + +#~ msgid "Multiple Keys" +#~ msgstr "ਕਈ ਕੁੰਜੀਆਂ" + +#~ msgid "Key Data" +#~ msgstr "ਕੁੰਜੀ ਡਾਟਾ" + +#~ msgid "Armored PGP keys" +#~ msgstr "ਅਰਮੋਰ PGP ਕੁੰਜੀਆਂ" + +#~ msgid "PGP keys" +#~ msgstr "PGP ਕੁੰਜੀਆਂ" + +#~ msgid "PGP Key" +#~ msgstr "PGP ਕੁੰਜੀ" + +#~ msgid "Used to encrypt email and files" +#~ msgstr "ਈ-ਮੇਲ ਅਤੇ ਫਾਇਲਾਂ ਦੀ ਇੰਕ੍ਰਿਪਸ਼ਨ ਲਈ ਵਰਤੀ ਜਾਂਦੀ" + +#~ msgid "RSA" +#~ msgstr "RSA" + +#~ msgid "DSA ElGamal" +#~ msgstr "DSA ElGamal" + +#~ msgid "Couldn't generate PGP key" +#~ msgstr "PGP ਕੁੰਜੀ ਤਿਆਰ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ" + +#~ msgid "Passphrase for New PGP Key" +#~ msgstr "ਨਵੀਂ PGP ਕੁੰਜੀ ਲਈ ਪ੍ਹੈਰਾ" + +#~ msgid "Enter the passphrase for your new key twice." +#~ msgstr "ਆਪਣੀ ਨਵੀਂ ਕੁੰਜੀ ਲਈ ਪ੍ਹੈਰਾ ਦੋ ਵਾਰ ਦਿਓ।" + +#~ msgid "" +#~ "When creating a key we need to generate a lot of\n" +#~ "random data and we need you to help. It's a good\n" +#~ "idea to perform some other action like typing on\n" +#~ "the keyboard, moving the mouse, using applications.\n" +#~ "This gives the system the random data that it needs." +#~ msgstr "" +#~ "ਜਦੋਂ ਕੁੰਜੀ ਬਣਾਉਣੀ ਹੋਵੇ ਤਾਂ ਸਾਨੂੰ ਬਹੁਤ ਸਾਰਾ ਰਲਵਾਂ ਡਾਟਾ ਚਾਹੀਦਾ ਹੈ ਅਤੇ\n" +#~ "ਤੁਹਾਡੀ ਮੱਦਦ ਵੀ ਚਾਹੀਦੀ ਹੈ। ਕੁਝ ਹੋਰ ਕੰਮ ਕਰਨੇ ਚੰਗਾ\n" +#~ "ਵਿਚਾਰ ਹੋ ਸਕਦਾ ਹੈ ਕਿਵੇਂ ਕਿ ਕੀਬੋਰਡ ਤੋਂ ਲਿਖਣਾ, ਮਾਊਸ\n" +#~ "ਨੂੰ ਹਿਲਾਉਣਾ, ਐਪਲੀਕੇਸ਼ਨ ਦੀ ਵਰਤੋਂ ਕਰਨਾ।\n" +#~ "ਇਸ ਨਾਲ ਸਿਸਟਮ ਨੂੰ ਰਲਵਾਂ ਡਾਟਾ ਮਿਲਦਾ ਹੈ, ਜਿਸ ਦੀ ਕਿ ਲੋੜ ਹੈ।" + +#~ msgid "Generating key" +#~ msgstr "ਕੁੰਜੀ ਤਿਆਰ ਕੀਤੀ ਜਾ ਰਹੀ ਹੈ" + +#~ msgid "Are you sure you want to permanently delete %s?" +#~ msgstr "ਕੀ ਤੁਸੀਂ %s ਨੂੰ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣ ਵਾਸਤੇ ਤਿਆਰ ਹੋ?" + +#~ msgid "Are you sure you want to permanently delete %d keys?" +#~ msgid_plural "Are you sure you want to permanently delete %d keys?" +#~ msgstr[0] "ਕੀ ਤੁਸੀਂ %d ਕੁੰਜੀ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣ ਵਾਸਤੇ ਤਿਆਰ ਹੋ?" +#~ msgstr[1] "ਕੀ ਤੁਸੀਂ %d ਕੁੰਜੀਆਂ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣ ਵਾਸਤੇ ਤਿਆਰ ਹੋ?" + +#~ msgid "Wrong password" +#~ msgstr "ਗਲਤ ਪਾਸਵਰਡ" + +#~ msgid "" +#~ "This was the third time you entered a wrong password. Please try again." +#~ msgstr "ਇਹ ਤੁਸੀਂ ਤੀਜੀ ਵਾਰ ਗਲਤ ਪਾਸਵਰਡ ਦਿੱਤਾ ਹੈ। ਮੁੜ ਕੋਸ਼ਿਸ਼ ਕਰੋ ਜੀ।" + +#~ msgid "Wrong passphrase." +#~ msgstr "ਗਲਤ ਪ੍ਹੈਰਾ" + +#~ msgid "Enter new passphrase for '%s'" +#~ msgstr "'%s' ਲਈ ਨਵਾਂ ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "Enter passphrase for '%s'" +#~ msgstr "'%s' ਲਈ ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "Enter new passphrase" +#~ msgstr "ਨਵਾਂ ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "Enter passphrase" +#~ msgstr "ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "Passphrase" +#~ msgstr "ਪ੍ਹੈਰਾ" + +#~ msgid "Loaded %d key" +#~ msgid_plural "Loaded %d keys" +#~ msgstr[0] "%d ਕੁੰਜੀ ਲੋਡ ਹੋਈ" +#~ msgstr[1] "%d ਕੁੰਜੀਆਂ ਲੋਡ ਹੋਈਆਂ" + +#~ msgid "" +#~ "Invalid key data (missing UIDs). This may be due to a computer with a " +#~ "date set in the future or a missing self-signature." +#~ msgstr "" +#~ "ਗਲਤ ਕੁੰਜੀ ਡਾਟਾ (ਗੁੰਮ UID)। ਇਹ ਕੰਪਿਊਟਰ ਉੱਤੇ ਆਉਣ ਵਾਲੇ ਸਮੇਂ ਦੀ ਮਿਤੀ ਸੈੱਟ ਕਰਨ ਕਰਕੇ ਹੋ ਸਕਦਾ " +#~ "ਹੈ ਜਾਂ ਖੁਦ-ਦਸਤਖਤ ਗੁੰਮ ਹੋਣ ਕਰਕੇ ਹੋ ਸਕਦਾ ਹੈ।" + +#~ msgid "GnuPG keys" +#~ msgstr "GnuPG ਕੁੰਜੀਆਂ" + +#~ msgid "GnuPG: default keyring directory" +#~ msgstr "GnuPG: ਡਿਫਾਲਟ ਕੀਰਿੰਗ ਡਾਇਰੈਕਟਰੀ" + +#~ msgid "" +#~ "The photo is too large\n" +#~ "The recommended size for a photo on your key is %d x %d pixels." +#~ msgstr "" +#~ "ਫੋਟੋ ਬਹੁਤ ਵੱਡੀ ਹੈ।\n" +#~ "ਤੁਹਾਡੀ ਕੁੰਜੀ ਲਈ ਫੋਟੋ ਦਾ ਆਕਾਰ %d x %d ਪਿਕਸਲ ਹੈ।" + +#~ msgid "_Don't Resize" +#~ msgstr "ਰੀ-ਸਾਇਜ਼ ਨਾ ਕਰੋ(_D)" + +#~ msgid "_Resize" +#~ msgstr "ਰੀ-ਸਾਇਜ਼(_R)" + +#~ msgid "" +#~ "This is not a image file, or an unrecognized kind of image file. Try to " +#~ "use a JPEG image." +#~ msgstr "" +#~ "ਇਹ ਚਿੱਤਰ ਫਾਇਲ ਨਹੀਂ ਹੈ ਜਾਂ ਬੇਪਛਾਣ ਕਿਸਮ ਦੀ ਚਿੱਤਰ ਫਾਇਲ ਹੈ। JPEG ਚਿੱਤਰ ਵਰਤ ਕੇ ਕੋਸ਼ਿਸ਼ ਕਰੋ " +#~ "ਜੀ।" + +#~ msgid "All image files" +#~ msgstr "ਸਭ ਚਿੱਤਰ ਫਾਇਲਾਂ" + +#~ msgid "All JPEG files" +#~ msgstr "ਸਭ JPEG ਫਾਇਲਾਂ" + +#~ msgid "All files" +#~ msgstr "ਸਭ ਫਾਇਲਾਂ" + +#~ msgid "Choose Photo to Add to Key" +#~ msgstr "ਕੁੰਜੀ 'ਚ ਜੋੜਨ ਲਈ ਫੋਟੋ ਚੁਣੋ" + +#~ msgid "Couldn't prepare photo" +#~ msgstr "ਫੋਟੋ ਤਿਆਰ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't add photo" +#~ msgstr "ਫੋਟੋ ਜੋੜੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "The file could not be loaded. It may be in an invalid format" +#~ msgstr "ਫਾਇਲ ਲੋਡ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ। ਸ਼ਾਇਦ ਗਲਤ ਫਾਰਮੈਟ ਹੈ" + +#~ msgid "Are you sure you want to remove the current photo from your key?" +#~ msgstr "ਕੀ ਤੁਸੀਂ ਆਪਣੀ ਕੁੰਜੀ ਨਾਲੋਂ ਮੌਜੂਦਾ ਫੋਟੋ ਹਟਾਉਣੀ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Couldn't delete photo" +#~ msgstr "ਫੋਟੋ ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕਦੀ" + +#~ msgid "Couldn't revoke subkey" +#~ msgstr "ਸਬ-ਕੁੰਜੀ ਮਨਸੂਖ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ" + +#~ msgid "Revoke: %s" +#~ msgstr "ਮਨਸੂਖ: %s" + +#~ msgid "No reason" +#~ msgstr "ਕੋਈ ਕਾਰਨ ਨਹੀਂ ਹੈ" + +#~ msgid "No reason for revoking key" +#~ msgstr "ਕੁੰਜੀ ਮਨਸੂਖ ਕਰਨ ਲਈ ਕੋਈ ਕਾਰਨ ਨਹੀਂ" + +#~ msgid "Compromised" +#~ msgstr "ਕੰਪਰੋਮਾਈਜ਼ ਹੋਈ" + +#~ msgid "Key has been compromised" +#~ msgstr "ਕੁੰਜੀ ਕੰਪਰੋਮਾਈਜ਼ ਹੋ ਗਈ" + +#~ msgid "Superseded" +#~ msgstr "ਸੁਪਰ-ਸ਼ਿਡ" + +#~ msgid "Key has been superseded" +#~ msgstr "ਕੁੰਜੀ ਸੁਪਰ-ਸ਼ਿਡ ਕੀਤੀ ਗਈ ਹੈ" + +#~ msgid "Not Used" +#~ msgstr "ਵਰਤੀ ਨਹੀਂ" + +#~ msgid "Key is no longer used" +#~ msgstr "ਕੁੰਜੀ ਹੁਣ ਵਰਤੀ ਨਹੀਂ ਜਾਂਦੀ" + +#~ msgid "" +#~ "You are about to add %s as a revoker for %s. This operation cannot be " +#~ "undone! Are you sure you want to continue?" +#~ msgstr "" +#~ "ਤੁਸੀਂ ਹੁਣ %s ਨੂੰ %s ਲਈ ਮਨਸੂਖਕਰਤਾ ਵਾਂਗ ਸ਼ਾਮਲ ਕਰਨ ਲਈ ਤਿਆਰ ਹੋ। ਇਹ ਓਪਰੇਸ਼ਨ ਵਾਪਸ ਨਹੀਂ ਲਿਆ " +#~ "ਜਾ ਸਕਦਾ ਹੈ। ਕੀ ਤੁਸੀਂ ਜਾਰੀ ਰੱਖਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Couldn't add revoker" +#~ msgstr "ਮਨਸੂਖਕਰਤਾ ਸ਼ਾਮਲ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "I understand that this secret key will be permanently deleted." +#~ msgstr "ਮੈਂ ਸਮਝਦਾ/ਸਮਝਦੀ ਹਾਂ ਕਿ ਇਹ ਗੁਪਤ ਕੁੰਜੀ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਈ ਜਾਵੇਗੀ।" + +#~ msgid "" +#~ "This key was already signed by\n" +#~ "\"%s\"" +#~ msgstr "" +#~ "\"%s\"\n" +#~ "ਕੁੰਜੀ ਪਹਿਲਾਂ ਹੀ ਸਾਇਨ ਕੀਤੀ ਹੋਈ ਹੈ" + +#~ msgid "Couldn't sign key" +#~ msgstr "ਕੁੰਜੀ ਉੱਤੇ ਸਾਇਨ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕੇ" + +#~ msgid "No keys usable for signing" +#~ msgstr "ਸਾਇਨ ਕਰਨ ਲਈ ਕੁੰਜੀ ਵਰਤੋਂ ਯੋਗ ਨਹੀਂ ਹੈ" + +#~ msgid "" +#~ "You have no personal PGP keys that can be used to indicate your trust of " +#~ "this key." +#~ msgstr "" +#~ "ਤੁਹਾਡੀ ਕੋਈ ਨਿੱਜੀ PGP ਕੁੰਜੀ ਨਹੀਂ ਹੈ, ਜੋ ਕਿ ਇਸ ਕੁੰਜੀ ਉੱਤੇ ਤੁਹਾਡੇ ਟਰੱਸਟ ਨੂੰ ਵੇਖਾਉਣ ਲਈ ਵਰਤੀ ਜਾ " +#~ "ਸਕੇ।" + +#~ msgctxt "Algorithm" +#~ msgid "Unknown" +#~ msgstr "ਅਣਜਾਣ" + +#~ msgid "ElGamal" +#~ msgstr "ElGamal" + +#~ msgid "Search was not specific enough. Server '%s' found too many keys." +#~ msgstr "ਖੋਜ ਬਹੁਤ ਸੰਖੇਪ ਨਹੀਂ ਹੈ। ਸਰਵਰ '%s' ਨੇ ਬਹੁਤ ਸਾਰੀਆਂ ਕੁੰਜੀਆਂ ਲੱਭੀਆਂ ਹਨ।" + +#~ msgid "Couldn't communicate with server '%s': %s" +#~ msgstr "'%s' ਸਰਵਰ ਨਾਲ ਸੰਚਾਰ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ: %s" + +#~ msgid "HTTP Key Server" +#~ msgstr "HTTP ਕੁੰਜੀ ਸਰਵਰ" + +#~ msgid "Couldn't import keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕੀਆਂ" + +#~ msgid "Importing keys from key servers" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ ਤੋਂ ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "_Remote" +#~ msgstr "ਰਿਮੋਟ(_R)" + +#~ msgid "Close this window" +#~ msgstr "ਇਹ ਵਿੰਡੋ ਬੰਦ ਕਰੋ" + +#~ msgid "_Find Remote Keys..." +#~ msgstr "ਰਿਮੋਟ ਕੁੰਜੀਆਂ ਖੋਜ(_F)..." + +#~ msgid "Search for keys on a key server" +#~ msgstr "ਇੱਕ ਕੁੰਜੀ ਸਰਵਰ ਉੱਤੇ ਕੁੰਜੀਆਂ ਲਈ ਖੋਜ" + +#~ msgid "_Import" +#~ msgstr "ਇੰਪੋਰਟ(_I)" + +#~ msgid "Import selected keys to local key ring" +#~ msgstr "ਚੁਣੀਆਂ ਕੁੰਜੀਆਂ ਲੋਕਲ ਕੀਰਿੰਗ ਵਿੱਚ ਇੰਪੋਰਟ ਕਰੋ" + +#~ msgid "Remote Keys" +#~ msgstr "ਰਿਮੋਟ ਕੁੰਜੀਆਂ" + +#~ msgid "Remote Keys Containing '%s'" +#~ msgstr "ਰਿਮੋਟ ਕੁੰਜੀਆਂ 'ਚ '%s' ਹੈ" + +#~ msgid "The search for keys failed." +#~ msgstr "ਕੁੰਜੀਆਂ ਦੀ ਖੋਜ ਫੇਲ੍ਹ ਹੈ।" + +#~ msgid "Find Remote Keys" +#~ msgstr "ਰਿਮੋਟ ਕੁੰਜੀਆਂ ਖੋਜ" + +#~ msgid "" +#~ "This will find keys for others on the Internet. These keys can then be " +#~ "imported into your local key ring." +#~ msgstr "" +#~ "ਇਹ ਇੰਟਰਨੈੱਟ ਤੋਂ ਹੋਰਾਂ ਲਈ ਕੁੰਜੀਆਂ ਲੱਭੇਗਾ। ਇਹ ਕੁੰਜੀਆਂ ਤੁਹਾਨੂੰ ਲੋਕਲ ਕੀਰਿੰਗ ਵਿੱਚ ਇੰਪੋਰਟ ਵੀ ਕੀਤਾ ਜਾ " +#~ "ਸਕਦਾ ਹੈ।" + +#~ msgid "_Search for keys containing: " +#~ msgstr "ਇਹ ਰੱਖਣ ਵਾਲੀਆਂ ਕੁੰਜੀਆਂ ਦੀ ਖੋਜ(_S):" + +#~ msgid "Key Servers:" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ:" + +#~ msgid "Shared Keys Near Me:" +#~ msgstr "ਕੁੰਜੀਆਂ ਮੇਰੇ ਨੇੜੇ ਸਾਂਝੀਆਂ ਕੀਤੀਆਂ:" + +#~ msgid "Where to search:" +#~ msgstr "ਕਿੱਥੇ ਖੋਜਣਾ:" + +#~ msgid "_Search" +#~ msgstr "ਖੋਜ(_S)" + +#~ msgid "Couldn't publish keys to server" +#~ msgstr "ਕੁੰਜੀਆਂ ਸਰਵਰ ਉੱਤੇ ਪਬਲਿਸ਼ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕੀਆਂ" + +#~ msgid "Couldn't retrieve keys from server: %s" +#~ msgstr "ਸਰਵਰ ਤੋਂ ਕੁੰਜੀਆਂ ਲਈਆਂ ਨਹੀਂ ਜਾ ਸਕੀਆਂ: %s" + +#~ msgid "%d key is selected for synchronizing" +#~ msgid_plural "%d keys are selected for synchronizing" +#~ msgstr[0] "%d ਕੁੰਜੀ ਸਿਕਰੋਨਾਈਜ਼ ਕਰਨ ਲਈ ਚੁਣੀ ਗਈ।" +#~ msgstr[1] "%d ਕੁੰਜੀਆਂ ਸਿਕਰੋਨਾਈਜ਼ ਕਰਨ ਲਈ ਚੁਣੀਆਂ ਗਈਆਂ।" + +#~ msgid "Synchronizing keys..." +#~ msgstr "ਕੁੰਜੀਆਂ ਸਿਕਰੋਨਾਈਜ਼ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ..." + +#~ msgid "Sync Keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਸਿਕਰੋਨਾਈਜ਼" + +#~ msgid "" +#~ "This will publish the keys in your key ring so they're available for " +#~ "others to use. You'll also get any changes others have made since you " +#~ "received their keys." +#~ msgstr "" +#~ "ਇਸ ਨਾਲ ਤੁਹਾਡੀ ਕੀਰਿੰਗ ਵਿੱਚੋਂ ਕੁੰਜੀਆਂ ਨੂੰ ਪਬਲਿਸ਼ ਕੀਤਾ ਜਾਵੇਗਾ ਤਾਂ ਕਿ ਉਹਨਾਂ ਨੂੰ ਹੋਰਾਂ ਨੂੰ ਵਰਤਣ " +#~ "ਵਾਸਤੇ ਉਪਲੱਬਧ ਕਰਵਾਇਆ ਜਾਵੇ। ਤੁਸੀਂ ਹੋਰਾਂ ਵਲੋਂ ਕੀਤੇ ਬਦਲਾਅ ਵੀ ਵੇਖ ਸਕੋਗੇ, ਜਦੋਂ ਤੁਸੀਂ ਉਨ੍ਹਾਂ ਦੀਆਂ " +#~ "ਕੁੰਜੀਆਂ ਲੈ ਲਈਆਂ।" + +#~ msgid "" +#~ "This will retrieve any changes others have made since you received their " +#~ "keys. No key server has been chosen for publishing, so your keys will not " +#~ "be made available to others." +#~ msgstr "" +#~ "ਇਹ ਹੋਰਾਂ ਵਲੋਂ ਕੀਤੇ ਕੋਈ ਵੀ ਬਦਲਾਅ ਲਵੇਗਾ, ਜਦੋਂ ਤੋਂ ਤੁਸੀ ਉਨ੍ਹਾਂ ਦੀਆਂ ਕੁੰਜੀਆਂ ਲਈਆਂ ਹਨ। ਪਬਲਿਸ਼ ਕਰਨ " +#~ "ਲਈ ਕੋਈ ਕੁੰਜੀ ਸਰਵਰ ਨਹੀਂ ਚੁਣਿਆ ਗਿਆ, ਇਸ ਕਰਕੇ ਤੁਹਾਡੀਆਂ ਕੁੰਜੀਆਂ ਨੂੰ ਹੋਰਾਂ ਲਈ ਉਪਲੱਬਧ ਨਹੀਂ ਕਰਵਾਇਆ " +#~ "ਜਾਵੇਗਾ।" + +#~ msgid "_Key Servers" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ(_K)" + +#~ msgid "_Sync" +#~ msgstr "ਸੈਕਰੋ(_S)" + +#~ msgid "Couldn't communicate with '%s': %s" +#~ msgstr "'%s' ਨਾਲ ਸੰਚਾਰ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਿਆ: %s" + +#~ msgid "Connecting to: %s" +#~ msgstr "ਕੁਨੈਕਟ ਜਾ ਰਿਹਾ ਹੈ: %s" + +#~ msgid "Resolving server address: %s" +#~ msgstr "ਸਰਵਰ ਐਡਰੈੱਸ ਹੱਲ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ: %s" + +#~ msgid "LDAP Key Server" +#~ msgstr "LDAP ਕੁੰਜੀ ਸਰਵਰ" + +#~ msgid "_Sync and Publish Keys..." +#~ msgstr "ਕੁੰਜੀਆਂ ਸਮਕਾਲੀ ਅਤੇ ਪਬਲਿਸ਼ ਕਰੋ(_S)..." + +#~ msgid "Publish and/or synchronize your keys with those online." +#~ msgstr "ਉਨ੍ਹਾਂ ਆਨਲਾਇਨ ਨਾਲ ਆਪਣੀਆਂ ਕੁੰਜੀਆਂ ਪਬਲਿਸ਼ ਕਰੋ ਅਤੇ/ਜਾਂ ਸਿਕਰੋਨਾਈਜ਼ ਕਰੋ।" + +#~ msgid "PGP Keys" +#~ msgstr "PGP ਕੁੰਜੀਆਂ" + +#~ msgid "PGP keys are for encrypting email or files" +#~ msgstr "ਈ-ਮੇਲ ਅਤੇ ਫਾਇਲਾਂ ਦੀ ਇੰਕ੍ਰਿਪਸ਼ਨ ਲਈ PGP ਕੁੰਜੀਆਂ" + +#~ msgid "C_reate" +#~ msgstr "ਬਣਾਓ(_r)" + +#~ msgid "Generate a new key" +#~ msgstr "ਇੱਕ ਨਵੀਂ ਕੁੰਜੀ ਬਣਾਓ" + +#~ msgid "A PGP key allows you to encrypt email or files to other people." +#~ msgstr "ਇੱਕ PGP ਕੁੰਜੀ ਤੁਹਾਨੂੰ ਹੋਰ ਲੋਕਾਂ ਨੂੰ ਈ-ਮੇਲ ਅਤੇ ਫਾਇਲਾਂ ਨੂੰ ਇੰਕ੍ਰਿਪਟ ਕਰਨ ਲਈ ਸਹਾਇਕ ਹੈ।" + +#~ msgid "Ne_ver Expires" +#~ msgstr "ਕਦੇਂ ਮਿਆਦ ਖਤਮ ਨਹੀਂ(_v)" + +#~ msgid "_Comment:" +#~ msgstr "ਟਿੱਪਣੀ(_C):" + +#~ msgid "Encryption _Type:" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਕਿਸਮ(_T):" + +#~ msgid "Key _Strength (bits):" +#~ msgstr "ਕੁੰਜੀ ਤਾਕਤ ਬਿੱਟ(_S):" + +#~ msgid "E_xpiration Date:" +#~ msgstr "ਮਿਆਦ ਮਿਤੀ(_x):" + +#~ msgid "_Advanced key options" +#~ msgstr "ਤਕਨੀਕੀ ਕੁੰਜੀ ਚੋਣਾਂ(_A)" + +#~ msgid "Personal PGP key" +#~ msgstr "ਨਿੱਜੀ PGP ਕੁੰਜੀ" + +#~ msgid "PGP key" +#~ msgstr "PGP ਕੁੰਜੀ" + +#~ msgid "Couldn't change primary user ID" +#~ msgstr "ਪ੍ਰਾਇਮਰੀ ਯੂਜ਼ਰ ID ਬਦਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#~ msgid "Are you sure you want to permanently delete the '%s' user ID?" +#~ msgstr "ਕੀ ਤੁਸੀਂ '%s' ਯੂਜ਼ਰ ID ਨੂੰ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Couldn't delete user ID" +#~ msgstr "ਯੂਜ਼ਰ ID ਹਟਾਇਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#~ msgid "[Unknown]" +#~ msgstr "[ਅਣਜਾਣ]" + +#~ msgid "Name/Email" +#~ msgstr "ਨਾਂ/ਈ-ਮੇਲ" + +#~ msgid "Signature ID" +#~ msgstr "ਦਸਤਖਤ ID" + +#~ msgid "Couldn't change primary photo" +#~ msgstr "ਪ੍ਰਾਇਮਰੀ ਫੋਟੋ ਬਦਲੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "(unknown)" +#~ msgstr "(ਅਣਜਾਣ)" + +#~ msgid "This key expired on: %s" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਦੀ ਮਿਆਦ ਹੈ: %s" + +#~ msgid "Name" +#~ msgstr "ਨਾਂ" + +#~ msgid "Are you sure you want to permanently delete subkey %d of %s?" +#~ msgstr "ਕੀ ਤੁਸੀਂ %2$s ਦੀ ਸਬ-ਕੁੰਜੀ %1$d ਨੂੰ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Couldn't delete subkey" +#~ msgstr "ਸਬ-ਕੁੰਜੀ ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕਦੀ" + +#~ msgid "Unable to change trust" +#~ msgstr "ਟਰੱਸਟ ਬਦਲਿਆ ਨਹੀਂ ਜਾ ਸਕਦਾ" + +#~ msgid "Couldn't export key" +#~ msgstr "ਕੁੰਜੀ ਐਕਸਪੋਰਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Marginal" +#~ msgstr "ਅਧੂਰਾ" + +#~ msgid "Full" +#~ msgstr "ਪੂਰਾ" + +#~ msgid "Ultimate" +#~ msgstr "ਬੇਅੰਤ" + +#~ msgctxt "Expires" +#~ msgid "Never" +#~ msgstr "ਕਦੇ ਨਹੀਂ" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Type" +#~ msgstr "ਕਿਸਮ" + +#~ msgid "Created" +#~ msgstr "ਬਣਾਈ" + +#~ msgid "Expires" +#~ msgstr "ਮਿਆਦ" + +#~ msgid "Status" +#~ msgstr "ਹਾਲਤ" + +#~ msgid "Strength" +#~ msgstr "ਤਾਕਤ" + +#~ msgid "Revoked" +#~ msgstr "ਮਨਸੂਖ" + +#~ msgid "Expired" +#~ msgstr "ਮਿਆਦ ਪੁੱਗੀ" + +#~ msgid "Disabled" +#~ msgstr "ਆਯੋਗ" + +#~ msgid "Good" +#~ msgstr "ਉੱਤਮ" + +#~ msgid "Key ID" +#~ msgstr "ਕੁੰਜੀ ID" + +#~ msgid "Key Properties" +#~ msgstr "ਕੁੰਜੀ ਵਿਸ਼ੇਸ਼ਤਾ" + +#~ msgid "This key has been revoked" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਮਨਸੂਖ ਕਰ ਦਿੱਤੀ ਗਈ ਹੈ" + +#~ msgid "The owner of the key revoked the key. It can no longer be used." +#~ msgstr "ਕੁੰਜੀ ਦੇ ਓਨਰ ਨੇ ਕੁੰਜੀ ਮਨਸੂਖ ਕਰ ਦਿੱਤੀ ਹੈ। ਇਹ ਵਰਤੀ ਨਹੀਂ ਜਾ ਸਕਦੀ ਹੈ।" + +#~ msgid "This key has expired" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਦੀ ਮਿਆਦ ਪੁੱਗੀ" + +#~ msgid "Add a photo to this key" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਲਈ ਇੱਕ ਫੋਟੋ ਜੋੜੋ" + +#~ msgid "Remove this photo from this key" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਤੋਂ ਇਹ ਫੋਟੋ ਹਟਾਓ" + +#~ msgid "Make this photo the primary photo" +#~ msgstr "ਇਹ ਫੋਟੋ ਪ੍ਰਾਇਮਰੀ ਫੋਟੋ ਬਣਾਓ" + +#~ msgid "Go to previous photo" +#~ msgstr "ਪਿਛਲੀ ਫੋਟੋ 'ਤੇ ਜਾਓ" + +#~ msgid "Go to next photo" +#~ msgstr "ਅਗਲੀ ਫੋਟੋ 'ਤੇ ਜਾਓ" + +#~ msgid "Photo " +#~ msgstr "ਫੋਟੋ " + +#~ msgid "Key ID:" +#~ msgstr "ਕੁੰਜੀ ID:" + +#~ msgctxt "name-of-key" +#~ msgid "Name:" +#~ msgstr "ਨਾਂ:" + +#~ msgid "Email:" +#~ msgstr "ਈ-ਮੇਲ:" + +#~ msgid "Comment:" +#~ msgstr "ਟਿੱਪਣੀ:" + +#~ msgid "Decrypt files and email sent to you." +#~ msgstr "ਡਿਕ੍ਰਿਪਟ ਫਾਇਲਾਂ ਅਤੇ ਈ-ਮੇਲ ਤੁਹਾਨੂੰ ਭੇਜੀ ਗਈ।" + +#~ msgid "Private PGP Key" +#~ msgstr "ਪ੍ਰਾਈਵੇਟ PGP ਕੁੰਜੀ" + +#~ msgid "Change _Passphrase" +#~ msgstr "ਪ੍ਹੈਰਾ ਬਦਲੋ(_P)" + +#~ msgid "Owner" +#~ msgstr "ਮਾਲਕ" + +#~ msgid "Key Names and Signatures" +#~ msgstr "ਕੁੰਜੀ ਨਾਂ ਅਤੇ ਦਸਤਖਤ" + +#~ msgid "Primary" +#~ msgstr "ਪ੍ਰਾਇਮਰੀ" + +#~ msgid "Sign" +#~ msgstr "ਸਾਇਨ" + +#~ msgid "Delete" +#~ msgstr "ਹਟਾਓ" + +#~ msgid "_Add Name" +#~ msgstr "ਨਾਂ ਜੋੜੋ(_A)" + +#~ msgid "Revoke" +#~ msgstr "ਵਾਪਿਸ" + +#~ msgid "Names and Signatures" +#~ msgstr "ਨਾਂ ਅਤੇ ਦਸਤਖਤ" + +#~ msgid "Strength:" +#~ msgstr "ਸ਼ਕਤੀ:" + +#~ msgid "Technical Details" +#~ msgstr "ਤਕਨੀਕੀ ਵੇਰਵਾ" + +#~ msgid "Fingerprint" +#~ msgstr "ਫਿੰਗਰ-ਪ੍ਰਿੰਟ" + +#~ msgid "Expires:" +#~ msgstr "ਮਿਆਦ:" + +#~ msgid "Dates" +#~ msgstr "ਮਿਤੀ" + +#~ msgid "Override Owner _Trust:" +#~ msgstr "ਓਨਰ ਟਰੱਸਟ ਅਣਡਿੱਠਾ(_T):" + +#~| msgid "_Export Complete Key:" +#~ msgid "_Export Secret Key:" +#~ msgstr "ਗੁਪਤ ਕੁੰਜੀ ਐਕਸਪੋਰਟ(_E):" + +#~ msgid "Actions" +#~ msgstr "ਕਾਰਵਾਈਆਂ" + +#~ msgid "Add" +#~ msgstr "ਸ਼ਾਮਲ" + +#~ msgid "Expire" +#~ msgstr "ਮਿਆਦ" + +#~ msgid "_Subkeys" +#~ msgstr "ਸਬ-ਕੁੰਜੀ(_S)" + +#~ msgctxt "Validity" +#~ msgid "Marginally" +#~ msgstr "ਅਧੂਰਾ" + +#~ msgctxt "Validity" +#~ msgid "Fully" +#~ msgstr "ਪੂਰਾ" + +#~ msgctxt "Validity" +#~ msgid "Ultimately" +#~ msgstr "ਬੇਅੰਤ" + +#~ msgid "Encrypt files and email to the key's owner" +#~ msgstr "ਕੁੰਜੀ ਦੇ ਓਨਰ ਲਈ ਇੰਕ੍ਰਿਪਟ ਫਾਇਲਾਂ ਅਤੇ ਈਮੇਲ" + +#~ msgid "Public PGP Key" +#~ msgstr "ਪਬਲਿਕ PGP ਕੁੰਜੀ" + +#~ msgid "_Other Names:" +#~ msgstr "ਹੋਰ ਨਾਂ(_O):" + +#~ msgid "Your trust of this key" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਲਈ ਤੁਹਾਡਾ ਭਰੋਸਾ" + +#~ msgid "Your trust is manually specified on the Details tab." +#~ msgstr "ਤੁਹਾਡਾ ਟਰੱਸਟ ਖੁਦ ਵੇਰਵਾ ਟੈਬ ਵਿੱਚ ਦਿੱਤਾ ਗਿਆ ਹੈ।" + +#~ msgid "I trust signatures from '%s' on other keys" +#~ msgstr "ਮੈਂ '%s' ਵਲੋਂ ਹੋਰ ਕੁੰਜੀਆਂ ਉੱਤੇ ਦਸਤਖਤਾਂ ਉੱਤੇ ਭਰੋਸਾ ਕਰਦਾ ਹਾਂ " + +#~ msgid "" +#~ "If you believe that the person that owns this key is '%s', sign " +#~ "this key:" +#~ msgstr "" +#~ "ਜੇ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ ਕਿ ਉਹ ਵਿਅਕਤੀ ਇਹ '%s' ਕੁੰਜੀ ਰੱਖਦਾ ਹੈ ਤਾਂ ਇਸ ਕੁੰਜੀ ਲਈ ਸਾਈਨ ਕਰੋ।" + +#~ msgid "_Sign this Key" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਉੱਤੇ ਸਾਇਨ(_S)" + +#~ msgid "" +#~ "If you no longer trust that '%s' owns this key, revoke your " +#~ "signature:" +#~ msgstr "" +#~ "ਜੇ ਤੁਸੀਂ ਇਹ ਭਰੋਸਾ ਨਹੀਂ ਕਰਦੇ ਹੋ ਕਿ '%s' ਇਹ ਕੁੰਜੀ ਰੱਖਦਾ ਹੈ ਤਾਂ ਆਪਣੇ ਦਸਤਖਤ ਮਨਸੂਖ ਕਰੋ:" + +#~ msgid "_Revoke Signature" +#~ msgstr "ਦਸਤਖਤ ਮਨਸੂਖ(_R)" + +#~ msgid "_People who have signed this key:" +#~ msgstr "ਲੋਕ, ਜਿੰਨ੍ਹਾਂ ਇਸ ਕੁੰਜੀ ਉੱਤੇ ਦਸਤਖਤ ਕੀਤੇ ਹਨ(_P):" + +#~ msgid "_Only display the signatures of people I trust" +#~ msgstr "ਸਿਰਫ਼ ਉਨ੍ਹਾਂ ਲੋਕਾਂ ਦਾ ਭਰੋਸਾ ਹੀ ਵੇਖਾਓ, ਜਿੰਨ੍ਹਾਂ ਉੱਤੇ ਮੈਨੂੰ ਭਰੋਸਾ ਹੈ(_O)" + +#~ msgid "Trust" +#~ msgstr "ਟਰੱਸਟ" + +#~ msgid "Fingerprint:" +#~ msgstr "ਫਿੰਗਰ-ਪ੍ਰਿੰਟ:" + +#~ msgid "Dates:" +#~ msgstr "ਮਿਤੀ:" + +#~ msgid "Indicate Trust:" +#~ msgstr "ਭਰੋਸਾ ਵੇਖਾਉਦਾ ਹੈ:" + +#~ msgid "You _Trust the Owner:" +#~ msgstr "ਤੁਸੀਂ ਓਨਰ ਉੱਤੇ ਟਰੱਸਟ ਕਰ ਸਕਦੇ ਹੋ(_T):" + +#~ msgid "Subkey %d of %s" +#~ msgstr "%2$s ਦੀ %1$d ਸਬਕੁੰਜੀ" + +#~ msgid "Reason for revoking the key" +#~ msgstr "ਕੁੰਜੀ ਮਨਸੂਖ ਕਰਨ ਲਈ ਕਾਰਨ" + +#~ msgid "_Reason:" +#~ msgstr "ਕਾਰਨ(_R):" + +#~ msgid "Optional description of revocation" +#~ msgstr "ਮਨਸੂਖ ਕਰਨ ਲਈ ਚੋਣਵਾਂ ਵੇਰਵਾ" + +#~ msgid "Re_voke" +#~ msgstr "ਮਨਸੂਖ(_v)" + +#~ msgid "" +#~ "You have no personal PGP keys that can be used to sign a document or " +#~ "message." +#~ msgstr "" +#~ "ਤੁਹਾਡੀਆਂ ਨਿੱਜੀ PGP ਕੁੰਜੀਆਂ ਨਹੀਂ ਹਨ, ਜੋ ਕਿ ਇੱਕ ਡੌਕੂਮੈਂਟ ਜਾਂ ਸੁਨੇਹਾ ਨੂੰ ਸਾਇਨ ਕਰਨ ਲਈ ਵਰਤੀਆਂ ਜਾ " +#~ "ਸਕਣ।" + +#~ msgid "_Sign message with key:" +#~ msgstr "ਸੁਨੇਹੇ ਉੱਤੇ ਕੁੰਜੀ ਨਾਲ ਸਾਇਨ ਕਰੋ(_S):" + +#~ msgid "Sign Key" +#~ msgstr "ਕੁੰਜੀ ਸਾਈਨ" + +#~ msgid "By signing you indicate your trust that this key belongs to:" +#~ msgstr "ਇਹ ਸਾਇਨ ਕਰਨ ਨਾਲ ਤੁਸੀਂ ਇਹ ਵੇਖਾ ਰਹੇ ਹੋ ਕਿ ਇਹ ਕੁੰਜੀ ਸਬੰਧਿਤ ਹੈ:" + +#~ msgid "Key Name" +#~ msgstr "ਕੁੰਜੀ ਨਾਂ" + +#~ msgid "How carefully have you checked this key?" +#~ msgstr "ਕਿੰਨੇ ਧਿਆਨ ਨਾਲ ਤੁਸੀਂ ਇਹ ਕੁੰਜੀ ਚੈੱਕ ਕੀਤੀ ਹੈ?" + +#~ msgid "_Not at all" +#~ msgstr "ਕੁਝ ਵੀ ਨਹੀਂ(_N)" + +#~ msgid "_Casually" +#~ msgstr "ਅਸਾਵਧਾਨੀ ਨਾਲ(_C)" + +#~ msgid "_Very Carefully" +#~ msgstr "ਧਿਆਨ ਨਾਲ ਜਾਂਚ(_V)" + +#~ msgid "" +#~ "Not at all: means you believe the key is owned by the person who " +#~ "claims to own it, but you could not or did not verify this to be a fact." +#~ msgstr "" +#~ "ਬਿਲਕੁੱਲ ਨਹੀਂ: ਮਤਲਬ ਹੈ ਕਿ ਤੁਸੀਂ ਮੰਨਦੇ ਹੋ ਕਿ ਕੁੰਜੀ ਉਸ ਵਿਅਕਤੀ ਕੋਲ ਹੈ, ਜੋ ਰੱਖਣ ਦਾ " +#~ "ਦਾਅਵਾ ਕਰਦਾ ਹੈ, ਪਰ ਤੁਸੀਂ ਇਸ ਤੱਥ ਦੀ ਜਾਂਚ ਕਰ ਨਹੀਂ ਸਕੇ ਜਾਂ ਨਹੀਂ ਕੀਤੀ ਹੈ।" + +#~ msgid "" +#~ "Casually: means you have done a casual verification that the key " +#~ "is owned by the person who claims to own it. For example, you could read " +#~ "the key fingerprint to the owner over the phone." +#~ msgstr "" +#~ "ਅਸਾਵਧਾਨ: ਮਤਲਬ ਕਿ ਤੁਸੀਂ ਇੱਕ ਸਧਾਰਨ ਜੇਹੀ ਜਾਂਚ ਹੀ ਕੀਤੀ ਹੈ, ਜੋ ਕਿ ਕੁੰਜੀ ਦੇ ਮਾਲਕ " +#~ "ਵਲੋਂ ਆਪਣਾ ਹੋਣ ਦੇ ਦਾਅਵੇ ਲਈ ਕੀਤੀ ਗਈ ਹੈ। ਉਦਾਹਰਨ ਲਈ ਤੁਸੀਂ ਕੁੰਜੀ ਫਿੰਗਰਪਰਿੰਟ ਲਈ ਓਨਰ ਨਾਲ ਫੋਨ " +#~ "ਉੱਤੇ ਗੱਲਬਾਤ ਕੀਤੀ ਹੈ।" + +#~ msgid "" +#~ "Very Carefully: Select this only if you are absolutely sure that " +#~ "this key is genuine." +#~ msgstr "" +#~ "ਬਹੁਤ ਧਿਆਨ ਨਾਲ: ਇਹ ਤਾਂ ਹੀ ਚੁਣੋ, ਜੇ ਤੁਸੀਂ ਇਹ ਜਾਣਦੇ ਹੋ ਕਿ ਇਹ ਕੁੰਜੀ ਬਿਲਕੁੱਲ ਠੀਕ ਹੈ।" + +#~ msgid "" +#~ "You could use a hard to forge photo identification (such as a passport) " +#~ "to personally check that the name on the key is correct. You should have " +#~ "also used email to check that the email address belongs to the owner." +#~ msgstr "" +#~ "ਤੁਹਾਨੂੰ ਸਖਤ ਫੋਟ ਪਛਾਣ (ਜਿਵੇਂ ਪਾਸਪੋਰਟ) ਦੀ ਜਾਂਚ ਕਰਨੀ ਚਾਹੀਦੀ ਹੈ ਤਾਂ ਕੁੰਜੀ ਉੱਤੇ ਨਾਂ ਸਹੀਂ ਹੋਣ ਦੀ " +#~ "ਪੁਸ਼ਟੀ ਹੋ ਸਕੇ। ਤੁਹਾਨੂੰ ਈਮੇਲ ਵੀ ਚੈੱਕ ਕਰਨੀ ਚਾਹੀਦੀ ਹੈ ਤਾਂ ਕਿ ਜਾਂਚ ਕੀਤੀ ਜਾ ਸਕੇ ਕਿ ਈਮੇਲ ਉਸ " +#~ "ਮਾਲਕ ਨਾਲ ਹੀ ਸਬੰਧਿਤ ਹੈ।" + +#~ msgid "How others will see this signature:" +#~ msgstr "ਹੋਰ ਇਸ ਦਸਤਖਤ ਕਿਵੇਂ ਵੇਖ ਸਕਦੇ ਹਨ:" + +#~ msgid "_Others may not see this signature" +#~ msgstr "ਹੋਰ ਇਹ ਦਸਤਖਤ ਸ਼ਾਇਦ ਨਹੀਂ ਵੇਖ ਸਕਦੇ(_O)" + +#~ msgid "I can _revoke this signature at a later date." +#~ msgstr "ਮੈਂ ਇਹ ਦਸਤਖਤ ਬਾਅਦ ਵਿੱਚ ਵਾਪਸ ਲੈ ਸਕਦਾ ਹਾਂ(_r)" + +#~ msgid "Sign key as:" +#~ msgstr "ਸਾਇਨ ਕੁੰਜੀ ਉੱਤੇ ਇੰਝ:" + +#~ msgid "_Signer:" +#~ msgstr "ਸਾਇਨਰ(_S):" + +#~ msgid "_Sign" +#~ msgstr "ਸਾਇਨ(_S)" + +#~ msgid "Exporting data" +#~ msgstr "ਡਾਟਾ ਐਕਸਪੋਰਟ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ" + +#~ msgid "Retrieving data" +#~ msgstr "ਡਾਟਾ ਲਿਆ ਜਾ ਰਿਹਾ ਹੈ" + +#~ msgid "Importing data" +#~ msgstr "ਡਾਟਾ ਇੰਪੋਰਟ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ" + +#~ msgid "Sending data" +#~ msgstr "ਡਾਟਾ ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ" + +#~ msgid "Certificate" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ" + +#~ msgid "Certificates (DER encoded)" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ (DER ਇੰਕੋਡ)" + +#~ msgid "Personal certificate and key" +#~ msgstr "ਨਿੱਜੀ ਸਰਟੀਫਿਕੇਟ ਅਤੇ ਕੁੰਜੀ" + +#~ msgid "Personal certificate" +#~ msgstr "ਨਿੱਜੀ ਸਰਟੀਫਿਕੇਟ" + +#~ msgid "Certificates" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ" + +#~ msgid "X.509 certificates and related keys" +#~ msgstr "X.509 ਸਰਟੀਫਿਕੇਟ ਅਤੇ ਸਬੰਧਿਤ ਕੁੰਜੀਆਂ" + +#~ msgid "Are you sure you want to permanently delete %d certificate?" +#~ msgid_plural "Are you sure you want to permanently delete %d certificates?" +#~ msgstr[0] "ਕੀ ਤੁਸੀਂ %d ਸਰਟੀਫਿਕੇਟ ਨੂੰ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" +#~ msgstr[1] "ਕੀ ਤੁਸੀਂ %d ਸਰਟੀਫਿਕੇਟਾਂ ਨੂੰ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Couldn't generate private key" +#~ msgstr "ਪ੍ਰਾਈਵੇਟ ਕੁੰਜੀ ਤਿਆਰ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Create" +#~ msgstr "ਬਣਾਓ" + +#~ msgid "Private key" +#~ msgstr "ਪ੍ਰਾਈਵੇਟ ਕੁੰਜੀ" + +#~ msgid "Used to request a certificate" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਮੰਗਣ ਲਈ ਵਰਤਿਆ" + +#~ msgid "Create a new private key" +#~ msgstr "ਇੱਕ ਨਵੀਂ ਨਿੱਜੀ (ਪ੍ਰਾਈਵੇਟ) ਕੁੰਜੀ ਬਣਾਓ" + +#~ msgid "Label:" +#~ msgstr "ਲੇਬਲ:" + +#~ msgid "Stored at:" +#~ msgstr "ਸਟੋਰ:" + +#~ msgid "I understand that this key will be permanently deleted." +#~ msgstr "ਮੈਂ ਸਮਝਦਾ/ਸਮਝਦੀ ਹਾਂ ਕਿ ਇਹ ਕੁੰਜੀ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਈ ਜਾਵੇਗੀ।" + +#~ msgid "Unnamed" +#~ msgstr "ਬਿਨ-ਨਾਂ" + +#~ msgid "Failed to export certificate" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਐਕਸਪੋਰਟ ਕਰਨ ਲਈ ਫੇਲ੍ਹ ਹੈ" + +#~ msgid "Couldn't delete" +#~ msgstr "ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "_Export" +#~ msgstr "ਐਕਸਪੋਰਟ(_E)" + +#~ msgid "Export the certificate" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਐਕਸਪੋਰਟ ਕਰੋ" + +#~ msgid "Delete this certificate or key" +#~ msgstr "ਇਹ ਸਰਟੀਫਿਕੇਟ ਜਾਂ ਕੁੰਜੀ ਹਟਾਓ" + +#~ msgid "Request _Certificate" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਦੀ ਮੰਗ(_C)" + +#~ msgid "Create a certificate request file for this key" +#~ msgstr "ਇਸ ਕੁੰਜੀ ਲਈ ਇੱਕ ਸਰਟੀਫਿਕੇਟ ਮੰਗ ਫਾਇਲ ਬਣਾਓ" + +#~ msgid "Couldn't save certificate request" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਮੰਗ ਸੰਭਾਲੀ ਜਾ ਸਕੀ" + +#~ msgid "Save certificate request" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਮੰਗ ਸੰਭਾਲੋ" + +#~ msgid "Certificate request" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਮੰਗ" + +#~ msgid "PEM encoded request" +#~ msgstr "PEM ਨਾਲ ਇੰਕੋਡ ਕੀਤੀ ਮੰਗ" + +#~ msgid "Couldn't create certificate request" +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਮੰਗ ਬਣਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Create a certificate request file." +#~ msgstr "ਇੱਕ ਸਰਟੀਫਿਕੇਟ ਮੰਗ ਫਾਇਲ ਬਣਾਉ।" + +#~ msgid "The common name (CN) placed in the certificate request." +#~ msgstr "ਸਰਟੀਫਿਕੇਟ ਮੰਗ ਵਿੱਚ ਮੌਜੂਦ ਕਾਮਨ ਨੇਮ (CN)।" + +#~ msgid "Name (CN):" +#~ msgstr "ਨਾਂ (CN):" + +#~ msgid "Unnamed private key" +#~ msgstr "ਬਿਨਾਂ-ਨਾਂ ਪ੍ਰਾਈਵੇਟ ਕੁੰਜੀ" + +#~ msgctxt "Label" +#~ msgid "Unknown" +#~ msgstr "ਅਣਜਾਣ" + +#~ msgid "Change Passphrase" +#~ msgstr "ਪ੍ਹੈਰਾ ਬਦਲੋ" + +#~ msgid "New _Passphrase:" +#~ msgstr "ਨਵਾਂ ਪ੍ਹੈਰਾ(_P):" + +#~ msgid "Confirm new passphrase" +#~ msgstr "ਨਵਾਂ ਪ੍ਹੈਰਾ ਪੁਸ਼ਟੀ" + +#~ msgid "Con_firm Passphrase:" +#~ msgstr "ਪ੍ਹੈਰਾ ਪੁਸ਼ਟੀ(_f):" + +#~ msgid "Manage your passwords and encryption keys" +#~ msgstr "ਆਪਣੇ ਪਾਸਵਰਡ ਅਤੇ ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀਆਂ ਦੀ ਦੇਖਭਾਲ ਕਰੋ" + +#~ msgid "keyring;encryption;security;sign;ssh;" +#~ msgstr "ਛੱਲਾ;ਕੀਰਿੰਗ;ਇੰਕ੍ਰਿਪਸ਼ਨ;ਸੁਰੱਖਿਆ;ਸਾਈਨ;keyring;encryption;security;sign;ssh;" + +#~ msgid "Continue" +#~ msgstr "ਜਾਰੀ ਰੱਖੋ" + +#~ msgid "_Select the type of item to create:" +#~ msgstr "ਬਣਾਉਣ ਲਈ ਆਈਟਮ ਦੀ ਕਿਸਮ ਚੁਣੋ(_S):" + +#~ msgid "Import failed" +#~ msgstr "ਇੰਪੋਰਟ ਫੇਲ੍ਹ ਹੈ" + +#~ msgid "Import" +#~ msgstr "ਇੰਪੋਰਟ" + +#~ msgid "Data to be imported:" +#~ msgstr "ਇੰਪੋਰਟ ਕਰਨ ਵਾਲਾ ਡਾਟਾ:" + +#~ msgid "Import Key" +#~ msgstr "ਕੁੰਜੀ ਇੰਪੋਰਟ" + +#~ msgid "All key files" +#~ msgstr "ਸਭ ਕੁੰਜੀ ਫਾਇਲਾਂ" + +#~ msgid "Dropped text" +#~ msgstr "ਛੱਡਿਆ ਟੈਕਸਟ" + +#~ msgid "Clipboard text" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਟੈਕਸਟ" + +#~ msgid "_New" +#~ msgstr "ਨਵਾਂ(_N)" + +#~ msgid "Close this program" +#~ msgstr "ਇਹ ਪਰੋਗਰਾਮ ਬੰਦ ਕਰੋ" + +#~ msgid "_New..." +#~ msgstr "ਨਵਾਂ(_N)..." + +#~ msgid "Create a new key or item" +#~ msgstr "ਨਵੀਂ ਕੁੰਜੀ ਜਾਂ ਆਈਟਮ ਬਣਾਓ" + +#~ msgid "Add a new key or item" +#~ msgstr "ਨਵੀਂ ਕੁੰਜੀ ਜਾਂ ਆਈਟਮ ਸ਼ਾਮਲ" + +#~ msgid "_Import..." +#~ msgstr "ਇੰਪੋਰਟ(_I)" + +#~ msgid "Import from a file" +#~ msgstr "ਫਾਇਲ ਤੋਂ ਇੰਪੋਰਟ ਕਰੋ" + +#~ msgid "Import from the clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਤੋਂ ਇੰਪੋਰਟ ਕਰੋ" + +#~| msgid "By _keyring" +#~ msgid "By _Keyring" +#~ msgstr "ਕੀਰਿੰਗ ਰਾਹੀਂ(_K)" + +#~ msgid "Show sidebar listing keyrings" +#~ msgstr "ਕੀਰਿੰਗ ਰੱਖਣ ਵਾਲੀ ਬਾਹੀ ਵੇਖਾਓ" + +#~| msgid "Show _personal" +#~ msgid "Show _Personal" +#~ msgstr "ਨਿੱਜੀ ਵੇਖਾਓ(_P)" + +#~ msgid "Only show personal keys, certificates and passwords" +#~ msgstr "ਕੇਵਲ ਨਿੱਜੀ ਫਾਇਲਾਂ, ਸਰਟੀਫਿਕੇਟ ਅਤੇ ਪਾਸਵਰਡ ਹੀ ਵੇਖਾਓ" + +#~| msgid "Show _trusted" +#~ msgid "Show _Trusted" +#~ msgstr "ਭਰੋਸੇਯੋਗ ਹੀ ਵੇਖਾਓ(_T)" + +#~ msgid "Only show trusted keys, certificates and passwords" +#~ msgstr "ਕੇਵਲ ਭਰੋਸੇਯੋਗ ਕੁੰਜੀਆਂ, ਸਰਟੀਫਿਕੇਟ ਅਤੇ ਪਾਸਵਰਡ ਹੀ ਵੇਖਾਓ" + +#, fuzzy +#~| msgid "Show _any" +#~ msgid "Show _Any" +#~ msgstr "ਕੋਈ ਵੀ ਵੇਖਾਓ(_a)" + +#~ msgid "Show all keys, certificates and passwords" +#~ msgstr "ਸਭ ਕੁੰਜੀਆਂ, ਸਰਟੀਫਿਕੇਟ ਅਤੇ ਪਾਸਵਰਡ ਵੇਖਾਓ" + +#~ msgid "Filter" +#~ msgstr "ਫਿਲਟਰ" + +#~ msgid "First time options:" +#~ msgstr "ਪਹਿਲੀਂ ਵਾਰ ਚੋਣਾਂ:" + +#~ msgid "Generate a new key of your own: " +#~ msgstr "ਆਪਣੀ ਖੁਦ ਦੀ ਇੱਕ ਨਵੀਂ ਕੁੰਜੀ ਬਣਾਓ:" + +#~ msgid "Import existing keys from a file:" +#~ msgstr "ਇੱਕ ਫਾਇਲ ਤੋਂ ਕੁੰਜੀ ਇੰਪੋਰਟ ਕਰੋ:" + +#~ msgid "To get started with encryption you will need keys." +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਕਰਨਈ ਲਈ ਤੁਹਾਨੂੰ ਕੁੰਜੀਆਂ ਦੀ ਲੋੜ ਹੈ।" + +#~ msgid "Couldn't lock" +#~ msgstr "ਲਾਕ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Couldn't unlock" +#~ msgstr "ਅਣ-ਲਾਕ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "_Lock" +#~ msgstr "ਲਾਕ ਕਰੋ(_L)" + +#~ msgid "_Unlock" +#~ msgstr "ਅਣ-ਲਾਕ(_U)" + +#~ msgid "_Properties" +#~ msgstr "ਵਿਸ਼ੇਸ਼ਤਾ(_P)" + +#~ msgid "Configure Key for _Secure Shell..." +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀਆਂ ਦੀ ਸੰਰਚਨਾ(_S)..." + +#~ msgid "" +#~ "Send public Secure Shell key to another machine, and enable logins using " +#~ "that key." +#~ msgstr "" +#~ "ਪਬਲਿਕ ਸੁਰੱਖਿਅਤ ਸ਼ੈੱਲ ਕੁੰਜੀ ਨੂੰ ਹੋਰ ਮਸ਼ੀਨ ਉੱਤੇ ਭੇਜੋ ਅਤੇ ਉਸ ਕੁੰਜੀ ਨਾਲ ਲਾਗਇਨ ਕਰਨ ਲਈ ਤਿਆਰ ਹੋਵੋ।" + +#~ msgid "Enter your Secure Shell passphrase:" +#~ msgstr "ਆਪਣਾ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਪ੍ਹੈਰਾ ਦਿਓ:" + +#~ msgid "Old Key Passphrase" +#~ msgstr "ਪੁਰਾਣੀ ਕੁੰਜੀ ਪ੍ਹੈਰਾ" + +#~ msgid "Enter the old passphrase for: %s" +#~ msgstr "ਪੁਰਾਣਾ ਪ੍ਹੈਰਾ ਦਿਓ: %s" + +#~ msgid "New Key Passphrase" +#~ msgstr "ਨਵਾਂ ਕੁੰਜੀ ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "Enter the new passphrase for: %s" +#~ msgstr "ਨਵਾਂ ਪ੍ਹੈਰਾ ਦਿਓ ਜੀ: %s" + +#~ msgid "Enter the new passphrase again: %s" +#~ msgstr "ਨਵਾਂ ਪ੍ਹੈਰਾ ਫੇਰ ਦਿਓ ਜੀ: %s" + +#~ msgid "Secure Shell" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ" + +#~ msgid "Keys used to connect securely to other computers" +#~ msgstr "ਹੋਰ ਕੰਪਿਊਟਰਾਂ ਨਾਲ ਸੁਰੱਖਿਅਤ ਜੁੜਨ ਲਈ ਵਰਤਣ ਵਾਸਤੇ ਕੁੰਜੀਆਂ" + +#~ msgid "Are you sure you want to delete the secure shell key '%s'?" +#~ msgstr "ਕੀ ਤੁਸੀਂ '%s' ਸੁਰੱਖਿਅਤ ਸ਼ੈੱਲ ਕੀ ਨੂੰ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਉਣੀ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Are you sure you want to delete %d secure shell key?" +#~ msgid_plural "Are you sure you want to delete %d secure shell keys?" +#~ msgstr[0] "ਕੀ ਤੁਸੀਂ %d ਸੁਰੱਖਿਅਤ ਸ਼ੈੱਲ ਕੁੰਜੀ ਨੂੰ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣ ਵਾਸਤੇ ਤਿਆਰ ਹੋ?" +#~ msgstr[1] "ਕੀ ਤੁਸੀਂ %d ਸੁਰੱਖਿਅਤ ਸ਼ੈੱਲ ਕੁੰਜੀਆਂ ਨੂੰ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣ ਵਾਸਤੇ ਤਿਆਰ ਹੋ?" + +#~ msgid "Ssh Key" +#~ msgstr "Ssh ਕੁੰਜੀ" + +#~ msgid "Secret SSH keys" +#~ msgstr "ਗੁਪਤ SSH ਕੁੰਜੀਆਂ" + +#~ msgid "Public SSH keys" +#~ msgstr "ਪਬਲਿਕ SSH ਕੁੰਜੀਆਂ" + +#~ msgid "No public key file is available for this key." +#~ msgstr "ਇਸ ਕੁੰਜੀ ਲਈ ਕੋਈ ਪਬਲਿਕ ਕੁੰਜੀ ਫਾਇਲ ਨਹੀਂ ਹੈ।" + +#~ msgid "Secure Shell Key" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ" + +#~ msgid "Used to access other computers (eg: via a terminal)" +#~ msgstr "ਹੋਰ ਕੰਪਿਊਟਰ ਦੀ ਵਰਤੋਂ ਲਈ ਵਰਤੀ ਜਾਂਦੀ (ਜਿਵੇਂ: ਟਰਮੀਨਲ ਰਾਹੀਂ)" + +#~ msgid "Couldn't generate Secure Shell key" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀਆਂ ਨਹੀਂ ਬਣਾਈਆਂ ਜਾ ਸਕਦੀਆਂ ਹਨ" + +#~ msgid "Creating Secure Shell Key" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ ਬਣਾਈ ਜਾ ਰਹੀ ਹੈ" + +#~ msgid "New Secure Shell Key" +#~ msgstr "ਨਵੀਂ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ" + +#~ msgid "_Just Create Key" +#~ msgstr "ਹਾਲੇ ਕੁੰਜੀ ਬਣਾਓ(_J)" + +#~ msgid "_Create and Set Up" +#~ msgstr "ਬਣਾਓ ਅਤੇ ਸੈੱਟਅੱਪ ਕਰੋ(_C)" + +#~ msgid "" +#~ "A Secure Shell (SSH) key lets you connect securely to other computers." +#~ msgstr "" +#~ "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ (SSH) ਕੁੰਜੀ ਤੁਹਾਨੂੰ ਹੋਰ ਕੰਪਿਊਟਰਾਂ ਨਾਲ ਸੁਰੱਖਿਅਤ ਢੰਗ ਨਾਲ ਕੁਨੈਕਟ ਕਰਨ ਦਿੰਦੀ ਹੈ।" + +#~ msgid "Your email address, or a reminder of what this key is for." +#~ msgstr "ਇਹ ਕੁੁੰਜੀ ਲਈ ਤੁਸੀਂ ਆਪਣਾ ਈਮੇਲ ਐਡਰੈੱਸ ਜਾਂ ਕੋਈ ਵੀ ਹੋਰ ਰੀਮਾਈਡਰ ਵਰਤ ਸਕਦੇ ਹੋ" + +#~ msgid "DSA" +#~ msgstr "DSA" + +#~ msgid "" +#~ "If there is a computer you want to use this key with, you can set up that " +#~ "computer to recognize your new key." +#~ msgstr "" +#~ "ਜੇ ਤੁਹਾਡੇ ਕੋਲ ਇੱਕ ਕੰਪਿਊਟਰ ਹੈ, ਜਿਸ ਉੱਤੇ ਤੁਸੀਂ ਕੁੰਜੀ ਵਰਤਣੀ ਚਾਹੁੰਦੇ ਹੋ ਤਾਂ ਤੁਸੀਂ ਉਸ ਕੰਪਿਊਟਰ ਨੂੰ ਹੁਣ " +#~ "ਤੁਹਾਡੀ ਨਵੀਂ ਕੁੰਜੀ ਪਛਾਣਨ ਲਈ ਸੈੱਟ ਅੱਪ ਕਰ ਸਕਦੇ ਹੋ।" + +#~ msgid "(Unreadable Secure Shell Key)" +#~ msgstr "(ਨਾ-ਪੜ੍ਹਨਯੋਗ ਸੁਰੱਖਿਅਤ ਸ਼ੈੱਲ ਕੁੰਜੀ)" + +#~ msgid "Personal SSH key" +#~ msgstr "ਨਿੱਜੀ SSH ਕੁੰਜੀ" + +#~ msgid "SSH key" +#~ msgstr "SSH ਕੁੰਜੀ" + +#~ msgid "Couldn't rename key." +#~ msgstr "ਕੁੰਜੀ ਨਾਂ ਨਹੀਂ ਬਦਲਿਆ ਜਾ ਸਕਿਆ ਹੈ।" + +#~ msgid "Couldn't change authorization for key." +#~ msgstr "ਕੁੰਜੀ ਲਈ ਪਰਮਾਣਕਿਤਾ ਨਹੀਂ ਬਦਲੀ ਜਾ ਸਕੀ ਹੈ।" + +#~ msgid "Couldn't change passphrase for key." +#~ msgstr "ਕੁੰਜੀ ਲਈ ਪ੍ਹੈਰਾ ਨਹੀਂ ਬਦਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ।" + +#~ msgid "Identifier:" +#~ msgstr "ਪਛਾਣਕਰਤਾ:" + +#~ msgctxt "name-of-ssh-key" +#~ msgid "Name:" +#~ msgstr "ਨਾਂ:" + +#~ msgid "Used to connect to other computers." +#~ msgstr "ਹੋਰ ਕੰਪਿਊਟਰਾਂ ਨਾਲ ਜੁੜਨ ਲਈ ਵਰਤੋਂ।" + +#~ msgid "The owner of this key is _authorized to connect to this computer" +#~ msgstr "ਇਹ ਕੁੰਜੀ ਦਾ ਮਾਲਕ ਇਹ ਕੰਪਿਊਟਰ ਨਾਲ ਜੁੜ ਸਕਦਾ ਹੈ(_a)" + +#~ msgid "This only applies to the %s account." +#~ msgstr "ਇਹ ਸਿਰਫ਼ %s ਅਕਾਊਂਟ ਉੱਤੇ ਹੀ ਲਾਗੂ ਹੁੰਦਾ ਹੈ।" + +#~ msgid "Algorithm:" +#~ msgstr "ਐਲੋਗਰਥਿਮ:" + +#~ msgid "Location:" +#~ msgstr "ਟਿਕਾਣਾ:" + +#~ msgid "E_xport Complete Key" +#~ msgstr "ਪੂਰੀ ਕੁੰਜੀ ਐਕਸਪੋਰਟ(_x)" + +#~ msgid "The SSH command was terminated unexpectedly." +#~ msgstr "SSH ਕਮਾਂਡ ਅਚਾਨਕ ਬੰਦ ਹੋ ਗਈ ਹੈ।" + +#~ msgid "The SSH command failed." +#~ msgstr "SSH ਕਮਾਂਡ ਫੇਲ੍ਹ ਹੋਈ।" + +#~ msgid "Remote Host Password" +#~ msgstr "ਰਿਮੋਟ ਹੋਸਟ ਪਾਸਵਰਡ" + +#~ msgid "Enter Key Passphrase" +#~ msgstr "ਕੁੰਜੀ ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "Passphrase for New Secure Shell Key" +#~ msgstr "ਨਵੀਂ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ ਲਈ ਪ੍ਹੈਰਾ" + +#~ msgid "Importing key: %s" +#~ msgstr "ਕੁੰਜੀ ਇੰਪੋਰਟ ਕੀਤੀ ਜਾ ਰਹੀ ਹੈ: %s" + +#~ msgid "Importing key. Enter passphrase" +#~ msgstr "ਕੁੰਜੀ ਇੰਪੋਰਟ ਕੀਤੀ ਜਾ ਰਹੀ ਹੈ: ਪ੍ਹੈਰਾ ਦਿਓ" + +#~ msgid "OpenSSH keys" +#~ msgstr "OpenSSH ਕੁੰਜੀਆਂ" + +#~ msgid "OpenSSH: %s" +#~ msgstr "OpenSSH: %s" + +#~ msgid "No private key file is available for this key." +#~ msgstr "ਇਸ ਕੁੰਜੀ ਲਈ ਕੋਈ ਪਰਾਈਵੇਟ ਕੁੰਜੀ ਫਾਇਲ ਨਹੀਂ ਹੈ।" + +#~ msgid "Couldn't configure Secure Shell keys on remote computer." +#~ msgstr "ਰਿਮੋਟ ਕੰਪਿਊਟਰ ਉੱਤੇ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀਆਂ ਦੀ ਸੰਰਚਨਾ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ।" + +#~ msgid "Configuring Secure Shell Keys..." +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀਆਂ ਦੀ ਸੰਰਚਨਾ ਕੀਤੀ ਜਾ ਰਹੀ ਹੈ..." + +#~ msgid "Set Up Computer for SSH Connection" +#~ msgstr "SSH ਕੁਨੈਕਸ਼ਨ ਲਈ ਕੰਪਿਊਟਰ ਸੈੱਟਅੱਪ" + +#~ msgid "" +#~ "To use your Secure Shell key with another computer that uses SSH, you " +#~ "must already have a login account on that computer." +#~ msgstr "" +#~ "ਹੋਰ ਕੰਪਿਊਟਰ ਨਾਲ ਆਪਣੀ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ ਵਰਤਣ ਲਈ, ਜੋ ਕਿ SSH ਵਰਤਦਾ ਹੈ, ਤੁਹਾਡਾ ਉਸ " +#~ "ਕੰਪਿਊਟਰ ਉੱਤੇ ਇੱਕ ਲਾਗਇਨ ਅਕਾਊਂਟ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।" + +#~ msgid "eg: fileserver.example.com:port" +#~ msgstr "ਜਿਵੇਂ: fileserver.example.com:port" + +#, fuzzy +#~| msgid "Resolving server address: %s" +#~ msgid "_Server address:" +#~ msgstr "ਸਰਵਰ ਐਡਰੈੱਸ ਹੱਲ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ: %s" + +#, fuzzy +#~| msgid "_Login Name:" +#~ msgid "_Login name:" +#~ msgstr "ਲਾਗਇਨ ਨਾਂ(_L):" + +#~ msgid "_Set Up" +#~ msgstr "ਸੈੱਟਅੱਪ(_S)" + +#~ msgid "Updating password" +#~ msgstr "ਪਾਸਵਰਡ ਅੱਪਡੇਟ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ" + +#~ msgid "Keyring Properties" +#~ msgstr "ਕੀਰਿੰਗ ਵਿਸ਼ੇਸ਼ਤਾ" + +#~ msgid "%Y-%m-%d" +#~ msgstr "%d-%m-%Y" + +#~ msgid "_Computer Name:" +#~ msgstr "ਕੰਪਿਊਟਰ ਨਾਂ(_C):" + +#~ msgid "Password:" +#~ msgstr "ਪਾਸਵਰਡ:" + +#~ msgid "Key Servers:" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ:" + +#~ msgid "Never" +#~ msgstr "ਕਦੇ ਨਹੀਂ" + +#~ msgid "Key ID:" +#~ msgstr "ਕੁੰਜੀ ID:" + +#~ msgctxt "name-of-key" +#~ msgid "Name:" +#~ msgstr "ਨਾਂ:" + +#~ msgid "Comment:" +#~ msgstr "ਟਿੱਪਣੀ:" + +#~ msgid "Use:" +#~ msgstr "ਵਰਤੋਂ:" + +#~ msgid "Type:" +#~ msgstr "ਕਿਸਮ:" + +#~ msgid "Key Names and Signatures" +#~ msgstr "ਕੁੰਜੀ ਨਾਂ ਅਤੇ ਦਸਤਖਤ" + +#~ msgid "Dates" +#~ msgstr "ਤਾਰੀਖ" + +#~ msgid "Actions" +#~ msgstr "ਐਕਸ਼ਨ" + +#~ msgid "Dates:" +#~ msgstr "ਤਾਰੀਖ:" + +#~ msgid "Key Name" +#~ msgstr "ਕੁੰਜੀ ਨਾਂ" + +#~ msgctxt "name-of-ssh-key" +#~ msgid "Name:" +#~ msgstr "ਨਾਂ:" + +#~ msgid "Trust" +#~ msgstr "ਟਰੱਸਟ" + +#~ msgid "Strength:" +#~ msgstr "ਤਾਕਤ:" + +#~ msgid "Login keyring" +#~ msgstr "ਲਾਗਇਨ ਕੀਰਿੰਗ" + +#~ msgid "Access to the key ring was denied" +#~ msgstr "ਕੁੰਜੀ ਰਿੰਗ ਲਈ ਅਸੈੱਸ ਵਾਸਤੇ ਪਾਬੰਦੀ ਹੈ" + +#~ msgid "The gnome-keyring daemon is not running" +#~ msgstr "ਗਨੋਮ-ਕੀਰਿੰਗ ਡੈਮਨ ਨਹੀਂ ਚੱਲਦੀ ਹੈ" + +#~ msgid "The key ring has already been unlocked" +#~ msgstr "ਕੁੰਜੀ ਰਿੰਗ ਪਹਿਲਾਂ ਹੀ ਅਣ-ਲਾਕ ਹੈ" + +#~ msgid "No such key ring exists" +#~ msgstr "ਏਦਾਂ ਦੀ ਕੋਈ ਕੀ ਰਿੰਗ ਮੌਜੂਦ ਨਹੀਂ ਹੈ" + +#~ msgid "Couldn't communicate with key ring daemon" +#~ msgstr "ਕੁੰਜੀ ਰਿੰਗ ਡੈਮਨ ਨਾਲ ਸੰਪਰਕ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Internal error accessing gnome-keyring" +#~ msgstr "ਗਨੋਮ-ਕੀਰਿੰਗ ਨੂੰ ਅਸੈੱਸ ਕਰਨ ਦੌਰਾਨ ਅੰਦਰੂਨੀ ਗਲਤੀ" + +#~ msgid "Algorithms here" +#~ msgstr "ਐਲੋਗਰਿਥਮ ਇੱਥੇ" + +#~ msgid "Deleting item" +#~ msgid_plural "Deleting items" +#~ msgstr[0] "ਆਈਟਮ ਹਟਾਈ ਜਾ ਰਹੀ ਹੈ" +#~ msgstr[1] "ਆਈਟਮਾਂ ਹਟਾਈਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "Passwords: %s" +#~ msgstr "ਪਾਸਵਰਡ: %s" + +#~ msgid "Passwords: %s" +#~ msgstr "ਪਾਸਵਰਡ: %s" + +#~ msgid "Couldn't lock keyring" +#~ msgstr "ਕੀਰਿੰਗ ਲਾਕ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "" +#~ "Lock the password storage keyring so a master password is required to " +#~ "unlock it." +#~ msgstr "" +#~ "ਪਾਸਵਰਡ ਸਟੋਰੇਜ਼ ਕੀਰਿੰਗ ਲਾਕ ਕਰੋ ਤਾਂ ਕਿ ਇਸ ਨੂੰ ਅਣ-ਲਾਕ ਕਰਨ ਲਈ ਮਾਸਟਰ ਪਾਸਵਰਡ ਦੀ ਲੋੜ ਹੋਵੇ" + +#~ msgid "" +#~ "Unlock the password storage keyring with a master password so it is " +#~ "available for use." +#~ msgstr "" +#~ "ਪਾਸਵਰਡ ਸਟੋਰੇਜ਼ ਕੀਰਿੰਗ ਨੂੰ ਇੱਕ ਮਾਸਟਰ ਪਾਸਵਰਡ ਨਾਲ ਅਣ-ਲਾਕ ਕਰੋ ਤਾਂ ਕਿ ਇਸ ਨੂੰ ਵਰਤਣ ਲਈ " +#~ "ਉਪਲੱਬਧ ਕਰਵਾਇਆ ਜਾ ਸਕੇ।" + +#~ msgid "Couldn't delete keyring" +#~ msgstr "ਕੀਰਿੰਗ ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Archive files" +#~ msgstr "ਅਕਾਇਵ ਫਾਇਲਾਂ" + +#~ msgid "" +#~ "A file already exists with this name.\n" +#~ "\n" +#~ "Do you want to replace it with a new file?" +#~ msgstr "" +#~ "ਇਸ ਨਾਂ ਨਾਲ ਫਾਇਲ ਪਹਿਲਾਂ ਹੀ ਮੌਜੂਦ ਹੈ।\n" +#~ "\n" +#~ "ਕੀ ਤੁਸੀਂ ਇਸ ਨੂੰ ਨਵੀਂ ਫਾਇਲ ਨਾਲ ਬਦਲਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "_Replace" +#~ msgstr "ਬਦਲੋ(_R)" + +#~ msgid "_Sign Key..." +#~ msgstr "ਸਾਇਨ ਕੁੰਜੀ(_S)..." + +#~ msgid "Sign public key" +#~ msgstr "ਪਬਲਿਕ ਕੁੰਜੀ ਸਾਇਨ" + +#~ msgid "Are you sure you want to permanently delete %d keys and identities?" +#~ msgstr "ਕੀ ਤੁਸੀਂ %d ਕੁੰਜੀਆਂ ਅਤੇ ਪਛਾਣ ਹਮੇਸ਼ਾਂ ਲਈ ਹਟਾਉਣ ਵਾਸਤੇ ਤਿਆਰ ਹੋ?" + +#~ msgid "Couldn't delete public key" +#~ msgstr "ਪਬਲਿਕ ਕੁੰਜੀ ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "New PGP Key" +#~ msgstr "ਨਵੀਂ PGP ਕੁੰਜੀ" + +#~ msgid "Couldn't export key to \"%s\"" +#~ msgstr "\"%s\" ਲਈ ਕੁੰਜੀ ਐਕਸਪੋਰਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Export Complete Key" +#~ msgstr "ਪੂਰੀ ਕੁੰਜੀ ਐਕਸਪੋਰਟ" + +#~ msgid "Are you sure you want to delete the certificate '%s'?" +#~ msgstr "ਕੀ ਤੁਸੀਂ ਸਰਟੀਫਿਕੇਟ '%s' ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Are you sure you want to delete %d certificate?" +#~ msgid_plural "Are you sure you want to delete %d certificates?" +#~ msgstr[0] "ਕੀ ਤੁਸੀਂ %d ਸਰਟੀਫਿਕੇਟ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" +#~ msgstr[1] "ਕੀ ਤੁਸੀਂ %d ਪਾਸਵਰਡਾਂ ਨੂੰ ਹਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Deleting" +#~ msgstr "ਹਟਾਈ ਜਾ ਰਹੀ ਹੈ" + +#~ msgid "Create New ..." +#~ msgstr "ਨਵੀਂ ਬਣਾਓ..." + +#~ msgid "Selected %d key" +#~ msgid_plural "Selected %d keys" +#~ msgstr[0] "ਚੁਣੀ %d ਕੁੰਜੀ" +#~ msgstr[1] "ਚੁਣੀਆਂ %d ਕੁੰਜੀਆਂ" + +#~ msgid "Importing keys" +#~ msgstr " ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "Unrecognized key type, or invalid data format" +#~ msgstr "ਬੇਪਛਾਣ ਕੁੰਜੀ ਕਿਸਮ ਹੈ ਜਾਂ ਗਲਤ ਡਾਟਾ ਫਾਰਮੈਟ" + +#~ msgid "Importing Keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "T_ypes" +#~ msgstr "ਟਾਈਪ(_y)" + +#~ msgid "Show type column" +#~ msgstr "ਟਾਈਪ ਕਾਲਮ ਵੇਖੋ" + +#~ msgid "_Expiry" +#~ msgstr "ਮਿਆਦ(_E)" + +#~ msgid "Show expiry column" +#~ msgstr "ਮਿਆਦ ਕਾਲਮ ਵੇਖੋ" + +#~ msgid "_Trust" +#~ msgstr "ਟਰੱਸਟ(_T)" + +#~ msgid "Show owner trust column" +#~ msgstr "ਓਨਰ ਟਰੱਸਟ ਕਾਲਮ ਵੇਖੋ" + +#~ msgid "_Validity" +#~ msgstr "ਵੈਧਤਾ(_V)" + +#~ msgid "Show validity column" +#~ msgstr "ਵੈਧਤਾ ਕਾਲਮ ਵੇਖੋ" + +#~ msgid "Other _Keys" +#~ msgstr "ਹੋਰ ਕੁੰਜੀਆਂ(_K)" + +#~ msgid "Validity" +#~ msgstr "ਵੈਧਤਾ" + +#~ msgid "Expiration Date" +#~ msgstr "ਮਿਆਦ" + +#~ msgid "_Expand All" +#~ msgstr "ਸਭ ਫੈਲਾਓ(_E)" + +#~ msgid "Expand all listings" +#~ msgstr "ਸਭ ਲਿਸਟਿੰਗ ਫੈਲਾਓ" + +#~ msgid "_Collapse All" +#~ msgstr "ਸਭ ਸਮੇਟੋ(_C)" + +#~ msgid "Collapse all listings" +#~ msgstr "ਸਭ ਲਿਸਟਿੰਗ ਸਮੇਟੋ" + +#~ msgid "Export public key" +#~ msgstr "ਪਬਲਿਕ ਕੁੰਜੀ ਐਕਸਪੋਰਟ" + +#~ msgid "Exporting keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਐਕਸਪੋਰਟ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "Couldn't retrieve data from key server" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ ਤੋਂ ਡਾਟਾ ਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ" + +#~ msgid "Retrieving keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਲਈਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "%s is a private key. Are you sure you want to proceed?" +#~ msgstr "%s ਇੱਕ ਪ੍ਰਾਈਵੇਟ ਕੁੰਜੀ ਹੈ। ਕੀ ਤੁਸੀਂ ਜਾਰੀ ਰੱਖਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Couldn't delete key" +#~ msgstr "ਕੁੰਜੀ ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "_Key Description:" +#~ msgstr "ਕੁੰਜੀ ਵੇਰਵਾ(_K):" + +#~ msgid "Enter a passphrase for your new Secure Shell key." +#~ msgstr "ਆਪਣੀ ਨਵੀਂ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ ਲਈ ਪ੍ਹੈਰਾ ਦਿਓ।" + +#~ msgid "Do not run seahorse-daemon as a daemon" +#~ msgstr "ਸੀ-ਹਾਰਸ-ਡੈਮਨ ਇੱਕ ਡੈਮਨ ਵਾਂਗ ਨਾ ਚਲਾਓ" + +#~ msgid "couldn't fork process" +#~ msgstr "ਕਾਰਜ ਅੱਡ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Encryption Daemon (Seahorse)" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਡੈਮਨ (ਸੀ-ਹਾਰਸ)" + +#~ msgid "Invalid or unrecognized key type: %s" +#~ msgstr "ਗਲਤ ਜਾਂ ਅਣਜਾਣ ਕੁੰਜੀ ਕਿਸਮ: %s" + +#~ msgid "This keytype is not supported: %s" +#~ msgstr "ਇਹ ਕੁੰਜੀ-ਕਿਸਮ ਸਹਾਇਕ ਨਹੀਂ: %s" + +#~ msgid "Support for this feature was not enabled at build time" +#~ msgstr "ਇਹ ਫੀਚਰ ਲਈ ਸਹਿਯੋਗ ਬਿਲਡ ਸਮੇਂ ਚਾਲੂ ਨਹੀਂ ਕੀਤਾ ਗਿਆ ਸੀ।" + +#~ msgid "Invalid or unrecognized key: %s" +#~ msgstr "ਅਵੈਧ ਜਾਂ ਬੇਪਛਾਣ ਕੁੰਜੀ: %s" + +#~ msgid "Signed by expired on %s." +#~ msgstr " ਵਲੋਂ ਸਾਇਨ ਮਿਆਦ %s ਤੱਕ।" + +#~ msgid "Invalid Signature" +#~ msgstr "ਗਲਤ ਦਸਤਖਤ" + +#~ msgid "Signed by on %s Expired." +#~ msgstr " ਵਲੋਂ %s ਉੱਤੇ ਸਾਇਨਾਂ ਦੀ ਮਿਆਦ ਪੁੱਗੀ।" + +#~ msgid "Expired Signature" +#~ msgstr "ਦਸਤਖਤਾਂ ਦੀ ਮਿਆਦ ਪੁੱਗੀ" + +#~ msgid "Signed by Revoked on %s." +#~ msgstr " ਵਲੋਂ ਸਾਇਨ ਵਾਪਸ ਲਏ %s ਉੱਤੇ।" + +#~ msgid "Revoked Signature" +#~ msgstr "ਦਸਤਖਤ ਮਨਸੂਖ" + +#~ msgid "Signed by on %s." +#~ msgstr "ਰਾਹੀਂ %s ਉੱਤੇ ਸਾਇਨ।" + +#~ msgid "Good Signature" +#~ msgstr "ਵਧੀਆ ਦਸਤਖਤ" + +#~ msgid "Signing key not in keyring." +#~ msgstr "ਸਾਇਨ ਕੁੰਜੀ ਕੀਰਿੰਗ 'ਚ ਨਹੀਂ ਹੈ।" + +#~ msgid "Unknown Signature" +#~ msgstr "ਅਣਜਾਣ ਦਸਤਖਤ" + +#~ msgid "Bad or forged signature. The signed data was modified." +#~ msgstr "ਗਲਤ ਜਾਂ ਭੁੱਲੇ ਦਸਤਖਤ ਹਨ। ਸਾਇਨ ਡਾਟਾ ਸੋਧਿਆ ਗਿਆ ਹੈ।" + +#~ msgid "Bad Signature" +#~ msgstr "ਗਲਤ ਦਸਤਖਤ" + +#~ msgid "Invalid or unrecognized signer: %s" +#~ msgstr "ਅਵੈਧ ਜਾਂ ਬੇਪਛਾਣ ਸਾਇਨਰ: %s" + +#~ msgid "Key is not valid for signing: %s" +#~ msgstr "ਕੁੰਜੀ ਸਾਇਨ ਕਰਨ ਲਈ ਵੈਧ ਨਹੀਂ: %s" + +#~ msgid "Invalid or unrecognized recipient: %s" +#~ msgstr "ਅਵੈਧ ਜਾਂ ਬੇਪਛਾਣ ਪ੍ਰਾਪਤ ਕਰਤਾ: %s" + +#~ msgid "Key is not a valid recipient for encryption: %s" +#~ msgstr "ਕੁੰਜੀ ਇੰਕ੍ਰਿਪਸ਼ਨ ਲਈ ਵੈਧ ਪ੍ਰਾਪਤ ਕਰਤਾ ਨਹੀਂ ਹੈ: %s" + +#~ msgid "No recipients specified" +#~ msgstr "ਕੋਈ ਪ੍ਰਾਪਤ ਕਰਤਾ ਨਹੀਂ ਦਿੱਤਾ" + +#~ msgid "Please set clearuri" +#~ msgstr "clearuri ਸੈੱਟ ਕਰੋ" + +#~ msgid "Please set crypturi" +#~ msgstr "crypturi ਸੈੱਟ ਕਰੋ" + +#~ msgid "Error opening clearuri" +#~ msgstr "clearuri ਖੋਲ੍ਹਣ ਦੌਰਾਨ ਗਲਤੀ" + +#~ msgid "No signer specified" +#~ msgstr "ਕੋਈ ਸਾਇਨਰ ਦਿੱਤਾ ਨਹੀਂ" + +#~ msgid "Invalid key type for verifying: %s" +#~ msgstr "ਜਾਂਚ ਲਈ ਗਲਤ ਕੁੰਜੀ ਕਿਸਮ: %s" + +#~ msgid "" +#~ "A list of key server URIs to search for remote PGP keys. In later " +#~ "versions a display name can be included, by appending a space and then " +#~ "the name." +#~ msgstr "" +#~ "ਰਿਮੋਟ PGP ਕੁੰਜੀਆਂ ਲਈ ਕੁੰਜੀ ਸਰਵਰ URI ਦੀ ਲਿਸਟ ਹੈ। ਬਾਅਦ ਦੇ ਵਰਜਨ ਵਿੱਚ ਨਾਂ ਵੇਖਾਇਆ ਜਾ ਸਕਦਾ " +#~ "ਹੈ, ਜਿਸ ਵਿੱਚ ਖਾਲੀ ਥਾਂ ਜੋੜਨ ਤੋਂ ਨਾਂ ਜੋੜਿਆ ਜਾ ਸਕਦਾ ਹੈ।" + +#~ msgid "Auto Retrieve Keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਆਟੋ ਲਵੋ" + +#~ msgid "Auto Sync Keys" +#~ msgstr "ਆਟੋ ਸੈਕਰੋ ਕੁੰਜੀਆਂ" + +#~ msgid "Controls the visibility of the expires column for the key manager." +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ ਲਈ ਮਿਆਦ ਕਾਲਮ ਦੀ ਦਿੱਖ ਕੰਟਰੋਲ ਕਰੋ।" + +#~ msgid "Controls the visibility of the trust column for the key manager." +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ ਲਈ ਟਰੱਸਟ ਕਾਲਮ ਦੀ ਦਿੱਖ ਕੰਟਰੋਲ ਕਰੋ।" + +#~ msgid "Controls the visibility of the type column for the key manager." +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ ਲਈ ਕਿਸਮ ਕਾਲਮ ਦੀ ਦਿੱਖ ਕੰਟਰੋਲ ਕਰੋ।" + +#~ msgid "Controls the visibility of the validity column for the key manager." +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ ਲਈ ਵੈਧਤਾ ਕਾਲਮ ਦੀ ਦਿੱਖ ਕੰਟਰੋਲ ਕਰੋ।" + +#~ msgid "Enable DNS-SD sharing" +#~ msgstr "DNS-SD ਸਾਂਝ ਯੋਗ" + +#~ msgid "" +#~ "Enables DNS-SD (Apple Bonjour) sharing of keys. seahorse-daemon must be " +#~ "running and must be built with HKP and DNS-SD support." +#~ msgstr "" +#~ "ਕੁੰਜੀਆਂ ਸਾਂਝੀਆਂ ਕਰਨ ਲਈ DNS-SD (ਐਪਲ ਬੋਂਜੋਰ) ਯੋਗ ਕਰੋ। seahorse-daemon ਚੱਲਦੀ ਹੋਣੀ ਚਾਹੀਦੀ " +#~ "ਹੈ ਅਤੇ HKP ਅਤੇ DNS-SD ਸਹਿਯੋਗ ਨਾਲ ਬਿਲਡ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।" + +#~ msgid "ID of the default key" +#~ msgstr "ਡਿਫਾਲਟ ਕੁੰਜੀ ਦੀ ID" + +#~ msgid "" +#~ "If set to true, then files encrypted with seahorse will be ASCII armor " +#~ "encoded." +#~ msgstr "ਜੇ ਚੁਣਿਆ ਤਾਂ, ਸੀ-ਹਾਰਸ ਨਾਲ ਇੰਕ੍ਰਿਪਟ ਕੀਤੀਆਂ ਫਾਇਲਾਂ ASCII armor ਇੰਕੋਡ ਹੋਣਗੀਆਂ।" + +#~ msgid "" +#~ "If set to true, then the default key will always be added to an " +#~ "encryption recipients list." +#~ msgstr "" +#~ "ਜੇ ਚੋਣ ਕੀਤੀ ਤਾਂ ਡਿਫਾਲਟ ਕੁੰਜੀ ਨੂੰ ਇੱਕ ਇੰਕ੍ਰਿਪਟ ਪ੍ਰਾਪਤਕਰਤਾ ਲਿਸਟ ਵਿੱਚ ਹਮੇਸ਼ਾਂ ਸ਼ਾਮਲ ਕੀਤਾ " +#~ "ਜਾਵੇਗਾ।" + +#~ msgid "Last key server search pattern" +#~ msgstr "ਆਖਰੀ ਕੁੰਜੀ ਸਰਵਰ ਖੋਜ ਪੈਟਰਨ" + +#~ msgid "Last key servers used" +#~ msgstr "ਵਰਤਿਆ ਆਖਰੀ ਕੁੰਜੀ ਸਰਵਰ" + +#~ msgid "Last key used to sign a message." +#~ msgstr "ਇੱਕ ਸੁਨੇਹਾ ਸਾਇਨ ਕਰਨ ਲਈ ਵਰਤੀ ਆਖਰੀ ਕੁੰਜੀ।" + +#~ msgid "PGP Key servers" +#~ msgstr "PGP ਕੁੰਜੀ ਸਰਵਰ" + +#~ msgid "Publish keys to this key server." +#~ msgstr "ਕੁੰਜੀਆਂ ਇਹ ਕੁੰਜੀ-ਸਰਵਰ ਉੱਤੇ ਪਬਲਿਸ਼ ਕਰੋ।" + +#~ msgid "Show expires column in key manager" +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ ਵਿੱਚ ਮਿਆਦ ਕਾਲਮ ਵੇਖਾਓ" + +#~ msgid "Show trust column in key manager" +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ 'ਚ ਭਰੋਸਾ ਕਾਲਮ ਵੇਖਾਓ" + +#~ msgid "Show type column in key manager" +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ 'ਚ ਕਿਸਮ ਕਾਲਮ ਵੇਖਾਓ" + +#~ msgid "Show validity column in key manager" +#~ msgstr "ਕੁੰਜੀ ਮੈਨੇਜਰ 'ਚ ਵੈਧਤਾ ਕਾਲਮ ਵੇਖਾਓ" + +#~ msgid "" +#~ "Specify the column to sort the recipients window by. Columns are: 'name' " +#~ "and 'id'. Put a '-' in front of the column name to sort in descending " +#~ "order." +#~ msgstr "" +#~ "ਪ੍ਰਾਪਤ ਕਰਤਾ ਵਿੰਡੋ ਰਾਹੀਂ ਲੜੀਬੱਧ ਕਰਨ ਲਈ ਕਾਲਮ ਦਿਓ। ਕਾਲਮ ਹਨ: 'ਨਾਂ' ਅਤੇ 'id'। ਘੱਟਦੇ ਕ੍ਰਮ " +#~ "ਵਿੱਚ ਲੜੀਬੱਧ ਕਰਨ ਲਈ ਕਾਲਮ ਨਾਂ ਦੇ ਅੱਗੇ '-' ਪਾ ਦਿਓ।" + +#~ msgid "" +#~ "Specify the column to sort the seahorse key manager main window by. " +#~ "Columns are: 'name', 'id', 'validity', 'expires', 'trust', and 'type'. " +#~ "Put a '-' in front of the column name to sort in descending order." +#~ msgstr "" +#~ "ਸੀ-ਹਾਰਸ ਵਿੱਚ ਮੁੱਖ ਵਿੰਡੋ ਰਾਹੀਂ ਲੜੀਬੱਧ ਕਰਨ ਲਈ ਕਾਲਮ ਦਿਓ। ਕਾਲਮ ਹਨ: 'ਨਾਂ, 'id', " +#~ "'ਵੈਧਤਾ', 'ਮਿਆਦ', 'ਟਰੱਸਟ' ਅਤੇ 'ਕਿਸਮ'। ਘੱਟਦੇ ਕ੍ਰਮ ਵਿੱਚ ਲੜੀਬੱਧ ਕਰਨ ਲਈ ਕਾਲਮ ਨਾਂ ਦੇ ਅੱਗੇ " +#~ "'-' ਪਾ ਦਿਓ।" + +#~ msgid "The ID of the last secret key used to sign a message." +#~ msgstr "ਇੱਕ ਸੁਨੇਹੇ ਉੱਤੇ ਸਾਇਨ ਕਰਨ ਲਈ ਵਰਤੀ ਆਖਰੀ ਗੁਪਤ ਕੁੰਜੀ ਦਾ ID।" + +#~ msgid "The column to sort the recipients by" +#~ msgstr "ਪ੍ਰਾਪਤਕਰਤਾ ਲੜੀਬੱਧ ਕਰਨ ਲਈ ਕਾਲਮ" + +#~ msgid "The column to sort the seahorse keys by" +#~ msgstr "ਸੀ-ਹਾਰਸ ਕੁੰਜੀਆਂ ਲੜੀਬੱਧ ਕਰਨ ਲਈ ਕਾਲਮ" + +#~ msgid "" +#~ "The key server to publish PGP keys to. Or empty to suppress publishing of " +#~ "PGP keys." +#~ msgstr "" +#~ "PGP ਕੁੰਜੀਆਂ ਪਬਲਿਸ਼ ਕਰਨ ਲਈ ਕੁੰਜੀ ਸਰਵਰ ਹੈ। ਜਾਂ PGP ਕੁੰਜੀਆਂ ਪਬਲਿਸ਼ ਨੂੰ ਸਪਪਰੈੱਸ ਕਰਨ ਲਈ ਖਾਲੀ " +#~ "ਦਿਓ।" + +#~ msgid "" +#~ "The last key server a search was performed against or empty for all key " +#~ "servers." +#~ msgstr "ਆਖਰੀ ਕੁੰਜੀ ਸਰਵਰ, ਜਿਸ ਲਈ ਖੋਜ ਕੀਤੀ ਗਈ ਸੀ ਜਾਂ ਸਭ ਕੁੰਜੀ ਸਰਵਰਾਂ ਲਈ ਖਾਲੀ ਰੱਖੋ।" + +#~ msgid "The last search pattern searched for against a key server." +#~ msgstr "ਇੱਕ ਕੁੰਜੀ ਸਰਵਰ ਲਈ ਖੋਜ ਲਈ ਵਰਤਿਆ ਆਖਰੀ ਖੋਜ ਪੈਟਰਨ ਹੈ।" + +#~ msgid "" +#~ "This specifies the default key to use for certain operations, mainly " +#~ "signing." +#~ msgstr "ਇਹ ਕੁਝ ਓਪਰੇਸ਼ਨਾਂ, ਖਾਸ ਕਰਕੇ ਸਾਇਨ ਲਈ, ਵਰਤਣ ਵਾਸਤੇ ਡਿਫਾਲਟ ਕੁੰਜੀ ਸੈੱਟ ਕਰਦੀ ਹੈ।" + +#~ msgid "" +#~ "Whether or not keys should be automatically retrieved from key servers." +#~ msgstr "ਕੀ ਕੁੰਜੀ ਸਰਵਰਾਂ ਤੋਂ ਕੁੰਜੀਆਂ ਆਟੋਮੈਟਿਕ ਹੀ ਲੈਣੀਆਂ ਹਨ ਜਾਂ ਨਹੀਂ।" + +#~ msgid "" +#~ "Whether or not modified keys should be automatically synced with the " +#~ "default key server." +#~ msgstr "ਕੀ ਸੋਧੀਆਂ ਕੁੰਜੀਆਂ ਆਟੋਮੈਟਿਕ ਹੀ ਡਿਫਾਲਟ ਸਰਵਰ ਨਾਲ ਸਿਕਰੋਨਾਈਜ਼ ਕੀਤੀਆਂ ਜਾਣ ਕਿ ਨਾ।" + +#~ msgid "Whether to always encrypt to default key" +#~ msgstr "ਕੀ ਹਮੇਸ਼ਾਂ ਇੰਕ੍ਰਿਪਟ ਡਿਫਾਲਟ ਕੁੰਜੀ ਨਹੀਂ ਵਰਤਣੀ ਹੈ" + +#~ msgid "Whether to use ASCII Armor" +#~ msgstr "ਕੀ ASCII Armor ਵਰਤਣਾ ਹੈ" + +#~ msgid "Web Password" +#~ msgstr "ਵੈੱਬ ਪਾਸਵਰਡ" + +#~ msgid "Couldn't set application access." +#~ msgstr "ਐਪਲੀਕੇਸ਼ਨ ਅਸੈੱਸ ਸੈੱਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ।" + +#~ msgid "Path:" +#~ msgstr "ਪਾਥ:" + +#~ msgid "Permissions:" +#~ msgstr "ਅਧਿਕਾਰ:" + +#~ msgid "_Read" +#~ msgstr "ਪੜ੍ਹੋ(_R)" + +#~ msgid "_Write" +#~ msgstr "ਲਿਖੋ(_W)" + +#~| msgid "_Delete" +#~ msgctxt "infinitive" +#~ msgid "_Delete" +#~ msgstr "ਹਟਾਓ(_D)" + +#~ msgid "Saving item..." +#~ msgstr "ਆਈਟਮ ਸੰਭਾਲੀ ਜਾਂਦੀ ਹੈ..." + +#~ msgid "Listing password keyrings" +#~ msgstr "ਪਾਸਵਰਡ ਕੀਰਿੰਗ ਲਿਸਟ ਕੀਤੇ ਜਾ ਰਹੇ ਹਨ" + +#~ msgid "" +#~ "No encryption keys were found with which to perform the operation you " +#~ "requested. The program Passwords and Encryption Keys will now be " +#~ "started so that you may either create a key or import one." +#~ msgstr "" +#~ "ਕੋਈ ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀਆਂ ਨਹੀਂ ਲੱਭੀਆਂ, ਜਿਸ ਨਾਲ ਤੁਹਾਡੇ ਵਲੋਂ ਮੰਗੇ ਗਿਆ ਓਪਰੇਸ਼ਨ ਕੀਤਾ ਜਾ ਸਕੇ। ਪਰੋਗਰਾਮ " +#~ "ਪਾਸਵਰਡ ਅਤੇ ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀਆਂ ਹੁਣ ਸ਼ੁਰੂ ਹੋਵੇਗਾ ਤਾਂ ਤੁਸੀਂ ਜਾਂ ਤਾਂ ਨਵੀਂ ਕੁੰਜੀ ਬਣਾ ਸਕੋ ਜਾਂ " +#~ "ਇਸ ਨੂੰ ਇੰਪੋਰਟ ਕਰ ਸਕੋ।" + +#~ msgid "All Keys" +#~ msgstr "ਸਭ ਕੁੰਜੀਆਂ" + +#~ msgid "Selected Recipients" +#~ msgstr "ਚੁਣੇ ਸੁਨੇਹੀ" + +#~ msgid "Search Results" +#~ msgstr "ਖੋਜ ਨਤੀਜੇ" + +#~ msgid "Search _for:" +#~ msgstr "ਖੋਜ(_f):" + +#~ msgid "None (Don't Sign)" +#~ msgstr "ਕੋਈ ਨਹੀਂ (ਦਸਤਖਤੀ ਨਹੀਂ)" + +#~ msgid "Sign this message as %s" +#~ msgstr "ਇਹ ਸੁਨੇਹਾ %s ਵਾਂਗ ਭੇਜੋ" + +#~ msgid "_Sign message as:" +#~ msgstr "ਦਸਤਖਤੀ ਸੁਨੇਹਾ ਵਾਂਗ(_S):" + +#~ msgid "Unrecognized desktop file Version '%s'" +#~ msgstr "ਬੇਪਛਾਣ ਡੈਸਕਟਾਪ ਫਾਇਲ ਵਰਜਨ '%s'" + +#~ msgid "Starting %s" +#~ msgstr "%s ਸ਼ੁਰੂ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ" + +#~ msgid "Application does not accept documents on command line" +#~ msgstr "ਐਪਲੀਕੇਸ਼ਨ ਕਮਾਂਡ ਲਾਈਨ ਉੱਤੇ ਡੌਕੂਮੈਂਟ ਮਨਜ਼ੂਰ ਨਹੀਂ ਕਰਦਾ ਹੈ" + +#~ msgid "Unrecognized launch option: %d" +#~ msgstr "ਬੇਪਛਾਣ ਲਾਂਚ ਚੋਣ: %d" + +#~ msgid "Can't pass document URIs to a 'Type=Link' desktop entry" +#~ msgstr "ਡੌਕੂਮੈਂਟ URI 'Type=Link' ਡੈਸਕਟਾਪ ਐਂਟਰੀ ਨਹੀਂ ਦਿੱਤਾ ਨਹੀਂ ਜਾ ਸਕਦਾ" + +#~ msgid "Not a launchable item" +#~ msgstr "ਕੋਈ ਚਲਾਉਣਯੋਗ ਆਈਟਮ ਨਹੀਂ" + +#~ msgid "Disable connection to session manager" +#~ msgstr "ਸ਼ੈਸ਼ਨ ਮੈਨੇਜਰ ਨਾਲ ਕੁਨੈਕਸ਼ਨ ਆਯੋਗ" + +#~ msgid "Specify file containing saved configuration" +#~ msgstr "ਸੰਭਾਲੀ ਸੰਰਚਨਾ ਰੱਖਣ ਵਾਲੀ ਫਾਇਲ ਦਿਓ" + +#~ msgid "FILE" +#~ msgstr "ਫਾਇਲ" + +#~ msgid "Specify session management ID" +#~ msgstr "ਸ਼ੈਸ਼ਨ ਪਰਬੰਧ ID ਦਿਓ" + +#~ msgid "Session management options:" +#~ msgstr "ਸ਼ੈਸ਼ਨ ਪਰਬੰਧ ਚੋਣਾਂ:" + +#~ msgid "Show session management options" +#~ msgstr "ਸ਼ੈਸ਼ਨ ਪਰਬੰਧ ਚੋਣਾਂ ਵੇਖੋ" + +#~ msgid "Key Imported" +#~ msgid_plural "Keys Imported" +#~ msgstr[0] "ਕੁੰਜੀ ਇੰਪੋਰਟ ਕੀਤੀ" +#~ msgstr[1] "ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਕੀਤੀਆਂ" + +#~ msgid "Imported %i key" +#~ msgid_plural "Imported %i keys" +#~ msgstr[0] "ਇੰਪੋਰਟ ਕੀਤੀ %i ਕੁੰਜੀ" +#~ msgstr[1] "ਇੰਪੋਰਟ ਕੀਤੀਆਂ %i ਕੁੰਜੀਆਂ" + +#~ msgid "Imported a key for" +#~ msgid_plural "Imported keys for" +#~ msgstr[0] "ਇੱਕ ਕੁੰਜੀ ਇੰਪੋਰਟ ਕੀਤੀ" +#~ msgstr[1] "ਇੰਪੋਰਟ ਕੀਤੀਆਂ ਕੁੰਜੀਆਂ" + +#~ msgid "Notification Messages" +#~ msgstr "ਨੋਟੀਫਿਕੇਸ਼ਨ ਸੁਨੇਹੇ" + +#~ msgid "Symmetric Key" +#~ msgstr "ਸਿਮੈਟਰਿਕ ਕੁੰਜੀ" + +#~ msgid "Credentials" +#~ msgstr "ਕਰਿਡਿਨਟੀਸ" + +#~ msgid "Identity" +#~ msgstr "ਪਛਾਣ" + +#~ msgid "Progress Title" +#~ msgstr "ਤਰੱਕੀ ਟਾਈਟਲ" + +#~ msgid "Couldn't run file-roller" +#~ msgstr "ਫਾਇਲ ਰੋਲਰ ਨਹੀਂ ਚਲਾਇਆ ਜਾ ਸਕਿਆ" + +#~ msgid "Couldn't package files" +#~ msgstr "ਫਾਇਲ ਪੈਕ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕੀਆਂ" + +#~ msgid "The file-roller process did not complete successfully" +#~ msgstr "ਫਾਇਲ ਰੋਲਰ ਕਾਰਵਾਈ ਪੂਰੀ ਤਰ੍ਹਾਂ ਸਿਰੇ ਨਹੀਂ ਚੜ੍ਹੀ" + +#~ msgid "Loading Keys..." +#~ msgstr "ਕੁੰਜੀਆਂ ਲੋਡ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ..." + +#~ msgid "Uploading keys..." +#~ msgstr "ਕੁੰਜੀਆਂ ਅੱਪਲੋਡ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ..." + +#~ msgid "Retrieving keys..." +#~ msgstr "ਕੁੰਜੀ ਲਈਆਂ ਜਾ ਰਹੀਆਂ ਹਨ..." + +#~ msgid "Searching for keys on: %s" +#~ msgstr "ਕੁੰਜੀਆਂ ਦੀ ਖੋਜ ਜਾਰੀ: %s" + +#~ msgid "Searching for keys containing '%s'..." +#~ msgstr "'%s' ਰੱਖਣ ਵਾਲੀਆਂ ਕੁੰਜੀਆਂ ਦੀ ਖੋਜ ਜਾਰੀ..." + +#~ msgid "Searching for key id '%s'..." +#~ msgstr "ਕੁੰਜੀ id '%s' ਲਈ ਖੋਜ ਜਾਰੀ ਹੈ..." + +#~ msgid "Retrieving remote keys..." +#~ msgstr "ਰਿਮੋਟ ਕੁੰਜੀਆਂ ਲਈਆਂ ਜਾ ਰਹੀਆਂ ਹਨ..." + +#~ msgid "Sending keys to key server..." +#~ msgstr "ਕੁੰਜੀਆਂ ਕੁੰਜੀ ਸਰਵਰ ਨੂੰ ਭੇਜੀਆਂ ਜਾਂਦੀਆਂ ਹਨ..." + +#~ msgid "Synchronizing keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਸਿਕਰੋਨਾਈਜ਼ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ" + +#~ msgid "Invalid" +#~ msgstr "ਗਲਤ" + +#~ msgid "Private Secure Shell Key" +#~ msgstr "ਪ੍ਰਾਈਵੇਟ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ" + +#~ msgid "Public Secure Shell Key" +#~ msgstr "ਪਬਲਿਕ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ" + +#~ msgid "Passphrase:" +#~ msgstr "ਪ੍ਹੈਰਾ:" + +#~ msgid "Couldn't share keys" +#~ msgstr "ਕੁੰਜੀਆਂ ਸਾਂਝੀਆਂ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕੀਆਂ" + +#~ msgid "Can't publish discovery information on the network." +#~ msgstr "ਨੈੱਟਵਰਕ ਉੱਤੇ ਖੋਜ ਜਾਣਕਾਰੀ ਪਬਲਿਸ਼ ਕੀਤੀ ਨਹੀਂ ਜਾ ਸਕਦੀ।" + +#~ msgid "%s's encryption keys" +#~ msgstr "%s ਦੀਆਂ ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀਆਂ" + +#~ msgid "Key Sharing" +#~ msgstr "ਕੁੰਜੀ ਸ਼ੇਅਰਿੰਗ" + +#~ msgid "" +#~ "Sharing your keys allows other people on your network to use the keys " +#~ "you've collected. This means they can automatically encrypt things for " +#~ "you or those you know, without you having to send them your key.\n" +#~ "\n" +#~ "Note: Your personal keys will not be compromised." +#~ msgstr "" +#~ "ਤੁਹਾਡੀਆਂ ਕੁੰਜੀਆਂ ਸਾਂਝੀਆਂ ਕਰਨ ਨਾਲ ਤੁਹਾਡੇ ਨੈੱਟਵਰਕ ਉੱਤੇ ਹੋਰ ਲੋਕ ਤੁਹਾਡੇ ਵਲੋਂ ਇੱਕਠੀਆਂ ਕੀਤੀਆਂ ਕੁੰਜੀਆਂ " +#~ "ਵਰਤ ਸਕਦੇ ਹਨ। ਇਸ ਦਾ ਅਰਥ ਹੈ ਕਿ ਉਹ ਤੁਹਾਡੇ ਲਈ ਆਟੋਮੈਟਿਕ ਹੀ ਚੀਜ਼ਾਂ ਇੰਕ੍ਰਿਪਟ ਕਰ ਸਕਦੇ ਹਨ ਜਾਂ " +#~ "ਜਿੰਨ੍ਹਾਂ ਨੂੰ ਤੁਸੀਂ ਜਾਣਦੇ ਹੋ, ਤੁਹਾਨੂੰ ਆਪਣੀ ਕੁੰਜੀ ਭੇਜੇ ਤੋਂ ਬਿਨਾਂ ਹੋ।\n" +#~ "\n" +#~ "ਨੋਟ: ਤੁਹਾਡੀਆਂ ਨਿੱਜੀ ਕੁੰਜੀਆਂ ਨਾਲ ਸਮਝੌਤਾ ਨਹੀਂ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।" + +#~ msgid "_Share my keys with others on my network" +#~ msgstr "ਮੇਰੇ ਨੈੱਟਵਰਕ ਉੱਤੇ ਹੋਰਾਂ ਨਾਲ ਮੇਰੀਆਂ ਕੁੰਜੀਆਂ ਸਾਂਝੀਆਂ ਕਰੋ(_S)" + +#~ msgid "Seahorse Daemon" +#~ msgstr "ਸੀ-ਹਾਰਸ ਡੈਮਨ" + +#~ msgid "X keys are selected for synchronizing" +#~ msgstr "X ਕੁੰਜੀਆਂ ਸਿਕਰੋਨਾਈਜ਼ ਕਰਨ ਲਈ ਚੁਣੀਆਂ ਗਈਆਂ ਹਨ" + +#~ msgid "/home/nate/.ssh/blah_rsa" +#~ msgstr "/home/nate/.ssh/blah_rsa" + +#~ msgid "00:00:00:00:00" +#~ msgstr "00:00:00:00:00" + +#~ msgid "Create a PGP Key" +#~ msgstr "ਇੱਕ PGP ਕੁੰਜੀ ਬਣਾਓ" + +#~ msgid "" +#~ "Unknown\n" +#~ "Never\n" +#~ "Marginal\n" +#~ "Full\n" +#~ "Ultimate" +#~ msgstr "" +#~ "ਅਣਜਾਣ\n" +#~ "ਕਦੇ ਨਹੀਂ\n" +#~ "ਆਰਜ਼ੀ\n" +#~ "ਪੂਰਾ\n" +#~ "ਬੇਅੰਤ" + +#~ msgid "" +#~ "Unknown\n" +#~ "Never\n" +#~ "Marginally\n" +#~ "Fully\n" +#~ "Ultimately" +#~ msgstr "" +#~ "ਅਣਜਾਣ\n" +#~ "ਕਦੇ ਨਹੀਂ\n" +#~ "ਆਰਜ਼ੀ\n" +#~ "ਪੂਰਾ\n" +#~ "ਬੇਅੰਤ" + +#~ msgid "Other _Collected Keys" +#~ msgstr "ਹੋਰ ਇੱਕਠੀਆਂ ਕੀਤੀਆਂ ਕੁੰਜੀਆਂ(_C)" + +#~ msgid "_Trusted Keys" +#~ msgstr "ਟਰੱਸਟਡ ਕੁੰਜੀਆਂ(_T)" + +#~ msgid "" +#~ "One or more of the deleted keys are private keys. Are you sure you want " +#~ "to proceed?" +#~ msgstr "" +#~ "ਇੱਕ ਜਾਂ ਵੱਧ ਹਟਾਈਆਂ ਜਾ ਰਹੀਆਂ ਕੁੰਜੀਆਂ ਪ੍ਰਾਈਵੇਟ ਕੁੰਜੀਆਂ ਹਨ। ਕੀ ਤੁਸੀਂ ਜਾਰੀ ਰੱਖਣਾ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Removing item" +#~ msgstr "ਆਈਟਮ ਸੰਭਾਲੀ ਜਾਂਦੀ ਹੈ" + +#~ msgid "Couldn't get default password keyring" +#~ msgstr "ਡਿਫਾਲਟ ਪਾਸਵਰਡ ਕੀਰਿੰਗ ਲਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't get list of password keyrings" +#~ msgstr "ਪਾਸਵਰਡ ਕੀਰਿੰਗ ਦੀ ਲਿਸਟ ਲਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't remove keyring" +#~ msgstr "ਕੀਰਿੰਗ ਹਟਾਈ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Are you sure you want to permanently delete the '%s' keyring?" +#~ msgstr "ਕੀ ਤੁਸੀਂ '%s' ਕੀਰਿੰਗ ਨੂੰ ਪੱਕੇ ਤੌਰ ਉੱਤੇ ਹਟਾਉਣੀ ਚਾਹੁੰਦੇ ਹੋ?" + +#~ msgid "Default Keyring" +#~ msgstr "ਡਿਫਾਲਟ ਕੀਰਿੰਗ" + +#~ msgid "Password Keyrings" +#~ msgstr "ਪਾਸਵਰਡ ਕੀਰਿੰਗ:" + +#~ msgid "Password and Encryption Settings" +#~ msgstr "ਪਾਸਵਰਡ ਅਤੇ ਇੰਕ੍ਰਿਪਸ਼ਨ ਸੈਟਿੰਗ" + +#~ msgid "_Add Keyring" +#~ msgstr "ਕੀਰਿੰਗ ਸ਼ਾਮਲ(_A)" + +#~ msgid "_Remove Keyring" +#~ msgstr "ਕੀਰਿੰਗ ਹਟਾਓ(_R)" + +#~ msgid "Unknown Key: %s" +#~ msgstr "ਅਣਜਾਣ ਕੁੰਜੀ: %s" + +#~ msgid "Unknown Key" +#~ msgstr "ਅਣਜਾਣ ਕੁੰਜੀ" + +#~ msgid "Unavailable Key" +#~ msgstr "ਨਾ-ਉਪਲੱਬਧ ਕੁੰਜੀ" + +#~ msgid "X509 Certificate" +#~ msgstr "X509 ਸਰਟੀਫਿਕੇਟ" + +#~ msgid "Loading..." +#~ msgstr "ਲੋਡ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ..." + +#~ msgid "Invalid or unrecognized object." +#~ msgstr "ਗਲਤ ਜਾਂ ਬੇਪਛਾਣ ਆਬਜੈਕਟ ਹੈ।" + +#~ msgid "Exporting is not yet supported." +#~ msgstr "ਐਕਸਪੋਰਟ ਹਾਲੇ ਸਹਾਇਕ ਨਹੀਂ ਹੈ।" + +#~ msgid "Expiry for Subkey %d of %s" +#~ msgstr "%d ਸਬਕੁੰਜੀ %s ਵਿੱਚੋਂ ਦੀ ਮਿਆਦ" + +#~ msgid "_Quit" +#~ msgstr "ਬੰਦ ਕਰੋ(_Q)" + +#~ msgid "Import keys into your key ring from a file" +#~ msgstr "ਆਪਣੇ ਕੀ ਰਿੰਗ ਵਿੱਚ ਇੱਕ ਫਾਇਲ ਤੋਂ ਕੁੰਜੀ ਇੰਪੋਰਟ ਕਰੋ" + +#~ msgid "_Close" +#~ msgstr "ਬੰਦ ਕਰੋ(_C)" + +#~ msgid "_Key" +#~ msgstr "ਕੁੰਜੀ(_K)" + +#~ msgid "_About" +#~ msgstr "ਇਸ ਬਾਰੇ(_A)" + +#~ msgid "E_xport Public Key..." +#~ msgstr "ਪਬਲਿਕ ਕੁੰਜੀ ਐਕਸਪੋਰਟ ਕਰੋ(_x)..." + +#~ msgid "_Copy Public Key" +#~ msgstr "ਪਬਲਿਕ ਕੁੰਜੀ ਕਾਪੀ(_C)" + +#~ msgid "Copy public part of selected keys to the clipboard" +#~ msgstr "ਚੁਣੀਆਂ ਕੁੰਜੀਆਂ ਲਈ ਪਬਲਿਕ ਭਾਗ ਕਲਿੱਪਬੋਰਡ ਵਿੱਚ ਕਾਪੀ ਕਰੋ" + +#~ msgid "_Delete Key" +#~ msgstr "ਕੁੰਜੀ ਹਟਾਓ(_D)" + +#~ msgid "Secure Shell Passphrase" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਪ੍ਹੈਰਾ" + +#~ msgid "Secure Shell Key Passphrase" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀ ਪ੍ਹੈਰਾ" + +#~ msgid "Enter the passphrase for: %s" +#~ msgstr "ਪ੍ਹੈਰਾ ਦਿਓ ਜੀ: %s" + +#~ msgid "Save this passphrase in my keyring" +#~ msgstr "ਮੇਰੇ ਕੀਰਿੰਗ ਵਿੱਚ ਇਹ ਪ੍ਹੈਰਾ ਸੰਭਾਲੋ" + +#~ msgid "Please enter a passphrase to use." +#~ msgstr "ਵਰਤਣ ਲਈ ਇੱਕ ਪ੍ਹੈਰਾ ਦਿਓ ਜੀ।" + +#~ msgid "Unparseable Key ID" +#~ msgstr "ਗ਼ੈਰ-ਪਾਰਸ-ਯੋਗ ਕੁੰਜੀ ID" + +#~ msgid "Unknown/Invalid Key" +#~ msgstr "ਅਣਜਾਣ/ਗਲਤ ਕੁੰਜੀ" + +#~ msgid "PGP Key: %s" +#~ msgstr "PGP ਕੁੰਜੀ: %s" + +#~ msgid "" +#~ "Warning: Your system is not configured to cache passphrases in " +#~ "secure memory." +#~ msgstr "" +#~ "ਚੇਤਾਵਨੀ: ਤੁਹਾਡਾ ਸਿਸਟਮ ਪ੍ਹੈਰੇ ਨੂੰ ਸੁਰੱਖਿਅਤ ਮੈਮੋਰੀ ਵਿੱਚ ਕੈਚੇ ਕਰਨ ਲਈ ਸੰਰਚਿਤ ਨਹੀਂ ਹੈ।" + +#~ msgid "Cache _Preferences" +#~ msgstr "ਕੈਚੇ ਪਸੰਦ(_P)" + +#~ msgid "Cached Encryption Keys" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀਆਂ ਕੈਚੇ ਕੀਤੀਆਂ" + +#~ msgid "Change passphrase cache settings." +#~ msgstr "ਪ੍ਹੈਰਾ ਕੈਚੇ ਸੈਟਿੰਗ ਬਦਲੋ।" + +#~ msgid "Clear passphrase cache" +#~ msgstr "ਪ੍ਹੈਰਾ ਕੈਚੇ ਸਾਫ਼ ਕਰੋ" + +#~ msgid "_Clear Cache" +#~ msgstr "ਕੈਚੇ ਸਾਫ਼ ਕਰੋ(_C)" + +#~ msgid "_Show Window" +#~ msgstr "ਵਿੰਡੋ ਵੇਖਾਓ(_S)" + +#~ msgid "Do not daemonize seahorse-agent" +#~ msgstr "seahorse-agent daemonize ਨਾ ਕਰੋ" + +#~ msgid "Print variables in for a C type shell" +#~ msgstr "ਇੱਕ C ਟਾਈਪ ਸ਼ੈੱਲ ਲਈ ਵੇਰੀਬਲ ਪਰਿੰਟ ਕਰੋ" + +#~ msgid "Display environment variables (the default)" +#~ msgstr "ਇੰਵਾਇਰਨਮੈਂਟ ਵੇਰੀਬਲ ਵੇਖੋ (ਡਿਫਾਲਟ)" + +#~ msgid "Allow GPG agent request from any display" +#~ msgstr "ਕਿਸੇ ਵੀ ਡਿਸਪਲੇਅ ਤੋਂ GPG ਏਜੰਟ ਮੰਗ ਮਨਜ਼ੂਰ" + +#~ msgid "command..." +#~ msgstr "ਕਮਾਂਡ..." + +#~ msgid "Encryption Key Agent (Seahorse)" +#~ msgstr "ਇਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀ ਏਜੰਟ (ਸੀ-ਹਾਰਸ)" + +#~ msgid "no command specified to execute" +#~ msgstr "ਚਲਾਉਣ ਲਈ ਕੋਈ ਕਮਾਂਡ ਨਹੀਂ ਦਿੱਤੀ" + +#~ msgid "Authorize Passphrase Access" +#~ msgstr "ਪਰਮਾਣਿਤ ਪ੍ਹੈਰਾ ਪਹੁੰਚ" + +#~ msgid "The passphrase is cached in memory." +#~ msgstr "ਪ੍ਹੈਰਾ ਮੈਮੋਰੀ 'ਚ ਕੈਚੇ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਦਾ।" + +#~ msgid "Always ask me before using a cached passphrase" +#~ msgstr "ਇੱਕ ਕੈਚੇ ਪ੍ਹੈਰਾ ਦੀ ਵਰਤੋਂ ਕਰਨ ਤੋਂ ਪਹਿਲਾਂ ਮੈਨੂੰ ਹਮੇਸ਼ਾਂ ਪੁੱਛੋ" + +#~ msgid "_Authorize" +#~ msgstr "ਪਰਮਾਣਿਤ(_A)" + +#~ msgid "" +#~ "After performing an decrypt or verify operation from the applet, display " +#~ "the resulting text in a window." +#~ msgstr "" +#~ "ਐਪਲਿਟ ਤੋਂ ਇੱਕ ਡਿ-ਕ੍ਰਿਪਸ਼ਨ ਜਾਂ ਜਾਂਚ ਓਪਰੇਸ਼ਨ ਕਰਨ ਬਾਅਦ ਨਤੀਜਾ ਟੈਕਸਟ ਨੂੰ ਇੱਕ ਵਿੰਡੋ ਵਿੱਚ ਵੇਖਾਇਆ " +#~ "ਜਾਵੇਗਾ।" + +#~ msgid "" +#~ "After performing an encrypt or signing operation from the applet, display " +#~ "the resulting text in a window." +#~ msgstr "" +#~ "ਐਪਲਿਟ ਤੋਂ ਇੱਕ ਇੰਕ੍ਰਿਪਸ਼ਨ ਜਾਂ ਸਾਇਨ ਓਪਰੇਸ਼ਨ ਕਰਨ ਬਾਅਦ ਨਤੀਜਾ ਟੈਕਸਟ ਨੂੰ ਇੱਕ ਵਿੰਡੋ ਵਿੱਚ ਵੇਖਾਇਆ " +#~ "ਜਾਵੇਗਾ।" + +#~ msgid "Display cache reminder in the notification area" +#~ msgstr "ਨੋਟੀਫਿਕੇਸ਼ਨ ਖੇਤਰ ਵਿੱਚ ਕੈਚੇ ਰੀਮਾਈਡਰ ਵੇਖਾਓ" + +#~ msgid "Display clipboard after decrypting" +#~ msgstr "ਡਿ-ਕ੍ਰਿਪਟ ਕਰਨ ਦੇ ਬਾਅਦ ਕਲਿੱਪਬੋਰਡ ਵੇਖਾਓ" + +#~ msgid "Display clipboard after encrypting" +#~ msgstr "ਇੰਕ੍ਰਿਪਟ ਕਰਨ ਦੇ ਬਾਅਦ ਕਲਿੱਪਬੋਰਡ ਵੇਖਾਓ" + +#~ msgid "Expire passwords in the cache" +#~ msgstr "ਕੈਚੇ 'ਚ ਪਾਸਵਰਡ ਦੀ ਮਿਆਦ ਖਤਮ" + +#~ msgid "" +#~ "If set to 'gnome' uses gnome-keyring to cache passwords. When set to " +#~ "'internal' uses internal cache." +#~ msgstr "" +#~ "ਕੈਸ਼ ਪਾਸਵਰਡਾਂ ਲਈ ਗਨੋਮ-ਕੀਰਿੰਗ ਵਰਤਣ ਲਈ ਜੇ 'gnome' ਸੈੱਟ ਕੀਤਾ। ਜਦੋਂ 'internal' ਵਰਤਿਆ ਤਾਂ " +#~ "ਅੰਦਰੂਨੀ ਕੈਸ਼ ਵਰਤੀ ਜਾਂਦੀ ਹੈ।" + +#~ msgid "Prompt before using GPG passwords in cache" +#~ msgstr "ਕੈਚੇ ਵਿੱਚ GPG ਪਾਸਵਰਡ ਵਰਤਣ ਤੋਂ ਪਹਿਲਾਂ ਪੁੱਛੋ" + +#~ msgid "" +#~ "Reflect the contents of the clipboard (whether encrypted, signed, etc...) " +#~ "in the panel applet icon." +#~ msgstr "" +#~ "ਪੈਨਲ ਐਪਲਿਟ ਆਈਕਾਨ ਵਿੱਚ ਕਲਿੱਪਬੋਰਡ ਦੀ ਸਮੱਗਰੀ ਵੇਖਾਓ (ਭਾਵੇਂ ਇੰਕ੍ਰਿਪਟਡ, ਸਾਇਨ ਆਦਿ...)" + +#~ msgid "" +#~ "Set to 'true' to enable display of the cache reminder in the notification " +#~ "area of your panel." +#~ msgstr "" +#~ "ਜੇ ਚੋਣ ਕੀਤੀ ਤਾਂ ਤੁਹਾਡੇ ਪੈਨਲ ਦੇ ਨੋਟੀਫਿਕੇਸ਼ਨ ਏਰੀਏ ਵਿੱਚ ਕੈਚੇ ਰੀਮਾਈਡਰ ਵੇਖਾਉਣਾ ਯੋਗ ਹੋਵੇਗਾ।" + +#~ msgid "" +#~ "Set to 'true' to have seahorse-agent prompt before giving out passwords " +#~ "it has cached." +#~ msgstr "ਜੇ ਚੋਣ ਕੀਤੀ ਤਾਂ ਸੀ-ਹਾਰਸ-ਏਜੰਟ ਕੈਚੇ ਕੀਤੇ ਪਾਸਵਰਡ ਨੂੰ ਦੇਣ ਤੋਂ ਪਹਿਲਾਂ ਪੁੱਛੇਗਾ।" + +#~ msgid "Show clipboard state in panel" +#~ msgstr "ਪੈਨਲ 'ਚ ਕਲਿੱਪਬੋਰਡ ਹਾਲਤ ਵੇਖਾਓ" + +#~ msgid "The time (in minutes) to cache GPG passwords" +#~ msgstr "ਕੈਚੇ GPG ਪਾਸਵਰਡ ਲਈ ਟਾਇਮ (ਮਿੰਟਾਂ ਵਿੱਚ)" + +#~ msgid "" +#~ "This is the amount of time, specified in minutes, to cache GPG passwords " +#~ "in seahorse-agent." +#~ msgstr "" +#~ "ਇਹ ਟਾਇਮ ਦੀ ਮਾਤਰਾ ਹੈ, ਮਿੰਟਾਂ ਵਿੱਚ ਦਿੱਤਾ, ਜੋ ਕਿ seahorse-agent ਵਿੱਚ GPG ਪਾਸਵਰਡ ਕੈਚੇ " +#~ "ਕਰਨ ਲਈ।" + +#~ msgid "" +#~ "This option enables the GPG password cache in the seahorse-agent program. " +#~ "The 'use-agent' setting in gpg.conf affects this setting." +#~ msgstr "" +#~ "ਇਹ ਚੋਣ GPG ਪਾਸਵਰਡ ਕੈਚੇ seahorse-agent ਪਰੋਗਾਰਮ ਵਿੱਚ ਕਰਨ ਲਈ ਯੋਗ ਕਰਦੀ ਹੈ। gpg.conf " +#~ "ਵਿੱਚ 'use-agent' ਸੈਟਿੰਗ ਇਹ ਸੈਟਿੰਗ ਨੂੰ ਪਰਭਾਵਿਤ ਕਰਦੀ ਹੈ। " + +#~ msgid "" +#~ "When set, seahorse-agent expires GPG passwords in its cache after a " +#~ "period of time." +#~ msgstr "" +#~ "ਜਦੋਂ ਚੋਣ ਕੀਤੀ ਤਾਂ seahorse-agent ਇੱਕ ਟਾਇਮ ਪੀਰੀਅਡ ਬਾਅਦ GPG ਪਾਸਵਰਡ ਦੀ ਕੈਚੇ ਖਤਮ ਕਰ " +#~ "ਦੇਵੇਗਾ।" + +#~ msgid "Whether the GPG password cache is enabled" +#~ msgstr "ਕੀ GPG ਪਾਸਵਰਡ ਕੈਚੇ ਯੋਗ ਕਰਨੀ ਹੈ" + +#~ msgid "None. Prompt for a key." +#~ msgstr "ਕੋਈ ਨਹੀਂ। ਕੁੰਜੀ ਲਈ ਪੁੱਛੋ।" + +#~ msgid "Default Key" +#~ msgstr "ਡਿਫਾਲਟ ਕੀ" + +#~ msgid "Remember PGP Passphrases" +#~ msgstr "PGP ਪ੍ਹੈਰਾ ਚੇਤੇ ਰੱਖੋ" + +#~ msgid "A supported PGP passphrase caching agent is not running." +#~ msgstr "ਇੱਕ ਸਹਾਇਕ PGP ਪ੍ਹੈਰਾ ਕੈਸ਼ ਏਜੰਟ ਚੱਲ ਨਹੀਂ ਰਿਹਾ ਹੈ।" + +#~ msgid "This key is used to sign messages when no other key is chosen" +#~ msgstr "" +#~ "ਇਹ ਕੁੰਜੀ ਸੁਨੇਹੇ ਸਾਇਨ ਕਰਨ ਲਈ ਵਰਤੀ ਜਾਂਦੀ ਹੈ, ਜਦੋਂ ਹੋਰ ਕੋਈ ਕੁੰਜੀ ਨਹੀਂ ਚੁਣੀ ਜਾਂਦੀ।" + +#~ msgid "As_k me before using a cached passphrase" +#~ msgstr "ਇੱਕ ਕੈਸ਼ ਕੀਤੇ ਪ੍ਹੈਰੇ ਨੂੰ ਵਰਤਣ ਲਈ ਮੈਨੂੰ ਪੁੱਛੋ(_k)" + +#~ msgid "Encryption" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ" + +#~ msgid "PGP Passphrases" +#~ msgstr "PGP ਪ੍ਹੈਰਾ" + +#~ msgid "Show _icon in status area when passphrases are in memory" +#~ msgstr "ਜਦੋਂ ਪ੍ਹੈਰਾ ਮੈਮੋਰੀ ਵਿੱਚ ਹੋਣ ਤਾਂ ਹਾਲਤ ਖੇਤਰ ਵਿੱਚ ਆਈਕਾਨ ਵੇਖਾਓ(_i)" + +#~ msgid "When _encrypting, always include myself as a recipient" +#~ msgstr "ਜਦੋਂ ਇੰਕ੍ਰਿਪਟ ਕਰੋ ਤਾਂ ਮੈਨੂੰ ਹਮੇਸ਼ਾਂ ਪ੍ਰਾਪਤ ਕਰਤਾ ਵਿੱਚ ਹਮੇਸ਼ਾਂ ਸ਼ਾਮਲ ਕਰੋ(_e)" + +#~ msgid "_Always remember passphrases whenever logged in" +#~ msgstr "ਜਦੋਂ ਵੀ ਲਾਗਇਨ ਕੀਤਾ ਜਾਵੇ ਤਾਂ ਪ੍ਹੈਰਾ ਹਮੇਸ਼ਾ ਯਾਦ ਰੱਖੋ(_A)" + +#~ msgid "_Default key:" +#~ msgstr "ਡਿਫਾਲਟ ਕੁੰਜੀ(_D):" + +#~ msgid "_Never remember passphrases" +#~ msgstr "ਪ੍ਹੈਰਾ ਕਦੇ ਵੀ ਯਾਦ ਨਾ ਰੱਖੋ(_N)" + +#~ msgid "_Remember passphrases for" +#~ msgstr "ਇਸ ਲਈ ਪ੍ਹੈਰਾ ਯਾਦ ਰੱਖੋ(_R)" + +#~ msgid "Couldn't set permissions on backup file." +#~ msgstr "ਬੈਕਅੱਪ ਫਾਇਲ ਉੱਤੇ ਅਧਿਕਾਰ ਸੈੱਟ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕੇ।" + +#~ msgid "Encrypt, decrypt or sign the clipboard (uses PGP type encryption)." +#~ msgstr "ਕਲਿੱਪਬੋਰਡ 'ਚ ਇੰਕ੍ਰਿਪਟ, ਡਿ-ਕ੍ਰਿਪਟ ਜਾਂ ਸਾਇਨ (PGP ਕਿਸਮ ਇੰਕ੍ਰਿਪਸ਼ਨ ਵਰਤੋਂ)।" + +#~ msgid "Seahorse Applet Factory" +#~ msgstr "ਸੀ-ਹਾਰਸ ਐਪਲਿਟ ਫੈਕਟਰੀ" + +#~ msgid "_Preferences" +#~ msgstr "ਮੇਰੀ ਪਸੰਦ(_P)" + +#~ msgid "seahorse-applet" +#~ msgstr "seahorse-applet" + +#~ msgid "Use PGP/GPG to encrypt/decrypt/sign/verify/import the clipboard." +#~ msgstr "PGP/GPG ਨੂੰ ਕਲਿੱਪਬੋਰਡ ਇੰਕ੍ਰਿਪਟ/ਡਿਕ੍ਰਿਪਟ/ਸਾਇਨ/ਜਾਂਚ/ਇੰਪੋਰਟ ਕਰਨ ਲਈ ਵਰਤੋਂ।" + +#~ msgid "Choose Recipient Keys" +#~ msgstr "ਪ੍ਰਾਪਤੀ ਕੁੰਜੀਆਂ ਚੁਣੋ" + +#~ msgid "Encrypted Text" +#~ msgstr "ਇੰਕ੍ਰਿਪਟਡ ਟੈਕਸਟ" + +#~ msgid "Encryption Failed" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਫੇਲ੍ਹ ਹੋਈ" + +#~ msgid "The clipboard could not be encrypted." +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਇੰਕ੍ਰਿਪਟਡ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ।" + +#~ msgid "Choose Key to Sign with" +#~ msgstr "ਸਾਇਨ ਕਰਨ ਲਈ ਕੁੰਜੀ ਚੁਣੋ" + +#~ msgid "Signed Text" +#~ msgstr "ਸਾਇਨ ਕੀਤਾ ਟੈਕਸਟ" + +#~ msgid "Signing Failed" +#~ msgstr "ਸਾਇਨ ਫੇਲ੍ਹ ਹੋਏ" + +#~ msgid "The clipboard could not be Signed." +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਉੱਤੇ ਸਾਇਨ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕੇ।" + +#~ msgid "Keys were found but not imported." +#~ msgstr "ਕੁੰਜੀਆਂ ਲੱਭੀਆਂ, ਪਰ ਇੰਪੋਰਟ ਨਹੀਂ ਕੀਤੀਆਂ ਗਈਆਂ।" + +#~ msgid "Decrypting Failed" +#~ msgstr "ਡਿ-ਕ੍ਰਿਪਸ਼ਨ ਫੇਲ੍ਹ ਹੋਈ" + +#~ msgid "Text may be malformed." +#~ msgstr "ਟੈਕਸਟ ਨਿਕਾਰਾ ਹੋ ਸਕਦਾ ਹੈ।" + +#~ msgid "No PGP key or message was found on clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਵਿੱਚ ਕੋਈ PGP ਕੁੰਜੀ ਜਾਂ ਸੁਨੇਹਾ ਨਹੀਂ ਲੱਭਿਆ" + +#~ msgid "No PGP data found." +#~ msgstr "ਕੋਈ PGP ਡਾਟਾ ਨਹੀਂ ਲੱਭਾ ਹੈ।" + +#~ msgid "Decrypted Text" +#~ msgstr "ਡਿ-ਕ੍ਰਿਪਟਡ ਟੈਕਸਟ" + +#~ msgid "Could not display the help file" +#~ msgstr "ਮੱਦਦ ਫਾਇਲ ਵੇਖਾਈ ਨਹੀਂ ਜਾ ਸਕਦੀ ਹੈ" + +#~ msgid "_Encrypt Clipboard" +#~ msgstr "ਇੰਕ੍ਰਿਪਟ ਕਲਿੱਪਬੋਰਡ(_E)" + +#~ msgid "_Sign Clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਦਸਤਖਤ(_S)" + +#~ msgid "_Decrypt/Verify Clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਡਿਕ੍ਰਿਪਟ/ਜਾਂਚ(_D)" + +#~ msgid "_Import Keys from Clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਤੋਂ ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ(_I)" + +#~ msgid "Encryption Applet" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਐਪਲਿਟ" + +#~ msgid "Display clipboard contents after:" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਸਮੱਗਰੀ ਵੇਖਾਓ ਇਸ ਦੇ ਬਾਅਦ:" + +#~ msgid "Clipboard Encryption Preferences" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਇੰਕ੍ਰਿਪਸ਼ਨ ਪਸੰਦ" + +#~ msgid "_Decrypting or verifying the clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਡਿਕ੍ਰਿਪਟ ਕਰੋ ਜਾਂ ਜਾਂਚ ਕਰੋ(_D)" + +#~ msgid "_Encrypting or signing the clipboard" +#~ msgstr "ਕਲਿੱਪਬੋਰਡ ਇੰਕ੍ਰਿਪਟ ਜਾਂ ਸਾਇਨ ਕਰੋ(_E)" + +#~ msgid "_Show clipboard state in panel" +#~ msgstr "ਪੈਨਲ ਵਿੱਚ ਕਲਿੱਪਬੋਰਡ ਹਾਲਤ ਵੇਖਾਓ(_S)" + +#~ msgid "_Encrypt" +#~ msgstr "ਇੰਕ੍ਰਿਪਟ(_E)" + +#~ msgid "_Decrypt/Verify" +#~ msgstr "ਡਿਕ੍ਰਿਪਟ/ਜਾਂਚ(_D)" + +#~ msgid "_Import Key" +#~ msgstr "ਕੁੰਜੀ ਇੰਪੋਰਟ(_I)" + +#~ msgid "Encrypted text" +#~ msgstr "ਇੰਕ੍ਰਿਪਟਡ ਟੈਕਸਟ" + +#~ msgid "Couldn't encrypt text" +#~ msgstr "ਟੈਕਸਟ ਇੰਕ੍ਰਿਪਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Keys found but not imported" +#~ msgstr "ਕੁੰਜੀ ਲੱਭੀ, ਪਰ ਇੰਪੋਰਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't decrypt text" +#~ msgstr "ਟੈਕਸਤ ਡਿਕ੍ਰਿਪਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "Couldn't verify text" +#~ msgstr "ਟੈਕਸਟ ਦੀ ਜਾਂਚ ਨਹੀਂ ਹੋ ਸਕੀ" + +#~ msgid "No encrypted or signed text is selected." +#~ msgstr "ਕੋਈ ਇੰਕ੍ਰਿਪਟ ਜਾਂ ਸਾਇਨ ਕੀਤਾ ਟੈਕਸਟ ਨਹੀਂ ਚੁਣਿਆ।" + +#~ msgid "Verified text" +#~ msgstr "ਜਾਂਚਿਆ ਟੈਕਸਟ" + +#~ msgid "Imported %d key" +#~ msgid_plural "Imported %d keys" +#~ msgstr[0] "%d ਕੁੰਜੀ ਇੰਪੋਰਟ ਕੀਤੀ" +#~ msgstr[1] "%d ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਕੀਤੀਆਂ" + +#~ msgid "Signed text" +#~ msgstr "ਸਾਇਨ ਕੀਤਾ ਟੈਕਸਟ" + +#~ msgid "Couldn't sign text" +#~ msgstr "ਟੈਕਸਟ ਸਾਇਨ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "_Encrypt..." +#~ msgstr "ਇੰਕ੍ਰਿਪਟ(_E)..." + +#~ msgid "Encrypt the selected text" +#~ msgstr "ਚੁਣਿਆਂ ਟੈਕਸਟ ਇੰਕ੍ਰਿਪਟ ਕਰੋ" + +#~ msgid "Decr_ypt/Verify" +#~ msgstr "ਡਿਕ੍ਰਿਪਟ/ਜਾਂਚ(_y)" + +#~ msgid "Decrypt and/or Verify text" +#~ msgstr "ਟੈਕਸਟ ਡਿਕ੍ਰਿਪਟ ਅਤੇ/ਜਾਂ ਜਾਂਚ" + +#~ msgid "Sig_n..." +#~ msgstr "ਸਾਇਨ(_n)..." + +#~ msgid "Sign the selected text" +#~ msgstr "ਚੁਣੇ ਟੈਕਸਟ ਉੱਤੇ ਸਾਇਨ ਕਰੋ" + +#~ msgid "Enable the seahorse encryption plugin for gedit." +#~ msgstr "ਜੀ-ਸੰਪਾਦਕ ਲਈ ਸੀ-ਹਾਰਸ ਇੰਕ੍ਰਿਪਸ਼ਨ ਪਲੱਗਇਨ ਯੋਗ ਕਰੋ।" + +#~ msgid "Enable the seahorse gedit plugin" +#~ msgstr "ਸੀ-ਹਾਰਸ ਜੀ-ਸੰਪਾਦਕ ਪਲੱਗਇਨ ਯੋਗ" + +#~ msgid "Text Encryption" +#~ msgstr "ਟੈਕਸਟ ਇੰਕ੍ਰਿਪਸ਼ਨ" + +#~ msgid "This plugin performs encryption operations on text." +#~ msgstr "ਇਹ ਪਲੱਗਇਨ ਟੈਕਸਟ ਉੱਤੇ ਇੰਕ੍ਰਿਸ਼ਨ ਓਪਰੇਸ਼ਨ ਕਰਦੀ ਹੈ।" + +#~ msgid "Encrypt..." +#~ msgstr "ਇੰਕ੍ਰਿਪਟ..." + +#~ msgid "Encrypt (and optionally sign) the selected file" +#~ msgid_plural "Encrypt the selected files" +#~ msgstr[0] "ਚੁਣੀ ਫਾਇਲ ਇੰਕ੍ਰਿਪਟ ਕਰੋ" +#~ msgstr[1] "ਚੁਣੀਆਂ ਫਾਇਲਾਂ ਇੰਕ੍ਰਿਪਟ ਕਰੋ" + +#~ msgid "Sign the selected file" +#~ msgid_plural "Sign the selected files" +#~ msgstr[0] "ਚੁਣੀ ਫਾਇਲ ਉੱਤੇ ਸਾਇਨ ਕਰੋ" +#~ msgstr[1] "ਚੁਣੀਆਂ ਫਾਇਲਾਂ ਉੱਤੇ ਸਾਇਨ ਕਰੋ" + +#~ msgid "For internal use" +#~ msgstr "ਅੰਦਰੂਨੀ ਵਰਤੋਂ ਲਈ ਹੈ" + +#~ msgid "Encryption Preferences" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਪਸੰਦ" + +#~ msgid "Configure key servers and other encryption settings" +#~ msgstr "ਕੁੰਜੀ ਸਰਵਰ ਸੰਰਚਨਾ ਅਤੇ ਹੋਰ ਇੰਕ੍ਰਿਪਸ਼ਨ ਸੈਟਿੰਗ" + +#~ msgid "Encryption and Keyrings" +#~ msgstr "ਇੰਕ੍ਰਿਪਸ਼ਨ ਅਤੇ ਕੀਰਿੰਗ" + +#~ msgid "Encrypt file" +#~ msgstr "ਇੰਕ੍ਰਿਪਟ ਫਾਇਲ" + +#~ msgid "Sign file with default key" +#~ msgstr "ਫਾਇਲ ਡਿਫਾਲਟ ਕੁੰਜੀ ਨਾਲ ਸਾਇਨ ਕਰੋ" + +#~ msgid "Encrypt and sign file with default key" +#~ msgstr "ਡਿਫਾਲਟ ਕੁੰਜੀ ਨਾਲ ਇੰਕ੍ਰਿਪਟ ਅਤੇ ਫਾਇਲ ਦਸਤਖਤ ਕਰੋ" + +#~ msgid "Decrypt encrypted file" +#~ msgstr "ਇੰਕ੍ਰਿਪਟਿਡ ਫਾਇਲ ਡਿਕ੍ਰਿਪਟ ਕਰੋ" + +#~ msgid "Verify signature file" +#~ msgstr "ਦਸਤਖਤ ਫਾਇਲ ਜਾਂਚ" + +#~ msgid "Read list of URIs on standard in" +#~ msgstr "ਸਟੈਂਡਰਡ ਉੱਤੇ URI ਦੀ ਲਿਸਟ ਪੜ੍ਹੋ" + +#~ msgid "file..." +#~ msgstr "ਫਾਇਲ..." + +#~ msgid "Choose Recipients" +#~ msgstr "ਪ੍ਰਾਪਤ-ਕਰਤਾ ਚੁਣੋ" + +#~ msgid "Choose Encrypted File Name for '%s'" +#~ msgstr "'%s' ਲਈ ਇੰਕ੍ਰਿਪਟਡ ਫਾਇਲ ਨਾਂ ਚੁਣੋ" + +#~ msgid "Choose Signer" +#~ msgstr "ਸਾਇਨਰ ਚੁਣੋ" + +#~ msgid "Choose Signature File Name for '%s'" +#~ msgstr "'%s' ਲਈ ਦਸਤਖਤ ਫਾਇਲ ਨਾਂ ਚੁਣੋ" + +#~ msgid "Import is complete" +#~ msgstr "ਇੰਪੋਰਟ ਪੂਰਾ ਹੋਇਆ" + +#~ msgid "Importing keys ..." +#~ msgstr "ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਕੀਤੀਆਂ ਜਾ ਰਹੀਆਂ ਹਨ..." + +#~ msgid "Choose Decrypted File Name for '%s'" +#~ msgstr "'%s' ਲਈ ਡਿਕ੍ਰਿਪਟਡ ਫਾਇਲ ਨਾਂ ਚੁਣੋ" + +#~ msgid "Choose Original File for '%s'" +#~ msgstr "'%s' ਲਈ ਅਸਲੀ ਫਾਇਲ ਚੁਣੋ" + +#~ msgid "No valid signatures found" +#~ msgstr "ਕੋਈ ਵੈਧ ਦਸਤਖਤ ਨਹੀਂ ਲੱਭੇ" + +#~ msgid "File Encryption Tool" +#~ msgstr "ਫਾਇਲ ਇੰਕ੍ਰਿਪਸ਼ਨ ਟੂਲ" + +#~ msgid "Encrypting" +#~ msgstr "ਇਕ੍ਰਿਪਟ ਕੀਤੀ ਜਾਂਦੀ ਹੈ" + +#~ msgid "Couldn't encrypt file: %s" +#~ msgstr "ਫਾਇਲ ਇੰਕ੍ਰਿਪਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ: %s" + +#~ msgid "Signing" +#~ msgstr "ਸਾਇਨਿੰਗ" + +#~ msgid "Couldn't sign file: %s" +#~ msgstr "ਫਾਇਲ ਸਾਇਨ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ: %s" + +#~ msgid "Couldn't import keys from file: %s" +#~ msgstr "ਫਾਇਲ ਤੋਂ ਕੁੰਜੀਆਂ ਇੰਪੋਰਟ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕੀਆਂ: %s" + +#~ msgid "Decrypting" +#~ msgstr "ਡਿਕ੍ਰਿਪਸ਼ਨ" + +#~ msgid "Couldn't decrypt file: %s" +#~ msgstr "ਫਾਇਲ ਡਿਕ੍ਰਿਪਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ: %s" + +#~ msgid "Verifying" +#~ msgstr "ਜਾਂਚ ਜਾਰੀ ਹੈ" + +#~ msgid "Couldn't verify file: %s" +#~ msgstr "ਫਾਇਲ ਜਾਂਚ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ: %s" + +#~ msgid "Ace (.ace)" +#~ msgstr "Ace (.ace)" + +#~ msgid "Ar (.ar)" +#~ msgstr "Ar (.ar)" + +#~ msgid "Arj (.arj)" +#~ msgstr "Arj (.arj)" + +#~ msgid "Ear (.ear)" +#~ msgstr "Ear (.ear)" + +#~ msgid "Self-extracting zip (.exe)" +#~ msgstr "ਖੁਦ-ਖੋਲ੍ਹਣ ਜ਼ਿਪ (.exe)" + +#~ msgid "Jar (.jar)" +#~ msgstr "ਜ਼ਾਰ (.jar)" + +#~ msgid "Lha (.lzh)" +#~ msgstr "Lha (.lzh)" + +#~ msgid "Rar (.rar)" +#~ msgstr "Rar (.rar)" + +#~ msgid "Tar uncompressed (.tar)" +#~ msgstr "ਟਾਰ ਅਣ-ਕੰਪਰੈੱਸਡ (.tar)" + +#~ msgid "Tar compressed with bzip (.tar.bz)" +#~ msgstr "ਟਾਰ bzip ਨਾਲ ਕੰਪਰੈੱਸਡ (.tar.bz)" + +#~ msgid "Tar compressed with bzip2 (.tar.bz2)" +#~ msgstr "ਟਾਰ bzip2 ਨਾਲ ਕੰਪਰੈੱਸਡ (.tar.bz2)" + +#~ msgid "Tar compressed with gzip (.tar.gz)" +#~ msgstr "ਟਾਰ gzip ਨਾਲ ਕੰਪਰੈੱਸਡ (.tar.gz)" + +#~ msgid "Tar compressed with lzop (.tar.lzo)" +#~ msgstr "lzop ਨਾਲ ਕੰਪਰੈੱਸਡ ਟਾਰ (.tar.lzo)" + +#~ msgid "Tar compressed with compress (.tar.Z)" +#~ msgstr "ਕੰਪਰੈੱਸ ਨਾਲ ਕੰਪਰੈੱਸਡ ਟਾਰ (.tar.Z)" + +#~ msgid "War (.war)" +#~ msgstr "ਵਾਰ (.war)" + +#~ msgid "Zip (.zip)" +#~ msgstr "ਜ਼ਿਪ (.zip)" + +#~ msgid "Zoo (.zoo)" +#~ msgstr "ਜ਼ੂ (.zoo)" + +#~ msgid "7-Zip (.7z)" +#~ msgstr "7-Zip (.7z)" + +#~ msgid "You have selected %d file " +#~ msgid_plural "You have selected %d files " +#~ msgstr[0] "ਤੁਸੀਂ %d ਫਾਇਲ ਚੁਣੀ" +#~ msgstr[1] "ਤੁਸੀਂ %d ਫਾਇਲਾਂ ਚੁਣੀਆਂ" + +#~ msgid "and %d folder" +#~ msgid_plural "and %d folders" +#~ msgstr[0] "ਅਤੇ %d ਫੋਲਡਰ" +#~ msgstr[1] "ਅਤੇ %d ਫੋਲਡਰ" + +#~ msgid "%s%s" +#~ msgstr "%s%s" + +#~ msgid "You have selected %d files" +#~ msgstr "ਤੁਸੀਂ %d ਫਾਇਲਾਂ ਚੁਣੀਆਂ ਹਨ" + +#~ msgid "You have selected %d folder" +#~ msgid_plural "You have selected %d folders" +#~ msgstr[0] "ਤੁਸੀਂ %d ਫੋਲਡਰ ਚੁਣਿਆ" +#~ msgstr[1] "ਤੁਸੀਂ %d ਫੋਲਡਰ ਚੁਣੇ" + +#~ msgid "Couldn't list files" +#~ msgstr "ਫਾਇਲਾਂ ਲਿਸਟ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕੀਆਂ" + +#~ msgid "Couldn't read file" +#~ msgstr "ਫਾਇਲ ਪੜ੍ਹੀ ਨਹੀਂ ਜਾ ਸਕਦੀ" + +#~ msgid "Back up Key Rings to Archive" +#~ msgstr "ਕੁੰਜੀ ਰਿੰਗ ਨੂੰ ਅਕਾਇਵ ਵਿੱਚ ਬੈਕਅੱਪ ਕਰੋ" + +#~ msgid "seahorse" +#~ msgstr "ਸੀ-ਹਾਰਸ" + +#~ msgid "_Back up Key Rings..." +#~ msgstr "ਕੁੰਜੀ ਰਿੰਗ ਬੈਕਅੱਪ(_B)..." + +#~ msgid "Back up all keys" +#~ msgstr "ਸਭ ਕੁੰਜੀਆਂ ਦਾ ਬੈਕਅੱਪ ਬਣਾਓ" + +#~ msgid "Set Up Computer for _Secure Shell..." +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈੱਲ ਲਈ ਕੰਪਿਊਟਰ ਸੈੱਟਅੱਪ ਕਰੋ(_S)..." + +#~ msgid "User ID" +#~ msgstr "ਯੂਜ਼ਰ ID" + +#~ msgid "Couldn't retrieve key data" +#~ msgstr "ਕੁੰਜੀ ਡਾਟਾ ਲਿਆ ਨਹੀਂ ਜਾ ਸਕਿਆ ਹੈ" + +#~ msgid "Couldn't write key to file" +#~ msgstr "ਕੁੰਜੀ ਫਾਇਲ 'ਚ ਲਿਖੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't import keys into key ring" +#~ msgstr "ਕੁੰਜੀ ਰਿੰਗ ਵਿੱਚ ਕੁੰਜੀ ਇੰਪੋਰਟ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't write keys to file: %s" +#~ msgstr "ਕੁੰਜੀਆਂ ਫਾਇਲ ਵਿੱਚ ਲਿਖੀਆਂ ਨਹੀਂ ਜਾ ਸਕੀਆਂ: %s" + +#~ msgid "Save Remote Keys" +#~ msgstr "ਰਿਮੋਟ ਕੁੰਜੀਆਂ ਸੰਭਾਲੋ" + +#~ msgid "No matching keys found" +#~ msgstr "ਕੋਈ ਮਿਲਦੀ ਕੁੰਜੀ ਨਹੀਂ ਲੱਭੀ" + +#~ msgid "Save Key As..." +#~ msgstr "ਕੁੰਜੀ ਇੰਝ ਸੰਭਾਲੋ..." + +#~ msgid "Save selected keys as a file" +#~ msgstr "ਚੁਣੀਆਂ ਕੁੰਜੀਆਂ ਇੱਕ ਫਾਇਲ 'ਚ ਲਿਖੀਆਂ ਗਈਆਂ" + +#~ msgid "_Copy Key" +#~ msgstr "ਕੁੰਜੀ ਕਾਪੀ ਕਰੋ(_C)" + +#~ msgid "Remote Encryption Keys" +#~ msgstr "ਰਿਮੋਟ ਇੰਕ੍ਰਿਪਸ਼ਨ ਕੁੰਜੀਆਂ" + +#~ msgid "You have selected multiple files or folders" +#~ msgstr "ਤੁਸੀਂ ਕਈ ਫਾਇਲਾਂ ਜਾਂ ਫੋਲਡਰ ਚੁਣੇ ਹਨ" + +#~ msgid "" +#~ "Because the files are located remotely, each file will be encrypted " +#~ "separately." +#~ msgstr "" +#~ "ਕਿਉਂਕਿ ਫਾਇਲ ਰਿਮੋਟ ਟਿਕਾਣੇ ਉੱਤੇ ਹਨ, ਇਸਕਰਕੇ ਹਰੇਕ ਫਾਇਲ ਨੂੰ ਵੱਖ ਵੱਖ ਇੰਕ੍ਰਿਪਟ ਕੀਤਾ ਜਾਵੇਗਾ।" + +#~ msgid "Encrypt Multiple Files" +#~ msgstr "ਬਹੁਤੀਆਂ ਫਾਇਲਾਂ ਇੰਕ੍ਰਿਪਟ" + +#~ msgid "Encrypt each file separately" +#~ msgstr "ਹਰੇਕ ਫਾਇਲ ਵੱਖ ਵੱਖ ਇੰਕ੍ਰਿਪਟ" + +#~ msgid "Encrypt packed together in a package" +#~ msgstr "ਇੱਕ ਪੈਕੇਜ ਵਿੱਚ ਇੱਕਠੇ ਪੈਕ ਨੂੰ ਇੰਕ੍ਰਿਪਟ" + +#~ msgid "Package Name:" +#~ msgstr "ਪੈਕੇਜ ਨਾਂ:" + +#~ msgid "Packaging:" +#~ msgstr "ਪੈਕੇਜ:" + +#~ msgid "encrypted-package" +#~ msgstr "encrypted-package" + +#~ msgid "Decrypt File" +#~ msgstr "ਡਿਕ੍ਰਿਪਟ ਫਾਇਲ" + +#~ msgid "I have checked that this key belongs to '%s'" +#~ msgstr "ਮੈਂ ਜਾਂਚ ਕੀਤੀ ਹੈ ਕਿ ਇਹ ਕੁੰਜੀ '%s' ਨਾਲ ਸਬੰਧਿਤ ਹੈ" + +#~ msgid "Verify Signature" +#~ msgstr "ਦਸਤਖਤ ਜਾਂਚ" + +#~ msgid "couldn't read gpg configuration, will try to create" +#~ msgstr "gpg ਸੰਰਚਨਾ ਪੜ੍ਹੀ ਨਹੀਂ ਜਾ ਸਕਦੀ, ਬਣਾਉਣ ਦੀ ਕੋਸ਼ਿਸ਼ ਕੀਤੀ ਜਾਵੇਗੀ" + +#~ msgid "couldn't modify gpg configuration: %s" +#~ msgstr "gpg ਸੰਰਚਨਾ ਸੋਧੀ ਨਹੀਂ ਜਾ ਸਕੀ: %s" + +#~ msgid "" +#~ "Display variables instead of editing conf files (gpg.conf, SSH agent " +#~ "socket)" +#~ msgstr "ਸੰਰਚਨਾ ਫਾਇਲਾਂ ਸੋਧਣ ਦੀ ਬਜਾਏ ਵੇਰੀਬਲ ਵੇਖਾਓ ((gpg.conf, SSH ਏਜੰਟ ਸਾਕਟ)" + +#~ msgid "couldn't drop privileges properly" +#~ msgstr "ਅਧਿਕਾਰ ਠੀਕ ਤਰ੍ਹਾਂ ਹਟਾਏ ਨਹੀਂ ਜਾ ਸਕੇ" + +#~ msgid "" +#~ "When set seahorse-agent will try to automatically load the users SSH keys " +#~ "when needed. This is equivalent to using the ssh-add utility." +#~ msgstr "" +#~ "ਜਦੋਂ ਚੋਣ ਕੀਤੀ ਤਾਂ seahorse-agent ਯੂਜ਼ਰ SSH ਕੁੰਜੀਆਂ ਨੂੰ ਲੋੜ ਸਮੇਂ ਆਟੋਮੈਟਿਕ ਹੀ ਲੋਡ ਕਰਨ ਦੀ " +#~ "ਕੋਸ਼ਿਸ਼ ਕਰਦਾ ਹੈ। ਇਹ ssh-add ਸਹੂਲਤ ਵਰਤਣ ਵਾਂਗ ਹੀ ਹੈ।" + +#~ msgid "Whether to automatically load SSH keys on demand." +#~ msgstr "ਕੀ ਲੋੜ ਪੈਣ ਉੱਤੇ SSH ਕੁੰਜੀਆਂ ਆਟੋਮੈਟਿਕ ਹੀ ਲੋਡ ਕਰਨੀਆਂ ਹਨ।" + +#~ msgid "Couldn't open the Session Properties" +#~ msgstr "ਸ਼ੈਸ਼ਨ ਵਿਸ਼ੇਸ਼ਤਾ ਖੋਲ੍ਹੀ ਨਹੀਂ ਜਾ ਸਕੀ" + +#~ msgid "Couldn't start the 'seahorse-agent' program" +#~ msgstr "'seahorse-agent' ਪ੍ਰੋਗਰਾਮ ਸ਼ੁਰੂ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ" + +#~ msgid "The 'seahorse-agent' program exited unsuccessfully." +#~ msgstr "ਪ੍ਰੋਗਰਾਮ 'seahorse-agent' ਅਚਾਨਕ ਖਤਮ ਹੋ ਗਿਆ ਹੈ।" + +#~ msgid "" +#~ "Note: The 'seahorse-agent' program has been started. This program " +#~ "is necessary in order to cache passphrases. " +#~ msgstr "" +#~ "ਨੋਟ: 'seahorse-agent' ਪਰਗੋਰਾਮ ਸ਼ੁਰੂ ਕੀਤਾ ਗਿਆ ਹੈ। ਇਹ ਪਰੋਗਰਾਮ ਪ੍ਹੈਰਾ ਕੈਚੇ ਕਰਨ " +#~ "ਲਈ ਲਾਜ਼ਮੀ ਹੈ। " + +#~ msgid "Secure Shell Keys" +#~ msgstr "ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀਆਂ" + +#~ msgid "" +#~ "Warning: The 'seahorse-agent' program is not running. This program " +#~ "is necessary in order to cache passphrases. " +#~ msgstr "" +#~ "ਚੇਤਾਵਨੀ: 'seahorse-agent' ਚੱਲ ਨਹੀਂ ਰਿਹਾ ਹੈ। ਇਹ ਪਰੋਗਰਾਮ ਪ੍ਹੈਰਾ ਕੈਚੇ ਕਰਨ ਲਈ " +#~ "ਲੋੜੀਦਾ ਹੈ। " + +#~ msgid "" +#~ "No SSH caching agent is running. Cannot load Secure Shell keys." +#~ msgstr "" +#~ "ਕੋਈ SSH ਕੈਚੇ ਏਜੰਟ ਚੱਲ ਨਹੀਂ ਰਿਹਾ ਹੈ। ਸਕਿਊਰ ਸ਼ੈਲ਼ ਕੁੰਜੀਆਂ ਲੋਡ ਨਹੀਂ ਕੀਤੀਆਂ ਜਾ ਸਕਦੀਆਂ।" + +#~ msgid "Automatically load _Secure Shell keys" +#~ msgstr "ਆਟੋਮੈਟਿਕ ਹੀ ਸੁਰੱਖਿਅਤ ਸ਼ੈਲ ਕੁੰਜੀਆਂ ਲੋਡ ਕਰੋ(_S)" + +#~ msgid "" +#~ "Changing the master password failed. Make certain that you entered the " +#~ "correct original master password." +#~ msgstr "" +#~ "ਮਾਸਟਰ ਪਾਸਵਰਡ ਬਦਲਣ ਲਈ ਫੇਲ੍ਹ ਹੈ। ਯਕੀਨੀ ਬਣਾਓ ਕਿ ਤੁਸੀਂ ਠੀਕ ਅਸਲੀ ਮਾਸਟਰ ਪਾਸਵਰਡ ਹੀ " +#~ "ਦਿੱਤਾ ਹੈ।" + +#~ msgid "Confirm Master Password:" +#~ msgstr "ਮਾਸਟਰ ਪਾਸਵਰਡ ਪੁਸ਼ਟੀ:" + +#~ msgid "" +#~ "GNOME Keyring stores passwords, network keys, passphrases and other " +#~ "secrets required for authentication. A master password is used to " +#~ "protect these secrets. The master password can be changed below." +#~ msgstr "" +#~ "ਗਨੋਮ ਕੀਰਿੰਗ ਪਾਸਵਰਡ, ਨੈੱਟਵਰਕ ਕੁੰਜੀਆਂ, ਪ੍ਹੈਰਾ ਅਤੇ ਹੋਰ ਪਰਮਾਣਕਿਤਾ ਲਈ ਲੋੜੀਦੀ ਗੁਪਤ ਜਾਣਕਾਰੀ " +#~ "ਸੰਭਾਲ ਕੇ ਰੱਖਦੀ ਹੈ। ਇਹ ਸਭ ਗੁਪਤ ਜਾਣਕਾਰੀ ਸੰਭਾਲਣ ਲਈ ਇੱਕ ਮਾਸਟਰ ਪਾਸਵਰਡ ਇਸਤੇਮਾਲ " +#~ "ਹੁੰਦਾ ਹੈ। ਮਾਸਟਰ ਪਾਸਵਰਡ ਹੇਠ ਬਦਲਿਆ ਜਾ ਸਕਦਾ ਹੈ।" + +#~ msgid "New Master Password:" +#~ msgstr "ਨਵਾਂ ਮਾਸਟਰ ਪਾਸਵਰਡ:" + +#~ msgid "Original Master Password:" +#~ msgstr "ਅਸਲੀ ਮਾਸਟਰ ਪਾਸਵਰਡ:" + +#~ msgid "Passphrase Cache" +#~ msgstr "ਪ੍ਹੈਰਾ ਕੈਚੇ" + +#~ msgid "Session Properties" +#~ msgstr "ਸ਼ੈਸ਼ਨ ਵਿਸ਼ੇਸ਼ਤਾ" + +#~ msgid "The master password was successfully changed." +#~ msgstr "ਮਾਸਟਰ ਪਾਸਵਰਡ ਠੀਕ ਤਰ੍ਹਾਂ ਬਦਲਿਆ ਗਿਆ ਹੈ।" + +#~ msgid "" +#~ "To avoid manually starting the 'seahorse-agent' in the future\n" +#~ "add it to the Session Manager. " +#~ msgstr "" +#~ "ਅੱਗੇ ਤੋਂ 'seahorse-agent' ਨੂੰ ਖੁਦ ਸ਼ੁਰੂ ਕਰਨ ਲਈ\n" +#~ "ਇਸ ਨੂੰ ਸ਼ੈਸ਼ਨ ਮੈਨੇਜਰ ਵਿੱਚ ਸ਼ਾਮਲ ਕਰੋ। " + +#~ msgid "Progress Message" +#~ msgstr "ਤਰੱਕੀ ਸੁਨੇਹਾ" + +#~ msgid "Progress Status" +#~ msgstr "ਤਰੱਕੀ ਹਾਲਤ" + +#~ msgid "Login:" +#~ msgstr "ਲਾਗਇਨ:" + +#~ msgid "Server:" +#~ msgstr "ਸਰਵਰ:" + +#~ msgid "[details]\n" +#~ msgstr "[ਵੇਰਵਾ]\n" + +#~ msgid "[login]" +#~ msgstr "[ਲਾਗਇਨ]" + +#~ msgid "[server]" +#~ msgstr "[ਸਰਵਰ]" diff --git a/po/pl.po b/po/pl.po new file mode 100644 index 0000000..d509d54 --- /dev/null +++ b/po/pl.po @@ -0,0 +1,193 @@ +# Polish translation for grilo. +# Copyright © 2013-2018 the grilo authors. +# This file is distributed under the same license as the grilo package. +# Piotr Drąg , 2013-2018. +# Aviary.pl , 2013-2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-10 15:25+0200\n" +"Last-Translator: Piotr Drąg \n" +"Language-Team: Polish \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nie odnaleziono sztucznej definicji" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nie można odnaleźć sztucznej treści %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nie można uzyskać dostępu do sztucznej treści: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nie można połączyć z serwerem" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nie można połączyć z serwerem pośrednika" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Nieprawidłowy adres URI lub nagłówek żądania: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Wymagane jest uwierzytelnienie: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Nie odnaleziono żądanego zasobu: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Wpis został zmodyfikowany od czasu jego pobrania: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Anulowano działanie" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Dane nie są dostępne" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Nieprawidłowy adres URL %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Ścieżki zawierające wtyczki Grilo, oddzielone średnikami" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Ścieżki zawierające wtyczki Grilo, oddzielone dwukropkami" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Lista używanych wtyczek Grilo, oddzielonych dwukropkami" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opcje Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Wyświetla opcje Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Żadne wyszukiwalne źródła nie są dostępne" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Nie można rozwiązać nośnika dla adresu URI „%s”" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Wtyczka „%s” jest już wczytana" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Zainicjowanie wtyczki z %s się nie powiodło" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Klucz metadanych „%s” jest już zarejestrowany w innym formacie" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Nie można zarejestrować klucza metadanych „%s”" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Nie odnaleziono źródła o identyfikatorze „%s”" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Wczytanie wtyczki z %s się nie powiodło" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Nieprawidłowy plik wtyczki %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "„%s” nie jest prawidłowym plikiem wtyczki" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Wtyczka „%s” już istnieje" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Nieprawidłowa ścieżka %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Wszystkie skonfigurowane ścieżki do wtyczek są nieprawidłowe" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Wtyczka „%s” jest niedostępna" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Nie odnaleziono wtyczki: „%s”" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Konfiguracja wtyczki nie zawiera odniesienia „plugin-id”" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Nie można zapisać części kluczy" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Żaden z podanych kluczy nie jest zapisywalny" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Nośnik nie ma „id”, nie można usunąć" diff --git a/po/pt.po b/po/pt.po new file mode 100644 index 0000000..38d2110 --- /dev/null +++ b/po/pt.po @@ -0,0 +1,205 @@ +# grilo's Portuguese translation. +# Copyright © 2013 grilo +# This file is distributed under the same license as the grilo package. +# Fernando Carvalho , 2013. +# Pedro Albuquerque , 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: 3.10\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2015-12-16 13:15+0000\n" +"PO-Revision-Date: 2015-12-19 07:41+0000\n" +"Last-Translator: Pedro Albuquerque \n" +"Language-Team: Português \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\\n\n" +"X-Generator: Gtranslator 2.91.6\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Não foi encontrada qualquer definição de simulação" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Impossível encontrar conteúdo simulado %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +#| msgid "Could not access mock content" +msgid "Could not access mock content: %s" +msgstr "Impossível aceder ao conteúdo simulado: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Impossível ligar ao servidor" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Impossível ligar ao servidor proxy" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Pedido de cabeçalho ou URI inválido:%s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autenticação necessária: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "O recurso pedido não foi encontrado: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "A entrada foi alterada desde que foi transferida: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "A operação foi cancelada" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Estado não gerido: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Dados indisponíveis" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "URL %s inválido" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Caminhos separados por ponto e virgula que contêm extensões Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Caminhos separados por dois pontos que contêm extensões Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Lista separada por dois pontos de extensões Grilo a utilizar" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opções Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostra as opções do Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nenhuma fonte disponível para procura" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Impossível resolver suporte para URI \"%s\"" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1373 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Extensão \"%s\" já está carregada" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Falha ao inicializar extensão de %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Chave de metadados \"%s\" já está registada num formato diferente" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Impossível registar a chave de metadados \"%s\"" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Impossível encontrar origem com id \"%s\"" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Falha ao ler a extensão de %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ficheiro de extensão %s inválido" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "\"%s\" não é um ficheiro de extensão válido" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "A extensão \"%s\" já existe" + +#: ../src/grl-registry.c:1257 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "Caminho %s inválido" + +#: ../src/grl-registry.c:1323 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Todos os caminhos de extensão configurados são inválidos" + +#: ../src/grl-registry.c:1362 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Extensão \"%s\" indisponivel" + +#: ../src/grl-registry.c:1590 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Extensão não encontrada: \"%s\"" + +#: ../src/grl-registry.c:1901 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "A configuração da extensão não contém a referência \"plugin-id\"" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Impossível escrever algumas chaves" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Sem permissões de escrita para as chaves especificadas" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Suporte não tem \"id\", impossível remover" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Impossível carregar a extensão \"%s\"" diff --git a/po/pt_BR.po b/po/pt_BR.po new file mode 100644 index 0000000..7aed4c7 --- /dev/null +++ b/po/pt_BR.po @@ -0,0 +1,198 @@ +# Brazilian Portuguese translation for grilo. +# Copyright (C) 2018 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Enrico Nicoletto , 2013, 2015. +# Rafael Fontenelle , 2013, 2018. +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-09 11:01-0200\n" +"Last-Translator: Rafael Fontenelle \n" +"Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Virtaal 1.0.0-beta1\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nenhuma definição de simulação encontrada" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Não foi possível encontrar o conteúdo de simulação %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Não foi possível acessar o conteúdo da simulação: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Não foi possível conectar ao servidor" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Não foi possível conectar ao servidor proxy" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI ou cabeçalho da requisição inválido: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autenticação necessária: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "O recurso requisitado não foi localizado: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "A entrada foi modificada desde que foi baixada: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operação foi cancelada" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Dados não disponíveis" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "URL inválida %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Caminhos separados por ponto e vírgula contendo plug-ins do Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Caminhos separados por vírgula contendo plug-ins do Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Lista separada por vírgula de plug-ins do Grilo para usar" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opções do Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Mostra as opções do Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nenhuma fonte pesquisável disponível" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Não foi possível resolver a mídia da URI “%s”" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Plug-in “%s” já está carregado" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Falha ao inicializar plug-in de %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Chave de metadados “%s” já está registrada em formato diferente" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Chave de metadados “%s” não pôde ser registrada" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Fonte com identificação “%s” não foi localizada" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Falha ao carregar plug-in de %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Arquivo de plug-in inválido %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "“%s” não é um arquivo de plug-in válido" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Plug-in “%s” já existe" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Caminho inválido %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Todos os caminhos de plug-ins configurados são inválidos" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Plug-in “%s” não disponível" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Plug-in não encontrado: “%s”" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Configuração de plug-in não contém uma referência “plugin-id”" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Algumas chaves não puderam ser escritas" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nenhuma das chaves especificadas pode ser escrita" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Mídia não possui “id”, não foi possível remover" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Estado não manipulado: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Não foi possível carregar plug-in \"%s\"" diff --git a/po/ro.po b/po/ro.po new file mode 100644 index 0000000..991ae9a --- /dev/null +++ b/po/ro.po @@ -0,0 +1,194 @@ +# Romanian translation for grilo. +# Copyright (C) 2018 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Floren <>, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-17 21:45+0300\n" +"Last-Translator: Florentina Mușat \n" +"Language-Team: Romanian \n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " +"20)) ? 1 : 2);;\n" +"X-Generator: Poedit 2.0.8\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nu s-au găsit definiții de model" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nu s-a putut găsi conținutul model %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nu s-a putut accesa conținutul model: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nu se poate conecta la server" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nu se poate conecta la serverul proxy" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "URI de cerere sau antet nevalid: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autentificare necesară: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Resursa cerută nu a fost găsită: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Intrarea a fost modificată de când a fost descărcată: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operația a fost anulată" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Date nedisponibile" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "URL nevalid %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Căi separate prin punct și virgulă conținând module Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Căi separate prin două puncte conținând module Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Listă separată prin două puncte a modulelor Grilo de utilizat" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Opțiuni Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Afișează opțiunile Grilo" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nu sunt disponibile surse în care se poate căuta" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Nu s-a putut rezolva media pentru URI „%s”" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Modulul „%s” este deja încărcat" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Nu s-a putut inițializa modulul de la %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Cheia de metadate „%s” este înregistrată deja într-un format diferit" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Cheia de metadate „%s” nu poate fi înregistrată" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Nu s-a găsit sursa cu id-ul „%s”" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Nu s-a putut încărca modulul de la %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Fișier de modul nevalid %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "„%s” nu este un fișier de modul valid" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Modulul „%s” există deja" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Cale nevalidă %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Toate căile de modul configurate sunt nevalide" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Modulul „%s” nu este disponibil" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Nu s-a găsit modulul: „%s”" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Configurația de modul nu conține referința „plugin-id”" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Unele chei nu au putut fi scrise" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nu se pot scrie niciuna dintre cheile specificate" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Media nu are „id”, nu se poate elimina" diff --git a/po/ru.po b/po/ru.po new file mode 100644 index 0000000..b796dd1 --- /dev/null +++ b/po/ru.po @@ -0,0 +1,202 @@ +# Russian translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# sds , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-03-17 11:24+0000\n" +"PO-Revision-Date: 2016-03-17 21:51+0300\n" +"Last-Translator: Yuri Myasoedov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Poedit 1.6.9\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Не найдено описание заглушки" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Не удалось найти содержание заглушки %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Не удалось получить доступ к содержанию заглушки: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Не удалось подключиться к серверу" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Не удалось подключиться к прокси-серверу" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Некорректный URI или заголовок запроса: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Требуется авторизация: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Запрошенный ресурс не найден: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Запись была изменена, с тех пор как была загружена: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Операция отменена" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Необработанный статус: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Данные не доступны" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Некорректный URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Пути, содержащие модули Grilo, разделённые точкой с запятой" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Пути, содержащие модули Grilo, разделённые двоеточием" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Список используемых модулей Grilo с разделителем-двоеточием" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Параметры Grilo" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Показать параметры Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Источники, доступные для поиска, отсутствуют" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Не удалось определить протокол для URI «%s»" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Модуль «%s» уже загружен" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Не удалось инициализировать модуль из %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Ключ метаданных «%s» уже зарегистрирован в другом формате" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ключ метаданных «%s» не может быть зарегистрирован" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Источник с идентификатором «%s» не найден" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Ошибка загрузки модуля из %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Некорректный файл модуля %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "«%s» не является корректным файлом модуля" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Модуль «%s» уже существует" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Недопустимый путь %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Все пути конфигурируемых модулей не корректны" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Модуль «%s» не доступен" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Модуль не найден: «%s»" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Конфигурация модулей не содержит описания «plugin-id»" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Некоторые ключи не могут быть записаны" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Среди указанных ключей отсутствуют записываемые" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Носитель не имеет идентификатор, невозможно извлечь" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Не удалось загрузить модуль «%s»" diff --git a/po/sk.po b/po/sk.po new file mode 100644 index 0000000..5ee7437 --- /dev/null +++ b/po/sk.po @@ -0,0 +1,202 @@ +# Slovak translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Dušan Kazik , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2015-12-16 13:15+0000\n" +"PO-Revision-Date: 2016-01-26 15:41+0100\n" +"Last-Translator: Dušan Kazik \n" +"Language-Team: Slovak \n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;\n" +"X-Generator: Poedit 1.8.6\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nenašla sa fiktívna definícia" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Nepodarilo sa nájsť fiktívny obsah %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Nepodarilo sa pristúpiť k fiktívnemu obsahu: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Nedá sa pripojiť k serveru" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Nedá sa pripojiť k proxy serveru" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Neplatná URI alebo hlavička požiadavky: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Vyžaduje sa overenie totožnosti: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Nenašiel sa požadovaný prostriedok: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Záznam bol od jeho prevzatia zmenený: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Operácia bola zrušená" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Nezachytený stav: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Údaje nie sú dostupné" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Neplatná adresa URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Bodkočiarkou oddelené cesty obsahujúce zásuvné moduly pre Grilo" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Čiarkou oddelené cesty obsahujúce zásuvné moduly pre Grilo" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Čiarkou oddelené zásuvné moduly pre Grilo, ktoré sa majú použiť" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Voľby pre Grilo" + +# tooltip +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Zobrazí voľby pre Grilo" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nie sú dostupné žiadne vyhľadateľné zdroje" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Nepodarilo sa nájsť médium pre URI „%s“" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1373 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Zásuvný modul „%s“ je už načítaný" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Zlyhala inicializácia zásuvného modulu z %s" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Kľúč metaúdajov „%s“ už je zaregistrovaný v odlišnom formáte" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Kľúč metaúdajov „%s“ sa nedá zaregistrovať" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Zdroj s identifikátorom „%s“ sa nenašiel" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Zlyhalo načítanie zásuvného modulu z %s" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Neplatný súbor zásuvného modulu %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "„%s“ nie je platným súborom zásuvného modulu" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Zásuvný modul „%s“ už existuje" + +#: ../src/grl-registry.c:1257 +#, c-format +msgid "Invalid path %s" +msgstr "Neplatná cesta %s" + +#: ../src/grl-registry.c:1323 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Všetky konfigurované cesty zásuvných modulov sú neplatné" + +#: ../src/grl-registry.c:1362 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Zásuvný modul „%s“ nie je dostupný" + +#: ../src/grl-registry.c:1590 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Zásuvný modul sa nenašiel: „%s“" + +#: ../src/grl-registry.c:1901 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Konfigurácia zásuvného modulu neobsahuje odkaz „plugin-id“" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Niektoré kľúče sa nepodarilo zapísať" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Žiadny z určených kľúčov nie je zapísateľný" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Médium neobsahuje „id“, nedá sa odstrániť" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Nepodarilo sa načítať zásuvný modul „%s“" diff --git a/po/sl.po b/po/sl.po new file mode 100644 index 0000000..94f9c16 --- /dev/null +++ b/po/sl.po @@ -0,0 +1,203 @@ +# Slovenian translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# +# Matej Urbančič , 2013–2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-07-11 06:02+0000\n" +"PO-Revision-Date: 2018-07-11 21:38+0200\n" +"Last-Translator: Matej Urbančič \n" +"Language-Team: Slovenščina \n" +"Language: sl_SI\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0);\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Generator: Poedit 2.0.6\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Ni navidezne definicije" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Navidezne vsebine %s ni mogoče najti" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Dostop do vsebine ni mogoč: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Povezava s strežnikom ni mogoča" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Povezava s posredniškim strežnikom ni mogoča." + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Neveljavna glava ali zahteve naslova URI: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Zahtevana je overitev: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Zahtevanega vira ni mogoče najti: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Vnos je bil spremenjen, odkar je bil prejet: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Opravilo je preklicano" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Podatki niso na voljo" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Neveljaven naslov URL %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "S podpičji ločene poti, ki vsebujejo vstavke Grilo" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Z dvopičji ločene poti, ki vsebujejo vstavke Grilo" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Z dvopičji ločene poti, ki vsebujejo vstavke Grilo, ki so v uporabi" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Možnosti Grilo" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Prikaže možnosti Grila" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Viri, ki omogočajo iskanje, niso na voljo" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Ni mogoče razrešiti vrste predstavne vsebine na naslovu URI »%s«" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Vstavek »%s« je že naložen" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Ni mogoče začeti vstavka iz %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Ključ metapodatkov »%s« je že vpisan v drugačnem zapisu" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Ključa metapodatkov »%s« ni mogoče vpisati v seznam" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Vira z ID »%s« ni mogoče najti" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Nalaganje vstavka iz %s je spodletelo." + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Neveljavna datoteka vstavka %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "Datoteka »%s« ni veljavna datoteka vstavka" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Vstavek »%s« že obstaja." + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Neveljavna pot %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Vse nastavljene poti vstavkov so neveljavne" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Vstavek »%s« ni na voljo" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Vstavka ni mogoče najti: »%s«" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Nastavitev vstavka ne vsebuje sklicev »plugin-id«" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Nekaterih ključev ni mogoče zapisati." + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Noben od navedenih ključev ni zapisljiv" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Predstavna vsebina je brez podatka »ID«, ni je mogoče odstraniti" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Neupravljano stanje %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Ni mogoče naložiti vstavka '%s'" + +#~ msgid "Could not access mock content" +#~ msgstr "Dostop do navidezne vsebine ni mogoč" diff --git a/po/sr.po b/po/sr.po new file mode 100644 index 0000000..ca71275 --- /dev/null +++ b/po/sr.po @@ -0,0 +1,273 @@ +# Serbian translation for grilo. +# Courtesy of Prevod.org team (http://prevod.org/) -- 2013—2016. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Мирослав Николић , 2013—2016. +# Марко М. Костић (Marko M. Kostić) , 2015. +msgid "" +msgstr "" +"Project-Id-Version: grilo\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=grilo&k" +"eywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-02-19 13:36+0000\n" +"PO-Revision-Date: 2016-02-19 19:28+0200\n" +"Last-Translator: Мирослав Николић \n" +"Language-Team: Serbian \n" +"Language: sr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=n==1? 3 : n%10==1 && n%100!=11 ? 0 : " +"n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Нисам нашао привидну одредницу" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Не мог да пронађем привидни садржај „%s“" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Не могу да приступим привидном садржају: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Не могу да се повежем са сервером" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Не могу да се повежем са посредничким сервером" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Неисправна путања или заглавље захтева: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Потребно је потврђивање идентитета: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Тражено извориште није пронађено: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Унос је измењен од када је преузет: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Радња је отказана" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Неподржано стање: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Подаци нису доступни" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Неисправна адреса „%s“" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Запетачком раздвојене путање које садрже прикључке Грила" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Двотачком раздвојене путање које садрже прикључке Грила" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Двотачком раздвојен списак прикључака Грила за коришћење" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Могућности Грила" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Показује могућности Грила" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Нема доступних претраживих извора" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Не могу да решим медиј за путањом „%s“" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Прикључак „%s“ је већ учитан" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Нисам успео да покренем прикључак из „%s“" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Кључ метаподатака „%s“ је већ регистрован у другачијем формату" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Кључ метаподатака „%s“ не може бити забележен" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Нисам пронашао извор са иб-ом „%s“" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Нисам успео да учитам прикључак из „%s“" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Неисправна датотека прикључка „%s“" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "„%s“ није исправна датотека прикључка" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Већ постоји прикључак „%s“" + +#: ../src/grl-registry.c:1259 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "Неисправна путања „%s“" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Све подешене путање прикључака су неисправне" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Прикључак „%s“ није доступан" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Нисам нашао прикључак: „%s“" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Подешавање прикључка не садржи упуту „plugin-id“ (иб-прикључка)" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Не могу да запишем неке кључеве" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Ниједан од наведених кључева није записив" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Медиј нема „иб“, не могу да уклоним" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Не могу да учитам прикључак „%s“" + +#~ msgid "Apple Movie Trailers" +#~ msgstr "Еплови одломци филмова" + +#~ msgid "A plugin for browsing Apple Movie Trailers" +#~ msgstr "Прикључак за разгледање Еплових одломака филмова" + +#~ msgid "Failed to parse response" +#~ msgstr "Нисам успео да обрадим одговор" + +#~ msgid "Empty response" +#~ msgstr "Празан одговор" + +#~ msgid "Failed to connect: %s" +#~ msgstr "Нисам успео да се повежем: %s" + +#~ msgid "A source for browsing and searching Blip.tv videos" +#~ msgstr "Извор за разгледање и претрагу снимака Блип телевизије" + +#~ msgid "Bookmarks" +#~ msgstr "Обележивачи" + +#~ msgid "A source for organizing media bookmarks" +#~ msgstr "Извор за организовање медијских обележивача" + +#~ msgid "Failed to get bookmark metadata" +#~ msgstr "Нисам успео да добавим мета податке обележивача" + +#~ msgid "Failed to get bookmarks list: %s" +#~ msgstr "Нисам успео да добавим списак обележивача: %s" + +#~ msgid "Failed to remove: %s" +#~ msgstr "Нисам успео да уклоним: %s" + +#~ msgid "No database connection" +#~ msgstr "Нема веза са базом података" + +#~ msgid "A source for browsing the DMAP server '%s'" +#~ msgstr "Извор за разгледање ДМАП сервера „%s“" + +#~ msgid "Albums" +#~ msgstr "Албуми" + +#~ msgid "Artists" +#~ msgstr "Извођачи" + +#~ msgid "Invalid container identifier %s" +#~ msgstr "Неисправан одредник садржаоца „%s“" + +#~ msgid "Filesystem" +#~ msgstr "Систем датотека" + +#~ msgid "A source for browsing the filesystem" +#~ msgstr "Извор за разгледање система датотека" + +#~ msgid "File %s does not exist" +#~ msgstr "Датотека „%s“ не постоји" + +#~ msgid "A source for browsing and searching Flickr photos" +#~ msgstr "Извор за разгледање и претрагу слика Фликра" + +#~ msgid "%s's Flickr" +#~ msgstr "Фликр корисника „%s“" + +#~ msgid "A source for browsing and searching %s's flickr photos" +#~ msgstr "Извор за разгледање и претрагу слика са фликра корисника %s" + +#~ msgid "Freebox TV" +#~ msgstr "Фрибокс ТВ" diff --git a/po/sr@latin.po b/po/sr@latin.po new file mode 100644 index 0000000..f47b23b --- /dev/null +++ b/po/sr@latin.po @@ -0,0 +1,273 @@ +# Serbian translation for grilo. +# Courtesy of Prevod.org team (http://prevod.org/) -- 2013—2016. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Miroslav Nikolić , 2013—2016. +# Marko M. Kostić (Marko M. Kostić) , 2015. +msgid "" +msgstr "" +"Project-Id-Version: grilo\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=grilo&k" +"eywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-02-19 13:36+0000\n" +"PO-Revision-Date: 2016-02-19 19:28+0200\n" +"Last-Translator: Miroslav Nikolić \n" +"Language-Team: Serbian \n" +"Language: sr@latin\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=n==1? 3 : n%10==1 && n%100!=11 ? 0 : " +"n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Project-Style: gnome\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Nisam našao prividnu odrednicu" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Ne mog da pronađem prividni sadržaj „%s“" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Ne mogu da pristupim prividnom sadržaju: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Ne mogu da se povežem sa serverom" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Ne mogu da se povežem sa posredničkim serverom" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Neispravna putanja ili zaglavlje zahteva: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Potrebno je potvrđivanje identiteta: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Traženo izvorište nije pronađeno: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Unos je izmenjen od kada je preuzet: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:596 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Radnja je otkazana" + +#: ../libs/net/grl-net-wc.c:490 +#, c-format +msgid "Unhandled status: %s" +msgstr "Nepodržano stanje: %s" + +#: ../libs/net/grl-net-wc.c:600 ../libs/net/grl-net-wc.c:641 +msgid "Data not available" +msgstr "Podaci nisu dostupni" + +#: ../libs/net/grl-net-wc.c:691 +#, c-format +msgid "Invalid URL %s" +msgstr "Neispravna adresa „%s“" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Zapetačkom razdvojene putanje koje sadrže priključke Grila" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Dvotačkom razdvojene putanje koje sadrže priključke Grila" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Dvotačkom razdvojen spisak priključaka Grila za korišćenje" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Mogućnosti Grila" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Pokazuje mogućnosti Grila" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Nema dostupnih pretraživih izvora" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Ne mogu da rešim medij za putanjom „%s“" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Priključak „%s“ je već učitan" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Nisam uspeo da pokrenem priključak iz „%s“" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "Ključ metapodataka „%s“ je već registrovan u drugačijem formatu" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ključ metapodataka „%s“ ne može biti zabeležen" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Nisam pronašao izvor sa ib-om „%s“" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Nisam uspeo da učitam priključak iz „%s“" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Neispravna datoteka priključka „%s“" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "„%s“ nije ispravna datoteka priključka" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Već postoji priključak „%s“" + +#: ../src/grl-registry.c:1259 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "Neispravna putanja „%s“" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Sve podešene putanje priključaka su neispravne" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Priključak „%s“ nije dostupan" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Nisam našao priključak: „%s“" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Podešavanje priključka ne sadrži uputu „plugin-id“ (ib-priključka)" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Ne mogu da zapišem neke ključeve" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Nijedan od navedenih ključeva nije zapisiv" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Medij nema „ib“, ne mogu da uklonim" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Ne mogu da učitam priključak „%s“" + +#~ msgid "Apple Movie Trailers" +#~ msgstr "Eplovi odlomci filmova" + +#~ msgid "A plugin for browsing Apple Movie Trailers" +#~ msgstr "Priključak za razgledanje Eplovih odlomaka filmova" + +#~ msgid "Failed to parse response" +#~ msgstr "Nisam uspeo da obradim odgovor" + +#~ msgid "Empty response" +#~ msgstr "Prazan odgovor" + +#~ msgid "Failed to connect: %s" +#~ msgstr "Nisam uspeo da se povežem: %s" + +#~ msgid "A source for browsing and searching Blip.tv videos" +#~ msgstr "Izvor za razgledanje i pretragu snimaka Blip televizije" + +#~ msgid "Bookmarks" +#~ msgstr "Obeleživači" + +#~ msgid "A source for organizing media bookmarks" +#~ msgstr "Izvor za organizovanje medijskih obeleživača" + +#~ msgid "Failed to get bookmark metadata" +#~ msgstr "Nisam uspeo da dobavim meta podatke obeleživača" + +#~ msgid "Failed to get bookmarks list: %s" +#~ msgstr "Nisam uspeo da dobavim spisak obeleživača: %s" + +#~ msgid "Failed to remove: %s" +#~ msgstr "Nisam uspeo da uklonim: %s" + +#~ msgid "No database connection" +#~ msgstr "Nema veza sa bazom podataka" + +#~ msgid "A source for browsing the DMAP server '%s'" +#~ msgstr "Izvor za razgledanje DMAP servera „%s“" + +#~ msgid "Albums" +#~ msgstr "Albumi" + +#~ msgid "Artists" +#~ msgstr "Izvođači" + +#~ msgid "Invalid container identifier %s" +#~ msgstr "Neispravan odrednik sadržaoca „%s“" + +#~ msgid "Filesystem" +#~ msgstr "Sistem datoteka" + +#~ msgid "A source for browsing the filesystem" +#~ msgstr "Izvor za razgledanje sistema datoteka" + +#~ msgid "File %s does not exist" +#~ msgstr "Datoteka „%s“ ne postoji" + +#~ msgid "A source for browsing and searching Flickr photos" +#~ msgstr "Izvor za razgledanje i pretragu slika Flikra" + +#~ msgid "%s's Flickr" +#~ msgstr "Flikr korisnika „%s“" + +#~ msgid "A source for browsing and searching %s's flickr photos" +#~ msgstr "Izvor za razgledanje i pretragu slika sa flikra korisnika %s" + +#~ msgid "Freebox TV" +#~ msgstr "Friboks TV" diff --git a/po/sv.po b/po/sv.po new file mode 100644 index 0000000..987396f --- /dev/null +++ b/po/sv.po @@ -0,0 +1,199 @@ +# Swedish translation for grilo. +# Copyright © 2014-2018 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Marcus Lundblad , 2014. +# Anders Jonsson , 2015, 2016, 2018. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-10 17:52+0200\n" +"Last-Translator: Anders Jonsson \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.7\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Ingen attrappdefinition hittades" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Kunde inte hitta attrappinnehåll %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "Kunde inte komma åt attrappinnehåll: %s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Kan inte ansluta till servern" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Kan inte ansluta till proxyservern" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Ogiltig fråge-URI eller huvud: %s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Autentisering krävs: %s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Den efterfrågade resursen hittades inte: %s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Innehållet har ändrats sedan det hämtades: %s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "Åtgärd avbröts" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Data ej tillgängligt" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Ogiltig plats %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Semikolonavgränsade sökvägar innehållandes Grilo-insticksmoduler" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Kolonavgränsade sökvägar innehållandes Grilo-insticksmoduler" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Kolonavgränsad lista med Grilo-insticksmoduler att använda" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo-val" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Visa Grilo-val" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Inga sökbara källor är tillgängliga" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "Kunde inte slå upp media för platsen ”%s”" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "Insticksmodulen ”%s” är redan inläst" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Misslyckades med att initiera insticksmodul från %s" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "Metadatanyckeln ”%s” redan registrerad i annat format" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "Metadatanyckeln ”%s” kunde inte registreras" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "Källa med ID ”%s” hittades inte" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Misslyckades med att läsa in insticksmodul från %s" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Ogiltig insticksmodulsfil %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "”%s” är inte en giltig insticksmodulsfil" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "Insticksmodulen ”%s” finns redan" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "Ogiltig sökväg %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Alla konfigurerade sökvägar till insticksmoduler är felaktiga" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "Insticksmodulen ”%s” är ej tillgänglig" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "Insticksmodul hittades inte: ”%s”" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "Konfiguration för insticksmodul innehåller ingen ”plugin-id”-referens" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Några nycklar kunde inte skrivas" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Ingen av de angivna nycklarna är skrivbara" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "Mediet har inget ”id”, kan inte ta bort" + +#~ msgid "Unhandled status: %s" +#~ msgstr "Ohanterad status: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "Misslyckades med att läsa in insticksmodul ”%s”" diff --git a/po/tg.po b/po/tg.po new file mode 100644 index 0000000..ffa18b8 --- /dev/null +++ b/po/tg.po @@ -0,0 +1,193 @@ +# Tajik translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Victor Ibragimov , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2013-08-09 08:33+0000\n" +"PO-Revision-Date: 2013-10-10 16:58+0500\n" +"Last-Translator: Victor Ibragimov \n" +"Language-Team: Tajik \n" +"Language: tg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.7\n" + +#: ../libs/net/grl-net-mock.c:79 +msgid "No mock definition found" +msgstr "Ягон таърифи қалбакӣ ёфт нашуд" + +#: ../libs/net/grl-net-mock.c:91 +#, c-format +msgid "Could not find mock content %s" +msgstr "Ягон мӯҳтавои қалбакии %s ёфт нашуд" + +#: ../libs/net/grl-net-mock.c:111 +msgid "Could not access mock content" +msgstr "Дастрасӣ ба мӯҳтавои қалбакӣ манъ аст" + +#: ../libs/net/grl-net-wc.c:468 +msgid "Cannot connect to the server" +msgstr "Пайвастшавӣ бо сервер имконпазир нест" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "Пайвастшавӣ бо сервери прокси имконпазир нест" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Дархости суроғаи URI ё сарварақ беэътибор аст: %s" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "Санҷиши ҳаққоният лозим аст: %s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Манбаи дархостшуда ёфт нашудааст: %s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Ворида баъд аз боргирӣ тағйир дода шудааст: %s" + +#: ../libs/net/grl-net-wc.c:506 ../libs/net/grl-net-wc.c:614 +#: ../src/grl-source.c:1717 ../src/grl-source.c:1814 ../src/grl-source.c:1957 +#: ../src/grl-source.c:2201 ../src/grl-source.c:2323 +#, c-format +msgid "Operation was cancelled" +msgstr "Амалиёт бекор шудааст" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "Вазъияти иҷронашуда: %s" + +#: ../libs/net/grl-net-wc.c:618 ../libs/net/grl-net-wc.c:659 +msgid "Data not available" +msgstr "Иттилоот дастнорас аст" + +#: ../libs/net/grl-net-wc.c:712 +#, c-format +#| msgid "Malformed URL %s" +msgid "Invalid URL %s" +msgstr "Суроғаи URL-и бадшакл %s" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Масирҳои бо нуқта-вергул ҷудошуда дорои плагинҳои Grilo" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Масирҳои бо ду нуқта ҷудошуда дорои плагинҳои Grilo" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Рӯйхати плагинҳои Grilo бо ду нуқта ҷудошуда" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "Имконоти Grilo" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "Намоиш додани имконоти Grilo" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "Ягон манбаи ҷустуҷӯӣ ёфт нашуд" + +#: ../src/grl-multiple.c:488 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Мушкилии медиа барои суроғаи URI '%s' ҳал нашудааст" + +#: ../src/grl-registry.c:328 ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Плагини '%s' аллакай бор шудааст" + +#: ../src/grl-registry.c:340 +#, c-format +#| msgid "Failed to initialize plugin from %so" +msgid "Failed to initialize plugin from %s" +msgstr "Оғоз кардани плагин аз %s ба анҷом нарасид" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Манбаи бо рақами мушаххаси '%s' ёфт нашуд" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Бор кардани плагин аз %s кор накард" + +#: ../src/grl-registry.c:806 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Файли плагини %s беэътибор аст" + +#: ../src/grl-registry.c:817 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'Файли плагини %s' беэътибор аст" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "Боркунии плагини '%s' имконпазир нест" + +#: ../src/grl-registry.c:847 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Плагини '%s' аллакай мавҷуд аст" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Ҳамаи масирҳои плагинҳои танзимшуда беэътиборанд" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Плагини '%s' дастнорас аст" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Плагин ёфт нашудааст: '%s'" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Калиди метаиттилооти '%s' қайд карда намешавад" + +#: ../src/grl-registry.c:1585 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Конфигуратсияи плагин дорои истиноди 'plugin-id' намебошад" + +#: ../src/grl-source.c:2653 +#, c-format +msgid "Some keys could not be written" +msgstr "Баъзе тугмаҳо тағйир дода намешаванд" + +#: ../src/grl-source.c:2727 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Ягон аз тугмаи муайяншуда тағйир дода намешавад" + +#: ../src/grl-source.c:4019 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Медиа дорои 'id' намебошад, тоза карда намешавад" diff --git a/po/tr.po b/po/tr.po new file mode 100644 index 0000000..cb47a49 --- /dev/null +++ b/po/tr.po @@ -0,0 +1,207 @@ +# Turkish translation for grilo. +# Copyright (C) 2014 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Gökhan Gurbetoğlu , 2014. +# Muhammet Kara , 2014, 2015. +# Emin Tufan Çetin , 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2017-06-27 22:25+0000\n" +"PO-Revision-Date: 2017-09-06 09:34+0300\n" +"Last-Translator: Emin Tufan Çetin \n" +"Language-Team: Türkçe \n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Gtranslator 2.91.7\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Maket tanımı bulunamadı" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "%s maket içeriği bulunamadı" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +#| msgid "Could not access mock content" +msgid "Could not access mock content: %s" +msgstr "Maket içeriğine erişilemedi: %s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "Sunucuya bağlanılamıyor" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "Vekil sunucuya bağlanılamıyor" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Geçersiz istek URI'si ya da başlık: %s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "Kimlik doğrulama gerekli: %s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "İstenen kaynak bulunamadı: %s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Girdi indirildiğinden beri değişikliğe uğradı: %s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "İşlem iptal edildi" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "Veri mevcut değil" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "Geçersiz URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "" +"Grilo eklentileri içeren, noktalı virgüllerle ayrılmış dosya/klasör yolları" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "" +"Grilo eklentileri içeren, iki nokta üst üste ile ayrılmış dosya/klasör " +"yolları" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "" +"Kullanılacak Grilo eklentilerinin iki nokta üst üste ile ayrılmış listesi" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo Seçenekleri" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "Grilo Seçeneklerini Göster" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "Aranabilir kaynaklar mevcut değil" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "'%s' URI'si için ortam çözümlenemedi" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "'%s' eklentisi zaten yüklü" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "%s'den gelen eklenti ilklendirilemedi" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "'%s' üst veri anahtarı zaten başka bir biçimde kaydedilmiş" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Üst veri anahtarı '%s' kaydedilemiyor" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "'%s' kimliğine (id) sahip kaynak bulunamadı" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "%s'den eklenti yüklenemedi" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Geçersiz eklenti dosyası %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "'%s' geçerli bir eklenti dosyası değil" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "'%s' eklentisi zaten mevcut." + +#: ../src/grl-registry.c:1259 +#, c-format +#| msgid "Invalid URL %s" +msgid "Invalid path %s" +msgstr "Geçersiz yol %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Tüm yapılandırılmış eklenti yolları geçersiz" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "'%s' eklentisi mevcut değil" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Eklenti bulunamadı: '%s'" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Eklenti yapılandırması 'plugin-id' başvurusunu içermiyor" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "Bazı anahtarlar yazılamadı" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Belirtilen anahtarların hiçbiri yazılabilir değil" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Ortam 'id'si yok, kaldırılamıyor" + +#~ msgid "Unhandled status: %s" +#~ msgstr "İşlenmeyen durum: %s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "'%s' eklentisi yüklenemiyor" diff --git a/po/uk.po b/po/uk.po new file mode 100644 index 0000000..8c9cb93 --- /dev/null +++ b/po/uk.po @@ -0,0 +1,197 @@ +# Ukrainian translation for grilo. +# Copyright (C) 2014 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# Mykola Tkach , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2014-02-04 09:41+0000\n" +"PO-Revision-Date: 2014-02-04 21:57+0300\n" +"Last-Translator: Mykola Tkach \n" +"Language-Team: Ukrainian \n" +"Language: uk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "Не знайдено опис заглушки" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "Не вдалося знайти вміст заглушки %s" + +#: ../libs/net/grl-net-mock.c:118 +msgid "Could not access mock content" +msgstr "Не вдалося отримати доступ до вмісту заглушки" + +#: ../libs/net/grl-net-wc.c:468 +msgid "Cannot connect to the server" +msgstr "Не вдалося під'єднатися до сервера" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "Не вдалося під'єднатися до проксі-сервера" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "Некоректний URI або заголовок запиту: %s" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "Потрібна автентифікація: %s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "Запитаний ресурс не знайдено: %s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "Запис змінено з часу звантаження: %s" + +#: ../libs/net/grl-net-wc.c:506 +#: ../libs/net/grl-net-wc.c:615 +#: ../src/grl-source.c:1736 +#: ../src/grl-source.c:1831 +#: ../src/grl-source.c:1974 +#: ../src/grl-source.c:2210 +#: ../src/grl-source.c:2330 +#, c-format +msgid "Operation was cancelled" +msgstr "Операція скасована" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "Необроблений стан: %s" + +#: ../libs/net/grl-net-wc.c:619 +#: ../libs/net/grl-net-wc.c:660 +msgid "Data not available" +msgstr "Дані недоступні" + +#: ../libs/net/grl-net-wc.c:713 +#, c-format +msgid "Invalid URL %s" +msgstr "Некоректна URL %s" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "Шляхи, що містять додатки Grilo, розділені крапкою з комою" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "Шляхи, що містять додатки Grilo, розділені двокрапкою" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "Перелік додатків Grilo, що використовуються з розділювачем-двокрапкою" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "Параметри Grilo" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "Показати параметри Grilo" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "Немає джерел, якими можна щось знайти" + +#: ../src/grl-multiple.c:485 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "Не вдалося визначити протокол для URI «%s»" + +#: ../src/grl-registry.c:328 +#: ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "Додаток «%s» вже завантажено" + +#: ../src/grl-registry.c:340 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "Не вдалося запустити додаток з %s" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "Джерело з ідентифікатором «%s» не знайдено" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "Помилка завантаження додатка з %s" + +#: ../src/grl-registry.c:806 +#, c-format +msgid "Invalid plugin file %s" +msgstr "Некоректний файл додатка %s" + +#: ../src/grl-registry.c:817 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "«%s» не є коректним файлом додатка" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "Не вдалося завантажити додаток «%s»" + +#: ../src/grl-registry.c:847 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "Втулка «%s» вже існує" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "Усі шляхи налаштованих додатків — неправильні" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "Додаток «%s» недоступний" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "Додаток не знайдено: «%s»" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "Ключ метаданих «%s» неможливо зареєструвати" + +#: ../src/grl-registry.c:1587 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "Налаштування додатка не містить опису «plugin-id»" + +#: ../src/grl-source.c:2659 +#, c-format +msgid "Some keys could not be written" +msgstr "Деякі ключі неможливо записати" + +#: ../src/grl-source.c:2731 +#, c-format +msgid "None of the specified keys are writable" +msgstr "Серед вказаних ключів немає записуваних" + +#: ../src/grl-source.c:4037 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "Носій не має ідентифікатора, неможливо вилучити" + diff --git a/po/zh_CN.po b/po/zh_CN.po new file mode 100644 index 0000000..e0115f3 --- /dev/null +++ b/po/zh_CN.po @@ -0,0 +1,198 @@ +# Chinese (China) translation for grilo. +# Copyright (C) 2013 grilo's authors and contributors. +# This file is distributed under the same license as the grilo package. +# 甘 露 , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=grilo&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2016-10-26 12:51+0000\n" +"PO-Revision-Date: 2016-10-29 23:59+0800\n" +"Last-Translator: liushuyu \n" +"Language-Team: Chinese (China) \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.11\n" + +#: ../libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "没有找到 mock 定义" + +#: ../libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "无法找到 moc 内容 %s" + +#: ../libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "无法访问 mock 内容:%s" + +#: ../libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "无法连接到服务器" + +#: ../libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "无法连接到代理服务器" + +#: ../libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "无效的 URI 请求或头(header):%s" + +#: ../libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "需要验证:%s" + +#: ../libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "未找到所请求的资源:%s" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "下载以后该条目已被修改:%s" + +#: ../libs/net/grl-net-wc.c:487 ../libs/net/grl-net-wc.c:599 +#: ../libs/pls/grl-pls.c:490 ../src/grl-source.c:1828 ../src/grl-source.c:1928 +#: ../src/grl-source.c:2075 ../src/grl-source.c:2332 ../src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "操作已取消" + +#: ../libs/net/grl-net-wc.c:603 ../libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "数据不可用" + +#: ../libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "无效的 URL %s" + +#: ../src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "分号分隔的,包含 Grilo 插件的路径" + +#: ../src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "冒号分隔的,Grilo 插件的路径" + +#: ../src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "要使用的冒号分隔的 Grilo 插件清单" + +#: ../src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo 选项" + +#: ../src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "显示 Grilo 选项" + +#: ../src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "没有可搜索的源可用" + +#: ../src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "无法为 URI “%s” 解析媒体" + +#: ../src/grl-registry.c:464 ../src/grl-registry.c:1377 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "插件 “%s” 已经加载" + +#: ../src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "从 %s 初始化插件失败" + +#: ../src/grl-registry.c:530 +#, c-format +msgid "Metadata key '%s' already registered in different format" +msgstr "元数据键“%s”已经以另一种格式注册了" + +#: ../src/grl-registry.c:543 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "无法注册元数据键“%s”" + +#: ../src/grl-registry.c:983 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "没有找到 id 号为“%s”的源" + +#: ../src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "无法从 %s 加载插件" + +#: ../src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "无效的插件文件 %s" + +#: ../src/grl-registry.c:1077 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "“%s”不是有效的插件文件" + +#: ../src/grl-registry.c:1096 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "插件“%s”已经存在" + +#: ../src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "无效的路径 %s" + +#: ../src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "所有配置过的插件路径均无效" + +#: ../src/grl-registry.c:1366 +#, c-format +msgid "Plugin '%s' not available" +msgstr "插件“%s”不可用" + +#: ../src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "没有找到插件:“%s”" + +#: ../src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "插件配置未包含“plugin-id”引用" + +#: ../src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "某些键无法写入" + +#: ../src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "所有指定的键都无法写入" + +#: ../src/grl-source.c:4198 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "媒体无“id”号,无法删除" + +#~ msgid "Unhandled status: %s" +#~ msgstr "无法处理的状况:%s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "无法加载插件“%s”" diff --git a/po/zh_HK.po b/po/zh_HK.po new file mode 100644 index 0000000..fdde942 --- /dev/null +++ b/po/zh_HK.po @@ -0,0 +1,191 @@ +# Chinese (Hong Kong) translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-08-16 10:09+0800\n" +"PO-Revision-Date: 2013-08-16 10:10+0800\n" +"Last-Translator: Chao-Hsiung Liao \n" +"Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.4\n" + +#: ../libs/net/grl-net-mock.c:79 +msgid "No mock definition found" +msgstr "找不到模擬定義" + +#: ../libs/net/grl-net-mock.c:91 +#, c-format +msgid "Could not find mock content %s" +msgstr "找不到模擬內容 %s" + +#: ../libs/net/grl-net-mock.c:111 +msgid "Could not access mock content" +msgstr "無法存取模擬內容" + +#: ../libs/net/grl-net-wc.c:468 +msgid "Cannot connect to the server" +msgstr "不能連接伺服器" + +#: ../libs/net/grl-net-wc.c:474 +msgid "Cannot connect to the proxy server" +msgstr "不能連接代理伺服器" + +#: ../libs/net/grl-net-wc.c:481 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "無效的要求 URI 或標頭:%s" + +#: ../libs/net/grl-net-wc.c:488 +#, c-format +msgid "Authentication required: %s" +msgstr "要求驗證:%s" + +#: ../libs/net/grl-net-wc.c:493 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "找不到要求的資源:%s" + +#: ../libs/net/grl-net-wc.c:500 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "此項目從上次下載後已被修改過:%s" + +#: ../libs/net/grl-net-wc.c:506 ../libs/net/grl-net-wc.c:614 +#: ../src/grl-source.c:1717 ../src/grl-source.c:1814 ../src/grl-source.c:1957 +#: ../src/grl-source.c:2201 ../src/grl-source.c:2323 +#, c-format +msgid "Operation was cancelled" +msgstr "操作已被取消" + +#: ../libs/net/grl-net-wc.c:509 +#, c-format +msgid "Unhandled status: %s" +msgstr "未處理的狀態:%s" + +#: ../libs/net/grl-net-wc.c:618 ../libs/net/grl-net-wc.c:659 +msgid "Data not available" +msgstr "資料無法使用" + +#: ../libs/net/grl-net-wc.c:712 +#, c-format +#| msgid "Malformed URL %s" +msgid "Invalid URL %s" +msgstr "無效的 URL %s" + +#: ../src/grilo.c:181 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "以分號(;)分隔的 Grilo 外掛程式路徑" + +#: ../src/grilo.c:183 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "以冒號(:)分隔的 Grilo 外掛程式路徑" + +#: ../src/grilo.c:186 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "以冒號(:)分隔 Grilo 要使用的外掛程式路徑" + +#: ../src/grilo.c:191 +msgid "Grilo Options" +msgstr "Grilo 選項" + +#: ../src/grilo.c:192 +msgid "Show Grilo Options" +msgstr "顯示 Grilo 選項" + +#: ../src/grl-multiple.c:130 +#, c-format +msgid "No searchable sources available" +msgstr "沒有可用的可搜尋來源" + +#: ../src/grl-multiple.c:488 +#, c-format +msgid "Could not resolve media for URI '%s'" +msgstr "無法解析 URI「%s」的媒體" + +#: ../src/grl-registry.c:328 ../src/grl-registry.c:1002 +#, c-format +msgid "Plugin '%s' is already loaded" +msgstr "外掛程式「%s」已經載入了" + +#: ../src/grl-registry.c:340 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "無法初始化來自 %s 的外掛程式" + +#: ../src/grl-registry.c:734 +#, c-format +msgid "Source with id '%s' was not found" +msgstr "找不到 id「%s」的來源" + +#: ../src/grl-registry.c:797 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "無法從 %s 載入外掛程式" + +#: ../src/grl-registry.c:806 +#, c-format +msgid "Invalid plugin file %s" +msgstr "無效的外掛程式檔 %s" + +#: ../src/grl-registry.c:817 +#, c-format +msgid "'%s' is not a valid plugin file" +msgstr "「%s」不是有效的外掛程式檔案" + +#: ../src/grl-registry.c:836 +#, c-format +msgid "Unable to load plugin '%s'" +msgstr "無法載入外掛程式「%s」" + +#: ../src/grl-registry.c:847 +#, c-format +msgid "Plugin '%s' already exists" +msgstr "外掛程式「%s」已存在" + +#: ../src/grl-registry.c:944 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "所有設定的外掛程式路徑是無效的" + +#: ../src/grl-registry.c:991 +#, c-format +msgid "Plugin '%s' not available" +msgstr "外掛程式「%s」無法使用" + +#: ../src/grl-registry.c:1212 +#, c-format +msgid "Plugin not found: '%s'" +msgstr "找不到外掛程式:「%s」" + +#: ../src/grl-registry.c:1294 +#, c-format +msgid "Metadata key '%s' cannot be registered" +msgstr "元數據設定鍵「%s」不能註冊" + +#: ../src/grl-registry.c:1585 +#, c-format +msgid "Plugin configuration does not contain 'plugin-id' reference" +msgstr "外掛程式組態未包含「plugin-id」參照" + +#: ../src/grl-source.c:2653 +#, c-format +msgid "Some keys could not be written" +msgstr "部分設定鍵無法寫入" + +#: ../src/grl-source.c:2727 +#, c-format +msgid "None of the specified keys are writable" +msgstr "指定的設定鍵沒有可寫入的" + +#: ../src/grl-source.c:4019 +#, c-format +msgid "Media has no 'id', cannot remove" +msgstr "媒體不具有「id」,不能移除" diff --git a/po/zh_TW.po b/po/zh_TW.po new file mode 100644 index 0000000..b26e509 --- /dev/null +++ b/po/zh_TW.po @@ -0,0 +1,197 @@ +# Chinese (Taiwan) translation for grilo. +# Copyright (C) 2013 grilo's COPYRIGHT HOLDER +# This file is distributed under the same license as the grilo package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: grilo master\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/grilo/issues\n" +"POT-Creation-Date: 2018-06-09 13:32+0000\n" +"PO-Revision-Date: 2018-06-13 22:40+0800\n" +"Last-Translator: pan93412 \n" +"Language-Team: Chinese (Taiwan) \n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.8\n" + +#: libs/net/grl-net-mock.c:86 +msgid "No mock definition found" +msgstr "找不到模擬定義" + +#: libs/net/grl-net-mock.c:98 +#, c-format +msgid "Could not find mock content %s" +msgstr "找不到模擬內容 %s" + +#: libs/net/grl-net-mock.c:116 +#, c-format +msgid "Could not access mock content: %s" +msgstr "無法存取模擬內容:%s" + +#: libs/net/grl-net-wc.c:449 +msgid "Cannot connect to the server" +msgstr "不能連接伺服器" + +#: libs/net/grl-net-wc.c:455 +msgid "Cannot connect to the proxy server" +msgstr "不能連接代理伺服器" + +#: libs/net/grl-net-wc.c:462 +#, c-format +msgid "Invalid request URI or header: %s" +msgstr "無效的要求 URI 或標頭:%s" + +#: libs/net/grl-net-wc.c:469 +#, c-format +msgid "Authentication required: %s" +msgstr "要求驗證:%s" + +#: libs/net/grl-net-wc.c:474 +#, c-format +msgid "The requested resource was not found: %s" +msgstr "找不到要求的資源:%s" + +#: libs/net/grl-net-wc.c:481 +#, c-format +msgid "The entry has been modified since it was downloaded: %s" +msgstr "此項目從上次下載後已被修改過:%s" + +#: libs/net/grl-net-wc.c:487 libs/net/grl-net-wc.c:599 libs/pls/grl-pls.c:490 +#: src/grl-source.c:1828 src/grl-source.c:1928 src/grl-source.c:2075 +#: src/grl-source.c:2332 src/grl-source.c:2453 +#, c-format +msgid "Operation was cancelled" +msgstr "操作已被取消" + +#: libs/net/grl-net-wc.c:603 libs/net/grl-net-wc.c:647 +msgid "Data not available" +msgstr "資料無法使用" + +#: libs/net/grl-net-wc.c:698 +#, c-format +msgid "Invalid URL %s" +msgstr "無效的 URL %s" + +#: src/grilo.c:218 +msgid "Semicolon-separated paths containing Grilo plugins" +msgstr "以分號(;)分隔的 Grilo 外掛程式路徑" + +#: src/grilo.c:220 +msgid "Colon-separated paths containing Grilo plugins" +msgstr "以冒號(:)分隔的 Grilo 外掛程式路徑" + +#: src/grilo.c:223 +msgid "Colon-separated list of Grilo plugins to use" +msgstr "以冒號(:)分隔 Grilo 要使用的外掛程式路徑" + +#: src/grilo.c:228 +msgid "Grilo Options" +msgstr "Grilo 選項" + +#: src/grilo.c:229 +msgid "Show Grilo Options" +msgstr "顯示 Grilo 選項" + +#: src/grl-multiple.c:134 +#, c-format +msgid "No searchable sources available" +msgstr "沒有可用的可搜尋來源" + +#: src/grl-multiple.c:511 +#, c-format +msgid "Could not resolve media for URI “%s”" +msgstr "無法解析 URI「%s」的媒體" + +#: src/grl-registry.c:464 src/grl-registry.c:1377 +#, c-format +msgid "Plugin “%s” is already loaded" +msgstr "外掛程式「%s」已經載入" + +#: src/grl-registry.c:488 +#, c-format +msgid "Failed to initialize plugin from %s" +msgstr "無法初始化來自 %s 的外掛程式" + +#: src/grl-registry.c:530 +#, c-format +msgid "Metadata key “%s” already registered in different format" +msgstr "詮釋資料設定鍵「%s」已註冊為不同格式" + +#: src/grl-registry.c:543 +#, c-format +msgid "Metadata key “%s” cannot be registered" +msgstr "詮釋資料設定鍵「%s」不能註冊" + +#: src/grl-registry.c:983 +#, c-format +msgid "Source with id “%s” was not found" +msgstr "找不到 id「%s」的來源" + +#: src/grl-registry.c:1057 +#, c-format +msgid "Failed to load plugin from %s" +msgstr "無法從 %s 載入外掛程式" + +#: src/grl-registry.c:1066 +#, c-format +msgid "Invalid plugin file %s" +msgstr "無效的外掛程式檔 %s" + +#: src/grl-registry.c:1077 +#, c-format +msgid "“%s” is not a valid plugin file" +msgstr "「%s」不是有效的外掛程式檔案" + +#: src/grl-registry.c:1096 +#, c-format +msgid "Plugin “%s” already exists" +msgstr "外掛程式「%s」已存在" + +#: src/grl-registry.c:1259 +#, c-format +msgid "Invalid path %s" +msgstr "無效的路徑 %s" + +#: src/grl-registry.c:1326 +#, c-format +msgid "All configured plugin paths are invalid" +msgstr "所有設定的外掛程式路徑是無效的" + +#: src/grl-registry.c:1366 +#, c-format +msgid "Plugin “%s” not available" +msgstr "外掛程式「%s」無法使用" + +#: src/grl-registry.c:1594 +#, c-format +msgid "Plugin not found: “%s”" +msgstr "找不到外掛程式:「%s」" + +#: src/grl-registry.c:1905 +#, c-format +msgid "Plugin configuration does not contain “plugin-id” reference" +msgstr "外掛程式設定未包含「plugin-id」參照" + +#: src/grl-source.c:2782 +#, c-format +msgid "Some keys could not be written" +msgstr "部分設定鍵無法寫入" + +#: src/grl-source.c:2855 +#, c-format +msgid "None of the specified keys are writable" +msgstr "指定的設定鍵沒有可寫入的" + +#: src/grl-source.c:4198 +#, c-format +msgid "Media has no “id”, cannot remove" +msgstr "媒體不具有「id」,不能移除" + +#~ msgid "Unhandled status: %s" +#~ msgstr "未處理的狀態:%s" + +#~ msgid "Unable to load plugin '%s'" +#~ msgstr "無法載入外掛程式「%s」" diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..47bd6ef --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,153 @@ +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010, 2011 Igalia S.L. All rights reserved. + +SUBDIRS = data + +BUILT_SOURCES = \ + grl-marshal.h \ + grl-marshal.c \ + grl-type-builtins.h \ + grl-type-builtins.c \ + $(NULL) + +# autogenerated files +grl-marshal.h: grl-marshal.list + $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix grl_marshal \ + --header $< > $@ + +grl-marshal.c: grl-marshal.list grl-marshal.h + @echo "#include \"grl-marshal.h\"" > $@.tmp + $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix grl_marshal \ + --body $< >> $@.tmp && mv $@.tmp $@ + +enum_headers = grl-source.h grl-caps.h grl-operation-options.h grl-metadata-key.h data/grl-media.h + +grl-type-builtins.h: $(enum_headers) grl-type-builtins.h.template + $(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/grl-type-builtins.h.template \ + $(addprefix $(srcdir)/,$(enum_headers)) > $@ + +grl-type-builtins.c: grl-type-builtins.h $(enum_headers) grl-type-builtins.c.template + $(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/grl-type-builtins.c.template \ + $(addprefix $(srcdir)/,$(enum_headers)) > $@ + +lib_LTLIBRARIES = lib@GRL_NAME@.la + +lib@GRL_NAME@_la_CFLAGS = \ + $(DEPS_CFLAGS) \ + -I$(srcdir) \ + -I$(srcdir)/data \ + -DLOCALEDIR=\"$(localedir)\" \ + -DGRILO_COMPILATION \ + -DG_LOG_DOMAIN=\"Grilo\" + +lib@GRL_NAME@_la_LIBADD = \ + $(DEPS_LIBS) + +lib@GRL_NAME@_la_LDFLAGS = \ + -version-info $(GRL_LT_VERSION) \ + -no-undefined + +lib@GRL_NAME@_la_SOURCES = \ + grl-plugin.c grl-plugin-priv.h \ + grl-registry.c grl-registry-priv.h \ + grl-metadata-key.c grl-metadata-key-priv.h \ + grl-type-builtins.c grl-type-builtins.h \ + grl-marshal.c grl-marshal.h \ + grl-operation.c grl-operation.h \ + grl-operation-priv.h grl-sync.c \ + grl-source.c \ + grl-util.c grl-multiple.c \ + grl-log.c grl-log-priv.h \ + grl-value-helper.c \ + grl-caps.c \ + grl-operation-options.c grl-operation-options-priv.h \ + grl-range-value.c \ + grilo.c + +data_c_sources = \ + data/grl-data.c \ + data/grl-related-keys.c \ + data/grl-media.c \ + data/grl-config.c + +lib@GRL_NAME@_la_SOURCES += $(data_c_sources) + +lib@GRL_NAME@incdir = \ + $(includedir)/@GRL_NAME@ + +lib@GRL_NAME@inc_HEADERS = \ + grilo.h \ + grl-error.h \ + grl-plugin.h \ + grl-registry.h \ + grl-metadata-key.h \ + grl-source.h \ + grl-log.h \ + grl-multiple.h \ + grl-util.h \ + grl-definitions.h \ + grl-operation.h \ + grl-value-helper.h \ + grl-caps.h \ + grl-operation-options.h \ + grl-range-value.h + +data_h_headers = \ + data/grl-data.h \ + data/grl-related-keys.h \ + data/grl-media.h \ + data/grl-config.h + +lib@GRL_NAME@inc_HEADERS += $(data_h_headers) + +noinst_HEADERS = \ + grl-registry-priv.h \ + grl-plugin-priv.h \ + grl-metadata-key-priv.h \ + grl-operation-priv.h \ + grl-sync-priv.h \ + grl-type-builtins.h \ + grl-operation-options-priv.h \ + grl-marshal.h + +EXTRA_DIST = \ + grl-marshal.list \ + grl-type-builtins.h.template \ + grl-type-builtins.c.template + +CLEANFILES = *.gir + +-include $(INTROSPECTION_MAKEFILE) +INTROSPECTION_GIRS = +INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all +INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=$(srcdir)/data + +# introspection support +if HAVE_INTROSPECTION +introspection_sources = \ + $(lib@GRL_NAME@inc_HEADERS) \ + $(filter %.c,$(lib@GRL_NAME@_la_SOURCES)) \ + grl-type-builtins.h + +Grl-@GRL_MAJORMINOR@.gir: lib@GRL_NAME@.la +Grl_@GRL_MAJORMINOR_NORM@_gir_INCLUDES = GObject-2.0 GModule-2.0 Gio-2.0 +Grl_@GRL_MAJORMINOR_NORM@_gir_CFLAGS = $(lib@GRL_NAME@_la_CFLAGS) +Grl_@GRL_MAJORMINOR_NORM@_gir_LIBS = lib@GRL_NAME@.la +Grl_@GRL_MAJORMINOR_NORM@_gir_FILES = $(introspection_sources) +Grl_@GRL_MAJORMINOR_NORM@_gir_SCANNERFLAGS = --c-include="grilo.h" +INTROSPECTION_GIRS += Grl-@GRL_MAJORMINOR@.gir + +girdir = $(datadir)/gir-1.0 +gir_DATA = $(INTROSPECTION_GIRS) + +typelibdir = $(libdir)/girepository-1.0/ +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +CLEANFILES += $(dist_gir_DATA) $(typelib_DATA) +endif + +-include $(top_srcdir)/git.mk diff --git a/src/Makefile.in b/src/Makefile.in new file mode 100644 index 0000000..aad3d15 --- /dev/null +++ b/src/Makefile.in @@ -0,0 +1,1216 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010, 2011 Igalia S.L. All rights reserved. + + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@HAVE_INTROSPECTION_TRUE@am__append_1 = Grl-@GRL_MAJORMINOR@.gir +@HAVE_INTROSPECTION_TRUE@am__append_2 = $(dist_gir_DATA) $(typelib_DATA) +subdir = src +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(lib@GRL_NAME@inc_HEADERS) \ + $(noinst_HEADERS) $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \ + "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(lib@GRL_NAME@incdir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 = +lib@GRL_NAME@_la_DEPENDENCIES = $(am__DEPENDENCIES_1) +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = data/lib@GRL_NAME@_la-grl-data.lo \ + data/lib@GRL_NAME@_la-grl-related-keys.lo \ + data/lib@GRL_NAME@_la-grl-media.lo \ + data/lib@GRL_NAME@_la-grl-config.lo +am_lib@GRL_NAME@_la_OBJECTS = lib@GRL_NAME@_la-grl-plugin.lo \ + lib@GRL_NAME@_la-grl-registry.lo \ + lib@GRL_NAME@_la-grl-metadata-key.lo \ + lib@GRL_NAME@_la-grl-type-builtins.lo \ + lib@GRL_NAME@_la-grl-marshal.lo \ + lib@GRL_NAME@_la-grl-operation.lo lib@GRL_NAME@_la-grl-sync.lo \ + lib@GRL_NAME@_la-grl-source.lo lib@GRL_NAME@_la-grl-util.lo \ + lib@GRL_NAME@_la-grl-multiple.lo lib@GRL_NAME@_la-grl-log.lo \ + lib@GRL_NAME@_la-grl-value-helper.lo \ + lib@GRL_NAME@_la-grl-caps.lo \ + lib@GRL_NAME@_la-grl-operation-options.lo \ + lib@GRL_NAME@_la-grl-range-value.lo lib@GRL_NAME@_la-grilo.lo \ + $(am__objects_1) +lib@GRL_NAME@_la_OBJECTS = $(am_lib@GRL_NAME@_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +lib@GRL_NAME@_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) \ + $(lib@GRL_NAME@_la_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(lib@GRL_NAME@_la_SOURCES) +DIST_SOURCES = $(lib@GRL_NAME@_la_SOURCES) +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(gir_DATA) $(typelib_DATA) +HEADERS = $(lib@GRL_NAME@inc_HEADERS) $(noinst_HEADERS) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = data +BUILT_SOURCES = \ + grl-marshal.h \ + grl-marshal.c \ + grl-type-builtins.h \ + grl-type-builtins.c \ + $(NULL) + +enum_headers = grl-source.h grl-caps.h grl-operation-options.h grl-metadata-key.h data/grl-media.h +lib_LTLIBRARIES = lib@GRL_NAME@.la +lib@GRL_NAME@_la_CFLAGS = \ + $(DEPS_CFLAGS) \ + -I$(srcdir) \ + -I$(srcdir)/data \ + -DLOCALEDIR=\"$(localedir)\" \ + -DGRILO_COMPILATION \ + -DG_LOG_DOMAIN=\"Grilo\" + +lib@GRL_NAME@_la_LIBADD = \ + $(DEPS_LIBS) + +lib@GRL_NAME@_la_LDFLAGS = \ + -version-info $(GRL_LT_VERSION) \ + -no-undefined + +lib@GRL_NAME@_la_SOURCES = grl-plugin.c grl-plugin-priv.h \ + grl-registry.c grl-registry-priv.h grl-metadata-key.c \ + grl-metadata-key-priv.h grl-type-builtins.c \ + grl-type-builtins.h grl-marshal.c grl-marshal.h \ + grl-operation.c grl-operation.h grl-operation-priv.h \ + grl-sync.c grl-source.c grl-util.c grl-multiple.c grl-log.c \ + grl-log-priv.h grl-value-helper.c grl-caps.c \ + grl-operation-options.c grl-operation-options-priv.h \ + grl-range-value.c grilo.c $(data_c_sources) +data_c_sources = \ + data/grl-data.c \ + data/grl-related-keys.c \ + data/grl-media.c \ + data/grl-config.c + +lib@GRL_NAME@incdir = \ + $(includedir)/@GRL_NAME@ + +lib@GRL_NAME@inc_HEADERS = grilo.h grl-error.h grl-plugin.h \ + grl-registry.h grl-metadata-key.h grl-source.h grl-log.h \ + grl-multiple.h grl-util.h grl-definitions.h grl-operation.h \ + grl-value-helper.h grl-caps.h grl-operation-options.h \ + grl-range-value.h $(data_h_headers) +data_h_headers = \ + data/grl-data.h \ + data/grl-related-keys.h \ + data/grl-media.h \ + data/grl-config.h + +noinst_HEADERS = \ + grl-registry-priv.h \ + grl-plugin-priv.h \ + grl-metadata-key-priv.h \ + grl-operation-priv.h \ + grl-sync-priv.h \ + grl-type-builtins.h \ + grl-operation-options-priv.h \ + grl-marshal.h + +EXTRA_DIST = \ + grl-marshal.list \ + grl-type-builtins.h.template \ + grl-type-builtins.c.template + +CLEANFILES = *.gir $(am__append_2) +INTROSPECTION_GIRS = $(am__append_1) +INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all +INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=$(srcdir)/data + +# introspection support +@HAVE_INTROSPECTION_TRUE@introspection_sources = \ +@HAVE_INTROSPECTION_TRUE@ $(lib@GRL_NAME@inc_HEADERS) \ +@HAVE_INTROSPECTION_TRUE@ $(filter %.c,$(lib@GRL_NAME@_la_SOURCES)) \ +@HAVE_INTROSPECTION_TRUE@ grl-type-builtins.h + +@HAVE_INTROSPECTION_TRUE@Grl_@GRL_MAJORMINOR_NORM@_gir_INCLUDES = GObject-2.0 GModule-2.0 Gio-2.0 +@HAVE_INTROSPECTION_TRUE@Grl_@GRL_MAJORMINOR_NORM@_gir_CFLAGS = $(lib@GRL_NAME@_la_CFLAGS) +@HAVE_INTROSPECTION_TRUE@Grl_@GRL_MAJORMINOR_NORM@_gir_LIBS = lib@GRL_NAME@.la +@HAVE_INTROSPECTION_TRUE@Grl_@GRL_MAJORMINOR_NORM@_gir_FILES = $(introspection_sources) +@HAVE_INTROSPECTION_TRUE@Grl_@GRL_MAJORMINOR_NORM@_gir_SCANNERFLAGS = --c-include="grilo.h" +@HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0 +@HAVE_INTROSPECTION_TRUE@gir_DATA = $(INTROSPECTION_GIRS) +@HAVE_INTROSPECTION_TRUE@typelibdir = $(libdir)/girepository-1.0/ +@HAVE_INTROSPECTION_TRUE@typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign src/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +data/$(am__dirstamp): + @$(MKDIR_P) data + @: > data/$(am__dirstamp) +data/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) data/$(DEPDIR) + @: > data/$(DEPDIR)/$(am__dirstamp) +data/lib@GRL_NAME@_la-grl-data.lo: data/$(am__dirstamp) \ + data/$(DEPDIR)/$(am__dirstamp) +data/lib@GRL_NAME@_la-grl-related-keys.lo: data/$(am__dirstamp) \ + data/$(DEPDIR)/$(am__dirstamp) +data/lib@GRL_NAME@_la-grl-media.lo: data/$(am__dirstamp) \ + data/$(DEPDIR)/$(am__dirstamp) +data/lib@GRL_NAME@_la-grl-config.lo: data/$(am__dirstamp) \ + data/$(DEPDIR)/$(am__dirstamp) + +lib@GRL_NAME@.la: $(lib@GRL_NAME@_la_OBJECTS) $(lib@GRL_NAME@_la_DEPENDENCIES) $(EXTRA_lib@GRL_NAME@_la_DEPENDENCIES) + $(AM_V_CCLD)$(lib@GRL_NAME@_la_LINK) -rpath $(libdir) $(lib@GRL_NAME@_la_OBJECTS) $(lib@GRL_NAME@_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f data/*.$(OBJEXT) + -rm -f data/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grilo.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-caps.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-log.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-marshal.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-metadata-key.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-multiple.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-operation-options.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-operation.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-plugin.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-range-value.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-registry.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-source.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-sync.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-type-builtins.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-util.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib@GRL_NAME@_la-grl-value-helper.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@data/$(DEPDIR)/lib@GRL_NAME@_la-grl-config.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@data/$(DEPDIR)/lib@GRL_NAME@_la-grl-data.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@data/$(DEPDIR)/lib@GRL_NAME@_la-grl-media.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@data/$(DEPDIR)/lib@GRL_NAME@_la-grl-related-keys.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +lib@GRL_NAME@_la-grl-plugin.lo: grl-plugin.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-plugin.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-plugin.Tpo -c -o lib@GRL_NAME@_la-grl-plugin.lo `test -f 'grl-plugin.c' || echo '$(srcdir)/'`grl-plugin.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-plugin.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-plugin.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-plugin.c' object='lib@GRL_NAME@_la-grl-plugin.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-plugin.lo `test -f 'grl-plugin.c' || echo '$(srcdir)/'`grl-plugin.c + +lib@GRL_NAME@_la-grl-registry.lo: grl-registry.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-registry.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-registry.Tpo -c -o lib@GRL_NAME@_la-grl-registry.lo `test -f 'grl-registry.c' || echo '$(srcdir)/'`grl-registry.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-registry.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-registry.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-registry.c' object='lib@GRL_NAME@_la-grl-registry.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-registry.lo `test -f 'grl-registry.c' || echo '$(srcdir)/'`grl-registry.c + +lib@GRL_NAME@_la-grl-metadata-key.lo: grl-metadata-key.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-metadata-key.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-metadata-key.Tpo -c -o lib@GRL_NAME@_la-grl-metadata-key.lo `test -f 'grl-metadata-key.c' || echo '$(srcdir)/'`grl-metadata-key.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-metadata-key.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-metadata-key.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-metadata-key.c' object='lib@GRL_NAME@_la-grl-metadata-key.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-metadata-key.lo `test -f 'grl-metadata-key.c' || echo '$(srcdir)/'`grl-metadata-key.c + +lib@GRL_NAME@_la-grl-type-builtins.lo: grl-type-builtins.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-type-builtins.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-type-builtins.Tpo -c -o lib@GRL_NAME@_la-grl-type-builtins.lo `test -f 'grl-type-builtins.c' || echo '$(srcdir)/'`grl-type-builtins.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-type-builtins.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-type-builtins.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-type-builtins.c' object='lib@GRL_NAME@_la-grl-type-builtins.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-type-builtins.lo `test -f 'grl-type-builtins.c' || echo '$(srcdir)/'`grl-type-builtins.c + +lib@GRL_NAME@_la-grl-marshal.lo: grl-marshal.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-marshal.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-marshal.Tpo -c -o lib@GRL_NAME@_la-grl-marshal.lo `test -f 'grl-marshal.c' || echo '$(srcdir)/'`grl-marshal.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-marshal.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-marshal.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-marshal.c' object='lib@GRL_NAME@_la-grl-marshal.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-marshal.lo `test -f 'grl-marshal.c' || echo '$(srcdir)/'`grl-marshal.c + +lib@GRL_NAME@_la-grl-operation.lo: grl-operation.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-operation.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-operation.Tpo -c -o lib@GRL_NAME@_la-grl-operation.lo `test -f 'grl-operation.c' || echo '$(srcdir)/'`grl-operation.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-operation.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-operation.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-operation.c' object='lib@GRL_NAME@_la-grl-operation.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-operation.lo `test -f 'grl-operation.c' || echo '$(srcdir)/'`grl-operation.c + +lib@GRL_NAME@_la-grl-sync.lo: grl-sync.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-sync.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-sync.Tpo -c -o lib@GRL_NAME@_la-grl-sync.lo `test -f 'grl-sync.c' || echo '$(srcdir)/'`grl-sync.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-sync.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-sync.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-sync.c' object='lib@GRL_NAME@_la-grl-sync.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-sync.lo `test -f 'grl-sync.c' || echo '$(srcdir)/'`grl-sync.c + +lib@GRL_NAME@_la-grl-source.lo: grl-source.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-source.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-source.Tpo -c -o lib@GRL_NAME@_la-grl-source.lo `test -f 'grl-source.c' || echo '$(srcdir)/'`grl-source.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-source.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-source.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-source.c' object='lib@GRL_NAME@_la-grl-source.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-source.lo `test -f 'grl-source.c' || echo '$(srcdir)/'`grl-source.c + +lib@GRL_NAME@_la-grl-util.lo: grl-util.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-util.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-util.Tpo -c -o lib@GRL_NAME@_la-grl-util.lo `test -f 'grl-util.c' || echo '$(srcdir)/'`grl-util.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-util.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-util.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-util.c' object='lib@GRL_NAME@_la-grl-util.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-util.lo `test -f 'grl-util.c' || echo '$(srcdir)/'`grl-util.c + +lib@GRL_NAME@_la-grl-multiple.lo: grl-multiple.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-multiple.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-multiple.Tpo -c -o lib@GRL_NAME@_la-grl-multiple.lo `test -f 'grl-multiple.c' || echo '$(srcdir)/'`grl-multiple.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-multiple.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-multiple.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-multiple.c' object='lib@GRL_NAME@_la-grl-multiple.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-multiple.lo `test -f 'grl-multiple.c' || echo '$(srcdir)/'`grl-multiple.c + +lib@GRL_NAME@_la-grl-log.lo: grl-log.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-log.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-log.Tpo -c -o lib@GRL_NAME@_la-grl-log.lo `test -f 'grl-log.c' || echo '$(srcdir)/'`grl-log.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-log.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-log.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-log.c' object='lib@GRL_NAME@_la-grl-log.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-log.lo `test -f 'grl-log.c' || echo '$(srcdir)/'`grl-log.c + +lib@GRL_NAME@_la-grl-value-helper.lo: grl-value-helper.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-value-helper.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-value-helper.Tpo -c -o lib@GRL_NAME@_la-grl-value-helper.lo `test -f 'grl-value-helper.c' || echo '$(srcdir)/'`grl-value-helper.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-value-helper.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-value-helper.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-value-helper.c' object='lib@GRL_NAME@_la-grl-value-helper.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-value-helper.lo `test -f 'grl-value-helper.c' || echo '$(srcdir)/'`grl-value-helper.c + +lib@GRL_NAME@_la-grl-caps.lo: grl-caps.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-caps.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-caps.Tpo -c -o lib@GRL_NAME@_la-grl-caps.lo `test -f 'grl-caps.c' || echo '$(srcdir)/'`grl-caps.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-caps.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-caps.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-caps.c' object='lib@GRL_NAME@_la-grl-caps.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-caps.lo `test -f 'grl-caps.c' || echo '$(srcdir)/'`grl-caps.c + +lib@GRL_NAME@_la-grl-operation-options.lo: grl-operation-options.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-operation-options.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-operation-options.Tpo -c -o lib@GRL_NAME@_la-grl-operation-options.lo `test -f 'grl-operation-options.c' || echo '$(srcdir)/'`grl-operation-options.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-operation-options.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-operation-options.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-operation-options.c' object='lib@GRL_NAME@_la-grl-operation-options.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-operation-options.lo `test -f 'grl-operation-options.c' || echo '$(srcdir)/'`grl-operation-options.c + +lib@GRL_NAME@_la-grl-range-value.lo: grl-range-value.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grl-range-value.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grl-range-value.Tpo -c -o lib@GRL_NAME@_la-grl-range-value.lo `test -f 'grl-range-value.c' || echo '$(srcdir)/'`grl-range-value.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grl-range-value.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grl-range-value.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-range-value.c' object='lib@GRL_NAME@_la-grl-range-value.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grl-range-value.lo `test -f 'grl-range-value.c' || echo '$(srcdir)/'`grl-range-value.c + +lib@GRL_NAME@_la-grilo.lo: grilo.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT lib@GRL_NAME@_la-grilo.lo -MD -MP -MF $(DEPDIR)/lib@GRL_NAME@_la-grilo.Tpo -c -o lib@GRL_NAME@_la-grilo.lo `test -f 'grilo.c' || echo '$(srcdir)/'`grilo.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lib@GRL_NAME@_la-grilo.Tpo $(DEPDIR)/lib@GRL_NAME@_la-grilo.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grilo.c' object='lib@GRL_NAME@_la-grilo.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o lib@GRL_NAME@_la-grilo.lo `test -f 'grilo.c' || echo '$(srcdir)/'`grilo.c + +data/lib@GRL_NAME@_la-grl-data.lo: data/grl-data.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT data/lib@GRL_NAME@_la-grl-data.lo -MD -MP -MF data/$(DEPDIR)/lib@GRL_NAME@_la-grl-data.Tpo -c -o data/lib@GRL_NAME@_la-grl-data.lo `test -f 'data/grl-data.c' || echo '$(srcdir)/'`data/grl-data.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) data/$(DEPDIR)/lib@GRL_NAME@_la-grl-data.Tpo data/$(DEPDIR)/lib@GRL_NAME@_la-grl-data.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='data/grl-data.c' object='data/lib@GRL_NAME@_la-grl-data.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o data/lib@GRL_NAME@_la-grl-data.lo `test -f 'data/grl-data.c' || echo '$(srcdir)/'`data/grl-data.c + +data/lib@GRL_NAME@_la-grl-related-keys.lo: data/grl-related-keys.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT data/lib@GRL_NAME@_la-grl-related-keys.lo -MD -MP -MF data/$(DEPDIR)/lib@GRL_NAME@_la-grl-related-keys.Tpo -c -o data/lib@GRL_NAME@_la-grl-related-keys.lo `test -f 'data/grl-related-keys.c' || echo '$(srcdir)/'`data/grl-related-keys.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) data/$(DEPDIR)/lib@GRL_NAME@_la-grl-related-keys.Tpo data/$(DEPDIR)/lib@GRL_NAME@_la-grl-related-keys.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='data/grl-related-keys.c' object='data/lib@GRL_NAME@_la-grl-related-keys.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o data/lib@GRL_NAME@_la-grl-related-keys.lo `test -f 'data/grl-related-keys.c' || echo '$(srcdir)/'`data/grl-related-keys.c + +data/lib@GRL_NAME@_la-grl-media.lo: data/grl-media.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT data/lib@GRL_NAME@_la-grl-media.lo -MD -MP -MF data/$(DEPDIR)/lib@GRL_NAME@_la-grl-media.Tpo -c -o data/lib@GRL_NAME@_la-grl-media.lo `test -f 'data/grl-media.c' || echo '$(srcdir)/'`data/grl-media.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) data/$(DEPDIR)/lib@GRL_NAME@_la-grl-media.Tpo data/$(DEPDIR)/lib@GRL_NAME@_la-grl-media.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='data/grl-media.c' object='data/lib@GRL_NAME@_la-grl-media.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o data/lib@GRL_NAME@_la-grl-media.lo `test -f 'data/grl-media.c' || echo '$(srcdir)/'`data/grl-media.c + +data/lib@GRL_NAME@_la-grl-config.lo: data/grl-config.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -MT data/lib@GRL_NAME@_la-grl-config.lo -MD -MP -MF data/$(DEPDIR)/lib@GRL_NAME@_la-grl-config.Tpo -c -o data/lib@GRL_NAME@_la-grl-config.lo `test -f 'data/grl-config.c' || echo '$(srcdir)/'`data/grl-config.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) data/$(DEPDIR)/lib@GRL_NAME@_la-grl-config.Tpo data/$(DEPDIR)/lib@GRL_NAME@_la-grl-config.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='data/grl-config.c' object='data/lib@GRL_NAME@_la-grl-config.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib@GRL_NAME@_la_CFLAGS) $(CFLAGS) -c -o data/lib@GRL_NAME@_la-grl-config.lo `test -f 'data/grl-config.c' || echo '$(srcdir)/'`data/grl-config.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf data/.libs data/_libs +install-girDATA: $(gir_DATA) + @$(NORMAL_INSTALL) + @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \ + done + +uninstall-girDATA: + @$(NORMAL_UNINSTALL) + @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) +install-typelibDATA: $(typelib_DATA) + @$(NORMAL_INSTALL) + @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(typelibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(typelibdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibdir)" || exit $$?; \ + done + +uninstall-typelibDATA: + @$(NORMAL_UNINSTALL) + @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(typelibdir)'; $(am__uninstall_files_from_dir) +install-lib@GRL_NAME@incHEADERS: $(lib@GRL_NAME@inc_HEADERS) + @$(NORMAL_INSTALL) + @list='$(lib@GRL_NAME@inc_HEADERS)'; test -n "$(lib@GRL_NAME@incdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(lib@GRL_NAME@incdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(lib@GRL_NAME@incdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(lib@GRL_NAME@incdir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(lib@GRL_NAME@incdir)" || exit $$?; \ + done + +uninstall-lib@GRL_NAME@incHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(lib@GRL_NAME@inc_HEADERS)'; test -n "$(lib@GRL_NAME@incdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(lib@GRL_NAME@incdir)'; $(am__uninstall_files_from_dir) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-recursive +all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(lib@GRL_NAME@incdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f data/$(DEPDIR)/$(am__dirstamp) + -rm -f data/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-recursive + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-recursive + -rm -rf ./$(DEPDIR) data/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-girDATA install-lib@GRL_NAME@incHEADERS \ + install-typelibDATA + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -rf ./$(DEPDIR) data/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-girDATA uninstall-lib@GRL_NAME@incHEADERS \ + uninstall-libLTLIBRARIES uninstall-typelibDATA + +.MAKE: $(am__recursive_targets) all check install install-am \ + install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libLTLIBRARIES \ + clean-libtool cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-girDATA \ + install-html install-html-am install-info install-info-am \ + install-lib@GRL_NAME@incHEADERS install-libLTLIBRARIES \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip install-typelibDATA installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am uninstall-girDATA \ + uninstall-lib@GRL_NAME@incHEADERS uninstall-libLTLIBRARIES \ + uninstall-typelibDATA + +.PRECIOUS: Makefile + + +# autogenerated files +grl-marshal.h: grl-marshal.list + $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix grl_marshal \ + --header $< > $@ + +grl-marshal.c: grl-marshal.list grl-marshal.h + @echo "#include \"grl-marshal.h\"" > $@.tmp + $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix grl_marshal \ + --body $< >> $@.tmp && mv $@.tmp $@ + +grl-type-builtins.h: $(enum_headers) grl-type-builtins.h.template + $(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/grl-type-builtins.h.template \ + $(addprefix $(srcdir)/,$(enum_headers)) > $@ + +grl-type-builtins.c: grl-type-builtins.h $(enum_headers) grl-type-builtins.c.template + $(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/grl-type-builtins.c.template \ + $(addprefix $(srcdir)/,$(enum_headers)) > $@ + +-include $(INTROSPECTION_MAKEFILE) + +@HAVE_INTROSPECTION_TRUE@Grl-@GRL_MAJORMINOR@.gir: lib@GRL_NAME@.la + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/data/Makefile.am b/src/data/Makefile.am new file mode 100644 index 0000000..ae44c94 --- /dev/null +++ b/src/data/Makefile.am @@ -0,0 +1 @@ +-include $(top_srcdir)/git.mk diff --git a/src/data/Makefile.in b/src/data/Makefile.in new file mode 100644 index 0000000..3114a05 --- /dev/null +++ b/src/data/Makefile.in @@ -0,0 +1,495 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = src/data +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/data/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign src/data/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + cscopelist-am ctags-am distclean distclean-generic \ + distclean-libtool distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/data/grl-config.c b/src/data/grl-config.c new file mode 100644 index 0000000..cc5e6ac --- /dev/null +++ b/src/data/grl-config.c @@ -0,0 +1,683 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * Copyright (C) 2011 Intel Corporation. + * + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-config + * @short_description: Configuration data storage + * + * This class is used to configure plugins during a session. + * + * Pre-defined settings are read from plugin specific configuration files. + * The settings can be changed to properly setup the session, but are not + * persistent. Changes are local to each #GrlConfig instance. + */ + +#include "grl-config.h" +#include "grl-log.h" + +#define GROUP_NAME "none" + +#define GRL_LOG_DOMAIN_DEFAULT config_log_domain +GRL_LOG_DOMAIN(config_log_domain); + +struct _GrlConfigPrivate { + GKeyFile *config; +}; + +static void grl_config_finalize (GObject *object); + +G_DEFINE_TYPE_WITH_PRIVATE (GrlConfig, grl_config, G_TYPE_OBJECT); + +static void +grl_config_class_init (GrlConfigClass *klass) +{ + GObjectClass *gobject_class = (GObjectClass *)klass; + + gobject_class->finalize = grl_config_finalize; +} + +static void +grl_config_init (GrlConfig *self) +{ + self->priv = grl_config_get_instance_private (self); + self->priv->config = g_key_file_new (); + + g_key_file_load_from_data (self->priv->config, "[]\n", -1, G_KEY_FILE_NONE, NULL); +} + +static void +grl_config_finalize (GObject *object) +{ + GrlConfig *self = GRL_CONFIG (object); + + GRL_DEBUG ("grl_config_finalize"); + + g_key_file_free (self->priv->config); + g_signal_handlers_destroy (object); + G_OBJECT_CLASS (grl_config_parent_class)->finalize (object); +} + +/** + * grl_config_new: + * @plugin: plugin id for this configuration + * @source: (allow-none): source id for this configuration + * + * Creates a new data config object that will be associated with a plugin + * (if @source is NULL), or a specific source spawned from a plugin (if + * @source is not NULL). The latter may be useful for plugins + * spawning various sources, each one needing a different configuration. + * + * Returns: (transfer none): a newly-allocated data config. The data + * config associated with the plugin should not be freed until the plugin + * has been unloaded. + * + * Since: 0.1.4 + */ +GrlConfig * +grl_config_new (const gchar *plugin, const gchar *source) +{ + GrlConfig *config; + + g_return_val_if_fail (plugin != NULL, NULL); + + config = g_object_new (GRL_TYPE_CONFIG, NULL); + grl_config_set_string (config, GRL_CONFIG_KEY_PLUGIN, plugin); + if (source) { + grl_config_set_source (config, source); + } + return config; +} + +/** + * grl_config_set: + * @config: the config instance + * @param: a parameter + * @value: value + * + * Set @param @value. + * + * Since: 0.1.5 + **/ +void +grl_config_set (GrlConfig *config, const gchar *param, const GValue *value) +{ + GByteArray *array; + gchar *encoded; + + g_return_if_fail (GRL_IS_CONFIG (config)); + g_return_if_fail (param != NULL); + + switch (G_VALUE_TYPE (value)) { + case G_TYPE_STRING: + g_key_file_set_string (config->priv->config, GROUP_NAME, param, + g_value_get_string (value)); + break; + + case G_TYPE_FLOAT: + g_key_file_set_double (config->priv->config, GROUP_NAME, param, + g_value_get_double (value)); + break; + + case G_TYPE_INT: + g_key_file_set_integer (config->priv->config, GROUP_NAME, param, + g_value_get_int (value)); + break; + + case G_TYPE_BOOLEAN: + g_key_file_set_boolean (config->priv->config, GROUP_NAME, param, + g_value_get_boolean (value)); + break; + + case G_TYPE_BOXED: + array = g_value_get_boxed(value); + encoded = g_base64_encode ((const guchar *) array, array->len); + g_key_file_set_string (config->priv->config, GROUP_NAME, param, + encoded); + g_free (encoded); + break; + + default: + g_return_if_reached (); + break; + } +} + +/** + * grl_config_set_string: + * @config: the config instance + * @param: a string type parameter + * @value: a value + * + * Set @param @value. + * + * Since: 0.1.5 + **/ +void +grl_config_set_string (GrlConfig *config, const gchar *param, const gchar *value) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + g_key_file_set_string (config->priv->config, GROUP_NAME, param, value); +} + +/** + * grl_config_set_int: + * @config: the config instance + * @param: an integer type parameter + * @value: a value + * + * Set @param @value. + * + * Since: 0.1.5 + **/ +void +grl_config_set_int (GrlConfig *config, const gchar *param, gint value) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + g_key_file_set_integer (config->priv->config, GROUP_NAME, param, value); +} + + +/** + * grl_config_set_float: + * @config: the config instance + * @param: a float type parameter + * @value: a value + * + * Set @param @value. + * + * Since: 0.1.5 + **/ +void +grl_config_set_float (GrlConfig *config, const gchar *param, gfloat value) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + g_key_file_set_double (config->priv->config, GROUP_NAME, param, (gdouble) value); +} + +/** + * grl_config_set_boolean: + * @config: the config instance + * @param: a boolean type parameter + * @value: a value + * + * Set @param @value. + * + * Since: 0.1.8 + **/ +void +grl_config_set_boolean (GrlConfig *config, const gchar *param, gboolean value) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + g_key_file_set_boolean (config->priv->config, GROUP_NAME, param, value); +} + +/** + * grl_config_set_binary: + * @config: the config instance + * @param: a binary type parameter + * @blob: a base64 encoded binary value + * @size: size of @value + * + * Set @param value. + * + * Since: 0.1.9 + **/ +void +grl_config_set_binary (GrlConfig *config, const gchar *param, const guint8 *blob, gsize size) +{ + gchar *encoded; + + g_return_if_fail (GRL_IS_CONFIG (config)); + + encoded = g_base64_encode (blob, size); + g_key_file_set_string (config->priv->config, GROUP_NAME, param, encoded); + g_free (encoded); +} + +/** + * grl_config_get_string: + * @config: the config instance + * @param: a string type paramter + * + * Returns: @param value + * + * Since: 0.1.5 + **/ +gchar * +grl_config_get_string (GrlConfig *config, const gchar *param) +{ + g_return_val_if_fail (GRL_IS_CONFIG (config), NULL); + return g_key_file_get_string (config->priv->config, GROUP_NAME, param, NULL); +} + +/** + * grl_config_get_int: + * @config: the config instance + * @param: an integer type parameter + * + * Returns: @param value + * + * Since: 0.1.5 + **/ +gint +grl_config_get_int (GrlConfig *config, const gchar *param) +{ + g_return_val_if_fail (GRL_IS_CONFIG (config), 0); + return g_key_file_get_integer (config->priv->config, GROUP_NAME, param, NULL); +} + +/** + * grl_config_get_float: + * @config: the config instance + * @param: a float type parameter + * + * Returns: @param value + * + * Since: 0.1.5 + **/ +gfloat +grl_config_get_float (GrlConfig *config, const gchar *param) +{ + g_return_val_if_fail (GRL_IS_CONFIG (config), 0.0); + return (gfloat) g_key_file_get_double (config->priv->config, GROUP_NAME, + param, NULL); +} + +/** + * grl_config_get_boolean: + * @config: the config instance + * @param: a boolean type parameter + * + * Returns: @param value + * + * Since: 0.1.8 + **/ +gboolean +grl_config_get_boolean (GrlConfig *config, const gchar *param) +{ + g_return_val_if_fail (GRL_IS_CONFIG (config), FALSE); + return g_key_file_get_boolean (config->priv->config, GROUP_NAME, param, NULL); +} + +/** + * grl_config_get_binary: + * @config: the config instance + * @param: a binary type parameter + * @size: (allow-none): place for size of value + * + * Gets the value of @param encoded as base64. If @size is not %NULL, it puts + * there the size of the value. + * + * Returns: @param value + * + * Since: 0.1.9 + **/ +guint8 * +grl_config_get_binary (GrlConfig *config, const gchar *param, gsize *size) +{ + gchar *encoded; + gsize s; + guint8 *binary; + + g_return_val_if_fail (GRL_IS_CONFIG (config), NULL); + + encoded = g_key_file_get_string (config->priv->config, GROUP_NAME, param, NULL); + if (!encoded) { + return NULL; + } + + binary = g_base64_decode (encoded, &s); + g_free (encoded); + if (size) { + *size = s; + } + + return binary; +} + +/** + * grl_config_set_plugin: + * @config: the config instance + * @plugin: the plugin id + * + * Set the plugin key in the configuration + * + * Since: 0.1.4 + */ +void +grl_config_set_plugin (GrlConfig *config, const gchar *plugin) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + g_return_if_fail (plugin != NULL); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_PLUGIN, + plugin); +} + +/** + * grl_config_set_source: + * @config: the config instance + * @source: the source id + * + * Set the source key in the configuration + * + * Since: 0.1.4 + */ +void +grl_config_set_source (GrlConfig *config, const gchar *source) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_SOURCE, + source); +} + +/** + * grl_config_set_api_key: + * @config: the config instance + * @key: the API key + * + * Set the webservice API key in the configuration + * + * Since: 0.1.4 + */ +void +grl_config_set_api_key (GrlConfig *config, const gchar *key) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APIKEY, + key); +} + +/** + * grl_config_set_api_key_blob: + * @config: the config instance + * @blob: the binary API key blob + * @size: the size of the blob + * + * Set the binary API key in the configuration + * + * Since: 0.1.9 + */ +void +grl_config_set_api_key_blob (GrlConfig *config, const guint8 *blob, gsize size) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_binary (config, GRL_CONFIG_KEY_APIKEY_BLOB, blob, size); +} + +/** + * grl_config_set_api_token: + * @config: the config instance + * @token: the API token + * + * Set the webservice API token in the configuration + * + * Since: 0.1.4 + */ +void +grl_config_set_api_token (GrlConfig *config, const gchar *token) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APITOKEN, + token); +} + +/** + * grl_config_set_api_token_secret: + * @config: the config instance + * @secret: the API token + * + * Set the webservice API token secret in the configuration + * (Needed by OAuth) + * + * Since: 0.2.6 + */ +void +grl_config_set_api_token_secret (GrlConfig *config, const gchar *secret) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APITOKEN_SECRET, + secret); +} + + +/** + * grl_config_set_api_secret: + * @config: the config instance + * @secret: the webservice passphrase + * + * Set the webservice passphrase in the configuration + * + * Since: 0.1.4 + */ +void +grl_config_set_api_secret (GrlConfig *config, const gchar *secret) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APISECRET, + secret); +} + +/** + * grl_config_set_username: + * @config: the config instance + * @username: the username + * + * Set the username in the configuration + * + * Since: 0.1.8 + */ +void +grl_config_set_username (GrlConfig *config, const gchar *username) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_USERNAME, + username); +} + +/** + * grl_config_set_password: + * @config: the config instance + * @password: the password + * + * Set the password in the configuration + * + * Since: 0.1.8 + */ +void +grl_config_set_password(GrlConfig *config, const gchar *password) +{ + g_return_if_fail (GRL_IS_CONFIG (config)); + + grl_config_set_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_PASSWORD, + password); +} + +/** + * grl_config_get_plugin: + * @config: the config instance + * + * Returns: the plugin id + * + * Since: 0.1.4 + */ +gchar * +grl_config_get_plugin (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_PLUGIN); +} + +/** + * grl_config_get_source: + * @config: the config instance + * + * Returns: the source id + */ +gchar * +grl_config_get_source (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_SOURCE); +} + +/** + * grl_config_get_api_key: + * @config: the config instance + * + * Returns: the webservice API key + * + * Since: 0.1.4 + */ +gchar * +grl_config_get_api_key (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APIKEY); +} + +/** + * grl_config_get_api_key_blob: + * @config: the config instance + * @size: pointer to size of data + * + * Returns: the binary API key, size will reflect the size of the buffer + * + * Since: 0.1.9 + */ +guint8 * +grl_config_get_api_key_blob (GrlConfig *config, gsize *size) +{ + return grl_config_get_binary (config, GRL_CONFIG_KEY_APIKEY_BLOB, size); +} + +/** + * grl_config_get_api_token: + * @config: the config instance + * + * Returns: the webservice API token + * + * Since: 0.1.4 + */ +gchar * +grl_config_get_api_token (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APITOKEN); +} + +/** + * grl_config_get_api_token_secret: + * @config: the config instance + * + * Returns: the webservice API token secret + * (Needed by OAuth) + * + * Since: 0.2.6 + */ +gchar * +grl_config_get_api_token_secret (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APITOKEN_SECRET); +} + +/** + * grl_config_get_api_secret: + * @config: the config instance + * + * Returns: the webservice API passphrase + * + * Since: 0.1.4 + */ +gchar * +grl_config_get_api_secret (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_APISECRET); +} + +/** + * grl_config_get_username: + * @config: the config instance + * + * Returns: the username + * + * Since: 0.1.8 + */ +gchar * +grl_config_get_username (GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_USERNAME); +} + +/** + * grl_config_get_password: + * @config: the config instance + * + * Returns: the password + * + * Since: 0.1.8 + */ +gchar * +grl_config_get_password(GrlConfig *config) +{ + return grl_config_get_string (GRL_CONFIG (config), + GRL_CONFIG_KEY_PASSWORD); +} + +/** + * grl_config_has_param: + * @config: the config instance + * @param: the param + * + * Returns: TRUE if @params has a defined value within @config, FALSE + * otherwise. + * + * Since: 0.1.8 + */ +gboolean +grl_config_has_param (GrlConfig *config, const gchar *param) +{ + g_return_val_if_fail (GRL_IS_CONFIG (config), FALSE); + return g_key_file_has_key (config->priv->config, GROUP_NAME, param, NULL); +} diff --git a/src/data/grl-config.h b/src/data/grl-config.h new file mode 100644 index 0000000..df5536c --- /dev/null +++ b/src/data/grl-config.h @@ -0,0 +1,170 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * Copyright (C) 2011 Intel Corporation. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#include +#include + +#include + +#ifndef _GRL_CONFIG_H_ +#define _GRL_CONFIG_H_ + +G_BEGIN_DECLS + +#define GRL_TYPE_CONFIG \ + (grl_config_get_type()) + +#define GRL_CONFIG(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_CONFIG, \ + GrlConfig)) + +#define GRL_CONFIG_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + GRL_TYPE_CONFIG, \ + GrlConfigClass)) + +#define GRL_IS_CONFIG(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_CONFIG)) + +#define GRL_IS_CONFIG_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + GRL_TYPE_CONFIG)) + +#define GRL_CONFIG_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_CONFIG, \ + GrlConfigClass)) + +#define GRL_CONFIG_KEY_PLUGIN "target-plugin" +#define GRL_CONFIG_KEY_SOURCE "target-source" +#define GRL_CONFIG_KEY_APIKEY "api-key" +#define GRL_CONFIG_KEY_APIKEY_BLOB "api-key-blob" +#define GRL_CONFIG_KEY_APITOKEN "api-token" +#define GRL_CONFIG_KEY_APITOKEN_SECRET "api-token-secret" +#define GRL_CONFIG_KEY_APISECRET "api-secret" +#define GRL_CONFIG_KEY_USERNAME "username" +#define GRL_CONFIG_KEY_PASSWORD "password" + +typedef struct _GrlConfig GrlConfig; +typedef struct _GrlConfigPrivate GrlConfigPrivate; +typedef struct _GrlConfigClass GrlConfigClass; + +struct _GrlConfig +{ + GObject parent; + + GrlConfigPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING_SMALL]; +}; + +/** + * GrlConfigClass: + * @parent_class: the parent class structure + * + * Grilo Config Class + */ +struct _GrlConfigClass +{ + GObjectClass parent_class; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +void grl_config_set_plugin (GrlConfig *config, const gchar *plugin); + +void grl_config_set_source (GrlConfig *config, const gchar *source); + +void grl_config_set_api_key (GrlConfig *config, const gchar *key); + +void grl_config_set_api_key_blob (GrlConfig *config, const guint8 *blob, gsize size); + +void grl_config_set_api_token (GrlConfig *config, const gchar *token); + +void grl_config_set_api_token_secret (GrlConfig *config, const gchar *secret); + +void grl_config_set_api_secret (GrlConfig *config, const gchar *secret); + +void grl_config_set_username (GrlConfig *config, const gchar *username); + +void grl_config_set_password (GrlConfig *config, const gchar *password); + +gchar *grl_config_get_plugin (GrlConfig *config); + +gchar *grl_config_get_source (GrlConfig *config); + +gchar *grl_config_get_api_key (GrlConfig *config); + +guint8 *grl_config_get_api_key_blob (GrlConfig *config, gsize *size); + +gchar *grl_config_get_api_token (GrlConfig *config); + +gchar *grl_config_get_api_token_secret (GrlConfig *config); + +gchar *grl_config_get_api_secret (GrlConfig *config); + +gchar *grl_config_get_username (GrlConfig *config); + +gchar *grl_config_get_password (GrlConfig *config); + +GType grl_config_get_type (void) G_GNUC_CONST; +GrlConfig *grl_config_new (const gchar *plugin, const gchar *source); + +void grl_config_set (GrlConfig *config, const gchar *param, const GValue *value); + +void grl_config_set_string (GrlConfig *config, + const gchar *param, + const gchar *value); + +void grl_config_set_int (GrlConfig *config, const gchar *param, gint value); + +void grl_config_set_float (GrlConfig *config, const gchar *param, gfloat value); + +void grl_config_set_boolean (GrlConfig *config, const gchar *param, gboolean value); + +void grl_config_set_binary (GrlConfig *config, const gchar *param, const guint8 *blob, gsize size); + +gchar *grl_config_get_string (GrlConfig *config, const gchar *param); + +gint grl_config_get_int (GrlConfig *config, const gchar *param); + +gfloat grl_config_get_float (GrlConfig *config, const gchar *param); + +gboolean grl_config_get_boolean (GrlConfig *config, const gchar *param); + +guint8 *grl_config_get_binary (GrlConfig *config, const gchar *param, gsize *size); + +gboolean grl_config_has_param (GrlConfig *config, const gchar *param); + +G_END_DECLS + +#endif /* _GRL_CONFIG_H_ */ diff --git a/src/data/grl-data.c b/src/data/grl-data.c new file mode 100644 index 0000000..8720349 --- /dev/null +++ b/src/data/grl-data.c @@ -0,0 +1,1352 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-data + * @short_description: Low-level class for storing metadata information about + * media resources provided by #GrlSource objects. + * @see_also: #GrlMedia + * + * This class acts as a generic metadata dictionary where metadata keys and + * their values can be stored. Usually, application and plugin developers would + * interact with specific subclass of #GrlData, #GrlMedia, which provide + * specific API to manipulate well known attributes of these media types. + */ + +#include "grl-data.h" +#include "grl-log.h" +#include "grl-registry-priv.h" + +#define GRL_LOG_DOMAIN_DEFAULT data_log_domain +GRL_LOG_DOMAIN(data_log_domain); + +struct _GrlDataPrivate { + GHashTable *data; +}; + +static void grl_data_finalize (GObject *object); +static void free_list_values (GrlKeyID key, GList *values, gpointer user_data); + +static void free_list_values (GrlKeyID key, GList *values, gpointer user_data); + +/* ================ GrlData GObject ================ */ + +G_DEFINE_TYPE_WITH_PRIVATE (GrlData, grl_data, G_TYPE_OBJECT); + +static void +grl_data_class_init (GrlDataClass *klass) +{ + GObjectClass *gobject_class = (GObjectClass *)klass; + + gobject_class->finalize = grl_data_finalize; +} + +static void +grl_data_init (GrlData *self) +{ + self->priv = grl_data_get_instance_private (self); + self->priv->data = g_hash_table_new_full (g_direct_hash, + g_direct_equal, + NULL, + NULL); +} + +static void +grl_data_finalize (GObject *object) +{ + GrlData *data = GRL_DATA (object); + + g_signal_handlers_destroy (object); + g_hash_table_foreach (data->priv->data, + (GHFunc) free_list_values, + NULL); + g_hash_table_unref (data->priv->data); + + G_OBJECT_CLASS (grl_data_parent_class)->finalize (object); +} + +/* ================ Utitilies ================ */ + +/* Free the list of values, which are of type #GrlRelatedKeys */ +static void +free_list_values (GrlKeyID key, GList *values, gpointer user_data) +{ + g_list_free_full (values, g_object_unref); +} + +/* Returns the sample key that represents the set of keys related with @key */ +static GrlKeyID +get_sample_key (GrlKeyID key) +{ + GrlRegistry *registry; + const GList *related_keys; + + registry = grl_registry_get_default (); + related_keys = + grl_registry_lookup_metadata_key_relation (registry, key); + + if (!related_keys) { + GRL_WARNING ("Related keys not found for key \"%s\"", + grl_metadata_key_get_name (key)); + return GRL_METADATA_KEY_INVALID; + } else { + return GRLPOINTER_TO_KEYID (related_keys->data); + } +} + +/* ================ API ================ */ + +/** + * grl_data_new: + * + * Creates a new data object. + * + * Returns: a new data object. + * + * Since: 0.1.4 + **/ +GrlData * +grl_data_new (void) +{ + return g_object_new (GRL_TYPE_DATA, + NULL); +} + +/** + * grl_data_get: + * @data: data to retrieve value + * @key: (type GrlKeyID): key to look up. + * + * Get the first value from @data associated with @key. + * + * Returns: (transfer none): a #GValue. This value should not be modified nor + * freed by user. + * + * Since: 0.1.4 + **/ +const GValue * +grl_data_get (GrlData *data, GrlKeyID key) +{ + GrlRelatedKeys *relkeys = NULL; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + if (grl_data_length (data, key) > 0) { + relkeys = grl_data_get_related_keys (data, key, 0); + } + + if (!relkeys) { + return NULL; + } + + return grl_related_keys_get (relkeys, key); +} + +/** + * grl_data_set: + * @data: data to modify + * @key: (type GrlKeyID): key to change or add + * @value: the new value + * + * Sets the first value associated with @key in @data. If key already has a + * value old value is freed and the new one is set. + * + * Also, checks that @value is compliant with @key specification, modifying it + * accordingly. For instance, if @key requires a number between 0 and 10, but + * @value is outside this range, it will be adapted accordingly. + * + * Since: 0.1.4 + **/ +void +grl_data_set (GrlData *data, GrlKeyID key, const GValue *value) +{ + GrlRelatedKeys *relkeys = NULL; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + if (!value) { + return; + } + + /* Get the right set of related keys */ + if (grl_data_length (data, key) > 0) { + relkeys = grl_data_get_related_keys (data, key, 0); + } + + if (!relkeys) { + /* No related keys; add them */ + relkeys = grl_related_keys_new (); + grl_related_keys_set (relkeys, key, value); + grl_data_add_related_keys (data, relkeys); + } else { + /* Set the new value */ + grl_related_keys_set (relkeys, key, value); + } +} + +/** + * grl_data_set_string: + * @data: data to modify + * @key: (type GrlKeyID): key to change or add + * @strvalue: the new value + * + * Sets the first string value associated with @key in @data. If @key already + * has a value old value is freed and the new one is set. + * + * Since: 0.1.4 + **/ +void +grl_data_set_string (GrlData *data, + GrlKeyID key, + const gchar *strvalue) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + if (strvalue) { + g_value_init (&value, G_TYPE_STRING); + g_value_set_string (&value, strvalue); + grl_data_set (data, key, &value); + g_value_unset (&value); + } +} + +/** + * grl_data_get_string: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the first string value associated with @key from @data. If @key has + * no first value, or value is not string, or @key is not in @data, then %NULL + * is returned. + * + * Returns: string associated with @key, or %NULL in other case. Caller should + * not change nor free the value. + * + * Since: 0.1.4 + **/ +const gchar * +grl_data_get_string (GrlData *data, GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_STRING (value)) { + return NULL; + } else { + return g_value_get_string (value); + } +} + +/** + * grl_data_set_int: + * @data: data to change + * @key: (type GrlKeyID): key to change or add + * @intvalue: the new value + * + * Sets the first int value associated with @key in @data. If @key already has a + * first value old value is replaced by the new one. + * + * Since: 0.1.4 + **/ +void +grl_data_set_int (GrlData *data, GrlKeyID key, gint intvalue) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + g_value_init (&value, G_TYPE_INT); + g_value_set_int (&value, intvalue); + grl_data_set (data, key, &value); +} + +/** + * grl_data_get_int: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the first int value associated with @key from @data. If @key has no + * first value, or value is not a gint, or @key is not in data, then 0 is + * returned. + * + * Returns: int value associated with @key, or 0 in other case. + * + * Since: 0.1.4 + **/ +gint +grl_data_get_int (GrlData *data, GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_DATA (data), 0); + g_return_val_if_fail (key, 0); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_INT (value)) { + return 0; + } else { + return g_value_get_int (value); + } +} + +/** + * grl_data_set_float: + * @data: data to change + * @key: (type GrlKeyID): key to change or add + * @floatvalue: the new value + * + * Sets the first float value associated with @key in @data. If @key already has + * a first value old value is replaced by the new one. + * + * Since: 0.1.5 + **/ +void +grl_data_set_float (GrlData *data, GrlKeyID key, float floatvalue) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + g_value_init (&value, G_TYPE_FLOAT); + g_value_set_float (&value, floatvalue); + grl_data_set (data, key, &value); +} + +/** + * grl_data_get_float: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the first float value associated with @key from @data. If @key has no + * first value, or value is not a gfloat, or @key is not in data, then 0 is + * returned. + * + * Returns: float value associated with @key, or 0 in other case. + * + * Since: 0.1.5 + **/ +gfloat +grl_data_get_float (GrlData *data, GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_DATA (data), 0.0); + g_return_val_if_fail (key, 0.0); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_FLOAT (value)) { + return 0; + } else { + return g_value_get_float (value); + } +} + +/** + * grl_data_set_boolean: + * @data: data to change + * @key: (type GrlKeyID): key to change or add + * @boolvalue: the new value + * + * Sets the first boolean value associated with @key in @data. If @key already + * has a first value, old value is replaced by the new one. + * + * Since: 0.2.3 + **/ +void +grl_data_set_boolean (GrlData *data, GrlKeyID key, gboolean boolvalue) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + g_value_init (&value, G_TYPE_BOOLEAN); + g_value_set_boolean (&value, boolvalue); + grl_data_set (data, key, &value); +} + +/** + * grl_data_get_boolean: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * + * Returns: the first boolean value associated with @key from @data. If @key has + * no first value, or value is not a gboolean, or @key is not in the data, then + * FALSE is returned + * + * Since: 0.2.3 + */ +gboolean +grl_data_get_boolean (GrlData *data, GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_DATA (data), FALSE); + g_return_val_if_fail (key, FALSE); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_BOOLEAN (value)) { + return FALSE; + } else { + return g_value_get_boolean (value); + } +} + +/** + * grl_data_set_binary: + * @data: data to change + * @key: (type GrlKeyID): key to change or add + * @buf: buffer holding the data + * @size: size of the buffer + * + * Sets the first binary value associated with @key in @data. If @key already + * has a first value old value is replaced by the new one. + * + * Since: 0.1.9 + **/ +void +grl_data_set_binary (GrlData *data, GrlKeyID key, const guint8 *buf, gsize size) +{ + GValue v = { 0 }; + GByteArray * array; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + if (!buf || !size) { + return; + } + + array = g_byte_array_append(g_byte_array_sized_new(size), + buf, + size); + + g_value_init (&v, g_byte_array_get_type()); + g_value_take_boxed(&v, array); + grl_data_set(data, key, &v); + g_value_unset (&v); +} + +/** + * grl_data_get_binary: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * @size: (out): location to store the buffer size + * + * Returns the first binary value associated with @key from @data. If @key has + * no first value, or value is not a gfloat, or @key is not in data, then %NULL + * is returned. + * + * Returns: buffer location associated with the @key, or %NULL in other case. If + * successful @size will be set the to the buffer size. + * + * Since: 0.1.9 + **/ +const guint8 * +grl_data_get_binary(GrlData *data, GrlKeyID key, gsize *size) +{ + const GValue *value; + + g_return_val_if_fail (size, NULL); + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_BOXED (value)) { + return NULL; + } else { + GByteArray * array; + + array = g_value_get_boxed(value); + *size = array->len; + return (const guint8 *) array->data; + } +} + +/** + * grl_data_set_boxed: + * @data: data to modify + * @key: key to change or add + * @boxed: the new value + * + * Sets the first boxed value associated with @key in @data. If @key already + * has a value, the old value is freed and the new one is set. + * + * Since: 0.2.0 + **/ +void +grl_data_set_boxed (GrlData *data, GrlKeyID key, gconstpointer boxed) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + g_return_if_fail (boxed != NULL); + + g_value_init (&value, GRL_METADATA_KEY_GET_TYPE (key)); + g_value_set_boxed (&value, boxed); + grl_data_set (data, key, &value); + g_value_unset (&value); +} + +/** + * grl_data_get_boxed: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the first boxed value associated with @key from @data. If @key has + * no first value, that value is not of a boxed type, or @key is not in @data, + * then %NULL is returned. + * + * Returns: (transfer none): the boxed instance associated with @key if + * possible, or %NULL in other cases. The caller should not change nor free the + * value. + * + * Since: 0.2.0 + **/ +gpointer +grl_data_get_boxed (GrlData *data, GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_BOXED (value)) { + return NULL; + } else { + return g_value_get_boxed (value); + } +} + +/** + * grl_data_set_int64: + * @data: data to change + * @key: (type GrlKeyID): key to change or add + * @intvalue: the new value + * + * Sets the first int64 value associated with @key in @data. If @key already has a + * first value old value is replaced by the new one. + * + * Since: 0.2.12 + **/ +void +grl_data_set_int64 (GrlData *data, GrlKeyID key, gint64 intvalue) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + g_value_init (&value, G_TYPE_INT64); + g_value_set_int64 (&value, intvalue); + grl_data_set (data, key, &value); +} + +/** + * grl_data_get_int64: + * @data: data to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the first int64 value associated with @key from @data. If @key has no + * first value, or value is not a gint, or @key is not in data, then 0 is + * returned. + * + * Returns: int value associated with @key, or 0 in other case. + * + * Since: 0.2.12 + **/ +gint64 +grl_data_get_int64 (GrlData *data, GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_DATA (data), 0); + g_return_val_if_fail (key, 0); + + value = grl_data_get (data, key); + + if (!value || !G_VALUE_HOLDS_INT64 (value)) { + return 0; + } else { + return g_value_get_int64 (value); + } +} + +/** + * Returns whether the string is a canonical one. + **/ +static gboolean +is_canonical (const gchar *key) +{ + if (key == NULL) { + return FALSE; + } + + for (; *key != '\0'; key++) { + if (*key != '-' && + (*key < '0' || *key > '9') && + (*key < 'A' || *key > 'Z') && + (*key < 'a' || *key > 'z')) + return FALSE; + } + + return TRUE; +} + +/** + * grl_data_set_for_id: + * @data: data to change + * @key_name: name of the key to change or add + * @value: the new value + * + * Sets the first value associated with @key_name in @data. This @key_name is used to create + * a new #GParamSpec instance, which is further used to create and register a key using + * grl_registry_register_metadata_key(). If @key_name already has a first @value, old + * value is replaced by the new one. + * + * A property key_name consists of segments consisting of ASCII letters and + * digits, separated by either the '-' or '_' character. The first + * character of a property key_name must be a letter. Key_names which violate these + * rules lead to undefined behaviour. + * + * Returns: TRUE if @value was set to @key_name, FALSE otherwise. + * + * Since: 0.3.6 + **/ +gboolean +grl_data_set_for_id (GrlData *data, const gchar *key_name, const GValue *value) +{ + GrlRegistry *registry; + GrlKeyID key_id; + + key_name = g_intern_string (key_name); + g_return_val_if_fail (is_canonical (key_name), FALSE); + + registry = grl_registry_get_default (); + key_id = grl_registry_lookup_metadata_key (registry, key_name); + + if (key_id != GRL_METADATA_KEY_INVALID) { + grl_data_set (data, key_id, value); + return TRUE; + } + + GRL_DEBUG ("%s is not a registered metadata-key", key_name); + key_id = grl_registry_register_metadata_key_for_type(registry, key_name, G_VALUE_TYPE (value)); + if (key_id != GRL_METADATA_KEY_INVALID) + grl_data_set (data, key_id, value); + + return (key_id != GRL_METADATA_KEY_INVALID); +} + + +/** + * grl_data_add_for_id: + * @data: data to change + * @key_name: name of the key to change or add + * @value: the new value + * + * Appends the value associated with @key_name to @data. This @key_name is used to create + * a new #GParamSpec instance, which is further used to create and register a key using + * grl_registry_register_metadata_key(). + * + * A property key_name consists of segments consisting of ASCII letters and + * digits, separated by either the '-' or '_' character. The first + * character of a property key_name must be a letter. Key_names which violate these + * rules lead to undefined behaviour. + * + * Returns: TRUE if @value was added to @key_name, FALSE otherwise. + * + * Since: 0.3.6 + **/ +gboolean +grl_data_add_for_id (GrlData *data, const gchar *key_name, const GValue *value) +{ + GrlRegistry *registry; + GrlKeyID key_id; + + key_name = g_intern_string (key_name); + g_return_val_if_fail (is_canonical (key_name), FALSE); + + registry = grl_registry_get_default (); + key_id = grl_registry_lookup_metadata_key (registry, key_name); + + if (key_id == GRL_METADATA_KEY_INVALID) { + GRL_DEBUG ("%s is not a registered metadata-key", key_name); + key_id = grl_registry_register_metadata_key_for_type (registry, key_name, G_VALUE_TYPE (value)); + if (key_id == GRL_METADATA_KEY_INVALID) { + return FALSE; + } + } + + switch (G_VALUE_TYPE (value)) { + case G_TYPE_INT: + grl_data_add_int (data, key_id, g_value_get_int (value)); + break; + + case G_TYPE_INT64: + grl_data_add_int64 (data, key_id, g_value_get_int64 (value)); + break; + + case G_TYPE_FLOAT: + grl_data_add_float (data, key_id, g_value_get_float (value)); + break; + + case G_TYPE_STRING: + grl_data_add_string (data, key_id, g_value_get_string (value)); + break; + + default: + GRL_WARNING ("'%s' is being ignored as G_TYPE is not being handled", key_name); + return FALSE; + } + + return TRUE; +} + +/** + * grl_data_remove: + * @data: data to change + * @key: (type GrlKeyID): key to remove + * + * Removes the first value for @key from @data. If there are other keys related + * to @key their values will also be removed from @data. + * + * Since: 0.1.4 + **/ +void +grl_data_remove (GrlData *data, GrlKeyID key) +{ + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + grl_data_remove_nth (data, key, 0); +} + +/** + * grl_data_has_key: + * @data: data to inspect + * @key: (type GrlKeyID): key to search + * + * Checks if @key is in @data. + * + * Returns: %TRUE if @key is in @data, %FALSE in other case. + * + * Since: 0.1.4 + **/ +gboolean +grl_data_has_key (GrlData *data, GrlKeyID key) +{ + GList *related_keys; + GrlKeyID sample_key; + gboolean found = FALSE; + + g_return_val_if_fail (GRL_IS_DATA (data), FALSE); + g_return_val_if_fail (key, FALSE); + + sample_key = get_sample_key (key); + if (!sample_key) { + return FALSE; + } + + related_keys = g_hash_table_lookup (data->priv->data, GRLKEYID_TO_POINTER (sample_key)); + while (related_keys && !found) { + found = grl_related_keys_has_key (related_keys->data, key); + related_keys = g_list_next (related_keys); + } + + return found; +} + +/** + * grl_data_get_keys: + * @data: data to inspect + * + * Returns a list with keys contained in @data. + * + * Returns: (transfer container) (element-type GrlKeyID): an array with the + * keys. The content of the list should not be modified or freed. Use + * g_list_free() when done using the list. + * + * Since: 0.1.4 + **/ +GList * +grl_data_get_keys (GrlData *data) +{ + GList *allkeys = NULL; + GList *keylist, *key; + GrlRegistry *registry; + const GList *relkeys; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + + keylist = g_hash_table_get_keys (data->priv->data); + registry = grl_registry_get_default (); + + for (key = keylist; key; key = g_list_next (key)) { + GrlKeyID key_id = GRLPOINTER_TO_KEYID (key->data); + relkeys = + grl_registry_lookup_metadata_key_relation (registry, key_id); + while (relkeys) { + if (grl_data_has_key (data, GRLPOINTER_TO_KEYID (relkeys->data))) { + allkeys = g_list_prepend (allkeys, relkeys->data); + } + relkeys = g_list_next (relkeys); + } + } + + g_list_free (keylist); + + return allkeys; +} + +/** + * grl_data_add_related_keys: + * @data: data to change + * @relkeys: a set of related properties with their values + * + * Adds a new set of values into @data. + * + * All keys in @prop must be related among them. + * + * @data will take the ownership of @relkeys, so do not modify it. + * + * Since: 0.1.10 + **/ +void +grl_data_add_related_keys (GrlData *data, + GrlRelatedKeys *relkeys) +{ + GList *keys; + GList *list_relkeys; + GrlKeyID sample_key; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + + keys = grl_related_keys_get_keys (relkeys); + if (!keys) { + /* Ignore empty set of related keys */ + GRL_WARNING ("Trying to add an empty GrlRelatedKeys to GrlData"); + g_object_unref (relkeys); + return; + } + + sample_key = get_sample_key (GRLPOINTER_TO_KEYID (keys->data)); + g_list_free (keys); + + if (!sample_key) { + g_object_unref (relkeys); + return; + } + + list_relkeys = g_hash_table_lookup (data->priv->data, + GRLKEYID_TO_POINTER (sample_key)); + list_relkeys = g_list_append (list_relkeys, relkeys); + g_hash_table_insert (data->priv->data, + GRLKEYID_TO_POINTER (sample_key), + list_relkeys); +} + +/** + * grl_data_add_string: + * @data: data to append + * @key: (type GrlKeyID): key to append + * @strvalue: the new value + * + * Appends a new string value for @key in @data. + * + * Since: 0.1.10 + **/ +void +grl_data_add_string (GrlData *data, + GrlKeyID key, + const gchar *strvalue) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + if (strvalue) { + relkeys = grl_related_keys_new (); + grl_related_keys_set_string (relkeys, key, strvalue); + grl_data_add_related_keys (data, relkeys); + } +} + +/** + * grl_data_add_int: + * @data: data to append + * @key: (type GrlKeyID): key to append + * @intvalue: the new value + * + * Appends a new int value for @key in @data. + * + * Since: 0.1.10 + **/ +void +grl_data_add_int (GrlData *data, + GrlKeyID key, + gint intvalue) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_int (relkeys, key, intvalue); + grl_data_add_related_keys (data, relkeys); +} + +/** + * grl_data_add_float: + * @data: data to append + * @key: (type GrlKeyID): key to append + * @floatvalue: the new value + * + * Appends a new float value for @key in @data. + * + * Since: 0.1.10 + **/ +void +grl_data_add_float (GrlData *data, + GrlKeyID key, + gfloat floatvalue) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_float (relkeys, key, floatvalue); + grl_data_add_related_keys (data, relkeys); +} + +/** + * grl_data_add_binary: + * @data: data to append + * @key: (type GrlKeyID): key to append + * @buf: the buffer containing the new value + * @size: size of buffer + * + * Appends a new binary value for @key in @data. + * + * Since: 0.1.10 + **/ +void +grl_data_add_binary (GrlData *data, + GrlKeyID key, + const guint8 *buf, + gsize size) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + if (!buf || !size) { + return; + } + + relkeys = grl_related_keys_new (); + grl_related_keys_set_binary (relkeys, key, buf, size); + grl_data_add_related_keys (data, relkeys); +} + +/** + * grl_data_add_boxed: + * @data: data to append + * @key: (type GrlKeyID): key to append + * @boxed: the new value + * + * Appends a new boxed value for @key in @data. + * + * Since: 0.2.0 + **/ +void +grl_data_add_boxed (GrlData *data, + GrlKeyID key, + gconstpointer boxed) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + g_return_if_fail (boxed != NULL); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_boxed (relkeys, key, boxed); + grl_data_add_related_keys (data, relkeys); +} + +/** + * grl_data_add_int64: + * @data: data to append + * @key: (type GrlKeyID): key to append + * @intvalue: the new value + * + * Appends a new int64 value for @key in @data. + * + * Since: 0.2.12 + **/ +void +grl_data_add_int64 (GrlData *data, + GrlKeyID key, + gint64 intvalue) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_int64 (relkeys, key, intvalue); + grl_data_add_related_keys (data, relkeys); +} + +/** + * grl_data_length: + * @data: a data + * @key: a metadata key + * + * Returns how many values @key or related keys have in @data: if @key has no + * value, but a related key has, then it is counted as positive. + * + * As example, let's think in three related keys, K1, K2 and K3, and then thinks + * we have added several values for those keys, as: + * + * (V10, V20, V30),, (V11, NULL, V31), (V12, NULL, V32) + * + * Therefore, when invoking grl_data_length (data, K2) it will return 3: + * considering K2 and the related keys (K1 and K3), there are 3 values. + * + * Returns: number of values + * + * Since: 0.1.10 + **/ +guint +grl_data_length (GrlData *data, + GrlKeyID key) +{ + GrlKeyID sample_key; + + g_return_val_if_fail (GRL_IS_DATA (data), 0); + g_return_val_if_fail (key, 0); + + sample_key = get_sample_key (key); + if (!sample_key) { + return 0; + } + + return g_list_length (g_hash_table_lookup (data->priv->data, + GRLKEYID_TO_POINTER (sample_key))); +} + +/** + * grl_data_get_related_keys: + * @data: a data + * @key: a metadata key + * @index: element to retrieve, starting at 0 + * + * Returns a set containing the values for @key and related keys at position + * @index from @data. + * + * If user changes any of the values in the related keys, the changes will + * become permanent. + * + * Returns: (transfer none): a #GrlRelatedKeys. Do not free it. + * + * Since: 0.1.10 + **/ +GrlRelatedKeys * +grl_data_get_related_keys (GrlData *data, + GrlKeyID key, + guint index) +{ + GList *relkeys_list; + GrlKeyID sample_key; + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + sample_key = get_sample_key (key); + if (!sample_key) { + return NULL; + } + + relkeys_list = g_hash_table_lookup (data->priv->data, + GRLKEYID_TO_POINTER (sample_key)); + relkeys = g_list_nth_data (relkeys_list, index); + + if (!relkeys) { + GRL_WARNING ("%s: index %u out of range", __FUNCTION__, index); + return NULL; + } + + return relkeys; +} + +/** + * grl_data_get_single_values_for_key: + * @data: a data + * @key: a metadata key + * + * Returns all non-%NULL values for @key from @data. This ignores related keys. + * + * Returns: (element-type GObject.Value) (transfer container): a #GList with + * values. Do not change or free the values. Free the list with #g_list_free. + * + * Since: 0.1.13 + */ +GList * +grl_data_get_single_values_for_key (GrlData *data, + GrlKeyID key) +{ + GList *related_keys; + GList *values = NULL; + GrlKeyID sample_key; + const GValue *v; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + sample_key = get_sample_key (key); + if (!sample_key) { + return NULL; + } + + related_keys = g_hash_table_lookup (data->priv->data, + GRLKEYID_TO_POINTER (sample_key)); + while (related_keys) { + v = grl_related_keys_get (related_keys->data, key); + if (v) { + values = g_list_prepend (values, (gpointer) v); + } + related_keys = g_list_next (related_keys); + } + + return g_list_reverse (values); +} + +/** + * grl_data_get_single_values_for_key_string: + * @data: a data + * @key: a metadata key + * + * Returns all non-%NULL values for @key from @data. @key must have been + * registered as a string-type key. This ignores related keys. + * + * Returns: (element-type utf8) (transfer container): a #GList with values. Do + * not change or free the strings. Free the list with #g_list_free. + * + * Since: 0.1.13 + **/ +GList * +grl_data_get_single_values_for_key_string (GrlData *data, + GrlKeyID key) +{ + GList *list_strings = NULL; + GList *list_values; + GList *value; + const gchar *string_value; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + g_return_val_if_fail (key, NULL); + + /* Verify key is of type string */ + if (GRL_METADATA_KEY_GET_TYPE (key) != G_TYPE_STRING) { + GRL_WARNING ("%s: requested key is not of type string", __FUNCTION__); + return NULL; + } + + list_values = grl_data_get_single_values_for_key (data, key); + for (value = list_values; value; value = g_list_next (value)) { + string_value = g_value_get_string (value->data); + if (string_value) { + list_strings = g_list_prepend (list_strings, (gpointer) string_value); + } + } + + g_list_free (list_values); + + return g_list_reverse (list_strings); +} + +/** + * grl_data_remove_nth: + * @data: a data + * @key: a metadata key + * @index: index of key to be removed, starting at 0 + * + * Removes the value at position @index for @key from @data. If there are other + * keys related to @key, their values at position @index will also be removed + * from @data. + * + * Since: 0.1.10 + **/ +void +grl_data_remove_nth (GrlData *data, + GrlKeyID key, + guint index) +{ + GList *relkeys_element; + GList *relkeys_list; + GrlKeyID sample_key; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (key); + + sample_key = get_sample_key (key); + if (!sample_key) { + return; + } + + relkeys_list = g_hash_table_lookup (data->priv->data, + GRLKEYID_TO_POINTER (sample_key)); + relkeys_element = g_list_nth (relkeys_list, index); + if (!relkeys_element) { + GRL_WARNING ("%s: index %u out of range", __FUNCTION__, index); + return; + } + + g_object_unref (relkeys_element->data); + relkeys_list = g_list_delete_link (relkeys_list, relkeys_element); + g_hash_table_insert (data->priv->data, + GRLKEYID_TO_POINTER (sample_key), + relkeys_list); +} + +/** + * grl_data_set_related_keys: + * @data: a data + * @relkeys: a set of related keys + * @index: position to be updated, starting at 0 + * + * Updates the values at position @index in @data with values in @relkeys. + * + * @data will take ownership of @relkeys, so do not free it after invoking this + * function. + * + * Since: 0.1.10 + **/ +void +grl_data_set_related_keys (GrlData *data, + GrlRelatedKeys *relkeys, + guint index) +{ + GList *keys; + GList *relkeys_element; + GList *relkeys_list; + GrlKeyID sample_key; + + g_return_if_fail (GRL_IS_DATA (data)); + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + + keys = grl_related_keys_get_keys (relkeys); + if (!keys) { + GRL_WARNING ("Trying to set an empty GrlRelatedKeys into GrlData"); + g_object_unref (relkeys); + return; + } + + sample_key = get_sample_key (GRLPOINTER_TO_KEYID (keys->data)); + g_list_free (keys); + if (!sample_key) { + return; + } + + relkeys_list = g_hash_table_lookup (data->priv->data, + GRLKEYID_TO_POINTER (sample_key)); + relkeys_element = g_list_nth (relkeys_list, index); + if (!relkeys_element) { + GRL_WARNING ("%s: index %u out of range", __FUNCTION__, index); + return; + } + + g_object_unref (relkeys_element->data); + relkeys_element->data = relkeys; +} + +/** + * grl_data_dup: + * @data: data to duplicate + * + * Makes a deep copy of @data and all its contents. + * + * Returns: (transfer full): a new #GrlData. Free it with #g_object_unref. + * + * Since: 0.1.10 + **/ +GrlData * +grl_data_dup (GrlData *data) +{ + GList *dup_relkeys_list; + GList *key; + GList *keys; + GList *relkeys_list; + GrlData *dup_data; + + g_return_val_if_fail (GRL_IS_DATA (data), NULL); + + dup_data = grl_data_new (); + keys = g_hash_table_get_keys (data->priv->data); + for (key = keys; key; key = g_list_next (key)) { + dup_relkeys_list = NULL; + relkeys_list = g_hash_table_lookup (data->priv->data, key->data); + while (relkeys_list) { + dup_relkeys_list = + g_list_prepend (dup_relkeys_list, + grl_related_keys_dup (relkeys_list->data)); + relkeys_list = g_list_next (relkeys_list); + } + g_hash_table_insert (dup_data->priv->data, + key->data, + g_list_reverse (relkeys_list)); + } + + g_list_free (keys); + + return dup_data; +} diff --git a/src/data/grl-data.h b/src/data/grl-data.h new file mode 100644 index 0000000..c2cc370 --- /dev/null +++ b/src/data/grl-data.h @@ -0,0 +1,174 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_DATA_H_ +#define _GRL_DATA_H_ + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GRL_TYPE_DATA \ + (grl_data_get_type()) + +#define GRL_DATA(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_DATA, \ + GrlData)) + +#define GRL_DATA_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + GRL_TYPE_DATA, \ + GrlDataClass)) + +#define GRL_IS_DATA(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_DATA)) + +#define GRL_IS_DATA_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + GRL_TYPE_DATA)) + +#define GRL_DATA_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_DATA, \ + GrlDataClass)) + +typedef struct _GrlData GrlData; +typedef struct _GrlDataClass GrlDataClass; +typedef struct _GrlDataPrivate GrlDataPrivate; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlData, g_object_unref) + +struct _GrlData +{ + GObject parent; + + GrlDataPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING_SMALL]; +}; + +/** + * GrlDataClass: + * @parent_class: the parent class structure + * + * Grilo Data class + */ +struct _GrlDataClass +{ + GObjectClass parent_class; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +GType grl_data_get_type (void) G_GNUC_CONST; + +GrlData *grl_data_new (void); + +void grl_data_set (GrlData *data, GrlKeyID key, const GValue *value); + +void grl_data_set_string (GrlData *data, + GrlKeyID key, + const gchar *strvalue); + +void grl_data_set_int (GrlData *data, GrlKeyID key, gint intvalue); + +void grl_data_set_float (GrlData *data, + GrlKeyID key, + gfloat floatvalue); + +void grl_data_set_boolean (GrlData *data, GrlKeyID key, gboolean boolvalue); + +void grl_data_set_binary(GrlData *data, GrlKeyID key, const guint8 *buf, gsize size); + +void grl_data_set_boxed (GrlData *data, GrlKeyID key, gconstpointer boxed); + +void grl_data_set_int64 (GrlData *data, GrlKeyID key, gint64 intvalue); + +gboolean grl_data_set_for_id (GrlData *data, const gchar *key_name, const GValue *value); + +const GValue *grl_data_get (GrlData *data, GrlKeyID key); + +const gchar *grl_data_get_string (GrlData *data, GrlKeyID key); + +gint grl_data_get_int (GrlData *data, GrlKeyID key); + +gfloat grl_data_get_float (GrlData *data, GrlKeyID key); + +gboolean grl_data_get_boolean (GrlData *data, GrlKeyID key); + +const guint8 *grl_data_get_binary(GrlData *data, GrlKeyID key, gsize *size); + +gpointer grl_data_get_boxed (GrlData *data, GrlKeyID key); + +gint64 grl_data_get_int64 (GrlData *data, GrlKeyID key); + +void grl_data_remove (GrlData *data, GrlKeyID key); + +gboolean grl_data_has_key (GrlData *data, GrlKeyID key); + +GList *grl_data_get_keys (GrlData *data); + +void grl_data_add_related_keys (GrlData *data, GrlRelatedKeys *relkeys); + +void grl_data_add_string (GrlData *data, GrlKeyID key, const gchar *strvalue); + +void grl_data_add_int (GrlData *data, GrlKeyID key, gint intvalue); + +void grl_data_add_float (GrlData *data, GrlKeyID key, gfloat floatvalue); + +void grl_data_add_binary (GrlData *data, GrlKeyID key, const guint8 *buf, gsize size); + +void grl_data_add_boxed (GrlData *data, GrlKeyID key, gconstpointer boxed); + +void grl_data_add_int64 (GrlData *data, GrlKeyID key, gint64 intvalue); + +gboolean grl_data_add_for_id (GrlData *data, const gchar *key_name, const GValue *value); + +guint grl_data_length (GrlData *data, GrlKeyID key); + +GrlRelatedKeys *grl_data_get_related_keys (GrlData *data, GrlKeyID key, guint index); + +GList *grl_data_get_single_values_for_key (GrlData *data, GrlKeyID key); + +GList *grl_data_get_single_values_for_key_string (GrlData *data, GrlKeyID key); + +void grl_data_remove_nth (GrlData *data, GrlKeyID key, guint index); + +void grl_data_set_related_keys (GrlData *data, GrlRelatedKeys *relkeys, guint index); + +GrlData *grl_data_dup (GrlData *data); + +G_END_DECLS + +#endif /* _GRL_DATA_H_ */ diff --git a/src/data/grl-media.c b/src/data/grl-media.c new file mode 100644 index 0000000..a2103df --- /dev/null +++ b/src/data/grl-media.c @@ -0,0 +1,3671 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-media + * @short_description: A multimedia data transfer object + * @see_also: #GrlData + * + * This high level class represents a multimedia item. It has methods to + * set and get properties like author, title, description, and so on. + */ + +#include "grl-media.h" +#include "grl-type-builtins.h" +#include +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT media_log_domain +GRL_LOG_DOMAIN(media_log_domain); + +#define RATING_MAX 5.00 +#define SERIAL_STRING_ALLOC 100 + +enum { + PROP_0, + PROP_MEDIA_TYPE +}; + +struct _GrlMediaPrivate { + GrlMediaType media_type; +}; + +static void grl_media_finalize (GObject *object); + +G_DEFINE_TYPE_WITH_PRIVATE (GrlMedia, grl_media, GRL_TYPE_DATA); + +static void +grl_media_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GrlMedia *media = GRL_MEDIA (object); + + switch (prop_id) { + case PROP_MEDIA_TYPE: + media->priv->media_type = g_value_get_enum (value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (media, prop_id, pspec); + break; + } +} + +static void +grl_media_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GrlMedia *media = GRL_MEDIA (object); + + switch (prop_id) { + case PROP_MEDIA_TYPE: + g_value_set_enum (value, media->priv->media_type); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (media, prop_id, pspec); + break; + } +} + +static void +grl_media_class_init (GrlMediaClass *klass) +{ + GObjectClass *gobject_class = (GObjectClass *)klass; + + gobject_class->finalize = grl_media_finalize; + gobject_class->set_property = grl_media_set_property; + gobject_class->get_property = grl_media_get_property; + + /** + * GrlMedia::media-type + * + * The type of the media. + */ + g_object_class_install_property (gobject_class, + PROP_MEDIA_TYPE, + g_param_spec_enum ("media-type", + "Media type", + "Type of media", + GRL_TYPE_MEDIA_TYPE, + GRL_MEDIA_TYPE_UNKNOWN, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); +} + +static void +grl_media_init (GrlMedia *self) +{ + self->priv = grl_media_get_instance_private (self); +} + +static void +grl_media_finalize (GObject *object) +{ + GRL_DEBUG ("grl_media_finalize (%s)", + grl_data_get_string (GRL_DATA (object), + GRL_METADATA_KEY_TITLE)); + g_signal_handlers_destroy (object); + G_OBJECT_CLASS (grl_media_parent_class)->finalize (object); +} + +/** + * grl_media_new: + * + * Creates a new data media object. + * + * Returns: a newly-allocated data media. + **/ +GrlMedia * +grl_media_new (void) +{ + return g_object_new (GRL_TYPE_MEDIA, + "media-type", GRL_MEDIA_TYPE_UNKNOWN, + NULL); +} + +/** + * grl_media_audio_new: + * + * Creates a new media audio object. + * + * Returns: a newly-allocated media audio. + * + * Since: 0.1.4 + **/ +GrlMedia * +grl_media_audio_new (void) +{ + return g_object_new (GRL_TYPE_MEDIA, + "media-type", GRL_MEDIA_TYPE_AUDIO, + NULL); +} + +/** + * grl_media_video_new: + * + * Creates a new media video object. + * + * Returns: a newly-allocated media video. + * + * Since: 0.1.4 + */ +GrlMedia * +grl_media_video_new (void) +{ + return g_object_new (GRL_TYPE_MEDIA, + "media-type", GRL_MEDIA_TYPE_VIDEO, + NULL); +} + +/** + * grl_media_image_new: + * + * Creates a new media image object. + * + * Returns: a newly-allocated media image. + * + * Since: 0.1.4 + **/ +GrlMedia * +grl_media_image_new (void) +{ + return g_object_new (GRL_TYPE_MEDIA, + "media-type", GRL_MEDIA_TYPE_IMAGE, + NULL); +} + +/** + * grl_media_container_new: + * + * Creates a new media container object. + * + * Returns: a newly-allocated media container. + * + * Since: 0.3.0 + **/ +GrlMedia * +grl_media_container_new (void) +{ + return g_object_new (GRL_TYPE_MEDIA, + "media-type", GRL_MEDIA_TYPE_CONTAINER, + NULL); +} + +/** + * grl_media_is_audio: + * @media: a media + * + * Check if @media is an audio + * + * Returns: %TRUE if @media is an audio + * + * Since: 0.3.0 + **/ +gboolean +grl_media_is_audio (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + + return (media->priv->media_type == GRL_MEDIA_TYPE_AUDIO); +} + +/** + * grl_media_is_video: + * @media: a media + * + * Check if @media is a video + * + * Returns: %TRUE if @media is a video + * + * Since: 0.3.0 + **/ +gboolean +grl_media_is_video (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + + return (media->priv->media_type == GRL_MEDIA_TYPE_VIDEO); +} + +/** + * grl_media_is_image: + * @media: a media + * + * Check if @media is an image + * + * Returns: %TRUE if @media is an image + * + * Since: 0.3.0 + **/ +gboolean +grl_media_is_image (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + + return (media->priv->media_type == GRL_MEDIA_TYPE_IMAGE); +} + +/** + * grl_media_is_container: + * @media: a media + * + * Check if @media is a container + * + * Returns: %TRUE if @media is a container + * + * Since: 0.3.0 + **/ +gboolean +grl_media_is_container (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + + return (media->priv->media_type == GRL_MEDIA_TYPE_CONTAINER); +} + +/** + * grl_media_set_rating: + * @media: a media + * @rating: a rating value + * @max: maximum rating value + * + * This method receives a rating and its scale and normalizes it on a scale + * from 0...5 to match the usual five-star rating. + * + * Since: 0.1.5 + */ +void +grl_media_set_rating (GrlMedia *media, gfloat rating, gfloat max) +{ + gfloat normalized_value; + + g_return_if_fail (GRL_IS_MEDIA (media)); + + normalized_value = (rating * RATING_MAX) / max; + grl_data_set_float (GRL_DATA (media), + GRL_METADATA_KEY_RATING, + normalized_value); +} + +/** + * grl_media_set_url_data: + * @media: a #GrlMedia + * @url: the media's URL + * @mime: the @url mime type + * @bitrate: the @url bitrate, or -1 to ignore + * @framerate: media framerate, or -1 to ignore + * @width: media width, or -1 to ignore + * @height: media height, or -1 to ignore + * + * Sets all the keys related with the URL of a media resource in one go. + * + * Since: 0.3.0 + **/ +void +grl_media_set_url_data (GrlMedia *media, + const gchar *url, + const gchar *mime, + gint bitrate, + gfloat framerate, + gint width, + gint height) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_MEDIA (media)); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_string (relkeys, GRL_METADATA_KEY_URL, url); + grl_related_keys_set_string (relkeys, GRL_METADATA_KEY_MIME, mime); + if (bitrate >= 0) { + grl_related_keys_set_int (relkeys, GRL_METADATA_KEY_BITRATE, bitrate); + } + if (framerate >= 0) { + grl_related_keys_set_float (relkeys, GRL_METADATA_KEY_FRAMERATE, framerate); + } + if (width >= 0) { + grl_related_keys_set_int (relkeys, GRL_METADATA_KEY_WIDTH, width); + } + if (height >= 0) { + grl_related_keys_set_int (relkeys, GRL_METADATA_KEY_HEIGHT, height); + } + grl_data_set_related_keys (GRL_DATA (media), relkeys, 0); +} + +/** + * grl_media_add_url_data: + * @media: a #GrlMedia + * @url: a media's URL + * @mime: th @url mime type + * @bitrate: the @url bitrate, or -1 to ignore + * @framerate: media framerate, or -1 to ignore + * @width: media width, or -1 to ignore + * @height: media height, or -1 to ignore + * + * Sets all the keys related with the URL of a media resource and adds it to + * @media (useful for resources with more than one URL). + * + * Since: 0.3.0 + **/ +void +grl_media_add_url_data (GrlMedia *media, + const gchar *url, + const gchar *mime, + gint bitrate, + gfloat framerate, + gint width, + gint height) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_MEDIA (media)); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_string (relkeys, GRL_METADATA_KEY_URL, url); + grl_related_keys_set_string (relkeys, GRL_METADATA_KEY_MIME, mime); + if (bitrate >= 0) { + grl_related_keys_set_int (relkeys, GRL_METADATA_KEY_BITRATE, bitrate); + } + if (framerate >= 0) { + grl_related_keys_set_float (relkeys, GRL_METADATA_KEY_FRAMERATE, framerate); + } + if (width >= 0) { + grl_related_keys_set_int (relkeys, GRL_METADATA_KEY_WIDTH, width); + } + if (height >= 0) { + grl_related_keys_set_int (relkeys, GRL_METADATA_KEY_HEIGHT, height); + } + grl_data_add_related_keys (GRL_DATA (media), relkeys); +} + +/** + * grl_media_add_author: + * @media: a #GrlMedia + * @author: an author for @media + * + * Adds a new author to @media. + * + * Since: 0.1.10 + **/ +void +grl_media_add_author (GrlMedia *media, const gchar *author) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_add_string (GRL_DATA (media), GRL_METADATA_KEY_AUTHOR, author); +} + +/** + * grl_media_add_thumbnail: + * @media: a #GrlMedia + * @thumbnail: a thumbnail for @media + * + * Adds a new thumbnail to @media. + * + * Since: 0.1.10 + **/ +void +grl_media_add_thumbnail (GrlMedia *media, const gchar *thumbnail) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_add_string (GRL_DATA (media), GRL_METADATA_KEY_THUMBNAIL, thumbnail); +} + +/** + * grl_media_add_thumbnail_binary: + * @media: a #GrlMedia + * @thumbnail: a buffer containing the thumbnail for @media + * @size: size of buffer + * + * Adds a new thumbnail to @media. + * + * Since: 0.1.10 + **/ +void +grl_media_add_thumbnail_binary (GrlMedia *media, + const guint8 *thumbnail, + gsize size) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + g_return_if_fail (size == 0 || thumbnail != NULL); + + grl_data_add_binary (GRL_DATA (media), + GRL_METADATA_KEY_THUMBNAIL_BINARY, + thumbnail, + size); +} + +/** + * grl_media_add_external_player: + * @media: a #GrlMedia + * @player: an external player for @media + * + * Adds a new external player to @media. + * + * Since: 0.1.10 + **/ +void +grl_media_add_external_player (GrlMedia *media, const gchar *player) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_add_string (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_PLAYER, + player); +} + +/** + * grl_media_add_external_url: + * @media: a #GrlMedia + * @url: an external url for @media + * + * Adds a new external url to @media. + * + * Since: 0.1.10 + **/ +void +grl_media_add_external_url (GrlMedia *media, const gchar *url) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_add_string (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_URL, + url); +} + +/** + * grl_media_add_keyword: + * @media: a #GrlMedia + * @keyword: a keyword describing the media + * + * Adds the keyword describing the @media. + * + * Since: 0.2.3 + */ +void +grl_media_add_keyword (GrlMedia *media, + const gchar *keyword) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_add_string (GRL_DATA (media), + GRL_METADATA_KEY_KEYWORD, + keyword); +} + +/** + * grl_media_add_artist: + * @media: the media instance + * @artist: an audio's artist + * + * Adds a new artist to @media. + * + * Since: 0.3.0 + **/ +void +grl_media_add_artist (GrlMedia *media, const gchar *artist) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), GRL_METADATA_KEY_ARTIST, artist); +} + +/** + * grl_media_add_genre: + * @media: the media instance + * @genre: an audio's genre + * + * Adds a new genre to @media. + * + * Since: 0.3.0 + **/ +void +grl_media_add_genre (GrlMedia *media, const gchar *genre) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), GRL_METADATA_KEY_GENRE, genre); +} + +/** + * grl_media_add_lyrics: + * @media: the media instance + * @lyrics: an audio's lyrics + * + * Adds a new lyrics to @media. + * + * Since: 0.3.0 + **/ +void +grl_media_add_lyrics (GrlMedia *media, const gchar *lyrics) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), GRL_METADATA_KEY_LYRICS, lyrics); +} + +/** + * grl_media_add_mb_artist_id: + * @media: the media instance + * @mb_artist_id: a MusicBrainz artist identifier + * + * Adds a new MusicBrainz artist id to @media. + * + * Since: 0.3.0 + **/ +void +grl_media_add_mb_artist_id (GrlMedia *media, + const gchar *mb_artist_id) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), GRL_METADATA_KEY_MB_ARTIST_ID, + mb_artist_id); +} + +/** + * grl_media_add_performer: + * @media: a #GrlMedia + * @performer: an actor performing in the movie + * + * Adds the actor performing in the movie. + * + * Since: 0.3.0 + */ +void +grl_media_add_performer (GrlMedia *media, + const gchar *performer) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), + GRL_METADATA_KEY_PERFORMER, + performer); +} + +/** + * grl_media_add_producer: + * @media: a #GrlMedia + * @producer: producer of the movie + * + * Adds the producer of the media. + * + * Since: 0.3.0 + */ +void +grl_media_add_producer (GrlMedia *media, + const gchar *producer) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), + GRL_METADATA_KEY_PRODUCER, + producer); +} + +/** + * grl_media_add_director: + * @media: a #GrlMedia + * @director: director of the movie + * + * Adds the director of the media + * + * Since: 0.3.0 + */ +void +grl_media_add_director (GrlMedia *media, + const gchar *director) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_add_string (GRL_DATA (media), + GRL_METADATA_KEY_DIRECTOR, + director); +} + +/** + * grl_media_serialize: + * @media: a #GrlMedia + * + * Serializes a GrlMedia into a string. It does a basic serialization. + * + * See grl_media_serialize_extended() to get more serialization approaches. + * + * Returns: serialized media + * + * Since: 0.1.6 + **/ +gchar * +grl_media_serialize (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_media_serialize_extended (media, GRL_MEDIA_SERIALIZE_BASIC); +} + +/** + * grl_media_serialize_extended: + * @media: a #GrlMedia + * @serial_type: type of serialization + * @...: media keys to serialize + * + * Serializes a GrlMedia into a string. + * + * See grl_media_unserialize() to recover back the GrlMedia from the string. + * + * If serialization type is @GRL_MEDIA_SERIALIZE_PARTIAL then it requires a + * @GList with the properties to consider in serialization (id and source are + * always considered). + * + * Returns: serialized media + * + * Since: 0.1.6 + **/ +gchar * +grl_media_serialize_extended (GrlMedia *media, + GrlMediaSerializeType serial_type, + ...) +{ + GByteArray *binary_blob; + GList *key; + GList *keylist; + GString *serial; + GrlKeyID grlkey; + GrlRegistry *registry; + GrlRelatedKeys *relkeys; + const GValue *value; + const gchar *id; + const gchar *source; + gchar *base64_blob; + gchar *iso8601_datetime; + gchar *protocol; + gchar *serial_media; + gchar separator = '?'; + guint i; + guint num_values; + va_list va_serial; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + g_return_val_if_fail ((source = grl_media_get_source (media)), NULL); + + /* Check serialization type */ + switch (serial_type) { + case GRL_MEDIA_SERIALIZE_FULL: + registry = grl_registry_get_default (); + keylist = grl_registry_get_metadata_keys (registry); + serial_media = grl_media_serialize_extended (media, + GRL_MEDIA_SERIALIZE_PARTIAL, + keylist); + g_list_free (keylist); + break; + case GRL_MEDIA_SERIALIZE_BASIC: + case GRL_MEDIA_SERIALIZE_PARTIAL: + switch (grl_media_get_media_type (media)) { + case GRL_MEDIA_TYPE_AUDIO: + protocol = "grlaudio://"; + break; + case GRL_MEDIA_TYPE_VIDEO: + protocol = "grlvideo://"; + break; + case GRL_MEDIA_TYPE_IMAGE: + protocol = "grlimage://"; + break; + case GRL_MEDIA_TYPE_CONTAINER: + protocol = "grlcontainer://"; + break; + default: + protocol = "grl"; + } + + /* Build serial string with escaped components */ + serial = g_string_sized_new (SERIAL_STRING_ALLOC); + g_string_assign (serial, protocol); + g_string_append_uri_escaped (serial, source, NULL, TRUE); + id = grl_media_get_id (media); + if (id) { + g_string_append_c (serial, '/'); + g_string_append_uri_escaped (serial, id, NULL, TRUE); + } + + /* Include all properties */ + if (serial_type == GRL_MEDIA_SERIALIZE_PARTIAL) { + + va_start (va_serial, serial_type); + keylist = va_arg (va_serial, GList *); + for (key = keylist; key; key = g_list_next (key)) { + grlkey = GRLPOINTER_TO_KEYID (key->data); + /* Skip id and source keys */ + if (grlkey == GRL_METADATA_KEY_ID || + grlkey == GRL_METADATA_KEY_SOURCE) { + continue; + } + num_values = grl_data_length (GRL_DATA (media), grlkey); + for (i = 0; i < num_values; i++) { + + g_string_append_c (serial, separator); + if (separator == '?') { + separator = '&'; + } + + g_string_append_printf (serial, + "%s=", + GRL_METADATA_KEY_GET_NAME (grlkey)); + + relkeys = grl_data_get_related_keys (GRL_DATA (media), grlkey, i); + if (!grl_related_keys_has_key (relkeys, grlkey)) { + continue; + } + + value = grl_related_keys_get (relkeys, grlkey); + + if (G_VALUE_HOLDS_STRING (value)) { + g_string_append_uri_escaped (serial, + g_value_get_string (value), + NULL, + TRUE); + } else if (G_VALUE_HOLDS_INT (value)) { + g_string_append_printf (serial, "%d", g_value_get_int (value)); + } else if (G_VALUE_HOLDS_FLOAT (value)) { + g_string_append_printf (serial, "%f", g_value_get_float (value)); + } else if (G_VALUE_HOLDS_BOOLEAN (value)) { + g_string_append_printf (serial, "%d", g_value_get_boolean (value)); + } else if (G_VALUE_TYPE (value) == G_TYPE_BYTE_ARRAY) { + binary_blob = g_value_get_boxed (value); + base64_blob = g_base64_encode (binary_blob->data, binary_blob->len); + g_string_append_uri_escaped (serial, + base64_blob, + NULL, + TRUE); + g_free (base64_blob); + } else if (G_VALUE_TYPE (value) == G_TYPE_DATE_TIME) { + iso8601_datetime = g_date_time_format (g_value_get_boxed (value), + "%FT%T"); + g_string_append_uri_escaped (serial, + iso8601_datetime, + NULL, + TRUE); + g_free (iso8601_datetime); + } + } + } + + va_end (va_serial); + } + serial_media = g_string_free (serial, FALSE); + break; + default: + serial_media = NULL; + } + + return serial_media; +} + +static void +_insert_and_free_related_list (GrlKeyID key, + GList *relkeys_list, + GrlData *data) +{ + GList *p = relkeys_list; + + while (p) { + grl_data_add_related_keys (data, (GrlRelatedKeys *) p->data); + p = g_list_next (p); + } + + g_list_free (relkeys_list); +} + +/** + * grl_media_unserialize: + * @serial: a serialized media + * + * Unserializes a GrlMedia. + * + * Returns: (transfer full): the GrlMedia from the serial + * + * Since: 0.1.6 + **/ +GrlMedia * +grl_media_unserialize (const gchar *serial) +{ + GDateTime *datetime; + GHashTable *grlkey_related_table; + GList *keys; + GList *relkeys_list; + GMatchInfo *match_info; + GRegex *query_regex; + GRegex *uri_regex; + GType type_grlkey; + GrlKeyID grlkey; + GrlKeyID grlkey_index; + GrlMedia *media; + GrlRegistry *registry; + GrlRelatedKeys *relkeys; + gboolean append; + gchar *escaped_value; + gchar *keyname; + gchar *protocol; + gchar *query; + gchar *value; + gpointer p; + gsize blob_size; + guchar *blob; + guint *grlkey_count; + + g_return_val_if_fail (serial, NULL); + + uri_regex = + g_regex_new ("^(grl.*):\\/\\/([^\\///?]+)(\\/[^\\?]*)?(?:\\?(.*))?", + G_REGEX_CASELESS, + 0, + NULL); + if (!g_regex_match (uri_regex, serial, 0, &match_info)) { + GRL_WARNING ("Wrong serial %s", serial); + g_regex_unref (uri_regex); + return NULL; + } + + /* Build the media */ + protocol = g_match_info_fetch (match_info, 1); + if (g_strcmp0 (protocol, "grlaudio") == 0) { + media = grl_media_audio_new (); + } else if (g_strcmp0 (protocol, "grlvideo") == 0) { + media = grl_media_video_new (); + } else if (g_strcmp0 (protocol, "grlimage") == 0) { + media = grl_media_image_new (); + } else if (g_strcmp0 (protocol, "grlcontainer") == 0) { + media = grl_media_container_new (); + } else if (g_strcmp0 (protocol, "grl") == 0) { + media = grl_media_new (); + } else { + GRL_WARNING ("Unknown type %s", protocol); + g_match_info_free (match_info); + return NULL; + } + + /* Add source */ + escaped_value = g_match_info_fetch (match_info, 2); + value = g_uri_unescape_string (escaped_value, NULL); + grl_media_set_source (media, value); + g_free (escaped_value); + g_free (value); + + /* Add id */ + escaped_value = g_match_info_fetch (match_info, 3); + if (escaped_value && escaped_value[0] == '/') { + guint len = strlen (escaped_value); + if (len > 2 && escaped_value[len - 1] == '/') + escaped_value[len - 1] = '\0'; + value = g_uri_unescape_string (escaped_value + 1, NULL); + grl_media_set_id (media, value); + g_free (value); + } + g_free (escaped_value); + + /* Check if there are more properties */ + query = g_match_info_fetch (match_info, 4); + g_match_info_free (match_info); + if (query) { + registry = grl_registry_get_default (); + keys = grl_registry_get_metadata_keys (registry); + /* This is a hack: we do it because we know GrlKeyID are actually integers, + and assigned sequentially (0 is for invalid key). This saves us to use a + hashtable to store the counter per key */ + grlkey_count = g_new0 (guint, g_list_length(keys) + 1); + g_list_free (keys); + + /* In this hashtable we enqueue all the GrlRelatedKeys, that will be added + at the end; we can not add them directly because could be we have a + GrlRelatedKeys with no values because one of the properties will come + later; and we can not add empty values in data */ + grlkey_related_table = g_hash_table_new (g_direct_hash, g_direct_equal); + + query_regex = g_regex_new ("([^=&]+)=([^=&]*)", 0, 0, NULL); + g_regex_match (query_regex, query, 0, &match_info); + while (g_match_info_matches (match_info)) { + keyname = g_match_info_fetch (match_info, 1); + grlkey = grl_registry_lookup_metadata_key (registry, keyname); + if (grlkey) { + /* Search for the GrlRelatedKeys to insert the key, or create a new one */ + grlkey_index = + GRLPOINTER_TO_KEYID (g_list_nth_data ((GList *) grl_registry_lookup_metadata_key_relation (registry, grlkey), 0)); + relkeys_list = g_hash_table_lookup (grlkey_related_table, + GRLKEYID_TO_POINTER (grlkey_index)); + p = g_list_nth_data (relkeys_list, grlkey_count[grlkey]); + if (p) { + relkeys = (GrlRelatedKeys *) p; + append = FALSE; + } else { + relkeys = grl_related_keys_new (); + append = TRUE; + } + escaped_value = g_match_info_fetch (match_info, 2); + if (escaped_value && escaped_value[0] != '\0') { + value = g_uri_unescape_string (escaped_value, NULL); + type_grlkey = GRL_METADATA_KEY_GET_TYPE (grlkey); + if (type_grlkey == G_TYPE_STRING) { + grl_related_keys_set_string (relkeys, grlkey, value); + } else if (type_grlkey == G_TYPE_INT) { + grl_related_keys_set_int (relkeys, grlkey, atoi (value)); + } else if (type_grlkey == G_TYPE_FLOAT) { + grl_related_keys_set_float (relkeys, grlkey, atof (value)); + } else if (type_grlkey == G_TYPE_BOOLEAN) { + grl_related_keys_set_boolean (relkeys, grlkey, atoi (value) == 0? FALSE: TRUE); + } else if (type_grlkey == G_TYPE_BYTE_ARRAY) { + blob = g_base64_decode (value, &blob_size); + grl_related_keys_set_binary (relkeys, grlkey, blob, blob_size); + g_free (blob); + } else if (type_grlkey == G_TYPE_DATE_TIME) { + datetime = grl_date_time_from_iso8601 (value); + grl_related_keys_set_boxed (relkeys, grlkey, datetime); + g_date_time_unref (datetime); + } + g_free (escaped_value); + g_free (value); + } + if (append) { + relkeys_list = g_list_append (relkeys_list, relkeys); + g_hash_table_insert (grlkey_related_table, + GRLKEYID_TO_POINTER (grlkey_index), + relkeys_list); + } + grlkey_count[grlkey]++; + } + g_free (keyname); + g_match_info_next (match_info, NULL); + } + /* Now we can add all the GrlRelatedKeys into media */ + g_hash_table_foreach (grlkey_related_table, + (GHFunc) _insert_and_free_related_list, + GRL_DATA (media)); + g_hash_table_unref (grlkey_related_table); + g_match_info_free (match_info); + g_free (query); + g_free (grlkey_count); + } + + return media; +} + +/** + * grl_media_set_id: + * @media: the media + * @id: the identifier of the media + * + * Set the media identifier + * + * Since: 0.1.4 + */ +void +grl_media_set_id (GrlMedia *media, const gchar *id) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_ID, + id); +} + +/** + * grl_media_set_url: + * @media: the media + * @url: the media's URL + * + * Set the media's URL + * + * Since: 0.1.4 + */ +void +grl_media_set_url (GrlMedia *media, const gchar *url) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_URL, + url); +} + +/** + * grl_media_set_author: + * @media: the media + * @author: the media's author + * + * Set the media's author + * + * Since: 0.1.4 + */ +void +grl_media_set_author (GrlMedia *media, const gchar *author) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_AUTHOR, + author); +} + +/** + * grl_media_set_title: + * @media: the media + * @title: the title + * + * Set the media's title + * + * Since: 0.1.4 + */ +void +grl_media_set_title (GrlMedia *media, const gchar *title) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_TITLE, + title); +} + +/** + * grl_media_set_description: + * @media: the media + * @description: the description + * + * Set the media's description + * + * Since: 0.1.4 + */ +void +grl_media_set_description (GrlMedia *media, const gchar *description) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_DESCRIPTION, + description); +} + +/** + * grl_media_set_source: + * @media: the media + * @source: the source + * + * Set the media's source + * + * Since: 0.1.4 + */ +void +grl_media_set_source (GrlMedia *media, const gchar *source) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_SOURCE, + source); +} + +/** + * grl_media_set_thumbnail: + * @media: the media + * @thumbnail: the thumbnail URL + * + * Set the media's thumbnail URL + * + * Since: 0.1.4 + */ +void +grl_media_set_thumbnail (GrlMedia *media, const gchar *thumbnail) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_THUMBNAIL, + thumbnail); +} + +/** + * grl_media_set_thumbnail_binary: + * @media: the media + * @thumbnail: thumbnail buffer + * @size: thumbnail buffer size + * + * Set the media's binary thumbnail + * + * Since: 0.1.9 + */ +void +grl_media_set_thumbnail_binary (GrlMedia *media, + const guint8 *thumbnail, + gsize size) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + g_return_if_fail (size == 0 || thumbnail != NULL); + + grl_data_set_binary (GRL_DATA (media), + GRL_METADATA_KEY_THUMBNAIL_BINARY, + thumbnail, + size); +} + +/** + * grl_media_set_site: + * @media: the media + * @site: the site + * + * Set the media's site. A site is a website about the media such as a + * studio's promotional website for a movie. + * + * Since: 0.1.4 + */ +void +grl_media_set_site (GrlMedia *media, const gchar *site) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_SITE, + site); +} + +/** + * grl_media_set_duration: + * @media: the media + * @duration: the duration in seconds + * + * Set the media's duration + * + * Since: 0.1.4 + */ +void +grl_media_set_duration (GrlMedia *media, gint duration) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_DURATION, + duration); +} + +/** + * grl_media_set_publication_date: + * @media: the media + * @date: the date + * + * Set the publication date of @media. + * + * Since: 0.2.0 + */ +void +grl_media_set_publication_date (GrlMedia *media, const GDateTime *date) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_boxed (GRL_DATA (media), + GRL_METADATA_KEY_PUBLICATION_DATE, + date); +} + +/** + * grl_media_set_region: + * @media: a #GrlMedia + * @region: the region's ISO-3166-1 code + * + * Sets the @region where @media was published. + * + * Since: 0.2.3 + */ +void +grl_media_set_region (GrlMedia *media, + const gchar *region) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_REGION, region); +} + +/** + * grl_media_set_region_data: + * @media: a #GrlMedia + * @region: the region's ISO-3166-1 code + * @publication_date: the publication date + * @certificate: the age certification + * + * Sets regional publication and certification information for @region. + * + * Since: 0.2.3 + */ +void +grl_media_set_region_data (GrlMedia *media, + const gchar *region, + const GDateTime *publication_date, + const gchar *certificate) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_MEDIA (media)); + + relkeys = grl_related_keys_new (); + + grl_related_keys_set_string (relkeys, + GRL_METADATA_KEY_REGION, + region); + grl_related_keys_set_boxed (relkeys, + GRL_METADATA_KEY_PUBLICATION_DATE, + publication_date); + grl_related_keys_set_string (relkeys, + GRL_METADATA_KEY_CERTIFICATE, + certificate); + grl_data_set_related_keys (GRL_DATA (media), relkeys, 0); +} + +/** + * grl_media_add_region_data: + * @media: a #GrlMedia + * @region: the region's ISO-3166-1 code + * @publication_date: the publication date + * @certificate: the age certification + * + * Adds regional publication and certification information for @region. + * + * Since: 0.2.3 + */ +void +grl_media_add_region_data (GrlMedia *media, + const gchar *region, + const GDateTime *publication_date, + const gchar *certificate) +{ + GrlRelatedKeys *relkeys; + + g_return_if_fail (GRL_IS_MEDIA (media)); + + relkeys = grl_related_keys_new (); + grl_related_keys_set_string (relkeys, + GRL_METADATA_KEY_REGION, + region); + grl_related_keys_set_boxed (relkeys, + GRL_METADATA_KEY_PUBLICATION_DATE, + publication_date); + grl_related_keys_set_string (relkeys, + GRL_METADATA_KEY_CERTIFICATE, + certificate); + grl_data_add_related_keys (GRL_DATA (media), relkeys); +} + +/** + * grl_media_set_creation_date: + * @media: the media + * @creation_date: date when media was created + * + * Set the creation_date of the media + * + * Since: 0.2.0 + */ +void +grl_media_set_creation_date (GrlMedia *media, + const GDateTime *creation_date) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_boxed (GRL_DATA (media), + GRL_METADATA_KEY_CREATION_DATE, + creation_date); +} + +/** + * grl_media_set_modification_date: + * @media: the media + * @modification_date: date when the media was last modified + * + * Set the modification date of the media + * + * Since: 0.2.0 + */ +void +grl_media_set_modification_date (GrlMedia *media, + const GDateTime *modification_date) + +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_boxed (GRL_DATA (media), + GRL_METADATA_KEY_MODIFICATION_DATE, + modification_date); +} + +/** + * grl_media_set_mime: + * @media: the media + * @mime: the mime type + * + * Set the media's mime-type + * + * Since: 0.1.4 + */ +void +grl_media_set_mime (GrlMedia *media, const gchar *mime) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_MIME, + mime); +} + +/** + * grl_media_set_play_count: + * @media: the media + * @play_count: the play count + * + * Set the media play count + * + * Since: 0.1.4 + */ +void +grl_media_set_play_count (GrlMedia *media, gint play_count) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_PLAY_COUNT, + play_count); +} + +/** + * grl_media_set_last_played: + * @media: the media + * @last_played: date when the media was last played + * + * Set the media last played date + * + * Since: 0.3.0 + */ +void +grl_media_set_last_played (GrlMedia *media, const GDateTime *last_played) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_boxed (GRL_DATA (media), + GRL_METADATA_KEY_LAST_PLAYED, + last_played); +} + +/** + * grl_media_set_last_position: + * @media: the media + * @last_position: second at which the media playback was interrupted + * + * Set the media last played position + * + * Since: 0.1.4 + */ +void +grl_media_set_last_position (GrlMedia *media, gint last_position) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_LAST_POSITION, + last_position); +} + +/** + * grl_media_set_external_player: + * @media: the media + * @player: location of an external player for this media + * + * Set the location of a player for the media (usually a flash player) + * + * Since: 0.1.6 + */ +void +grl_media_set_external_player (GrlMedia *media, const gchar *player) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_PLAYER, + player); +} + +/** + * grl_media_set_external_url: + * @media: the media + * @url: external location where this media can be played. + * + * Set an external location where users can play the media + * + * Since: 0.1.6 + */ +void +grl_media_set_external_url (GrlMedia *media, const gchar *url) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_URL, + url); +} + +/** + * grl_media_set_studio: + * @media: the media + * @studio: The studio the media is from + * + * Set the media studio + * + * Since: 0.1.6 + */ +void +grl_media_set_studio (GrlMedia *media, const gchar *studio) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_STUDIO, + studio); +} + +/** + * grl_media_set_certificate: + * @media: the media + * @certificate: The age certificate of the media + * + * Set the media's first age certification. + * This should usually be the media's most relevant + * age certificate. Use grl_media_set_region_data() to + * set other age certificates. + * + * Since: 0.1.6 + */ +void +grl_media_set_certificate (GrlMedia *media, const gchar *certificate) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_CERTIFICATE, + certificate); +} + +/** + * grl_media_set_license: + * @media: the media + * @license: The license of the media + * + * Set the media license + * + * Since: 0.1.6 + */ +void +grl_media_set_license (GrlMedia *media, const gchar *license) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_LICENSE, + license); +} + +/** + * grl_media_set_favourite: + * @media: a media + * @favourite: whether the item is favourite or not + * + * Set if the media is favourite or not + * + * Since: 0.2.3 + */ +void +grl_media_set_favourite (GrlMedia *media, gboolean favourite) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_boolean (GRL_DATA (media), + GRL_METADATA_KEY_FAVOURITE, + favourite); +} + +/** + * grl_media_set_keyword: + * @media: a #GrlMedia + * @keyword: a keyword describing the media + * + * Sets the keyword describing the @media. + * + * Since: 0.2.3 + */ +void +grl_media_set_keyword (GrlMedia *media, + const gchar *keyword) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_KEYWORD, + keyword); +} + +/** + * grl_media_set_size: + * @media: the media + * @size: the size in bytes + * + * Set the size of the media + * + * Since: 0.2.10 + */ +void +grl_media_set_size (GrlMedia *media, gint64 size) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_int64 (GRL_DATA (media), + GRL_METADATA_KEY_SIZE, + size); +} + +/** + * grl_media_set_track_number: + * @media: the media instance + * @track_number: the audio's track number + * + * Set the track number of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_track_number (GrlMedia *media, gint track_number) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), GRL_METADATA_KEY_TRACK_NUMBER, + track_number); +} + +/** + * grl_media_set_bitrate: + * @media: the media instance + * @bitrate: the audio's bitrate + * + * Set the bitrate of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_bitrate (GrlMedia *media, gint bitrate) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), GRL_METADATA_KEY_BITRATE, + bitrate); +} + +/** + * grl_media_set_mb_track_id: + * @media: the media instance + * @mb_track_id: the MusicBrainz track identifier + * + * Set the MusicBrainz track identifier of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_mb_track_id (GrlMedia *media, const gchar *mb_track_id) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_MB_TRACK_ID, + mb_track_id); +} + +/** + * grl_media_set_mb_recording_id: + * @media: the media instance + * @mb_recording_id: the MusicBrainz recording identifier + * + * Set the MusicBrainz recording identifier of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_mb_recording_id (GrlMedia *media, + const gchar *mb_recording_id) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_MB_RECORDING_ID, + mb_recording_id); +} + +/** + * grl_media_set_mb_artist_id: + * @media: the media instance + * @mb_artist_id: the MusicBrainz artist identifier + * + * Set the MusicBrainz artist identifier of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_mb_artist_id (GrlMedia *media, const gchar *mb_artist_id) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_MB_ARTIST_ID, + mb_artist_id); +} + +/** + * grl_media_set_mb_album_id: + * @media: the media instance + * @mb_album_id: the MusicBrainz album identifier + * + * Set the MusicBrainz album identifier of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_mb_album_id (GrlMedia *media, const gchar *mb_album_id) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_MB_ALBUM_ID, + mb_album_id); +} + +/** + * grl_media_set_lyrics: + * @media: the media instance + * @lyrics: the audio's lyrics + * + * Set the lyrics of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_lyrics (GrlMedia *media, const gchar *lyrics) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_LYRICS, + lyrics); +} + +/** + * grl_media_set_genre: + * @media: the media instance + * @genre: the audio's genre + * + * Set the genre of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_genre (GrlMedia *media, const gchar *genre) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_GENRE, + genre); +} + +/** + * grl_media_set_album: + * @media: the media instance + * @album: the audio's album + * + * Set the album of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_album (GrlMedia *media, const gchar *album) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_ALBUM, + album); +} + +/** + * grl_media_set_album_artist: + * @media: the media instance + * @album_artist: the audio's album main artist + * + * Set the main artist of the album of the media + * + * Since: 0.3.1 + */ +void +grl_media_set_album_artist (GrlMedia *media, const gchar *album_artist) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_ALBUM_ARTIST, + album_artist); +} + +/** + * grl_media_set_album_disc_number: + * @media: the media instance + * @disc_number: the disc number within an album + * + * Set the disc number of the media for multi-disc album sets. + * + * Since: 0.3.1 + */ +void +grl_media_set_album_disc_number (GrlMedia *media, gint disc_number) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_ALBUM_DISC_NUMBER, + disc_number); +} + +/** + * grl_media_set_artist: + * @media: the media instance + * @artist: the audio's artist + * + * Set the artist of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_artist (GrlMedia *media, const gchar *artist) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_ARTIST, + artist); +} + +/** + * grl_media_set_composer: + * @media: the media instance + * @composer: the audio's composer + * + * Set the composer of the media + * + * Since: 0.3.1 + */ +void +grl_media_set_composer (GrlMedia *media, const gchar *composer) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_COMPOSER, + composer); +} + +/** + * grl_media_set_width: + * @media: the media instance + * @width: the video's width + * + * Set the width of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_width (GrlMedia *media, gint width) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_WIDTH, + width); +} + +/** + * grl_media_set_height: + * @media: the media instance + * @height: the video's height + * + * Set the height of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_height (GrlMedia *media, gint height) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_HEIGHT, + height); +} + +/** + * grl_media_set_framerate: + * @media: the media instance + * @framerate: the video's framerate + * + * Set the framerate of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_framerate (GrlMedia *media, gfloat framerate) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_float (GRL_DATA (media), + GRL_METADATA_KEY_FRAMERATE, + framerate); +} + +/** + * grl_media_set_season: + * @media: the media instance + * @season: the video's season + * + * Sets the season number of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_season (GrlMedia *media, gint season) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_SEASON, + season); +} + +/** + * grl_media_set_episode: + * @media: the media instance + * @episode: the video's episode + * + * Sets the episode number of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_episode (GrlMedia *media, gint episode) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_EPISODE, + episode); +} + +/** + * grl_media_set_episode_title: + * @media: the media instance + * @episode_title: the title of the episode + * + * Sets the title of an media + * + * Since: 0.3.0 + */ +void +grl_media_set_episode_title (GrlMedia *media, + const gchar *episode_title) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_EPISODE_TITLE, + episode_title); +} + +/** + * grl_media_set_show: + * @media: the media instance + * @show: the video's show name + * + * Sets the show title of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_show (GrlMedia *media, const gchar *show) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_SHOW, + show); +} + +/** + * grl_media_set_performer: + * @media: a #GrlMedia + * @performer: an actor performing in the movie + * + * Sets the actor performing in the movie. + * + * Since: 0.3.0 + */ +void +grl_media_set_performer (GrlMedia *media, + const gchar *performer) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_PERFORMER, + performer); +} + +/** + * grl_media_set_producer: + * @media: a #GrlMedia + * @producer: producer of the movie + * + * Sets the producer of the media. + * + * Since: 0.3.0 + */ +void +grl_media_set_producer (GrlMedia *media, const gchar *producer) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_PRODUCER, + producer); +} + +/** + * grl_media_set_director: + * @media: a #GrlMedia + * @director: director of the movie + * + * Sets the director of the media. + * + * Since: 0.3.0 + */ +void +grl_media_set_director (GrlMedia *media, + const gchar *director) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_DIRECTOR, + director); +} + +/** + * grl_media_set_original_title: + * @media: a #GrlMedia + * @original_title: original, untranslated title of the movie + * + * Sets the original, untranslated title of the media. + * + * Since: 0.3.0 + */ +void +grl_media_set_original_title (GrlMedia *media, + const gchar *original_title) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_ORIGINAL_TITLE, + original_title); +} + +/** + * grl_media_set_camera_model: + * @media: the media instance + * @camera_model: model of camera used to take picture + * + * Set the camera_model of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_camera_model (GrlMedia *media, + const gchar *camera_model) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_CAMERA_MODEL, + camera_model); +} + +/** + * grl_media_set_flash_used: + * @media: the media instance + * @flash_used: whether the flash was used + * + * Set the flash_used of the media + * See + * http://library.gnome.org/devel/ontology/unstable/nmm-classes.html#nmm-Flash + * + * Since: 0.3.0 + */ +void +grl_media_set_flash_used (GrlMedia *media, + const gchar *flash_used) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_string (GRL_DATA (media), + GRL_METADATA_KEY_FLASH_USED, + flash_used); +} + +/** + * grl_media_set_exposure_time: + * @media: the media instance + * @exposure_time: picture's exposure time + * + * Set the exposure_time of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_exposure_time (GrlMedia *media, + gfloat exposure_time) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_float (GRL_DATA (media), + GRL_METADATA_KEY_EXPOSURE_TIME, + exposure_time); +} + +/** + * grl_media_set_iso_speed: + * @media: the media instance + * @iso_speed: picture's iso speed + * + * Set the iso_speed of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_iso_speed (GrlMedia *media, + gfloat iso_speed) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_float (GRL_DATA (media), + GRL_METADATA_KEY_ISO_SPEED, + iso_speed); +} + +/** + * grl_media_set_orientation: + * @media: the media instance + * @orientation: degrees clockwise orientation of the picture + * + * Set the orientation of the media + * + * Since: 0.3.0 + */ +void +grl_media_set_orientation (GrlMedia *media, + gint orientation) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_ORIENTATION, + orientation % 360); +} + +/** + * grl_media_set_childcount: + * @media: the media container instance + * @childcount: number of children + * + * Sets the number of children of this container. Use + * #GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN if it is unknown. + * + * Since: 0.3.0 + */ +void +grl_media_set_childcount (GrlMedia *media, + gint childcount) +{ + g_return_if_fail (GRL_IS_MEDIA (media)); + g_return_if_fail (grl_media_is_container (media)); + + if (childcount != GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN) { + grl_data_set_int (GRL_DATA (media), + GRL_METADATA_KEY_CHILDCOUNT, + childcount); + } +} + +/** + * grl_media_get_id: + * @media: the media object + * + * Returns: the media's identifier + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_id (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_ID); +} + +/** + * grl_media_get_url: + * @media: the media object + * + * Returns: the media's URL + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_url (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_URL); +} + +/** + * grl_media_get_url_data: + * @media: the media object + * @mime: (out) (transfer none): the mime-type, or %NULL to ignore. + * @bitrate: (out): the url bitrate, or %NULL to ignore + * @framerate: the url framerate, or %NULL to ignore + * @width: the url width, or %NULL to ignore + * @height: the url height, or %NULL to ignore + * + * Returns: the media's URL and its related properties. + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_url_data (GrlMedia *media, + gchar **mime, + gint *bitrate, + gfloat *framerate, + gint *width, + gint *height) + +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_media_get_url_data_nth (media, + 0, + mime, + bitrate, + framerate, + width, + height); +} + +/** + * grl_media_get_url_data_nth: + * @media: the media object + * @index: element to retrieve + * @mime: (out) (transfer none): the mime-type, or %NULL to ignore. + * @bitrate: (out): the url bitrate, or %NULL to ignore + * @framerate: the url framerate, or %NULL to ignore + * @width: the url width, or %NULL to ignore + * @height: the url height, or %NULL to ignore + * + * Returns: the n-th media's URL and its related properties. + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_url_data_nth (GrlMedia *media, + guint index, + gchar **mime, + gint *bitrate, + gfloat *framerate, + gint *width, + gint *height) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = grl_data_get_related_keys (GRL_DATA (media), GRL_METADATA_KEY_URL, index); + + if (!relkeys) { + return NULL; + } + + if (mime) { + *mime = (gchar *) grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_MIME); + } + + if (bitrate) { + *bitrate = grl_related_keys_get_int (relkeys, GRL_METADATA_KEY_BITRATE); + } + + if (framerate) { + *framerate = grl_related_keys_get_float (relkeys, GRL_METADATA_KEY_FRAMERATE); + } + + if (width) { + *width = grl_related_keys_get_int (relkeys, GRL_METADATA_KEY_WIDTH); + } + + if (height) { + *height = grl_related_keys_get_int (relkeys, GRL_METADATA_KEY_HEIGHT); + } + + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_URL); +} + +/** + * grl_media_get_author: + * @media: the media object + * + * Returns: the media's author + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_author (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_AUTHOR); +} + +/** + * grl_media_get_author_nth: + * @media: the media object + * @index: element to retrieve + * + * Returns: the n-th media's author. + * + * Since: 0.1.10 + */ +const gchar * +grl_media_get_author_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_AUTHOR, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_AUTHOR); + } +} + +/** + * grl_media_get_title: + * @media: the media object + * + * Returns: the media's title + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_title (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_TITLE); +} + +/** + * grl_media_get_description: + * @media: the media object + * + * Returns: the media's description + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_description (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_DESCRIPTION); +} + +/** + * grl_media_get_source: + * @media: the media object source + * + * Returns: the media's source + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_source (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_SOURCE); +} + +/** + * grl_media_get_thumbnail: + * @media: the media object + * + * Returns: the media's thumbnail URL + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_thumbnail (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_THUMBNAIL); +} + +/** + * grl_media_get_thumbnail_nth: + * @media: the media object + * @index: element to retrieve + * + * Returns: the n-th media's thumbnail. + * + * Since: 0.1.10 + */ +const gchar * +grl_media_get_thumbnail_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_THUMBNAIL, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_THUMBNAIL); + } +} + +/** + * grl_media_get_thumbnail_binary: + * @media: the media object + * @size: pointer to storing the thumbnail buffer size + * + * Returns: the media's thumbnail data and set size to the thumbnail buffer size + * + * Since: 0.1.9 + */ +const guint8 * +grl_media_get_thumbnail_binary (GrlMedia *media, gsize *size) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + g_return_val_if_fail (size != NULL, NULL); + + return grl_data_get_binary (GRL_DATA (media), + GRL_METADATA_KEY_THUMBNAIL_BINARY, + size); +} + +/** + * grl_media_get_thumbnail_binary_nth: + * @media: the media object + * @size: pointer to store the thumbnail buffer size + * @index: element to retrieve + * + * Returns: the n-th media's thumbnail binary and sets size to the thumbnail + * buffer size. + * + * Since: 0.1.10 + */ +const guint8 * +grl_media_get_thumbnail_binary_nth (GrlMedia *media, gsize *size, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + g_return_val_if_fail (size != NULL, NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_THUMBNAIL, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_binary (relkeys, + GRL_METADATA_KEY_THUMBNAIL, + size); + } +} + +/** + * grl_media_get_site: + * @media: the media object + * + * Returns: the media's site + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_site (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_SITE); +} + +/** + * grl_media_get_duration: + * @media: the media object + * + * Returns: the media's duration in seconds + * + * Since: 0.1.4 + */ +gint +grl_media_get_duration (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0); + + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_DURATION); +} + +/** + * grl_media_get_publication_date: + * @media: the media object + * + * Returns: (transfer none): the publication date of @media (owned by @media). + * + * Since: 0.2.0 + */ +GDateTime * +grl_media_get_publication_date (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_boxed (GRL_DATA (media), + GRL_METADATA_KEY_PUBLICATION_DATE); +} + +/** + * grl_media_get_region: + * @media: the media object + * + * Returns: (transfer none): the ISO-3166-1 of the region where the media was + * published (owned by @media). + * + * Since: 0.2.3 + */ +const gchar * +grl_media_get_region (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_REGION); +} + +/** + * grl_media_get_region_data: + * @media: the media object + * @publication_date: (out) (transfer none): the publication date, or %NULL to ignore. + * @certificate: (out) (transfer none): the age certification, or %NULL to ignore. + * + * Returns the media's age certificate and publication date for the first region. + * This should usually be the media's most relevant region. + * Use grl_media_get_region_data_nth() to get the age certificate and + * publication date for other regions. + * + * Returns: (transfer none): the ISO-3166-1 of the region where the media was + * published (owned by @media). + * + * Since: 0.2.3 + */ +const gchar * +grl_media_get_region_data (GrlMedia *media, + const GDateTime **publication_date, + const gchar **certificate) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_media_get_region_data_nth (media, 0, publication_date, certificate); +} + +/** + * grl_media_get_region_data_nth: + * @media: the media object + * @index: element to retrieve + * @publication_date: (out) (transfer none): the publication date, or %NULL to ignore. + * @certificate: (out) (transfer none): the age certification, or %NULL to ignore. + * + * Returns the media's age certificate and publication date for one region. + * Use grl_data_length() with GRL_METADATA_KEY_REGION to discover + * how many regions are available. For instance: + * + * + * + * + * Returns: (transfer none): the ISO-3166-1 of the region where the media was + * published (owned by @media). + * + * Since: 0.2.3 + */ +const gchar * +grl_media_get_region_data_nth (GrlMedia *media, + guint index, + const GDateTime **publication_date, + const gchar **certificate) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_PUBLICATION_DATE, + index); + + if (!relkeys) { + return NULL; + } + + if (publication_date) { + *publication_date = grl_related_keys_get_boxed + (relkeys, GRL_METADATA_KEY_PUBLICATION_DATE); + } + + if (certificate) { + *certificate = grl_related_keys_get_string + (relkeys, GRL_METADATA_KEY_CERTIFICATE); + } + + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_REGION); +} + +/** + * grl_media_get_creation_date: + * @media: the media + * + * Returns: (transfer none): date when media was created (owned by @media). + * + * Since: 0.2.0 + */ +GDateTime * +grl_media_get_creation_date (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_boxed (GRL_DATA (media), GRL_METADATA_KEY_CREATION_DATE); +} + +/** + * grl_media_get_modification_date: + * @media: the media + * + * Returns: (transfer none):date when the media was last modified (owned by @media). + * + * Since: 0.2.0 + */ +GDateTime * +grl_media_get_modification_date (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_boxed (GRL_DATA (media), + GRL_METADATA_KEY_MODIFICATION_DATE); +} + +/** + * grl_media_get_mime: + * @media: the media object + * + * Returns: the media's mime-type + * + * Since: 0.1.4 + */ +const gchar * +grl_media_get_mime (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_MIME); +} + +/** + * grl_media_get_rating: + * @media: the media object + * + * Returns: the media's rating + * + * Since: 0.1.5 + */ +gfloat +grl_media_get_rating (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0.0); + + return grl_data_get_float (GRL_DATA (media), GRL_METADATA_KEY_RATING); +} + +/** + * grl_media_get_play_count: + * @media: the media object + * + * Returns: the media's play count + * + * Since: 0.1.4 + */ +gint +grl_media_get_play_count (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0); + + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_PLAY_COUNT); +} + +/** + * grl_media_get_last_position: + * @media: the media object + * + * Returns: the media's last_played position (in seconds) + * + * Since: 0.1.4 + */ +gint +grl_media_get_last_position (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0); + + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_LAST_POSITION); +} + +/** + * grl_media_get_last_played: + * @media: the media object + * + * Returns: the media's last played time + * + * Since: 0.3.0 + */ +GDateTime * +grl_media_get_last_played (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_boxed (GRL_DATA (media), GRL_METADATA_KEY_LAST_PLAYED); +} + +/** + * grl_media_get_player: + * @media: the media object + * + * Returns: URL of an external player + * object for this media + * + * Since: 0.1.6 + */ +const gchar * +grl_media_get_player(GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_PLAYER); +} + +/** + * grl_media_get_player_nth: + * @media: the media object + * @index: element to retrieve + * + * Returns: the n-th media's external player object. + * + * Since: 0.1.10 + */ +const gchar * +grl_media_get_player_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_PLAYER, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, + GRL_METADATA_KEY_EXTERNAL_PLAYER); + } +} + +/** + * grl_media_get_external_url: + * @media: the media object + * + * Returns: URL of an external location + * where the user play the media. + * + * Since: 0.1.6 + */ +const gchar * +grl_media_get_external_url (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_EXTERNAL_URL); +} + +/** + * grl_media_get_external_url_nth: + * @media: the media object + * @index: element to retrieve + * + * Returns: the n-th media's external location where the user can play it. + * + * Since: 0.1.10 + */ +const gchar * +grl_media_get_external_url_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_EXTERNAL_URL, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_EXTERNAL_URL); + } +} + +/** + * grl_media_get_studio: + * @media: the media object + * + * Returns: the studio the media is from + * + * Since: 0.1.6 + */ +const gchar * +grl_media_get_studio(GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_STUDIO); +} + +/** + * grl_media_get_certificate: + * @media: the media object + * + * Returns the media's first age certificate. + * This should usually be the media's most relevant + * age certificate. Use grl_media_get_region_data_nth() to + * get other age certificates. + * + * Returns: the media's age certification + * + * Since: 0.1.6 + */ +const gchar * +grl_media_get_certificate (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_CERTIFICATE); +} + +/** + * grl_media_get_license: + * @media: the media object + * + * Returns: the license the media is under + * + * Since: 0.1.6 + */ +const gchar * +grl_media_get_license (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_LICENSE); +} + +/** + * grl_media_get_start_time: + * @media: the media object + * + * Returns: the start time of the logical media resource inside the + * file containing it, in seconds. + * + * Since: 0.1.19 + */ +gfloat +grl_media_get_start_time (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0.0); + + return grl_data_get_float (GRL_DATA (media), GRL_METADATA_KEY_START_TIME); +} + +/** + * grl_media_get_favourite: + * @media: the media object + * + * Returns: whether the media is favourite or not + * + * Since: 0.2.3 + */ +gboolean +grl_media_get_favourite (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + + return grl_data_get_boolean (GRL_DATA (media), GRL_METADATA_KEY_FAVOURITE); +} + +/** + * grl_media_get_keyword: + * @media: a #GrlMedia + * + * Returns: (transfer none): the keyword describing the @media (owned by @media). + * + * Since: 0.2.3 + */ +const gchar * +grl_media_get_keyword (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_KEYWORD); +} + +/** + * grl_media_get_keyword_nth: + * @media: a #GrlMedia + * @index: element to retrieve + * + * Returns: (transfer none): the keyword describing the @media (owned by @media). + * + * Since: 0.2.3 + */ +const gchar * +grl_media_get_keyword_nth (GrlMedia *media, + guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_KEYWORD, + index); + + if (!relkeys) { + return NULL; + } + + return grl_related_keys_get_string (relkeys, + GRL_METADATA_KEY_KEYWORD); +} + +/** + * grl_media_get_size: + * @media: the media object + * + * Returns: the media's size, in bytes or -1 if unknown. + * + * since: 0.2.10 + */ +gint64 +grl_media_get_size (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), -1); + return grl_data_get_int64 (GRL_DATA (media), GRL_METADATA_KEY_SIZE); +} + +/** + * grl_media_get_track_number: + * @media: the media instance + * + * Returns: the track number of the media + * + * Since: 0.3.0 + */ +gint +grl_media_get_track_number (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_TRACK_NUMBER); +} + +/** + * grl_media_get_bitrate: + * @media: the media instance + * + * Returns: the bitrate of the media + * + * Since: 0.3.0 + */ +gint +grl_media_get_bitrate (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_BITRATE); +} + +/** + * grl_media_get_mb_album_id: + * @media: the media instance + * + * Returns: the MusicBrainz album identifier + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_mb_album_id (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_MB_ALBUM_ID); +} + +/** + * grl_media_get_mb_artist_id: + * @media: the media instance + * + * Returns: the MusicBrainz artist identifier + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_mb_artist_id (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_MB_ARTIST_ID); +} + +/** + * grl_media_get_mb_artist_id_nth: + * @media: the media instance + * @index: element to retrieve, starting at 0 + * + * Returns: the n-th MusicBrainz artist identifier of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_mb_artist_id_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_MB_ARTIST_ID, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_MB_ARTIST_ID); + } +} + +/** + * grl_media_get_mb_recording_id: + * @media: the media instance + * + * Returns: the MusicBrainz recording identifier + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_mb_recording_id (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_MB_RECORDING_ID); +} + +/** + * grl_media_get_mb_track_id: + * @media: the media instance + * + * Returns: the MusicBrainz track identifier + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_mb_track_id (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_MB_TRACK_ID); +} + +/** + * grl_media_get_lyrics: + * @media: the media instance + * + * Returns: the lyrics of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_lyrics (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_LYRICS); +} + +/** + * grl_media_get_lyrics_nth: + * @media: the media instance + * @index: element to retrieve, starting at 0 + * + * Returns: the n-th lyrics of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_lyrics_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_LYRICS, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_LYRICS); + } +} + +/** + * grl_media_get_genre: + * @media: the media instance + * + * Returns: the genre of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_genre (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_GENRE); +} + +/** + * grl_media_get_genre_nth: + * @media: the media instance + * @index: element to retrieve, starting at 0 + * + * Returns: the n-th genre of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_genre_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), GRL_METADATA_KEY_GENRE, index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_GENRE); + } +} + +/** + * grl_media_get_album: + * @media: the media instance + * + * Returns: the album of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_album (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_ALBUM); +} + +/** + * grl_media_get_album_artist: + * @media: the media instance + * + * Returns: the main artist of the album of the media + * + * Since: 0.3.1 + */ +const gchar * +grl_media_get_album_artist (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_ALBUM_ARTIST); +} + +/** + * grl_media_get_album_disc_number: + * @media: the media instance + * + * Returns: the disc number of the media for multi-disc album sets. + * + * Since: 0.3.1 + */ +gint +grl_media_get_album_disc_number (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_ALBUM_DISC_NUMBER); +} + +/** + * grl_media_get_artist: + * @media: the media instance + * + * Returns: the artist of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_artist (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_ARTIST); +} + +/** + * grl_media_get_artist_nth: + * @media: the media instance + * @index: element to retrieve, starting at 0 + * + * Returns: the n-th artist of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_artist_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_ARTIST, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_ARTIST); + } +} + +/** + * grl_media_get_composer: + * @media: the media instance + * + * Returns: the composer of the media + * + * Since: 0.3.1 + */ +const gchar * +grl_media_get_composer (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_COMPOSER); +} + +/** + * grl_media_get_composer_nth: + * @media: the media instance + * @index: element to retrieve, starting at 0 + * + * Returns: the n-th composer of the media + * + * Since: 0.3.1 + */ +const gchar * +grl_media_get_composer_nth (GrlMedia *media, guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_COMPOSER, + index); + + if (!relkeys) { + return NULL; + } else { + return grl_related_keys_get_string (relkeys, GRL_METADATA_KEY_COMPOSER); + } +} + +/** + * grl_media_get_media_type: + * @media: the media instance + * + * Gets the "media-type" property. + * + * Returns: media type + * + * Since: 0.3.0 + */ +GrlMediaType +grl_media_get_media_type (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), GRL_MEDIA_TYPE_UNKNOWN); + + return media->priv->media_type; +} + +/** + * grl_media_get_width: + * @media: the media instance + * + * Returns: the width of the media + * + * Since: 0.3.0 + */ +gint +grl_media_get_width (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_WIDTH); +} + +/** + * grl_media_get_height: + * @media: the media instance + * + * Returns: the height of the media + * + * Since: 0.3.0 + */ +gint +grl_media_get_height (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_HEIGHT); +} + +/** + * grl_media_get_framerate: + * @media: the media instance + * + * Returns: the framerate of the media + * + * Since: 0.3.0 + */ +gfloat +grl_media_get_framerate (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), 0); + return grl_data_get_float (GRL_DATA (media), GRL_METADATA_KEY_FRAMERATE); +} + +/** + * grl_media_get_season: + * @media: the media instance + * + * Returns: the season number of the media + * + * Since: 0.3.0 + */ +gint +grl_media_get_season (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_SEASON); +} + +/** + * grl_media_get_episode: + * @media: the media instance + * + * Returns: the episode number of the media + * + * Since: 0.3.0 + */ +gint +grl_media_get_episode (GrlMedia *media) +{ + g_return_val_if_fail (GRL_MEDIA (media), 0); + return grl_data_get_int (GRL_DATA (media), GRL_METADATA_KEY_EPISODE); +} + +/** + * grl_media_get_episode_title: + * @media: the media instance + * + * Returns: the title of the episode + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_episode_title (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_EPISODE_TITLE); +} + +/** + * grl_media_get_show: + * @media: the media instance + * + * Returns: the show title of the media + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_show (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + return grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_SHOW); +} + +/** + * grl_media_get_performer: + * @media: a #GrlMedia + * + * Returns: (transfer none): the actor performing in the movie (owned by @media). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_performer (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_PERFORMER); +} + +/** + * grl_media_get_performer_nth: + * @media: a #GrlMedia + * @index: element to retrieve + * + * Returns: (transfer none): the actor performing in the movie (owned by @medi). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_performer_nth (GrlMedia *media, + guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_PERFORMER, + index); + + if (!relkeys) { + return NULL; + } + + return grl_related_keys_get_string (relkeys, + GRL_METADATA_KEY_PERFORMER); +} + +/** + * grl_media_get_producer: + * @media: a #GrlMedia + * + * Returns: (transfer none): the producer of the movie (owned by @media). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_producer (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_PRODUCER); +} + +/** + * grl_media_get_producer_nth: + * @media: a #GrlMedia + * @index: element to retrieve + * + * Returns: (transfer none): the producer of the movie (owned by @media). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_producer_nth (GrlMedia *media, + guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_PRODUCER, + index); + + if (!relkeys) { + return NULL; + } + + return grl_related_keys_get_string (relkeys, + GRL_METADATA_KEY_PRODUCER); +} + +/** + * grl_media_get_director: + * @media: a #GrlMedia + * + * Returns: (transfer none): the director of the movie (owned by @media). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_director (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_DIRECTOR); +} + +/** + * grl_media_get_director_nth: + * @media: a #GrlMedia + * @index: element to retrieve + * + * Returns: (transfer none): the director of the movie (owned by @media). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_director_nth (GrlMedia *media, + guint index) +{ + GrlRelatedKeys *relkeys; + + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + + relkeys = + grl_data_get_related_keys (GRL_DATA (media), + GRL_METADATA_KEY_DIRECTOR, + index); + + if (!relkeys) { + return NULL; + } + + return grl_related_keys_get_string (relkeys, + GRL_METADATA_KEY_DIRECTOR); +} + +/** + * grl_media_get_original_title: + * @media: a #GrlMedia + * + * Returns: (transfer none): the original, untranslated title of the movie (owned by @media). + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_original_title (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_ORIGINAL_TITLE); +} + +/** + * grl_media_get_camera_model: + * @media: the media instance + * + * Returns: model of camera used to take picture + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_camera_model (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_CAMERA_MODEL); +} + +/** + * grl_media_get_flash_used: + * @media: the media instance + * + * Returns: whether the flash was used. + * + * See + * http://library.gnome.org/devel/ontology/unstable/nmm-classes.html#nmm-Flash + * + * Since: 0.3.0 + */ +const gchar * +grl_media_get_flash_used (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), NULL); + return grl_data_get_string (GRL_DATA (media), + GRL_METADATA_KEY_FLASH_USED); +} + +/** + * grl_media_get_exposure_time: + * @media: the media instance + * + * Returns: picture's exposure time + * + * Since: 0.3.0 + */ +gfloat +grl_media_get_exposure_time (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0.0); + return grl_data_get_float (GRL_DATA (media), + GRL_METADATA_KEY_EXPOSURE_TIME); +} + +/** + * grl_media_get_iso_speed: + * @media: the media instance + * + * Returns: picture's iso speed + * + * Since: 0.3.0 + */ +gfloat +grl_media_get_iso_speed (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0.0); + return grl_data_get_float (GRL_DATA (media), + GRL_METADATA_KEY_ISO_SPEED); +} + +/** + * grl_media_get_orientation: + * @media: the image instance + * + * Returns: degrees clockwise orientation of the picture + * + * Since: 0.3.0 + */ +gint +grl_media_get_orientation (GrlMedia *media) +{ + g_return_val_if_fail (GRL_IS_MEDIA (media), 0.0); + return grl_data_get_int (GRL_DATA (media), + GRL_METADATA_KEY_ORIENTATION); +} + +/** + * grl_media_get_childcount: + * @media: the media container instance + * + * Number of children of this container. + * + * Returns: number of children, or #GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN if + * unknown. + * + * Since: 0.3.0 + */ +gint +grl_media_get_childcount (GrlMedia *media) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_MEDIA (media), GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN); + g_return_val_if_fail (grl_media_is_container (media), GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN); + + value = grl_data_get (GRL_DATA (media), + GRL_METADATA_KEY_CHILDCOUNT); + + if (value) { + return g_value_get_int (value); + } else { + return GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN; + } +} diff --git a/src/data/grl-media.h b/src/data/grl-media.h new file mode 100644 index 0000000..8392e41 --- /dev/null +++ b/src/data/grl-media.h @@ -0,0 +1,459 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_MEDIA_H_ +#define _GRL_MEDIA_H_ + +#include +#include + +G_BEGIN_DECLS + +#define GRL_TYPE_MEDIA \ + (grl_media_get_type()) + +#define GRL_MEDIA(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_MEDIA, \ + GrlMedia)) + +#define GRL_MEDIA_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + GRL_TYPE_MEDIA, \ + GrlMediaClass)) + +#define GRL_IS_MEDIA(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_MEDIA)) + +#define GRL_IS_MEDIA_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + GRL_TYPE_MEDIA)) + +#define GRL_MEDIA_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_MEDIA, \ + GrlMediaClass)) + +/** + * GrlMediaSerializeType: + * @GRL_MEDIA_SERIALIZE_BASIC: Basic mode + * @GRL_MEDIA_SERIALIZE_PARTIAL: Partial mode + * @GRL_MEDIA_SERIALIZE_FULL: Full mode + * + * GrlMedia serialize type + * + * Since: 0.2.3 + */ +typedef enum { + GRL_MEDIA_SERIALIZE_BASIC, + GRL_MEDIA_SERIALIZE_PARTIAL, + GRL_MEDIA_SERIALIZE_FULL +} GrlMediaSerializeType; + + +typedef struct _GrlMedia GrlMedia; +typedef struct _GrlMediaPrivate GrlMediaPrivate; +typedef struct _GrlMediaClass GrlMediaClass; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlMedia, g_object_unref) + +struct _GrlMedia +{ + GrlData parent; + + /*< private >*/ + GrlMediaPrivate *priv; + gpointer _grl_reserved[GRL_PADDING_SMALL]; +}; + +/** + * GrlMediaClass: + * @parent_class: the parent class structure + * + * Grilo Media Class + */ +struct _GrlMediaClass +{ + GrlDataClass parent_class; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +void grl_media_set_id (GrlMedia *media, const gchar *id); + +void grl_media_set_url (GrlMedia *media, const gchar *url); + +void grl_media_set_author (GrlMedia *media, const gchar *author); + +void grl_media_set_title (GrlMedia *media, const gchar *title); + +void grl_media_set_description (GrlMedia *media, const gchar *description); + +void grl_media_set_source (GrlMedia *media, const gchar *source); + +void grl_media_set_thumbnail (GrlMedia *media, const gchar *thumbnail); + +void grl_media_set_thumbnail_binary (GrlMedia *media, const guint8 *thumbnail, gsize size); + +void grl_media_set_site (GrlMedia *media, const gchar *site); + +void grl_media_set_duration (GrlMedia *media, gint duration); + +void grl_media_set_publication_date (GrlMedia *media, const GDateTime *date); + +void grl_media_set_region (GrlMedia *media, + const gchar *region); + +void grl_media_set_region_data (GrlMedia *media, + const gchar *region, + const GDateTime *publication_date, + const gchar *certificate); + +void grl_media_add_region_data (GrlMedia *media, + const gchar *region, + const GDateTime *publication_date, + const gchar *certificate); + +void grl_media_set_creation_date (GrlMedia *media, + const GDateTime *creation_date); + +void grl_media_set_modification_date (GrlMedia *media, + const GDateTime *modification_date); + +void grl_media_set_mime (GrlMedia *media, const gchar *mime); + +void grl_media_set_play_count (GrlMedia *media, gint play_count); + +void grl_media_set_last_played (GrlMedia *media, const GDateTime *last_played); + +void grl_media_set_last_position (GrlMedia *media, gint last_position); + +void grl_media_set_external_player (GrlMedia *media, const gchar *player); + +void grl_media_set_external_url (GrlMedia *media, const gchar *url); + +void grl_media_set_studio (GrlMedia *media, const gchar *studio); + +void grl_media_set_certificate (GrlMedia *media, const gchar *certificate); + +void grl_media_set_license (GrlMedia *media, const gchar *license); + +void grl_media_set_rating (GrlMedia *media, gfloat rating, gfloat max); + +void grl_media_set_url_data (GrlMedia *media, const gchar *url, const gchar *mime, gint bitrate, gfloat framerate, gint width, gint height); + +void grl_media_set_favourite (GrlMedia *media, gboolean favourite); + +void grl_media_set_keyword (GrlMedia *media, const gchar *keyword); + +void grl_media_set_size (GrlMedia *media, gint64 size); + +void grl_media_set_track_number (GrlMedia *media, gint track_number); + +void grl_media_set_bitrate (GrlMedia *media, gint bitrate); + +void grl_media_set_mb_track_id (GrlMedia *media, const gchar *mb_track_id); + +void grl_media_set_mb_recording_id (GrlMedia *media, const gchar *mb_recording_id); + +void grl_media_set_mb_artist_id (GrlMedia *media, const gchar *mb_artist_id); + +void grl_media_set_mb_album_id (GrlMedia *media, const gchar *mb_album_id); + +void grl_media_set_lyrics (GrlMedia *media, const gchar *lyrics); + +void grl_media_set_genre (GrlMedia *media, const gchar *genre); + +void grl_media_set_album (GrlMedia *media, const gchar *album); + +void grl_media_set_album_artist (GrlMedia *media, const gchar *album_artist); + +void grl_media_set_album_disc_number (GrlMedia *media, gint disc_number); + +void grl_media_set_artist (GrlMedia *media, const gchar *artist); + +void grl_media_set_composer (GrlMedia *media, const gchar *composer); + +void grl_media_set_width (GrlMedia *media, gint width); + +void grl_media_set_height (GrlMedia *media, gint height); + +void grl_media_set_framerate (GrlMedia *media, gfloat framerate); + +void grl_media_set_season (GrlMedia *media, gint season); + +void grl_media_set_episode (GrlMedia *media, gint episode); + +void grl_media_set_episode_title (GrlMedia *media, const gchar *episode_title); + +void grl_media_set_show (GrlMedia *media, const gchar *show); + +void grl_media_set_performer (GrlMedia *media, const gchar *performer); + +void grl_media_set_producer (GrlMedia *media, const gchar *producer); + +void grl_media_set_director (GrlMedia *media, const gchar *director); + +void grl_media_set_original_title (GrlMedia *media, const gchar *original_title); + +void grl_media_set_camera_model (GrlMedia *media, const gchar *camera_model); + +void grl_media_set_flash_used (GrlMedia *media, const gchar *flash_used); + +void grl_media_set_exposure_time (GrlMedia *media, gfloat exposure_time); + +void grl_media_set_iso_speed (GrlMedia *media, gfloat iso_speed); + +void grl_media_set_orientation (GrlMedia *media, gint orientation); + +void grl_media_set_childcount (GrlMedia *media, gint childcount); + +void grl_media_add_url_data (GrlMedia *media, const gchar *url, const gchar *mime, gint bitrate, gfloat framerate, gint width, gint height); + +void grl_media_add_author (GrlMedia *media, const gchar *author); + +void grl_media_add_thumbnail (GrlMedia *media, const gchar *thumbnail); + +void grl_media_add_thumbnail_binary (GrlMedia *media, const guint8 *thumbnail, gsize size); + +void grl_media_add_external_player (GrlMedia *media, const gchar *player); + +void grl_media_add_external_url (GrlMedia *media, const gchar *url); + +void grl_media_add_keyword (GrlMedia *media, const gchar *keyword); + +void grl_media_add_artist (GrlMedia *media, const gchar *artist); + +void grl_media_add_genre (GrlMedia *media, const gchar *genre); + +void grl_media_add_lyrics (GrlMedia *media, const gchar *lyrics); + +void grl_media_add_mb_artist_id (GrlMedia *media, const gchar *mb_artist_id); + +void grl_media_add_performer (GrlMedia *media, const gchar *performer); + +void grl_media_add_producer (GrlMedia *media, const gchar *producer); + +void grl_media_add_director (GrlMedia *media, const gchar *director); + +const gchar *grl_media_get_id (GrlMedia *media); + +const gchar *grl_media_get_url (GrlMedia *media); + +const gchar *grl_media_get_url_data (GrlMedia *media, gchar **mime, gint *bitrate, gfloat *framerate, gint *width, gint *height); + +const gchar *grl_media_get_url_data_nth (GrlMedia *media, guint index, gchar **mime, gint *bitrate, gfloat *framerate, gint *width, gint *height); + +const gchar *grl_media_get_author (GrlMedia *media); + +const gchar *grl_media_get_author_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_title (GrlMedia *media); + +const gchar *grl_media_get_description (GrlMedia *media); + +const gchar *grl_media_get_source (GrlMedia *media); + +const gchar *grl_media_get_thumbnail (GrlMedia *media); + +const gchar *grl_media_get_thumbnail_nth (GrlMedia *media, guint index); + +const guint8 *grl_media_get_thumbnail_binary (GrlMedia *media, gsize *size); + +const guint8 *grl_media_get_thumbnail_binary_nth (GrlMedia *media, gsize *size, guint index); + +const gchar *grl_media_get_site (GrlMedia *media); + +gint grl_media_get_duration (GrlMedia *media); + +GDateTime *grl_media_get_publication_date (GrlMedia *media); + +const gchar *grl_media_get_region (GrlMedia *media); + +const gchar *grl_media_get_region_data(GrlMedia *media, + const GDateTime **publication_date, + const gchar **certificate); + +const gchar *grl_media_get_region_data_nth(GrlMedia *media, + guint index, + const GDateTime **publication_date, + const gchar **certificate); + +GDateTime *grl_media_get_creation_date (GrlMedia *media); + +GDateTime *grl_media_get_modification_date (GrlMedia *media); + +const gchar *grl_media_get_mime (GrlMedia *media); + +gfloat grl_media_get_rating (GrlMedia *media); + +gint grl_media_get_play_count (GrlMedia *media); + +gint grl_media_get_last_position (GrlMedia *media); + +GDateTime *grl_media_get_last_played (GrlMedia *media); + +const gchar *grl_media_get_player (GrlMedia *media); + +const gchar *grl_media_get_player_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_external_url (GrlMedia *media); + +const gchar *grl_media_get_external_url_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_studio (GrlMedia *media); + +const gchar *grl_media_get_certificate (GrlMedia *media); + +const gchar *grl_media_get_license (GrlMedia *media); + +gfloat grl_media_get_start_time (GrlMedia *media); + +gboolean grl_media_get_favourite (GrlMedia *media); + +const gchar *grl_media_get_keyword (GrlMedia *media); + +const gchar * grl_media_get_keyword_nth (GrlMedia *media, guint index); + +gint64 grl_media_get_size (GrlMedia *media); + +gint grl_media_get_track_number (GrlMedia *media); + +gint grl_media_get_bitrate (GrlMedia *media); + +const gchar *grl_media_get_mb_album_id (GrlMedia *media); + +const gchar *grl_media_get_mb_artist_id (GrlMedia *media); + +const gchar *grl_media_get_mb_artist_id_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_mb_recording_id (GrlMedia *media); + +const gchar *grl_media_get_mb_track_id (GrlMedia *media); + +const gchar *grl_media_get_lyrics (GrlMedia *media); + +const gchar *grl_media_get_lyrics_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_genre (GrlMedia *media); + +const gchar *grl_media_get_genre_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_album (GrlMedia *media); + +const gchar *grl_media_get_album_artist (GrlMedia *media); + +gint grl_media_get_album_disc_number (GrlMedia *media); + +const gchar *grl_media_get_artist (GrlMedia *media); + +const gchar *grl_media_get_artist_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_composer (GrlMedia *media); + +const gchar *grl_media_get_composer_nth (GrlMedia *media, guint index); + +GrlMediaType grl_media_get_media_type (GrlMedia *media); + +gint grl_media_get_width (GrlMedia *media); + +gint grl_media_get_height (GrlMedia *media); + +gfloat grl_media_get_framerate (GrlMedia *media); + +gint grl_media_get_season (GrlMedia *media); + +gint grl_media_get_episode (GrlMedia *media); + +const gchar *grl_media_get_episode_title (GrlMedia *media); + +const gchar *grl_media_get_show (GrlMedia *media); + +const gchar *grl_media_get_performer (GrlMedia *media); + +const gchar *grl_media_get_performer_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_producer (GrlMedia *media); + +const gchar *grl_media_get_producer_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_director (GrlMedia *media); + +const gchar *grl_media_get_director_nth (GrlMedia *media, guint index); + +const gchar *grl_media_get_original_title (GrlMedia *media); + +const gchar *grl_media_get_camera_model (GrlMedia *media); + +const gchar *grl_media_get_flash_used (GrlMedia *media); + +gfloat grl_media_get_exposure_time (GrlMedia *media); + +gfloat grl_media_get_iso_speed (GrlMedia *media); + +gint grl_media_get_orientation (GrlMedia *media); + +gint grl_media_get_childcount (GrlMedia *media); + +GType grl_media_get_type (void) G_GNUC_CONST; + +GrlMedia *grl_media_new (void); + +GrlMedia *grl_media_audio_new (void); + +GrlMedia *grl_media_video_new (void); + +GrlMedia *grl_media_image_new (void); + +GrlMedia *grl_media_container_new (void); + +gboolean +grl_media_is_audio (GrlMedia *media); + +gboolean +grl_media_is_video (GrlMedia *media); + +gboolean +grl_media_is_image (GrlMedia *media); + +gboolean +grl_media_is_container (GrlMedia *media); + +gchar *grl_media_serialize (GrlMedia *media); + +gchar *grl_media_serialize_extended (GrlMedia *media, + GrlMediaSerializeType serial_type, + ...); + +GrlMedia *grl_media_unserialize (const gchar *serial); + +G_END_DECLS + +#endif /* _GRL_MEDIA_H_ */ diff --git a/src/data/grl-related-keys.c b/src/data/grl-related-keys.c new file mode 100644 index 0000000..50a8038 --- /dev/null +++ b/src/data/grl-related-keys.c @@ -0,0 +1,765 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-related-keys + * @short_description: A class where to store related metadata keys. + * @see_also: #GrlRegistry, #GrlData + * + * When handling media keys, like artist, URI, mime-type, and so on, some of + * these keys are somewhat related: they do not make sense if they are not + * accompanied by other keys. + * + * For instance, media URI and and mime-type are related keys: mime-type does + * not make sense if it is not accompanied by an URI. Moreover, for each URI + * value, there is a corresponding mime-type value. + * + * #GrlRelatedKeys stores related keys and their values in one place, so user + * can handle them in one shot. + */ + +#include "grl-related-keys.h" +#include "grl-log.h" +#include "grl-registry.h" + +struct _GrlRelatedKeysPrivate { + GHashTable *data; +}; + +static void grl_related_keys_finalize (GObject *object); +static void free_value (GValue *val); + +/* ================ GrlRelatedKeys GObject ================ */ + +G_DEFINE_TYPE_WITH_PRIVATE (GrlRelatedKeys, grl_related_keys, G_TYPE_OBJECT); + +static void +grl_related_keys_class_init (GrlRelatedKeysClass *klass) +{ + GObjectClass *gobject_class = (GObjectClass *)klass; + + gobject_class->finalize = grl_related_keys_finalize; +} + +static void +grl_related_keys_init (GrlRelatedKeys *self) +{ + self->priv = grl_related_keys_get_instance_private (self); + self->priv->data = g_hash_table_new_full (g_direct_hash, + g_direct_equal, + NULL, + (GDestroyNotify) free_value); +} + +static void +grl_related_keys_finalize (GObject *object) +{ + g_hash_table_unref (GRL_RELATED_KEYS (object)->priv->data); + G_OBJECT_CLASS (grl_related_keys_parent_class)->finalize (object); +} + +/* ================ Utitilies ================ */ + +static void +free_value (GValue *val) +{ + if (val) { + g_value_unset (val); + g_free (val); + } +} + +/* ================ API ================ */ + +/** + * grl_related_keys_new: + * + * Creates a new #GrlRelatedKeys instance that can be used to store related + * keys and their values. + * + * Returns: a new object. + * + * Since: 0.1.10 + **/ +GrlRelatedKeys * +grl_related_keys_new (void) +{ + return g_object_new (GRL_TYPE_RELATED_KEYS, NULL); +} + +/** + * grl_related_keys_new_valist: + * @key: first key + * @args: #va_list of value, followed by (key,value) pairs to insert + * + * Creates a new #GrlRelatedKeys containing pairs of (key, value). Finish the + * list with %NULL. + * + * In case of a binary-type key, the expected element is (key, value, size). + * + * value type will be extracted from key information. + * + * Returns: a new #GrlRelatedKeys + * + * Since: 0.1.10 + **/ +GrlRelatedKeys * +grl_related_keys_new_valist (GrlKeyID key, + va_list args) +{ + GType key_type; + GrlKeyID next_key; + GrlRelatedKeys *prop; + gpointer next_value; + + prop = grl_related_keys_new (); + + next_key = key; + while (next_key) { + key_type = GRL_METADATA_KEY_GET_TYPE (next_key); + if (key_type == G_TYPE_STRING) { + grl_related_keys_set_string (prop, next_key, va_arg (args, gchar *)); + } else if (key_type == G_TYPE_INT) { + grl_related_keys_set_int (prop, next_key, va_arg (args, gint)); + } else if (key_type == G_TYPE_FLOAT) { + grl_related_keys_set_float (prop, next_key, va_arg (args, double)); + } else if (key_type == G_TYPE_BOOLEAN) { + grl_related_keys_set_boolean (prop, next_key, va_arg (args, gboolean)); + } else if (key_type == G_TYPE_BYTE_ARRAY) { + next_value = va_arg (args, gpointer); + grl_related_keys_set_binary (prop, + next_key, + next_value, + va_arg (args, gsize)); + } else { + GRL_WARNING ("related key type '%s' not handled", + g_type_name (key_type)); + } + next_key = va_arg (args, GrlKeyID); + } + + return prop; +} + +/** + * grl_related_keys_new_with_keys: (skip) + * @key: first key + * @...: value, following by list of (key, value) + * + * Creates a initial #GrlRelatedKeys containing the list of (key, value) + * pairs. Finish the list with %NULL. + * + * For more information see #grl_related_keys_new_valist. + * + * Returns: a new #GrlRelatedKeys + * + * Since: 0.1.10 + **/ +GrlRelatedKeys * +grl_related_keys_new_with_keys (GrlKeyID key, + ...) +{ + GrlRelatedKeys *prop; + va_list args; + + va_start (args, key); + prop = grl_related_keys_new_valist (key, args); + va_end (args); + + return prop; +} + + +/** + * grl_related_keys_get: + * @relkeys: set of related keys to retrieve value + * @key: (type GrlKeyID): key to look up. + * + * Get the value associated with @key from @relkeys. If it does not contain any + * value, %NULL will be returned. + * + * Returns: (transfer none): a #GValue. This value should not be modified nor + * freed by user. + * + * Since: 0.1.10 + **/ +const GValue * +grl_related_keys_get (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + g_return_val_if_fail (key, NULL); + + return g_hash_table_lookup (relkeys->priv->data, GRLKEYID_TO_POINTER (key)); +} + +/** + * grl_related_keys_set: + * @relkeys: set of related keys to modify + * @key: (type GrlKeyID): key to change or add + * @value: the new value + * + * Sets the value associated with @key into @relkeys. Old value is freed and + * the new one is set. + * + * Also, checks that @value is compliant with @key specification, modifying it + * accordingly. For instance, if @key requires a number between 0 and 10, but + * value is outside this range, it will be adapted accordingly. + * + * Since: 0.1.10 + **/ +void +grl_related_keys_set (GrlRelatedKeys *relkeys, + GrlKeyID key, + const GValue *value) +{ + GValue *copy = NULL; + GrlRegistry *registry; + + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_return_if_fail (key); + + if (!value) { + return; + } + + /* Dup value */ + if (G_VALUE_TYPE (value) != GRL_METADATA_KEY_GET_TYPE (key)) { + GRL_WARNING ("value has type %s, but expected %s", + g_type_name (G_VALUE_TYPE (value)), + g_type_name (GRL_METADATA_KEY_GET_TYPE (key))); + return; + } + + copy = g_new0 (GValue, 1); + g_value_init (copy, G_VALUE_TYPE (value)); + g_value_copy (value, copy); + + registry = grl_registry_get_default (); + + if (!grl_registry_metadata_key_validate (registry, key, copy)) { + GRL_WARNING ("'%s' value invalid, adjusting", + GRL_METADATA_KEY_GET_NAME (key)); + } + g_hash_table_insert (relkeys->priv->data, GRLKEYID_TO_POINTER (key), copy); +} + +/** + * grl_related_keys_set_string: + * @relkeys: set of related keys to modify + * @key: (type GrlKeyID): key to change or add + * @strvalue: the new value + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as a strying-type key. Old value is freed and the new one is set. + * + * Since: 0.1.10 + **/ +void +grl_related_keys_set_string (GrlRelatedKeys *relkeys, + GrlKeyID key, + const gchar *strvalue) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + + if (strvalue) { + g_value_init (&value, G_TYPE_STRING); + g_value_set_string (&value, strvalue); + grl_related_keys_set (relkeys, key, &value); + g_value_unset (&value); + } +} + +/** + * grl_related_keys_get_string: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * or value is not string, or @key is not in @relkeys, then %NULL is returned. + * + * Returns: string associated with @key, or %NULL in other case. Caller should + * not change nor free the value. + * + * Since: 0.1.10 + **/ +const gchar * +grl_related_keys_get_string (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + + value = grl_related_keys_get (relkeys, key); + + if (!value || !G_VALUE_HOLDS_STRING (value)) { + return NULL; + } else { + return g_value_get_string (value); + } +} + +/** + * grl_related_keys_set_int: + * @relkeys: set of related keys to change + * @key: (type GrlKeyID): key to change or add + * @intvalue: the new value + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as an int-type key. Old value is replaced by the new one. + * + * Since: 0.1.10 + **/ +void +grl_related_keys_set_int (GrlRelatedKeys *relkeys, + GrlKeyID key, + gint intvalue) +{ + GValue value = { 0 }; + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_value_init (&value, G_TYPE_INT); + g_value_set_int (&value, intvalue); + grl_related_keys_set (relkeys, key, &value); +} + +/** + * grl_related_keys_get_int: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * or value is not a gint, or @key is not in @relkeys, then 0 is returned. + * + * Returns: int value associated with @key, or 0 in other case. + * + * Since: 0.1.10 + **/ +gint +grl_related_keys_get_int (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), 0); + + value = grl_related_keys_get (relkeys, key); + + if (!value || !G_VALUE_HOLDS_INT (value)) { + return 0; + } else { + return g_value_get_int (value); + } +} + +/** + * grl_related_keys_set_float: + * @relkeys: set of related keys to change + * @key: (type GrlKeyID): key to change or add + * @floatvalue: the new value + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as a float-type key. Old value is replaced by the new one. + * + * Since: 0.1.10 + **/ +void +grl_related_keys_set_float (GrlRelatedKeys *relkeys, + GrlKeyID key, + float floatvalue) +{ + GValue value = { 0 }; + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_value_init (&value, G_TYPE_FLOAT); + g_value_set_float (&value, floatvalue); + grl_related_keys_set (relkeys, key, &value); +} + +/** + * grl_related_keys_get_float: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * or value is not a gfloat, or @key is not in @relkeys, then 0 is returned. + * + * Returns: float value associated with @key, or 0 in other case. + * + * Since: 0.1.10 + **/ +gfloat +grl_related_keys_get_float (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), 0.0); + + value = grl_related_keys_get (relkeys, key); + + if (!value || !G_VALUE_HOLDS_FLOAT (value)) { + return 0; + } else { + return g_value_get_float (value); + } +} + +/** + * grl_related_keys_set_boolean: + * @relkeys: set of related keys to change + * @key: (type GrlKeyID): key to change or add + * @booleanvalue: the new value + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as a boolean-type key. Old value is replaced by the new one. + * + * Since: 0.2.3 + **/ +void +grl_related_keys_set_boolean (GrlRelatedKeys *relkeys, + GrlKeyID key, + gboolean booleanvalue) +{ + GValue value = { 0 }; + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_value_init (&value, G_TYPE_BOOLEAN); + g_value_set_boolean (&value, booleanvalue); + grl_related_keys_set (relkeys, key, &value); +} + +/** + * grl_related_keys_get_boolean: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * or value is not a gboolean, or @key is not in @relkeys, then %FALSE is + * returned. + * + * Returns: float value associated with @key, or %FALSE in other case. + * + * Since: 0.2.3 + **/ +gboolean +grl_related_keys_get_boolean (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), FALSE); + + value = grl_related_keys_get (relkeys, key); + + if (!value || !G_VALUE_HOLDS_BOOLEAN (value)) { + return FALSE; + } else { + return g_value_get_boolean (value); + } +} + +/** + * grl_related_keys_set_binary: + * @relkeys: set of related keys to change + * @key: (type GrlKeyID): key to change or add + * @buf: buffer holding the relkeys + * @size: size of the buffer + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as a binary-type key. Old value is replaced by the new one. + * + * Since: 0.1.10 + **/ +void +grl_related_keys_set_binary (GrlRelatedKeys *relkeys, + GrlKeyID key, + const guint8 *buf, + gsize size) +{ + GValue v = { 0 }; + GByteArray *array; + + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + + if (!buf || !size) { + return; + } + + array = g_byte_array_append (g_byte_array_sized_new(size), + buf, + size); + + g_value_init (&v, g_byte_array_get_type ()); + g_value_take_boxed (&v, array); + grl_related_keys_set (relkeys, key, &v); + g_value_unset (&v); +} + +/** + * grl_related_keys_get_binary: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to use + * @size: (out): location to store the buffer size + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * or value is not a binary, or @key is not in @relkeys, then 0 is returned. + * + * Returns: buffer location associated with @key, or %NULL in other case. If + * successful @size will be set to the buffer size. + * + * Since: 0.1.10 + **/ +const guint8 * +grl_related_keys_get_binary (GrlRelatedKeys *relkeys, + GrlKeyID key, + gsize *size) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + g_return_val_if_fail (size, NULL); + + value = grl_related_keys_get (relkeys, key); + + + if (!value || !G_VALUE_HOLDS_BOXED (value)) { + return NULL; + } else { + GByteArray * array; + + array = g_value_get_boxed (value); + *size = array->len; + return (const guint8 *) array->data; + } +} + +/** + * grl_related_keys_set_boxed: + * @relkeys: set of related keys to modify + * @key: key to change or add + * @boxed: the new value + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as a boxed-type key. Old value is freed and the new one is set. + * + * Since: 0.2.0 + */ +void +grl_related_keys_set_boxed (GrlRelatedKeys *relkeys, + GrlKeyID key, + gconstpointer boxed) +{ + GValue value = { 0 }; + + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_return_if_fail (boxed != NULL); + + g_value_init (&value, grl_metadata_key_get_type (key)); + g_value_set_boxed (&value, boxed); + grl_related_keys_set (relkeys, key, &value); + g_value_unset (&value); +} + +/** + * grl_related_keys_get_boxed: + * @relkeys: set of related keys to inspect + * @key: key to use + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * the value is not of a boxed type, or @key is not in @relkeys, then %NULL is + * returned. + * + * Returns: (transfer none): the #GBoxed value associated with @key if + * possible, or %NULL in other case. The caller should not change nor free the + * value. + * + * Since: 0.2.0 + */ +gconstpointer +grl_related_keys_get_boxed (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + + value = grl_related_keys_get (relkeys, key); + + if (!value || !G_VALUE_HOLDS_BOXED (value)) { + return NULL; + } else { + return g_value_get_boxed (value); + } +} + +/** + * grl_related_keys_set_int64: + * @relkeys: set of related keys to change + * @key: (type GrlKeyID): key to change or add + * @intvalue: the new value + * + * Sets the value associated with @key into @relkeys. @key must have been + * registered as a int64-type key. Old value is replaced by the new one. + * + * Since: 0.2.12 + **/ +void +grl_related_keys_set_int64 (GrlRelatedKeys *relkeys, + GrlKeyID key, + gint64 intvalue) +{ + GValue value = { 0 }; + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_value_init (&value, G_TYPE_INT64); + g_value_set_int64 (&value, intvalue); + grl_related_keys_set (relkeys, key, &value); +} + +/** + * grl_related_keys_get_int64: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to use + * + * Returns the value associated with @key from @relkeys. If @key has no value, + * or value is not a gint64, or @key is not in @relkeys, then 0 is returned. + * + * Returns: int64 value associated with @key, or 0 in other case. + * + * Since: 0.2.12 + **/ +gint64 +grl_related_keys_get_int64 (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + const GValue *value; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), 0); + + value = grl_related_keys_get (relkeys, key); + + if (!value || !G_VALUE_HOLDS_INT64 (value)) { + return 0; + } else { + return g_value_get_int64 (value); + } +} + +/** + * grl_related_keys_remove: + * @relkeys: set of related keys + * @key: (type GrlKeyID): key to remove + * + * Removes @key from @relkeys set. + * + * Since: 0.2.3 + **/ +void +grl_related_keys_remove (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + g_return_if_fail (GRL_IS_RELATED_KEYS (relkeys)); + g_return_if_fail (key != GRL_METADATA_KEY_INVALID); + + g_hash_table_remove (relkeys->priv->data, GRLKEYID_TO_POINTER (key)); +} + +/** + * grl_related_keys_has_key: + * @relkeys: set of related keys to inspect + * @key: (type GrlKeyID): key to search + * + * Checks if @key is in @relkeys. + * + * Returns: %TRUE if @key is in @relkeys, %FALSE in other case. + * + * Since: 0.1.10 + **/ +gboolean +grl_related_keys_has_key (GrlRelatedKeys *relkeys, + GrlKeyID key) +{ + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), FALSE); + + return g_hash_table_lookup_extended (relkeys->priv->data, + GRLKEYID_TO_POINTER (key), + NULL, NULL); +} + +/** + * grl_related_keys_get_keys: + * @relkeys: set of related keys to inspect + * + * Returns a list with keys contained in @relkeys. + * + * Returns: (transfer container) (element-type GrlKeyID): a list with + * the keys. The content of the list should not be modified or freed. Use + * g_list_free() when done using the list. + * + * Since: 0.1.13 + **/ +GList * +grl_related_keys_get_keys (GrlRelatedKeys *relkeys) +{ + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + + return g_hash_table_get_keys (relkeys->priv->data); +} + +/** + * grl_related_keys_dup: + * @relkeys: set of related keys to duplicate + * + * Makes a deep copy of @relkeys and its contents. + * + * Returns: (transfer full): a new #GrlRelatedKeys. + * Free it with #g_object_unref. + * + * Since: 0.1.10 + **/ +GrlRelatedKeys * +grl_related_keys_dup (GrlRelatedKeys *relkeys) +{ + GList *keys, *key; + const GValue *value; + GValue *value_copy; + GrlRelatedKeys *dup_relkeys; + + g_return_val_if_fail (GRL_IS_RELATED_KEYS (relkeys), NULL); + + dup_relkeys = grl_related_keys_new (); + + keys = grl_related_keys_get_keys (relkeys); + for (key = keys; key; key = g_list_next (key)) { + value = grl_related_keys_get (relkeys, GRLPOINTER_TO_KEYID (key->data)); + value_copy = g_new0 (GValue, 1); + g_value_init (value_copy, G_VALUE_TYPE (value)); + g_value_copy (value, value_copy); + g_hash_table_insert (dup_relkeys->priv->data, key->data, value_copy); + } + + g_list_free (keys); + + return dup_relkeys; +} diff --git a/src/data/grl-related-keys.h b/src/data/grl-related-keys.h new file mode 100644 index 0000000..c370bb6 --- /dev/null +++ b/src/data/grl-related-keys.h @@ -0,0 +1,172 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * Authors: Juan A. Suarez Romero + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_RELATED_KEYS_H_ +#define _GRL_RELATED_KEYS_H_ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GRL_TYPE_RELATED_KEYS \ + (grl_related_keys_get_type()) + +#define GRL_RELATED_KEYS(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_RELATED_KEYS, \ + GrlRelatedKeys)) + +#define GRL_RELATED_KEYS_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + GRL_TYPE_RELATED_KEYS, \ + GrlRelatedKeysClass)) + +#define GRL_IS_RELATED_KEYS(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_RELATED_KEYS)) + +#define GRL_IS_RELATED_KEYS_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + GRL_TYPE_RELATED_KEYS)) + +#define GRL_RELATED_KEYS_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_RELATED_KEYS, \ + GrlRelatedKeysClass)) + +typedef struct _GrlRelatedKeys GrlRelatedKeys; +typedef struct _GrlRelatedKeysPrivate GrlRelatedKeysPrivate; +typedef struct _GrlRelatedKeysClass GrlRelatedKeysClass; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlRelatedKeys, g_object_unref) + +struct _GrlRelatedKeys +{ + GObject parent; + + /*< private >*/ + GrlRelatedKeysPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING_SMALL]; +}; + +/** + * GrlRelatedKeysClass: + * @parent_class: the parent class structure + * + * Grilo Data Multivalued class + */ +struct _GrlRelatedKeysClass +{ + GObjectClass parent_class; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +GType grl_related_keys_get_type (void) G_GNUC_CONST; + +GrlRelatedKeys *grl_related_keys_new (void); + +GrlRelatedKeys *grl_related_keys_new_valist (GrlKeyID key, va_list args); + +GrlRelatedKeys *grl_related_keys_new_with_keys (GrlKeyID key, ...); + +void grl_related_keys_set (GrlRelatedKeys *relkeys, + GrlKeyID key, + const GValue *value); + +void grl_related_keys_set_string (GrlRelatedKeys *relkeys, + GrlKeyID key, + const gchar *strvalue); + +void grl_related_keys_set_int (GrlRelatedKeys *relkeys, + GrlKeyID key, + gint intvalue); + +void grl_related_keys_set_float (GrlRelatedKeys *relkeys, + GrlKeyID key, + gfloat floatvalue); + +void grl_related_keys_set_boolean (GrlRelatedKeys *relkeys, + GrlKeyID key, + gboolean booleanvalue); + +void grl_related_keys_set_binary(GrlRelatedKeys *relkeys, + GrlKeyID key, + const guint8 *buf, + gsize size); + +void grl_related_keys_set_boxed (GrlRelatedKeys *relkeys, + GrlKeyID key, + gconstpointer boxed); + +void grl_related_keys_set_int64 (GrlRelatedKeys *relkeys, + GrlKeyID key, + gint64 intvalue); + +const GValue *grl_related_keys_get (GrlRelatedKeys *relkeys, + GrlKeyID key); + +const gchar *grl_related_keys_get_string (GrlRelatedKeys *relkeys, + GrlKeyID key); + +gint grl_related_keys_get_int (GrlRelatedKeys *relkeys, + GrlKeyID key); + +gfloat grl_related_keys_get_float (GrlRelatedKeys *relkeys, + GrlKeyID key); + +gboolean grl_related_keys_get_boolean (GrlRelatedKeys *relkeys, + GrlKeyID key); + +const guint8 *grl_related_keys_get_binary(GrlRelatedKeys *relkeys, + GrlKeyID key, + gsize *size); + +gconstpointer grl_related_keys_get_boxed (GrlRelatedKeys *relkeys, + GrlKeyID key); + +gint64 grl_related_keys_get_int64 (GrlRelatedKeys *relkeys, + GrlKeyID key); + +void grl_related_keys_remove (GrlRelatedKeys *relkeys, + GrlKeyID key); + +gboolean grl_related_keys_has_key (GrlRelatedKeys *relkeys, + GrlKeyID key); + +GList *grl_related_keys_get_keys (GrlRelatedKeys *relkeys); + +GrlRelatedKeys *grl_related_keys_dup (GrlRelatedKeys *relkeys); + +G_END_DECLS + +#endif /* _GRL_RELATED_KEYS_H_ */ diff --git a/src/grilo.c b/src/grilo.c new file mode 100644 index 0000000..32f7322 --- /dev/null +++ b/src/grilo.c @@ -0,0 +1,236 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grilo + * @short_description: Metadata library supporting several services + * + * Grilo is a metadata retrieval library. Given a search or browse operation, + * the library will retrieve a set of metadata related to the operation from a + * set of on-line services. + * + * The Grilo library should be initialized with grl_init() before it can be used. + * You should pass pointers to the main argc and argv variables so that Grilo can + * process its own command line options. + * + * After using it, in order to close cleanly all the resources opened either by + * the core library or the sources, call grl_deinit(). + */ + +#include "grilo.h" +#include "grl-metadata-key-priv.h" +#include "grl-operation-priv.h" +#include "grl-registry-priv.h" +#include "grl-log-priv.h" +#include "config.h" + +#include + +static gboolean grl_initialized = FALSE; +static const gchar *plugin_path = NULL; +static const gchar *plugin_list = NULL; + +static const gchar * +get_default_plugin_dir (void) +{ +#ifdef G_OS_WIN32 + static gchar *plugin_dir = NULL; + gchar *run_directory; + + if (plugin_dir) + return plugin_dir; + + run_directory = g_win32_get_package_installation_directory_of_module (NULL); + plugin_dir = g_build_filename (run_directory, + "lib", GRL_NAME, + NULL); + g_free (run_directory); + return plugin_dir; +#else + return GRL_PLUGINS_DIR; +#endif +} + +static gboolean +pre_parse_hook_cb (GOptionContext *context, + GOptionGroup *group, + gpointer data, + GError **error) +{ + /* Initialize i18n */ + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + + /* Initialize operations */ + grl_operation_init (); + + return TRUE; +} + +static gboolean +post_parse_hook_cb (GOptionContext *context, + GOptionGroup *group, + gpointer data, + GError **error) +{ + GrlRegistry *registry; + gchar **split_element; + gchar **split_list; + + /* Initialize GModule */ + if (!g_module_supported ()) { + GRL_ERROR ("GModule not supported in this system"); + } + + /* Setup core log domains */ + _grl_log_init_core_domains (); + + /* Register default metadata keys */ + registry = grl_registry_get_default (); + grl_metadata_key_setup_system_keys (registry); + + /* Set default plugin directories */ + if (!plugin_path) { + plugin_path = g_getenv (GRL_PLUGIN_PATH_VAR); + } + + if (!plugin_path) { + plugin_path = get_default_plugin_dir (); + } + + split_list = g_strsplit (plugin_path, G_SEARCHPATH_SEPARATOR_S, 0); + for (split_element = split_list; *split_element; split_element++) { + grl_registry_add_directory (registry, *split_element); + } + g_strfreev (split_list); + + /* Restrict plugins to load */ + if (!plugin_list) { + plugin_list = g_getenv (GRL_PLUGIN_LIST_VAR); + } + + if (plugin_list) { + split_list = g_strsplit (plugin_list, ":", 0); + grl_registry_restrict_plugins (registry, split_list); + g_strfreev (split_list); + } + + grl_initialized = TRUE; + + return TRUE; +} + +/** + * grl_init: + * @argc: (inout) (allow-none): number of input arguments, length of @argv + * @argv: (inout) (element-type utf8) (array length=argc) (allow-none) (transfer none): list of arguments + * + * Initializes the Grilo library + * + * Since: 0.1.6 + */ +void +grl_init (gint *argc, + gchar **argv[]) +{ + GOptionContext *ctx; + GOptionGroup *group; + + if (grl_initialized) { + GRL_DEBUG ("already initialized grl"); + return; + } + + /* Check options */ + ctx = g_option_context_new ("- Grilo initialization"); + g_option_context_set_ignore_unknown_options (ctx, TRUE); + group = grl_init_get_option_group (); + g_option_context_add_group (ctx, group); + g_option_context_parse (ctx, argc, argv, NULL); + g_option_context_free (ctx); +} + +/** + * grl_deinit: + * + * Deinitializes the Grilo library. + * + * Call this function after finalizing using Grilo, in order to free and clean + * up all the resources created. + * + * Since: 0.2.8 + */ +void +grl_deinit (void) +{ + GrlRegistry *registry; + + if (!grl_initialized) { + GRL_WARNING ("Grilo has not been initialized"); + return; + } + + registry = grl_registry_get_default (); + grl_registry_shutdown (registry); + grl_initialized = FALSE; +} + +/** + * grl_init_get_option_group: + * + * Returns a #GOptionGroup with Grilo's argument specifications. + * + * This function is useful if you want to integrate Grilo with other + * libraries that use the GOption commandline parser + * (see g_option_context_add_group() ). + * + * Returns: a pointer to Grilo's option group. Should be dereferenced + * after use. + * + * Since: 0.1.6 + */ +GOptionGroup * +grl_init_get_option_group (void) +{ + GOptionGroup *group; + static const GOptionEntry grl_args[] = { + { "grl-plugin-path", 0, 0, G_OPTION_ARG_STRING, &plugin_path, +#ifdef G_OS_WIN32 + N_("Semicolon-separated paths containing Grilo plugins"), NULL }, +#else + N_("Colon-separated paths containing Grilo plugins"), NULL }, +#endif + { "grl-plugin-use", 0, 0, G_OPTION_ARG_STRING, &plugin_list, + N_("Colon-separated list of Grilo plugins to use"), NULL }, + { NULL } + }; + + group = g_option_group_new ("grl", + _("Grilo Options"), + _("Show Grilo Options"), + NULL, + NULL); + g_option_group_add_entries (group, grl_args); + g_option_group_set_parse_hooks (group, pre_parse_hook_cb, post_parse_hook_cb); + + return group; +} diff --git a/src/grilo.h b/src/grilo.h new file mode 100644 index 0000000..86680b8 --- /dev/null +++ b/src/grilo.h @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRILO_H_ +#define _GRILO_H_ + +#define _GRILO_H_INSIDE_ + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#undef _GRILO_H_INSIDE_ + +G_BEGIN_DECLS + +void grl_init (gint *argc, gchar **argv[]); + +void grl_deinit (void); + +GOptionGroup *grl_init_get_option_group (void); + +G_END_DECLS + +#endif /* _GRILO_H_ */ diff --git a/src/grl-caps.c b/src/grl-caps.c new file mode 100644 index 0000000..3902aa6 --- /dev/null +++ b/src/grl-caps.c @@ -0,0 +1,308 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-caps + * @short_description: Describes the capabilities of a source for a given + * operation. + * @see_also: #GrlOperationOptions, grl_source_get_caps() + * + * A #GrlCaps instance is here to help you know if a given set of operation + * options is supported for a given operation. + * + * Here is an example of how this would be used. + * |[ + * GrlCaps *caps = grl_source_get_caps (GRL_SOURCE (my_source), + * GRL_OP_SEARCH); + * GrlOperationOptions *supported_options; + * if (grl_operation_options_obey_caps (my_options, caps, &supported_options, NULL)) + * grl_media_source_search (my_source, "blah", interesting_keys, my_options, ...); + * else // only use a subset of the options we wanted to pass + * grl_media_source_search (my_source, "blah", interesting_keys, supported_options, ...); + * ]| + * + * A #GrlCaps can also be passed to grl_operation_options_new(). The created + * #GrlOperationOptions instance would then check any change against its caps. + * + */ +#include +#include + +#include "grl-operation-options-priv.h" +#include "grl-type-builtins.h" + +#define GRL_CAPS_KEY_PAGINATION "pagination" +#define GRL_CAPS_KEY_FLAGS "flags" + +struct _GrlCapsPrivate { + GHashTable *data; + GrlTypeFilter type_filter; + GList *key_filter; + GList *key_range_filter; +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GrlCaps, grl_caps, G_TYPE_OBJECT); + +static void +grl_caps_dispose (GrlCaps *self) +{ + G_OBJECT_CLASS (grl_caps_parent_class)->dispose ((GObject *) self); +} + +static void +grl_caps_finalize (GrlCaps *self) +{ + g_hash_table_unref (self->priv->data); + g_list_free (self->priv->key_filter); + g_list_free (self->priv->key_range_filter); + + G_OBJECT_CLASS (grl_caps_parent_class)->finalize ((GObject *) self); +} + +static void +grl_caps_init (GrlCaps *self) +{ + self->priv = grl_caps_get_instance_private (self); + + self->priv->data = grl_g_value_hashtable_new (); + + /* by default, type filtering is not considered to be supported. The source + * has to explicitly modify its caps. */ + self->priv->type_filter = GRL_TYPE_FILTER_NONE; + self->priv->key_filter = NULL; + self->priv->key_range_filter = NULL; +} + +static void +grl_caps_class_init (GrlCapsClass *self_class) +{ + GObjectClass *object_class = G_OBJECT_CLASS (self_class); + + object_class->dispose = (void (*) (GObject *object)) grl_caps_dispose; + object_class->finalize = (void (*) (GObject *object)) grl_caps_finalize; +} + +/* ========== API ========== */ + +/** + * grl_caps_new: + * + * Creates a new caps object. + * + * Returns: a new caps object. + * + * Since: 0.2.0 + **/ +GrlCaps * +grl_caps_new (void) +{ + return g_object_new (GRL_CAPS_TYPE, NULL); +} + +/** + * grl_caps_test_option: + * @caps: a #GrlCaps instance + * @key: a key to test + * @value: the value corresponding to @key to test against @caps + * + * Checks whether (@key, @value) are authorized by @caps. + * + * Returns: %TRUE if (@key, @value) obey to @caps, %FALSE otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_caps_test_option (GrlCaps *caps, const gchar *key, const GValue *value) +{ + if (0 == g_strcmp0 (key, GRL_OPERATION_OPTION_SKIP) + || 0 == g_strcmp0 (key, GRL_OPERATION_OPTION_COUNT) + || 0 == g_strcmp0 (key, GRL_OPERATION_OPTION_RESOLUTION_FLAGS)) + /* these options must always be handled by plugins */ + return TRUE; + + if (0 == g_strcmp0 (key, GRL_OPERATION_OPTION_TYPE_FILTER)) { + GrlTypeFilter filter, supported_filter; + + supported_filter = grl_caps_get_type_filter (caps); + filter = g_value_get_flags (value); + + return filter == (filter & supported_filter); + } + + if (0 == g_strcmp0 (key, GRL_OPERATION_OPTION_KEY_EQUAL_FILTER)) { + GrlKeyID metadata_key = g_value_get_grl_key_id (value); + return grl_caps_is_key_filter (caps, metadata_key); + } + + if (0 == g_strcmp0 (key, GRL_OPERATION_OPTION_KEY_RANGE_FILTER)) { + GrlKeyID grl_key = g_value_get_grl_key_id (value); + return grl_caps_is_key_range_filter (caps, grl_key); + } + + return FALSE; +} + +/** + * grl_caps_get_type_filter: + * @caps: a #GrlCaps instance + * + * Returns: the supported #GrlTypeFilter + * + * Since: 0.2.0 + **/ +GrlTypeFilter +grl_caps_get_type_filter (GrlCaps *caps) +{ + g_return_val_if_fail (caps != NULL, GRL_TYPE_FILTER_NONE); + + return caps->priv->type_filter; +} + +/** + * grl_caps_set_type_filter: + * @caps: a #GrlCaps instance + * @filter: a #GrlTypeFilter + * + * Sets the supported filter capability. + * + * Since: 0.2.0 + **/ +void +grl_caps_set_type_filter (GrlCaps *caps, GrlTypeFilter filter) +{ + g_return_if_fail (caps != NULL); + + caps->priv->type_filter = filter; +} + +/** + * grl_caps_get_key_filter: + * @caps: a #GrlCaps instance + * + * Returns: (transfer none) (element-type GrlKeyID): + * + * Since: 0.2.0 + */ +GList * +grl_caps_get_key_filter (GrlCaps *caps) +{ + g_return_val_if_fail (caps, NULL); + + return caps->priv->key_filter; +} + +/** + * grl_caps_set_key_filter: + * @caps: a #GrlCaps instance + * @keys: (transfer none) (element-type GrlKeyID): + * + * Since: 0.2.0 + */ +void +grl_caps_set_key_filter (GrlCaps *caps, GList *keys) +{ + g_return_if_fail (caps); + + g_clear_pointer (&caps->priv->key_filter, g_list_free); + + caps->priv->key_filter = g_list_copy (keys); +} + +/** + * grl_caps_is_key_filter: + * @caps: a #GrlCaps instance + * @key: a #GrlKeyID + * + * Checks if @key is supported for filtering in @caps. + * + * Returns: %TRUE if @key can be used for filtering + * + * Since: 0.2.0 + **/ +gboolean +grl_caps_is_key_filter (GrlCaps *caps, GrlKeyID key) +{ + g_return_val_if_fail (caps, FALSE); + + if(caps->priv->key_filter) { + return g_list_find (caps->priv->key_filter, + GRLKEYID_TO_POINTER(key)) != NULL; + } + + return FALSE; +} + +/** + * grl_caps_get_key_range_filter: + * @caps: a #GrlCaps instance + * + * Returns: (transfer none) (element-type GrlKeyID): + * + * Since: 0.2.0 + */ +GList * +grl_caps_get_key_range_filter (GrlCaps *caps) +{ + g_return_val_if_fail (caps, NULL); + + return caps->priv->key_range_filter; +} + +/** + * grl_caps_set_key_range_filter: + * @caps: a #GrlCaps instance + * @keys: (transfer none) (element-type GrlKeyID): + * + * Since: 0.2.0 + */ +void +grl_caps_set_key_range_filter (GrlCaps *caps, GList *keys) +{ + g_return_if_fail (caps); + + g_clear_pointer (&caps->priv->key_range_filter, g_list_free); + + caps->priv->key_range_filter = g_list_copy (keys); +} + +/** + * grl_caps_is_key_range_filter: + * @caps: a #grlCaps instance + * @key: a #GrlKeyID + * + * Checks if @key is supported for filtering by range in @caps. + * + * Returns: %TRUE if @key can be used for filtering + * + * Since: 0.2.0 + **/ +gboolean +grl_caps_is_key_range_filter (GrlCaps *caps, GrlKeyID key) +{ + g_return_val_if_fail (caps, FALSE); + + if(caps->priv->key_range_filter) { + return g_list_find (caps->priv->key_range_filter, GRLKEYID_TO_POINTER (key)) != NULL; + } + + return FALSE; +} diff --git a/src/grl-caps.h b/src/grl-caps.h new file mode 100644 index 0000000..87db7db --- /dev/null +++ b/src/grl-caps.h @@ -0,0 +1,117 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#if !defined (_GRL_CAPS_H_) +#define _GRL_CAPS_H_ + +#include +#include +#include + +G_BEGIN_DECLS + +typedef struct _GrlCapsPrivate GrlCapsPrivate; + +typedef struct { + GObject parent; + + /*< private >*/ + GrlCapsPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING_SMALL]; +} GrlCaps; + +/** + * GrlCapsClass: + * @parent: the parent class structure + * + * Grilo Capabilities class. + */ +typedef struct { + GObjectClass parent; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlCapsClass; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlCaps, g_object_unref) + +#define GRL_TYPE_CAPS (grl_caps_get_type ()) +#define GRL_CAPS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRL_TYPE_CAPS, GrlCaps)) +#define GRL_CAPS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRL_TYPE_CAPS, GrlCapsClass)) +#define GRL_IS_CAPS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRL_TYPE_CAPS)) +#define GRL_IS_CAPS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRL_TYPE_CAPS)) +#define GRL_CAPS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRL_TYPE_CAPS, GrlCapsClass)) + +/* Keep this macro for backwards compatibility */ +#define GRL_CAPS_TYPE (GRL_TYPE_CAPS) + +/** + * GrlTypeFilter: + * @GRL_TYPE_FILTER_NONE: allow no content (only containers) + * @GRL_TYPE_FILTER_AUDIO: allow audio content + * @GRL_TYPE_FILTER_VIDEO: allow video content + * @GRL_TYPE_FILTER_IMAGE: allow image content + * @GRL_TYPE_FILTER_ALL: allow any type of content + * + * Type of media to allow. + **/ +typedef enum { + GRL_TYPE_FILTER_NONE = 0, + GRL_TYPE_FILTER_AUDIO = (1 << 0), + GRL_TYPE_FILTER_VIDEO = (1 << 1), + GRL_TYPE_FILTER_IMAGE = (1 << 2), + GRL_TYPE_FILTER_ALL = (GRL_TYPE_FILTER_AUDIO | GRL_TYPE_FILTER_VIDEO | GRL_TYPE_FILTER_IMAGE) +} GrlTypeFilter; + + +GType grl_caps_get_type (void); + +GrlCaps *grl_caps_new (void); + +gboolean grl_caps_test_option (GrlCaps *caps, + const gchar *key, + const GValue *value); + +GrlTypeFilter grl_caps_get_type_filter (GrlCaps *caps); + +void grl_caps_set_type_filter (GrlCaps *caps, GrlTypeFilter filter); + +GList *grl_caps_get_key_filter (GrlCaps *caps); + +void grl_caps_set_key_filter (GrlCaps *caps, GList *keys); + +gboolean grl_caps_is_key_filter (GrlCaps *caps, GrlKeyID key); + +GList *grl_caps_get_key_range_filter (GrlCaps *caps); + +void grl_caps_set_key_range_filter (GrlCaps *caps, GList *keys); + +gboolean grl_caps_is_key_range_filter (GrlCaps *caps, GrlKeyID key); + +G_END_DECLS + +#endif /* _GRL_CAPS_H_ */ diff --git a/src/grl-definitions.h b/src/grl-definitions.h new file mode 100644 index 0000000..7ca2899 --- /dev/null +++ b/src/grl-definitions.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_DEFINITIONS_H_ +#define _GRL_DEFINITIONS_H_ + +/* Used to pad public structres in order to avoid ABI + breakage when adding new API */ +#define GRL_PADDING 16 + +/* Same as GRL_PADDING, but intended for objects that could + have more impact on the memory footprint */ +#define GRL_PADDING_SMALL 8 + +/* Value used when childcount is unknown */ +#define GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN -1 + +/* Used to know if plugin can not tell how many elements + remain to be sent */ +#define GRL_SOURCE_REMAINING_UNKNOWN -1 + +#endif diff --git a/src/grl-error.h b/src/grl-error.h new file mode 100644 index 0000000..13ea3d9 --- /dev/null +++ b/src/grl-error.h @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_ERROR_H_ +#define _GRL_ERROR_H_ + +#define GRL_CORE_ERROR g_quark_from_static_string("grilo.error.general") + +/** + * GrlCoreError: + * @GRL_CORE_ERROR_BROWSE_FAILED: The browse operation failed + * @GRL_CORE_ERROR_SEARCH_FAILED: The search operation failed + * @GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED: Searching NULL-text is not supported + * @GRL_CORE_ERROR_QUERY_FAILED: The query operation failed + * @GRL_CORE_ERROR_RESOLVE_FAILED: The resolution operation failed + * @GRL_CORE_ERROR_MEDIA_NOT_FOUND: The media was not found + * @GRL_CORE_ERROR_STORE_FAILED: The store operation failed + * @GRL_CORE_ERROR_STORE_METADATA_FAILED: The store metadata operation failed + * @GRL_CORE_ERROR_REMOVE_FAILED: The removal operation failed + * @GRL_CORE_ERROR_MEDIA_FROM_URI_FAILED: The media from_uri operation failed + * @GRL_CORE_ERROR_CONFIG_LOAD_FAILED: Failed to load plugin configuration from a file + * @GRL_CORE_ERROR_CONFIG_FAILED: Failed to set configuration for plugin + * @GRL_CORE_ERROR_UNREGISTER_SOURCE_FAILED: Failed to unregister source + * @GRL_CORE_ERROR_LOAD_PLUGIN_FAILED: Failed to load plugin + * @GRL_CORE_ERROR_UNLOAD_PLUGIN_FAILED: Failed to unload plugin + * @GRL_CORE_ERROR_REGISTER_METADATA_KEY_FAILED: Failed to register metadata key + * @GRL_CORE_ERROR_NOTIFY_CHANGED_FAILED: Failed to start changed notifications + * @GRL_CORE_ERROR_OPERATION_CANCELLED: The operation was cancelled + * @GRL_CORE_ERROR_AUTHENTICATION_TOKEN: Invalid authentication token + * + * These constants identify all the available core errors + */ +typedef enum { + GRL_CORE_ERROR_BROWSE_FAILED = 1, + GRL_CORE_ERROR_SEARCH_FAILED, + GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED, + GRL_CORE_ERROR_QUERY_FAILED, + GRL_CORE_ERROR_RESOLVE_FAILED, + GRL_CORE_ERROR_MEDIA_NOT_FOUND, + GRL_CORE_ERROR_STORE_FAILED, + GRL_CORE_ERROR_STORE_METADATA_FAILED, + GRL_CORE_ERROR_REMOVE_FAILED, + GRL_CORE_ERROR_MEDIA_FROM_URI_FAILED, + GRL_CORE_ERROR_CONFIG_LOAD_FAILED, + GRL_CORE_ERROR_CONFIG_FAILED, + GRL_CORE_ERROR_UNREGISTER_SOURCE_FAILED, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + GRL_CORE_ERROR_UNLOAD_PLUGIN_FAILED, + GRL_CORE_ERROR_REGISTER_METADATA_KEY_FAILED, + GRL_CORE_ERROR_NOTIFY_CHANGED_FAILED, + GRL_CORE_ERROR_OPERATION_CANCELLED, + GRL_CORE_ERROR_AUTHENTICATION_TOKEN +} GrlCoreError; + +#endif /* _GRL_ERROR_H_ */ diff --git a/src/grl-log-priv.h b/src/grl-log-priv.h new file mode 100644 index 0000000..78524a1 --- /dev/null +++ b/src/grl-log-priv.h @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2010 Intel Corporation + * + * Contact: Damien Lespiau + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_LOG_PRIV_H_ +#define _GRL_LOG_PRIV_H_ + +#include + +#include "grl-log.h" + +G_BEGIN_DECLS + +GRL_LOG_DOMAIN_EXTERN(log_log_domain); +GRL_LOG_DOMAIN_EXTERN(config_log_domain); +GRL_LOG_DOMAIN_EXTERN(data_log_domain); +GRL_LOG_DOMAIN_EXTERN(media_log_domain); +GRL_LOG_DOMAIN_EXTERN(plugin_log_domain); +GRL_LOG_DOMAIN_EXTERN(source_log_domain); +GRL_LOG_DOMAIN_EXTERN(multiple_log_domain); +GRL_LOG_DOMAIN_EXTERN(registry_log_domain); + +void _grl_log_init_core_domains (void); +void _grl_log_free_core_domains (void); + +G_END_DECLS + +#endif /* _GRL_LOG_PRIV_H_ */ diff --git a/src/grl-log.c b/src/grl-log.c new file mode 100644 index 0000000..2f8dfb5 --- /dev/null +++ b/src/grl-log.c @@ -0,0 +1,441 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-log + * @short_description: Log system + * + * This class stores information related to the log system + */ + +#include "grl-log.h" +#include "grl-log-priv.h" + +#include +#include +#include +#include + +struct _GrlLogDomain { + /*< private >*/ + GrlLogLevel log_level; + char *name; +}; + + +static gchar **grl_log_env; /* 'domain:level' array from GRL_LOG */ + +static GrlLogLevel grl_default_log_level = GRL_LOG_LEVEL_WARNING; +static GSList *log_domains = NULL; /* the list of GrlLogDomain's */ + +/* Catch all log domain */ +/* For clarity, it should not be re-#define'd in this file, code that wants to + * log things with log_log_domain should do it explicitly using GRL_LOG(), + * instead of using GRL_{DEBUG,INFO,MESSAGE,WARNING,ERROR}() */ +GRL_LOG_DOMAIN(GRL_LOG_DOMAIN_DEFAULT); + +GRL_LOG_DOMAIN(log_log_domain); + +static GrlLogDomain * +grl_log_domain_find_by_name (const gchar *name) +{ + GSList *list; + + for (list = log_domains; list; list = g_slist_next (list)) { + GrlLogDomain *log_domain = list->data; + + if (g_strcmp0 (log_domain->name, name) == 0) + return log_domain; + } + + return NULL; +} + +static GrlLogDomain * +_grl_log_domain_new_internal (const gchar *name) +{ + GrlLogDomain *domain; + + if (*name == '\0' && GRL_LOG_DOMAIN_DEFAULT != NULL) + return GRL_LOG_DOMAIN_DEFAULT; + + domain = g_slice_new (GrlLogDomain); + domain->log_level = grl_default_log_level; + domain->name = g_strdup (name); + + log_domains = g_slist_prepend (log_domains, domain); + + if (*name == '\0' && GRL_LOG_DOMAIN_DEFAULT == NULL) + /* Ensure GRL_LOG_DOMAIN_DEFAULT is set. */ + GRL_LOG_DOMAIN_DEFAULT = domain; + + return domain; +} + +/** + * grl_log_domain_new: (skip) + * @name: The name for the new log domain + * + * Returns: The new log domain + * + * Since: 0.1.7 + */ +GrlLogDomain * +grl_log_domain_new (const gchar *name) +{ + GrlLogDomain *domain; + gchar **pair; + + g_return_val_if_fail (name, NULL); + + domain = _grl_log_domain_new_internal (name); + + /* If the GRL_LOG env variable contains @name, let's override that domain + * verbosity */ + if (grl_log_env == NULL) + return domain; + + pair = grl_log_env; + + while (*pair) { + gchar **pair_info; + gchar *domain_spec; + + pair_info = g_strsplit (*pair, ":", 2); + domain_spec = pair_info[0]; + + if (g_strcmp0 (domain_spec, name) == 0) + grl_log_configure (*pair); + + g_strfreev (pair_info); + pair++; + } + + return domain; +} + +static void +_grl_log_domain_free_internal (GrlLogDomain *domain) +{ + log_domains = g_slist_remove (log_domains, domain); + g_free (domain->name); + g_slice_free (GrlLogDomain, domain); +} + +/** + * grl_log_domain_free: + * @domain: a #GrlLogDomain + * + * Releases @domain. + * + * Since: 0.1.7 + **/ +void +grl_log_domain_free (GrlLogDomain *domain) +{ + g_return_if_fail (domain); + + /* domain can actually be GRL_LOG_DOMAIN_DEFAULT if the domain name given + * in _new() was "", freeing the default domain is not possible from the + * public API */ + if (domain == GRL_LOG_DOMAIN_DEFAULT) + return; + + _grl_log_domain_free_internal (domain); +} + +static void +grl_log_domain_set_level_all (GrlLogLevel level) +{ + GSList *list; + + /* Set the default log level to be level, so newly created domains will + * have the correct level */ + grl_default_log_level = level; + + for (list = log_domains; list; list = g_slist_next (list)) { + GrlLogDomain *log_domain = list->data; + + log_domain->log_level = level; + } +} + +static GrlLogDomain * +get_domain_from_spec (const gchar *domain_spec) +{ + GrlLogDomain *domain; + + domain = grl_log_domain_find_by_name (domain_spec); + + return domain; +} + +static gchar *name2level[GRL_LOG_LEVEL_LAST] = { + "none", "error", "warning", "message", "info", "debug" +}; + +static GrlLogLevel +get_log_level_from_spec (const gchar *level_spec) +{ + guint i; + long int level_num; + char *tail; + + /* "-" or "none" (from name2level) can be used to disable all logging */ + if (strcmp (level_spec, "-") == 0) { + return GRL_LOG_LEVEL_NONE; + } + + /* '*' means everything */ + if (strcmp (level_spec, "*") == 0) { + return GRL_LOG_LEVEL_LAST - 1; + } + + errno = 0; + level_num = strtol (level_spec, &tail, 0); + if (!errno + && tail != level_spec + && level_num >= GRL_LOG_LEVEL_NONE + && level_num <= GRL_LOG_LEVEL_LAST - 1) + return (GrlLogLevel) level_num; + + for (i = 0; i < GRL_LOG_LEVEL_LAST; i++) + if (strcmp (level_spec, name2level[i]) == 0) + return i; + + /* If the spec does not match one of our levels, just return the current + * default log level */ + return grl_default_log_level; +} + +static void +configure_log_domains (const gchar *domains) +{ + gchar **pairs; + gchar **pair; + gchar **pair_info ; + gchar *domain_spec; + gchar *level_spec; + GrlLogDomain *domain; + GrlLogLevel level; + + pair = pairs = g_strsplit (domains, ",", 0); + + while (*pair) { + pair_info = g_strsplit (*pair, ":", 2); + if (pair_info[0] && pair_info[1]) { + domain_spec = pair_info[0]; + level_spec = pair_info[1]; + + level = get_log_level_from_spec (level_spec); + domain = get_domain_from_spec (domain_spec); + + if (strcmp (domain_spec, "*") == 0) + grl_log_domain_set_level_all (level); + + if (domain == NULL) { + g_strfreev (pair_info); + pair++; + continue; + } + + domain->log_level = level; + + GRL_LOG (log_log_domain, GRL_LOG_LEVEL_DEBUG, + "domain: '%s', level: '%s'", domain_spec, level_spec); + + g_strfreev (pair_info); + } else { + GRL_LOG (log_log_domain, GRL_LOG_LEVEL_WARNING, + "Invalid log spec: '%s'", *pair); + } + pair++; + } + g_strfreev (pairs); +} + +static void +grl_log_valist (GrlLogDomain *domain, + GrlLogLevel level, + const gchar *strloc, + const gchar *format, + va_list args) +{ + gchar *message; + GLogLevelFlags level2flag[GRL_LOG_LEVEL_LAST] = { + 0, /* GRL_LOG_LEVEL_NONE */ + G_LOG_LEVEL_CRITICAL, /* GRL_LOG_LEVEL_ERROR */ + G_LOG_LEVEL_WARNING, /* GRL_LOG_LEVEL_WARNING */ + G_LOG_LEVEL_MESSAGE, /* GRL_LOG_LEVEL_MESSAGE */ + G_LOG_LEVEL_INFO, /* GRL_LOG_LEVEL_INFO */ + G_LOG_LEVEL_DEBUG /* GRL_LOG_LEVEL_DEBUG */ + }; + + g_return_if_fail (domain); + g_return_if_fail (level > 0 && level < GRL_LOG_LEVEL_LAST); + g_return_if_fail (strloc); + g_return_if_fail (format); + + message = g_strdup_vprintf (format, args); + + if (level <= domain->log_level) + g_log (G_LOG_DOMAIN, level2flag[level], + "[%s] %s: %s", domain->name, strloc, message); + + g_free (message); +} + +/** + * grl_log: + * @domain: a domain + * @level: log level + * @strloc: string, usually line of code where function is invoked + * @format: log message + * @...: parameters to insert in the log message + * + * Send a log message. + * + * Since: 0.1.7 + **/ +void +grl_log (GrlLogDomain *domain, + GrlLogLevel level, + const gchar *strloc, + const gchar *format, + ...) +{ + va_list var_args; + + va_start (var_args, format); + grl_log_valist (domain, level, strloc, format, var_args); + va_end (var_args); +} + +#define DOMAIN_INIT(domain, name) G_STMT_START { \ + domain = _grl_log_domain_new_internal (name); \ +} G_STMT_END + +void +_grl_log_init_core_domains (void) +{ + const gchar *log_env; + const gchar *messages_env; + gchar *new_messages_env; + + DOMAIN_INIT (GRL_LOG_DOMAIN_DEFAULT, ""); + DOMAIN_INIT (log_log_domain, "log"); + DOMAIN_INIT (config_log_domain, "config"); + DOMAIN_INIT (data_log_domain, "data"); + DOMAIN_INIT (media_log_domain, "media"); + DOMAIN_INIT (plugin_log_domain, "plugin"); + DOMAIN_INIT (source_log_domain, "source"); + DOMAIN_INIT (multiple_log_domain, "multiple"); + DOMAIN_INIT (registry_log_domain, "registry"); + + /* Retrieve the GRL_DEBUG environment variable, initialize core domains from + * it if applicable and keep it for grl_log_domain_new(). Plugins are using + * grl_log_domain_new() in their init() functions to initialize their log + * domains. At that time, we'll look at the saved GRL_DEBUG to override the + * verbosity */ + log_env = g_getenv ("GRL_DEBUG"); + if (log_env) { + /* Add Grilo log domain to G_MESSAGES_DEBUG, so the messages are not + filtered by the default handler */ + messages_env = g_getenv ("G_MESSAGES_DEBUG"); + if (!messages_env) { + g_setenv ("G_MESSAGES_DEBUG", G_LOG_DOMAIN, FALSE); + } else if (g_strcmp0 (messages_env, "all") != 0) { + new_messages_env = g_strconcat (messages_env, ":" G_LOG_DOMAIN, NULL); + g_setenv ("G_MESSAGES_DEBUG", new_messages_env, TRUE); + g_free (new_messages_env); + } + + GRL_LOG (log_log_domain, GRL_LOG_LEVEL_DEBUG, + "Using log configuration from GRL_DEBUG: %s", log_env); + configure_log_domains (log_env); + grl_log_env = g_strsplit (log_env, ",", 0); + } + +} + +#undef DOMAIN_INIT + +#define DOMAIN_FREE(domain) G_STMT_START { \ + _grl_log_domain_free_internal (domain); \ +} G_STMT_END + +void +_grl_log_free_core_domains (void) +{ + DOMAIN_FREE (GRL_LOG_DOMAIN_DEFAULT); + DOMAIN_FREE (log_log_domain); + DOMAIN_FREE (config_log_domain); + DOMAIN_FREE (media_log_domain); + DOMAIN_FREE (plugin_log_domain); + DOMAIN_FREE (source_log_domain); + DOMAIN_FREE (multiple_log_domain); + DOMAIN_FREE (registry_log_domain); + + g_strfreev (grl_log_env); +} + +#undef DOMAIN_FREE + +/** + * grl_log_configure: + * @config: A string describing the wanted log configuration + * + * Configure a set of log domains. The default configuration is to display + * warning and error messages only for all the log domains. + * + * The configuration string follows the following grammar: + * + * |[ + * config-list: config | config ',' config-list + * config: domain ':' level + * domain: '*' | [a-zA-Z0-9]+ + * level: '*' | '-' | named-level | num-level + * named-level: "none" | "error" | "warning" | "message" | "info" | "debug" + * num-level: [0-5] + * ]| + * + * examples: + * + * "*:*": maximum verbosity for all the log domains + * + * "*:-": don't print any message + * "media-source:debug,metadata-source:debug": prints debug, + * info, message warning and error messages for the media-source and + * metadata-source log domains + * + * + * It's possible to override the log configuration at runtime by + * defining the GRL_DEBUG environment variable to a configuration string + * as described above + * + * Since: 0.1.7 + */ +void +grl_log_configure (const gchar *config) +{ + configure_log_domains (config); +} diff --git a/src/grl-log.h b/src/grl-log.h new file mode 100644 index 0000000..3f0b69f --- /dev/null +++ b/src/grl-log.h @@ -0,0 +1,285 @@ +/* + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * 2003 Benjamin Otte + * 2010 Igalia S.L. + * 2010 Intel Corporation + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + * Part of this code has been adapted from GStreamer gst/gstinfo.h + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_LOG_H_ +#define _GRL_LOG_H_ + +#include + +G_BEGIN_DECLS + +/** + * GrlLogLevel: + * @GRL_LOG_LEVEL_NONE: Log level none + * @GRL_LOG_LEVEL_ERROR: Log on error + * @GRL_LOG_LEVEL_WARNING: Log on warning + * @GRL_LOG_LEVEL_MESSAGE: Log on message + * @GRL_LOG_LEVEL_INFO: Log on info + * @GRL_LOG_LEVEL_DEBUG: Log on debug + * @GRL_LOG_LEVEL_LAST: Last level of log + * + * Grilo log levels. Defines the level of verbosity selected in Grilo. + */ +typedef enum { + GRL_LOG_LEVEL_NONE, + GRL_LOG_LEVEL_ERROR, + GRL_LOG_LEVEL_WARNING, + GRL_LOG_LEVEL_MESSAGE, + GRL_LOG_LEVEL_INFO, + GRL_LOG_LEVEL_DEBUG, + + GRL_LOG_LEVEL_LAST +} GrlLogLevel; + +/* Opaque type */ +typedef struct _GrlLogDomain GrlLogDomain; + +extern GrlLogDomain *GRL_LOG_DOMAIN_DEFAULT; + +/** + * GRL_LOG_DOMAIN: + * @domain: the log domain + * + * Defines a GrlLogDomain variable. + */ +#define GRL_LOG_DOMAIN(domain) GrlLogDomain *domain = NULL + +/** + * GRL_LOG_DOMAIN_EXTERN: + * @domain: the log domain + * + * Declares a GrlLogDomain variable as extern. Use in header files. + */ +#define GRL_LOG_DOMAIN_EXTERN(domain) extern GrlLogDomain *domain + +/** + * GRL_LOG_DOMAIN_STATIC: + * @domain: the log domain + * + * Defines a static GrlLogDomain variable. + */ +#define GRL_LOG_DOMAIN_STATIC(domain) static GrlLogDomain *domain = NULL + +/** + * GRL_LOG_DOMAIN_INIT: + * @domain: the log domain to initialize. + * @name: the name of the log domain. + * + * Creates a new #GrlLogDomain with the given name. + */ +#define GRL_LOG_DOMAIN_INIT(domain, name) G_STMT_START { \ + if (domain == NULL) \ + domain = grl_log_domain_new (name); \ +} G_STMT_END + +/** + * GRL_LOG_DOMAIN_FREE: + * @domain: the log domain to free. + * + * Free a previously allocated #GrlLogDomain. + */ +#define GRL_LOG_DOMAIN_FREE(domain) G_STMT_START { \ + grl_log_domain_free (domain); \ + domain = NULL; \ +} G_STMT_END + +/** + * GRL_LOG: + * @domain: the log domain to use + * @level: the severity of the message + * @...: A printf-style message to output + * + * Outputs a debugging message. This is the most general macro for outputting + * debugging messages. You will probably want to use one of the ones described + * below. + */ +#ifdef G_HAVE_ISO_VARARGS + +#define GRL_LOG(domain, level, ...) G_STMT_START{ \ + grl_log ((domain), (level), G_STRLOC, __VA_ARGS__); \ +}G_STMT_END + +#elif G_HAVE_GNUC_VARARGS + +#define GRL_LOG(domain, level, args...) G_STMT_START{ \ + grl_log ((domain), (level), G_STRLOC, ##args); \ +}G_STMT_END + +#else /* no variadic macros, use inline */ + +static inline void +GRL_LOG_valist (GrlLogDomain *domain, + GrlLogLevel level, + const char *format, + va_list varargs) +{ + grl_log (domain, level, "", format, varargs); +} + +static inline void +GRL_LOG (GrlLogDomain *domain, + GrlLogLevel level, + const char *format, + ...) +{ + va_list varargs; + + va_start (varargs, format); + GRL_LOG_DOMAIN_LOG_valist (domain, level, format, varargs); + va_end (varargs); +} + +#endif /* G_HAVE_ISO_VARARGS */ + +/** + * GRL_ERROR: + * @...: printf-style message to output + * + * Output an error message in the default log domain. + */ +/** + * GRL_WARNING: + * @...: printf-style message to output + * + * Output a warning message in the default log domain. + */ +/** + * GRL_MESSAGE: + * @...: printf-style message to output + * + * Output a logging message in the default log domain. + */ +/** + * GRL_INFO: + * @...: printf-style message to output + * + * Output an informational message in the default log domain. + */ +/** + * GRL_DEBUG: + * @...: printf-style message to output + * + * Output a debugging message in the default log domain. + */ + +#if G_HAVE_ISO_VARARGS + +#define GRL_ERROR(...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_ERROR, __VA_ARGS__) +#define GRL_WARNING(...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_WARNING, __VA_ARGS__) +#define GRL_MESSAGE(...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_MESSAGE, __VA_ARGS__) +#define GRL_INFO(...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_INFO, __VA_ARGS__) +#define GRL_DEBUG(...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_DEBUG, __VA_ARGS__) + +#elif G_HAVE_GNUC_VARARGS + +#define GRL_ERROR(args...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_ERROR, ##args) +#define GRL_WARNING(args...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_WARNING, ##args) +#define GRL_MESSAGE(args...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_MESSAGE, ##args) +#define GRL_INFO(args...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_INFO, ##args) +#define GRL_DEBUG(args...) \ + GRL_LOG (GRL_LOG_DOMAIN_DEFAULT, GRL_LOG_LEVEL_DEBUG, ##args) + +#else /* no variadic macros, use inline */ + +static inline void +GRL_ERROR (GrlLogDomain *domain, const char *format, ...) +{ + va_list varargs; + + va_start (varargs, format); + GRL_LOG_valist (domain, GRL_LOG_LEVEL_ERROR, format, varargs); + va_end (varargs); +} + +static inline void +GRL_WARNING (GrlLogDomain *domain, const char *format, ...) +{ + va_list varargs; + + va_start (varargs, format); + GRL_LOG_valist (domain, GRL_LOG_LEVEL_WARNING, format, varargs); + va_end (varargs); +} + +static inline void +GRL_MESSAGE (GrlLogDomain *domain, const char *format, ...) +{ + va_list varargs; + + va_start (varargs, format); + GRL_LOG_valist (domain, GRL_LOG_LEVEL_MESSAGE, format, varargs); + va_end (varargs); +} + +static inline void +GRL_INFO (GrlLogDomain *domain, const char *format, ...) +{ + va_list varargs; + + va_start (varargs, format); + GRL_LOG_valist (domain, GRL_LOG_LEVEL_INFO, format, varargs); + va_end (varargs); +} + +static inline void +GRL_DEBUG (GrlLogDomain *domain, const char *format, ...) +{ + va_list varargs; + + va_start (varargs, format); + GRL_LOG_valist (domain, GRL_LOG_LEVEL_DEBUG, format, varargs); + va_end (varargs); +} + +#endif /* G_HAVE_ISO_VARARGS */ + +GrlLogDomain * grl_log_domain_new (const gchar *name); +void grl_log_domain_free (GrlLogDomain *domain); + +void grl_log_configure (const gchar *config); +void grl_log (GrlLogDomain *domain, + GrlLogLevel level, + const gchar *strloc, + const gchar *format, + ...) G_GNUC_PRINTF (4, 5) G_GNUC_NO_INSTRUMENT; + +G_END_DECLS + +#endif /* _GRL_LOG_H_ */ diff --git a/src/grl-marshal.c b/src/grl-marshal.c new file mode 100644 index 0000000..bab29b8 --- /dev/null +++ b/src/grl-marshal.c @@ -0,0 +1,89 @@ +#include "grl-marshal.h" +/* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ +#include + +#ifdef G_ENABLE_DEBUG +#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) +#define g_marshal_value_peek_char(v) g_value_get_schar (v) +#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) +#define g_marshal_value_peek_int(v) g_value_get_int (v) +#define g_marshal_value_peek_uint(v) g_value_get_uint (v) +#define g_marshal_value_peek_long(v) g_value_get_long (v) +#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) +#define g_marshal_value_peek_int64(v) g_value_get_int64 (v) +#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) +#define g_marshal_value_peek_enum(v) g_value_get_enum (v) +#define g_marshal_value_peek_flags(v) g_value_get_flags (v) +#define g_marshal_value_peek_float(v) g_value_get_float (v) +#define g_marshal_value_peek_double(v) g_value_get_double (v) +#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) +#define g_marshal_value_peek_param(v) g_value_get_param (v) +#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) +#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) +#define g_marshal_value_peek_object(v) g_value_get_object (v) +#define g_marshal_value_peek_variant(v) g_value_get_variant (v) +#else /* !G_ENABLE_DEBUG */ +/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. + * Do not access GValues directly in your code. Instead, use the + * g_value_get_*() functions + */ +#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int +#define g_marshal_value_peek_char(v) (v)->data[0].v_int +#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint +#define g_marshal_value_peek_int(v) (v)->data[0].v_int +#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint +#define g_marshal_value_peek_long(v) (v)->data[0].v_long +#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong +#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 +#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 +#define g_marshal_value_peek_enum(v) (v)->data[0].v_long +#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong +#define g_marshal_value_peek_float(v) (v)->data[0].v_float +#define g_marshal_value_peek_double(v) (v)->data[0].v_double +#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer +#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer +#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer +#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer +#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer +#define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer +#endif /* !G_ENABLE_DEBUG */ + +/* VOID:BOXED,ENUM,BOOLEAN (grl-marshal.list:1) */ +void +grl_marshal_VOID__BOXED_ENUM_BOOLEAN (GClosure *closure, + GValue *return_value G_GNUC_UNUSED, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint G_GNUC_UNUSED, + gpointer marshal_data) +{ + typedef void (*GMarshalFunc_VOID__BOXED_ENUM_BOOLEAN) (gpointer data1, + gpointer arg1, + gint arg2, + gboolean arg3, + gpointer data2); + GCClosure *cc = (GCClosure *) closure; + gpointer data1, data2; + GMarshalFunc_VOID__BOXED_ENUM_BOOLEAN callback; + + g_return_if_fail (n_param_values == 4); + + if (G_CCLOSURE_SWAP_DATA (closure)) + { + data1 = closure->data; + data2 = g_value_peek_pointer (param_values + 0); + } + else + { + data1 = g_value_peek_pointer (param_values + 0); + data2 = closure->data; + } + callback = (GMarshalFunc_VOID__BOXED_ENUM_BOOLEAN) (marshal_data ? marshal_data : cc->callback); + + callback (data1, + g_marshal_value_peek_boxed (param_values + 1), + g_marshal_value_peek_enum (param_values + 2), + g_marshal_value_peek_boolean (param_values + 3), + data2); +} + diff --git a/src/grl-marshal.h b/src/grl-marshal.h new file mode 100644 index 0000000..74309e2 --- /dev/null +++ b/src/grl-marshal.h @@ -0,0 +1,21 @@ +/* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ +#ifndef __GRL_MARSHAL_MARSHAL_H__ +#define __GRL_MARSHAL_MARSHAL_H__ + +#include + +G_BEGIN_DECLS + +/* VOID:BOXED,ENUM,BOOLEAN (grl-marshal.list:1) */ +extern +void grl_marshal_VOID__BOXED_ENUM_BOOLEAN (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + + +G_END_DECLS + +#endif /* __GRL_MARSHAL_MARSHAL_H__ */ diff --git a/src/grl-marshal.list b/src/grl-marshal.list new file mode 100644 index 0000000..3472bef --- /dev/null +++ b/src/grl-marshal.list @@ -0,0 +1 @@ +VOID:BOXED,ENUM,BOOLEAN diff --git a/src/grl-metadata-key-priv.h b/src/grl-metadata-key-priv.h new file mode 100644 index 0000000..3dd76aa --- /dev/null +++ b/src/grl-metadata-key-priv.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2010 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_METADATA_KEY_PRIV_H_ +#define _GRL_METADATA_KEY_PRIV_H_ + +#include +#include "grl-metadata-key.h" + +void +grl_metadata_key_setup_system_keys (GrlRegistry *registry); + +#endif /* _GRL_METADATA_KEY_PRIV_H_ */ diff --git a/src/grl-metadata-key.c b/src/grl-metadata-key.c new file mode 100644 index 0000000..99ba123 --- /dev/null +++ b/src/grl-metadata-key.c @@ -0,0 +1,767 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-metadata-key + * @short_description: General media key definition + * + * This is the list of defined keys in grilo for media entries. + */ + +#include "grl-metadata-key.h" +#include "grl-metadata-key-priv.h" +#include "grl-registry-priv.h" +#include "grl-definitions.h" + +#include + +void +grl_metadata_key_setup_system_keys (GrlRegistry *registry) +{ + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("album", + "Album", + "Album the media belongs to", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ALBUM, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("album-artist", + "Main album artist", + "Main artist of the album the media belongs to", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ALBUM_ARTIST, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("artist", + "Artist", + "Main artist", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ARTIST, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("author", + "Author", + "Creator of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_AUTHOR, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("composer", + "Composer", + "Composer of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_COMPOSER, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("description", + "Description", + "Description of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_DESCRIPTION, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("genre", + "Genre", + "Genre of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_GENRE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("id", + "ID", + "Identifier of media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ID, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boxed ("last-played-time", + "LastPlayedTime", + "Last time the media was played", + G_TYPE_DATE_TIME, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_LAST_PLAYED, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("lyrics", + "Lyrics", + "Song lyrics", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_LYRICS, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("site", + "Site", + "Site", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_SITE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("source", + "Source", + "Source ID providing the content", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_SOURCE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("thumbnail", + "Thumbnail", + "Thumbnail image", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_THUMBNAIL, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boxed ("thumbnail-binary", + "Thumbnail Binary", + "Thumbnail binary image", + G_TYPE_BYTE_ARRAY, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_THUMBNAIL_BINARY, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("title", + "Title", + "Title of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_TITLE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("url", + "URL", + "Media URL", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_URL, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("mime-type", + "MimeType", + "Media mime type", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_MIME, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("external-url", + "External URL", + "External location where the media can be played back, usually a website", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_EXTERNAL_URL, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("external-player", + "External Player URL", + "URL of an external player that can be used to play the resource (usually a Flash player)", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_EXTERNAL_PLAYER, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("studio", + "Studio", + "Studio the media is from", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_STUDIO, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("license", + "License", + "The license of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_LICENSE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("bitrate", + "Bitrate", + "Media bitrate in KBits/s", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_BITRATE, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("childcount", + "Childcount", + "Number of items contained in a container", + -1, G_MAXINT, + GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_CHILDCOUNT, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("duration", + "Duration", + "Media duration in seconds", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_DURATION, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("height", + "Height", + "Height of media ('y' axis)", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_HEIGHT, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("playback-interrupted-time", + "PlaybackInterruptedTime", + "Time at which playback was interrupted", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_LAST_POSITION, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("play-count", + "PlayCount", + "How many times media was played", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_PLAY_COUNT, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("width", + "Width", + "Width of media ('x' axis)", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_WIDTH, + GRL_METADATA_KEY_URL, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_float ("framerate", + "Framerate", + "Frames per second", + 0, G_MAXFLOAT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_FRAMERATE, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_float ("rating", + "Rating", + "Media rating", + 0, G_MAXFLOAT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_RATING, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("season", + "Season", + "Season of a show", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_SEASON, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("episode", + "Episode", + "Episode of a show", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_EPISODE, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("episode-title", + "Episode Title", + "The title from an episode of a show", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_EPISODE_TITLE, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("show", + "Show", + "Name of a show", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_SHOW, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boxed ("creation-date", + "Creation date", + "Creation date", + G_TYPE_DATE_TIME, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_CREATION_DATE, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("camera-model", + "Camera model", + "Name of the camera model used to take the photo", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_CAMERA_MODEL, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("orientation", + "Picture orientation", + "Orientation of the photo in degree (clockwise)", + 0, 359, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ORIENTATION, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boolean ("flash-used", + "Flash used", + "Whether or not a flash was used to take that picture", + FALSE, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_FLASH_USED, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_float ("exposure-time", + "Exposure time", + "Exposure time of the photo in seconds", + 0, G_MAXFLOAT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_EXPOSURE_TIME, + GRL_METADATA_KEY_INVALID, + NULL); + + + grl_registry_register_metadata_key_system (registry, + g_param_spec_float ("iso-speed", + "ISO speed", + "Photographic film's sensitivity to light as ISO value", + 0, G_MAXFLOAT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ISO_SPEED, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("track-number", + "Track number", + "Track number inside the album", + 1, G_MAXINT, + 1, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_TRACK_NUMBER, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boxed ("modification-date", + "Modification date", + "When the media was last modified", + G_TYPE_DATE_TIME, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_MODIFICATION_DATE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_float ("start-time", + "Start Time", + "Start offset in seconds relative to container", + 0.0, G_MAXFLOAT, + 0.0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_START_TIME, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boolean ("favourite", + "Favourite", + "Whether or not the element was marked as favourite", + FALSE, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_FAVOURITE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("region", + "Region", + "Region in which the media was published", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_REGION, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boxed ("publication-date", + "Publication date", + "When the media was originally published", + G_TYPE_DATE_TIME, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_PUBLICATION_DATE, + GRL_METADATA_KEY_REGION, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("certificate", + "Certificate", + "Age certificate of the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_CERTIFICATE, + GRL_METADATA_KEY_REGION, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("keyword", + "keyword", + "A keyword describing the media", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_KEYWORD, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("performer", + "performer", + "An actor performing in the movie", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_PERFORMER, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("producer", + "Producer", + "Producer of the movie", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_PRODUCER, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("director", + "Director", + "Director of the movie", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_DIRECTOR, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("original-title", + "Original Title", + "Original, untranslated title of the movie", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ORIGINAL_TITLE, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int64 ("size", + "Size", + "Size in bytes", + -1, G_MAXINT64, + -1, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_SIZE, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_boolean ("title-from-filename", + "Title guessed from filename", + "Whether the title is guessed from the filename", + FALSE, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_TITLE_FROM_FILENAME, + GRL_METADATA_KEY_TITLE, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("mb-album-id", + "MusicBrainz Album Id", + "Album identifier in MusicBrainz", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_MB_ALBUM_ID, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("mb-track-id", + "MusicBrainz Track Id", + "Track identifier in MusicBrainz", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_MB_TRACK_ID, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("mb-artist-id", + "MusicBrainz Artist Id", + "Artist identifier in MusicBrainz", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_MB_ARTIST_ID, + GRL_METADATA_KEY_ARTIST, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_string ("mb-recording-id", + "MusicBrainz Recording Id", + "The record entity identifier in MusicBrainz", + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_MB_RECORDING_ID, + GRL_METADATA_KEY_INVALID, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("audio-track", + "Audio track", + "Audio track to use within a media", + -1, G_MAXINT, + -1, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_AUDIO_TRACK, + GRL_METADATA_KEY_URL, + NULL); + + grl_registry_register_metadata_key_system (registry, + g_param_spec_int ("album-disc-number", + "Album disc number", + "The disc number for a multi-disc album set", + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE), + GRL_METADATA_KEY_ALBUM_DISC_NUMBER, + GRL_METADATA_KEY_URL, + NULL); +} + +/** + * grl_metadata_key_get_name: + * @key: key to look up + * + * Retrieves the name associated with the key + * + * Returns: The name of the key + * + * Since: 0.1.6 + */ +const gchar * +grl_metadata_key_get_name (GrlKeyID key) +{ + GrlRegistry *registry = grl_registry_get_default (); + + if (registry) { + return grl_registry_lookup_metadata_key_name (registry, key); + } else { + return NULL; + } +} + +/** + * grl_metadata_key_get_desc: + * @key: key to look up + * + * Retrieves the description associated with the key + * + * Returns: the description of the key + * + * Since: 0.1.6 + */ +const gchar * +grl_metadata_key_get_desc (GrlKeyID key) +{ + GrlRegistry *registry = grl_registry_get_default (); + + if (registry) { + return grl_registry_lookup_metadata_key_desc (registry, key); + } else { + return NULL; + } +} + +/** + * grl_metadata_key_get_type: + * @key: key to look up + * + * Retrieves the expected type for values associated with this key + * + * Returns: the expected value type + * + * Since: 0.2.0 + **/ +GType grl_metadata_key_get_type (GrlKeyID key) +{ + GrlRegistry *registry = grl_registry_get_default (); + + if (registry) { + return grl_registry_lookup_metadata_key_type (registry, key); + } else { + return G_TYPE_INVALID; + } +} + +/** + * grl_metadata_key_list_new: (skip) + * @first_key: first key + * @...: va_list keys + * + * Returns a #GList containing the va_list keys. Use #GRL_METADATA_KEY_INVALID + * to finalize them. + * + * Returns: a #GList + * + * Since: 0.2.0 + **/ +GList * +grl_metadata_key_list_new(GrlKeyID first_key, ...) +{ + GList *key_list = NULL; + GrlKeyID next_key; + va_list va_keys; + + va_start (va_keys, first_key); + next_key = first_key; + while (next_key) { + key_list = g_list_prepend (key_list, GRLKEYID_TO_POINTER (next_key)); + next_key = va_arg (va_keys, GrlKeyID); + } + va_end (va_keys); + + return g_list_reverse (key_list); +} diff --git a/src/grl-metadata-key.h b/src/grl-metadata-key.h new file mode 100644 index 0000000..0fa160a --- /dev/null +++ b/src/grl-metadata-key.h @@ -0,0 +1,143 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_METADATA_KEY_H_ +#define _GRL_METADATA_KEY_H_ + +#include +#include + +#define GRL_METADATA_KEY_GET_ID(key) (key) +#define GRL_METADATA_KEY_GET_NAME(key) (grl_metadata_key_get_name (key)) +#define GRL_METADATA_KEY_GET_DESC(key) (grl_metadata_key_get_desc (key)) +#define GRL_METADATA_KEY_GET_TYPE(key) (grl_metadata_key_get_type (key)) + +#define GRL_KEYID_FORMAT "u" + +#define GRLPOINTER_TO_KEYID(p) (GPOINTER_TO_UINT(p)) +#define GRLKEYID_TO_POINTER(k) (GUINT_TO_POINTER(k)) + +typedef guint32 GrlKeyID; + +/** + * GrlMediaType: + * @GRL_MEDIA_TYPE_UNKNOWN: unknown media + * @GRL_MEDIA_TYPE_AUDIO: audio media + * @GRL_MEDIA_TYPE_VIDEO: video media + * @GRL_MEDIA_TYPE_IMAGE: image media + * @GRL_MEDIA_TYPE_CONTAINER: contaddiner media + */ +typedef enum { + GRL_MEDIA_TYPE_UNKNOWN, + GRL_MEDIA_TYPE_AUDIO, + GRL_MEDIA_TYPE_VIDEO, + GRL_MEDIA_TYPE_IMAGE, + GRL_MEDIA_TYPE_CONTAINER +} GrlMediaType; + +#define g_value_get_grl_key_id(value) ((GrlKeyID) g_value_get_uint(value)) +#define g_value_set_grl_key_id(value,key) g_value_set_uint(value,(guint)key) + +#define GRL_METADATA_KEY_INVALID 0 + +/* BEGIN CORE KEYS */ + +#define GRL_METADATA_KEY_ALBUM 1 +#define GRL_METADATA_KEY_ARTIST 2 +#define GRL_METADATA_KEY_AUTHOR 3 +#define GRL_METADATA_KEY_BITRATE 4 +#define GRL_METADATA_KEY_CERTIFICATE 5 +#define GRL_METADATA_KEY_CHILDCOUNT 6 +#define GRL_METADATA_KEY_PUBLICATION_DATE 7 +#define GRL_METADATA_KEY_DESCRIPTION 8 +#define GRL_METADATA_KEY_DURATION 9 +#define GRL_METADATA_KEY_EXTERNAL_PLAYER 10 +#define GRL_METADATA_KEY_EXTERNAL_URL 11 +#define GRL_METADATA_KEY_FRAMERATE 12 +#define GRL_METADATA_KEY_GENRE 13 +#define GRL_METADATA_KEY_HEIGHT 14 +#define GRL_METADATA_KEY_ID 15 +#define GRL_METADATA_KEY_LAST_PLAYED 16 +#define GRL_METADATA_KEY_LAST_POSITION 17 +#define GRL_METADATA_KEY_LICENSE 18 +#define GRL_METADATA_KEY_LYRICS 19 +#define GRL_METADATA_KEY_MIME 20 +#define GRL_METADATA_KEY_PLAY_COUNT 21 +#define GRL_METADATA_KEY_RATING 22 +#define GRL_METADATA_KEY_SITE 23 +#define GRL_METADATA_KEY_SOURCE 24 +#define GRL_METADATA_KEY_STUDIO 25 +#define GRL_METADATA_KEY_THUMBNAIL 26 +#define GRL_METADATA_KEY_THUMBNAIL_BINARY 27 +#define GRL_METADATA_KEY_TITLE 28 +#define GRL_METADATA_KEY_URL 29 +#define GRL_METADATA_KEY_WIDTH 30 +#define GRL_METADATA_KEY_SEASON 31 +#define GRL_METADATA_KEY_EPISODE 32 +#define GRL_METADATA_KEY_SHOW 33 +#define GRL_METADATA_KEY_CREATION_DATE 34 +#define GRL_METADATA_KEY_CAMERA_MODEL 35 +#define GRL_METADATA_KEY_ORIENTATION 36 +#define GRL_METADATA_KEY_FLASH_USED 37 +#define GRL_METADATA_KEY_EXPOSURE_TIME 38 +#define GRL_METADATA_KEY_ISO_SPEED 39 +#define GRL_METADATA_KEY_TRACK_NUMBER 40 +#define GRL_METADATA_KEY_MODIFICATION_DATE 41 +#define GRL_METADATA_KEY_START_TIME 42 +#define GRL_METADATA_KEY_FAVOURITE 43 +#define GRL_METADATA_KEY_REGION 44 +#define GRL_METADATA_KEY_KEYWORD 45 +#define GRL_METADATA_KEY_PERFORMER 46 +#define GRL_METADATA_KEY_PRODUCER 47 +#define GRL_METADATA_KEY_DIRECTOR 48 +#define GRL_METADATA_KEY_ORIGINAL_TITLE 49 +#define GRL_METADATA_KEY_SIZE 50 +#define GRL_METADATA_KEY_TITLE_FROM_FILENAME 51 +#define GRL_METADATA_KEY_MB_ALBUM_ID 52 +#define GRL_METADATA_KEY_MB_TRACK_ID 53 +#define GRL_METADATA_KEY_MB_ARTIST_ID 54 +#define GRL_METADATA_KEY_MB_RECORDING_ID 55 +#define GRL_METADATA_KEY_EPISODE_TITLE 56 +#define GRL_METADATA_KEY_AUDIO_TRACK 57 +#define GRL_METADATA_KEY_ALBUM_DISC_NUMBER 58 +#define GRL_METADATA_KEY_COMPOSER 59 +#define GRL_METADATA_KEY_ALBUM_ARTIST 60 + +/* END CORE KEYS */ + +G_BEGIN_DECLS + +const gchar *grl_metadata_key_get_name (GrlKeyID key); + +const gchar *grl_metadata_key_get_desc (GrlKeyID key); + +GType grl_metadata_key_get_type (GrlKeyID key); + +GList *grl_metadata_key_list_new(GrlKeyID first_key, ...); + +G_END_DECLS + +#endif /* _GRL_METADATA_KEY_H_ */ diff --git a/src/grl-multiple.c b/src/grl-multiple.c new file mode 100644 index 0000000..b37ebee --- /dev/null +++ b/src/grl-multiple.c @@ -0,0 +1,735 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-multiple + * @short_description: Search in multiple loaded sources + * @see_also: #GrlPlugin, #GrlSource + * + * These helper functions are due to ease the search in multiple sources. + * You can specify the list of sources to use for the searching. Those sources + * must have enabled the search capability. + * + * Also you can set %NULL that sources list, so the function will use all + * the available sources with the search capability. + */ + +#include "grl-multiple.h" + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "grl-sync-priv.h" +#include "grl-operation.h" +#include "grl-operation-priv.h" +#include "grl-registry.h" +#include "grl-error.h" +#include "grl-log.h" + +#include + +#define GRL_LOG_DOMAIN_DEFAULT multiple_log_domain +GRL_LOG_DOMAIN(multiple_log_domain); + +struct MultipleSearchData { + GHashTable *table; + guint remaining; + GList *search_ids; + GList *sources; + GList *keys; + guint search_id; + gboolean cancelled; + guint pending; + guint sources_done; + guint sources_count; + GList *sources_more; + gchar *text; + GrlOperationOptions *options; + GrlSourceResultCb user_callback; + gpointer user_data; +}; + +struct ResultCount { + guint count; + guint remaining; + guint received; + guint skip; +}; + +struct CallbackData { + GrlSourceResultCb user_callback; + gpointer user_data; +}; + +struct MediaFromUriCallbackData { + GList/**/ *sources; /* owned */ + GList/**/ *iter; /* unowned */ + gchar *uri; /* owned */ + GList/**/ *keys; /* owned */ + GrlOperationOptions *options; /* owned */ + GrlSourceResolveCb user_callback; + gpointer user_data; +}; + +static void multiple_search_cb (GrlSource *source, + guint search_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error); + +static void multiple_search_cancel_cb (struct MultipleSearchData *msd); + +/* ================ Utitilies ================ */ + +static void +free_multiple_search_data (struct MultipleSearchData *msd) +{ + GRL_DEBUG ("free_multiple_search_data"); + g_hash_table_unref (msd->table); + g_list_free (msd->search_ids); + g_list_free (msd->sources); + g_list_free (msd->sources_more); + g_list_free (msd->keys); + g_object_unref (msd->options); + g_free (msd->text); + g_free (msd); +} + +static gboolean +confirm_cancel_idle (gpointer user_data) +{ + struct MultipleSearchData *msd = (struct MultipleSearchData *) user_data; + msd->user_callback (NULL, msd->search_id, NULL, 0, msd->user_data, NULL); + return FALSE; +} + +static gboolean +handle_no_searchable_sources_idle (gpointer user_data) +{ + GError *error; + struct CallbackData *callback_data = (struct CallbackData *) user_data; + + error = g_error_new (GRL_CORE_ERROR, GRL_CORE_ERROR_SEARCH_FAILED, + _("No searchable sources available")); + callback_data->user_callback (NULL, 0, NULL, 0, callback_data->user_data, error); + + g_error_free (error); + g_free (callback_data); + + return FALSE; +} + +static void +handle_no_searchable_sources (GrlSourceResultCb callback, gpointer user_data) +{ + struct CallbackData *callback_data = g_new0 (struct CallbackData, 1); + guint id; + callback_data->user_callback = callback; + callback_data->user_data = user_data; + id = g_idle_add (handle_no_searchable_sources_idle, callback_data); + g_source_set_name_by_id (id, "[grilo] handle_no_searchable_sources_idle"); +} + +static struct MultipleSearchData * +start_multiple_search_operation (guint search_id, + const GList *sources, + const gchar *text, + const GList *keys, + const GList *skip_counts, + gint count, + GrlOperationOptions *options, + GrlSourceResultCb user_callback, + gpointer user_data) +{ + GRL_DEBUG ("start_multiple_search_operation"); + + struct MultipleSearchData *msd; + GList *iter_sources, *iter_skips; + guint n; + gint first_count, individual_count; + + /* Prepare data required to execute the operation */ + msd = g_new0 (struct MultipleSearchData, 1); + msd->table = g_hash_table_new_full (g_direct_hash, g_direct_equal, + NULL, g_free); + msd->remaining = + (count == GRL_COUNT_INFINITY) ? GRL_COUNT_INFINITY : (count - 1); + msd->search_id = search_id; + msd->text = g_strdup (text); + msd->keys = g_list_copy ((GList *) keys); + msd->options = g_object_ref (options); + msd->user_callback = user_callback; + msd->user_data = user_data; + + /* Compute the # of items to request by each source */ + n = g_list_length ((GList *) sources); + if (count == GRL_COUNT_INFINITY) { + individual_count = GRL_COUNT_INFINITY; + first_count = GRL_COUNT_INFINITY; + } else { + individual_count = count / n; + first_count = individual_count + count % n; + } + + /* Issue search operations on each source */ + iter_sources = (GList *) sources; + iter_skips = (GList *) skip_counts; + n = 0; + while (iter_sources) { + GrlSource *source; + guint c, id; + struct ResultCount *rc; + guint skip; + + source = GRL_SOURCE (iter_sources->data); + + /* c is the count to use for this source */ + c = (n == 0) ? first_count : individual_count; + n++; + + /* Only interested in sources with c != 0 */ + if (c != 0) { + GrlOperationOptions *source_options = NULL; + GrlCaps *source_caps; + + /* We use ResultCount to keep track of results emitted by this source */ + rc = g_new0 (struct ResultCount, 1); + rc->count = c; + g_hash_table_insert (msd->table, source, rc); + + /* Check if we have to apply a "skip" parameter to this source + (useful when we are chaining queries to complete the result count) */ + if (iter_skips) { + skip = GPOINTER_TO_INT (iter_skips->data); + } else { + skip = 0; + } + + source_caps = grl_source_get_caps (source, GRL_OP_SEARCH); + grl_operation_options_obey_caps (options, source_caps, &source_options, NULL); + grl_operation_options_set_skip (source_options, skip); + grl_operation_options_set_count (source_options, rc->count); + + /* Execute the search on this source */ + id = grl_source_search (source, + msd->text, + msd->keys, + source_options, + multiple_search_cb, + msd); + + GRL_DEBUG ("Operation %s:%u: Searching %u items from offset %u", + grl_source_get_name (GRL_SOURCE (source)), + id, rc->count, skip); + + g_object_unref (source_options); + + /* Keep track of this operation and this source */ + msd->search_ids = g_list_prepend (msd->search_ids, GINT_TO_POINTER (id)); + msd->sources = g_list_prepend (msd->sources, source); + msd->sources_count++; + } + + /* Move to the next source */ + iter_sources = g_list_next (iter_sources); + iter_skips = g_list_next (iter_skips); + } + + /* This frees the previous msd structure (if this operation is chained) */ + grl_operation_set_private_data (msd->search_id, + msd, + (GrlOperationCancelCb) multiple_search_cancel_cb, + (GDestroyNotify) free_multiple_search_data); + + return msd; +} + +static struct MultipleSearchData * +chain_multiple_search_operation (struct MultipleSearchData *old_msd) +{ + GList *skip_list = NULL; + GList *source_iter; + struct ResultCount *rc; + GrlSource *source; + struct MultipleSearchData *msd; + + /* Compute skip parameter for each of the sources that can still + provide more results */ + source_iter = old_msd->sources_more; + while (source_iter) { + source = GRL_SOURCE (source_iter->data); + rc = (struct ResultCount *) + g_hash_table_lookup (old_msd->table, (gpointer) source); + skip_list = g_list_prepend (skip_list, + GINT_TO_POINTER (rc->count + rc->skip)); + source_iter = g_list_next (source_iter); + } + + /* Reverse the sources list so that they match the skip list */ + old_msd->sources_more = g_list_reverse (old_msd->sources_more); + + /* Continue the search process with the same search_id */ + msd = start_multiple_search_operation (old_msd->search_id, + old_msd->sources_more, + old_msd->text, + old_msd->keys, + skip_list, + old_msd->pending, + old_msd->options, + old_msd->user_callback, + old_msd->user_data); + g_list_free (skip_list); + + return msd; +} + +static void +multiple_result_async_cb (GrlSource *source, + guint op_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG ("multiple_result_async_cb"); + + if (error) { + ds->error = g_error_copy (error); + + /* Free previous results */ + g_list_free_full (ds->data, g_object_unref); + + ds->data = NULL; + ds->complete = TRUE; + return; + } + + if (media) { + ds->data = g_list_prepend (ds->data, media); + } + + if (remaining == 0) { + ds->data = g_list_reverse (ds->data); + ds->complete = TRUE; + } +} + +static void +multiple_search_cb (GrlSource *source, + guint search_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + GRL_DEBUG (__FUNCTION__); + + struct MultipleSearchData *msd; + gboolean emit; + gboolean operation_done = FALSE; + struct ResultCount *rc; + + msd = (struct MultipleSearchData *) user_data; + + GRL_DEBUG ("multiple:remaining == %u, source:remaining = %u (%s)", + msd->remaining, remaining, + grl_source_get_name (GRL_SOURCE (source))); + + /* Check if operation is done, that is, if all the sources involved + in the multiple operation have emitted remaining=0 */ + if (remaining == 0) { + msd->sources_done++; + if (msd->sources_done == msd->sources_count) { + operation_done = TRUE; + GRL_DEBUG ("multiple operation chunk done"); + } + } + + /* --- Cancellation management --- */ + + if (msd->cancelled) { + GRL_DEBUG ("operation is cancelled or already finished, skipping result!"); + g_clear_object (&media); + if (operation_done) { + /* This was the last result and the operation is cancelled + so we don't have anything else to do*/ + goto operation_done; + } + /* The operation is cancelled but the sources involved + in the operation still have to complete the cancellation, + that is, they still have not send remaining=0 */ + return; + } + + /* --- Update remaining count --- */ + + rc = (struct ResultCount *) + g_hash_table_lookup (msd->table, (gpointer) source); + + if (media) { + rc->received++; + } + + rc->remaining = remaining; + + if (rc->remaining == 0 && rc->received != rc->count) { + /* This source failed to provide as many results as we requested, + we will have to check if other sources can provide the missing + results */ + if (rc->count != GRL_COUNT_INFINITY) + msd->pending += rc->count - rc->received; + } else if (remaining == 0) { + /* This source provided all requested results, if others did not + we can use this to request more */ + msd->sources_more = g_list_prepend (msd->sources_more, source); + GRL_DEBUG ("Source %s provided all requested results", + grl_source_get_name (GRL_SOURCE (source))); + } + + /* --- Manage NULL results --- */ + + if (remaining == 0 && media == NULL && msd->remaining > 0) { + /* A source emitted a NULL result to finish its search operation + we don't want to relay this to the client (unless this is the + last one in the multiple search) */ + GRL_DEBUG ("Skipping NULL result"); + emit = FALSE; + } else { + emit = TRUE; + } + + /* --- Result emission --- */ + + if (emit) { + msd->user_callback (source, + msd->search_id, + media, + msd->remaining--, + msd->user_data, + NULL); + } + + /* --- Manage pending results --- */ + + if (operation_done && msd->pending > 0 && msd->sources_more) { + /* We did not get all the requested results and have sources + that can still provide more */ + GRL_DEBUG ("Requesting next chunk"); + chain_multiple_search_operation (msd); + return; + } else if (operation_done && msd->pending > 0) { + /* We don't have sources capable of providing more results, + finish operation now */ + msd->user_callback (source, + msd->search_id, + NULL, + 0, + msd->user_data, + NULL); + goto operation_done; + } else if (operation_done) { + /* We provided all the results */ + goto operation_done; + } else { + /* We are still receiving results */ + return; + } + + operation_done: + GRL_DEBUG ("Multiple operation finished (%u)", msd->search_id); + grl_operation_remove (msd->search_id); +} + +static void +free_media_from_uri_data (struct MediaFromUriCallbackData *mfucd) +{ + GRL_DEBUG ("free_media_from_uri_data"); + g_list_free (mfucd->sources); + g_free (mfucd->uri); + g_list_free (mfucd->keys); + g_clear_object (&mfucd->options); + g_free (mfucd); +} + +static void +media_from_uri_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + gboolean found = FALSE; + struct MediaFromUriCallbackData *mfucd = + (struct MediaFromUriCallbackData *) user_data; + + /* Found a result? */ + if (media != NULL) { + mfucd->user_callback (source, 0, media, mfucd->user_data, NULL); + free_media_from_uri_data (mfucd); + return; + } + + /* Try the next source. */ + for (; !found && mfucd->iter != NULL; mfucd->iter = mfucd->iter->next) { + GrlSource *next_source = GRL_SOURCE (mfucd->iter->data); + + if (grl_source_test_media_from_uri (next_source, mfucd->uri)) { + grl_source_get_media_from_uri (next_source, mfucd->uri, mfucd->keys, + mfucd->options, media_from_uri_cb, mfucd); + found = TRUE; + } + } + + /* No source knows how to deal with 'uri', invoke user callback + * with NULL GrlMedia */ + if (!found) { + GError *_error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_MEDIA_FROM_URI_FAILED, + _("Could not resolve media for URI “%s”"), + mfucd->uri); + + mfucd->user_callback (NULL, 0, NULL, mfucd->user_data, _error); + + g_error_free (_error); + free_media_from_uri_data (mfucd); + + return; + } +} + +/* ================ API ================ */ + +/** + * grl_multiple_search: + * @sources: (element-type GrlSource) (allow-none): + * a #GList of #GrlSources to search from (%NULL for all + * searchable sources) + * @text: the text to search for + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyID to retrieve + * @options: options wanted for that operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass to the user callback + * + * Search for @text in all the sources specified in @sources. + * + * If @text is @NULL then NULL-text searchs will be used for each searchable + * plugin (see #grl_source_search for more details). + * + * This method is asynchronous. + * + * Returns: the operation identifier + * + * Since: 0.2.0 + */ +guint +grl_multiple_search (const GList *sources, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data) +{ + GrlRegistry *registry; + GList *sources_list; + struct MultipleSearchData *msd; + gboolean allocated_sources_list = FALSE; + guint operation_id; + + GRL_DEBUG ("grl_multiple_search"); + + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + + /* If no sources have been provided then get the list of all + searchable sources from the registry */ + if (!sources) { + registry = grl_registry_get_default (); + sources_list = + grl_registry_get_sources_by_operations (registry, + GRL_OP_SEARCH, + TRUE); + if (sources_list == NULL) { + /* No searchable sources? Raise error and bail out */ + g_list_free (sources_list); + handle_no_searchable_sources (callback, user_data); + return 0; + } else { + sources = sources_list; + allocated_sources_list = TRUE; + } + } + + /* Start multiple search operation */ + operation_id = grl_operation_generate_id (); + msd = start_multiple_search_operation (operation_id, + sources, + text, + keys, + NULL, + grl_operation_options_get_count (options), + options, + callback, + user_data); + if (allocated_sources_list) { + g_list_free ((GList *) sources); + } + + return msd->search_id; +} + +static void +multiple_search_cancel_cb (struct MultipleSearchData *msd) +{ + GList *sources, *ids; + guint id; + + /* Go through all the sources involved in that operation and issue + cancel() operations for each one */ + sources = msd->sources; + ids = msd->search_ids; + while (sources) { + GRL_DEBUG ("cancelling operation %s:%u", + grl_source_get_name (GRL_SOURCE (sources->data)), + GPOINTER_TO_UINT (ids->data)); + grl_operation_cancel (GPOINTER_TO_INT (ids->data)); + sources = g_list_next (sources); + ids = g_list_next (ids); + } + + msd->cancelled = TRUE; + + /* Send operation finished message now to client (remaining == 0) */ + id = g_idle_add (confirm_cancel_idle, msd); + g_source_set_name_by_id (id, "[grilo] confirm_cancel_idle"); +} + +/** + * grl_multiple_search_sync: + * @sources: (element-type GrlSource) (allow-none): + * a #GList of #GrlSources where to search from (%NULL for all + * available sources with search capability) + * @text: the text to search for + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyID to retrieve + * @options: options wanted for that operation + * @error: a #GError, or @NULL + * + * Search for @text in all the sources specified in @sources. + * + * This method is synchronous. + * + * Returns: (element-type GrlMedia) (transfer full): a list with #GrlMedia elements + * + * Since: 0.2.0 + */ +GList * +grl_multiple_search_sync (const GList *sources, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GError **error) +{ + GrlDataSync *ds; + GList *result; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_multiple_search (sources, + text, + keys, + options, + multiple_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + result = (GList *) ds->data; + g_slice_free (GrlDataSync, ds); + + return result; +} + +/** + * grl_multiple_get_media_from_uri: + * @uri: A URI that can be used to identify a media resource + * @keys: (element-type GrlKeyID): List of metadata keys we want to obtain. + * @options: options wanted for that operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass to the user callback + * + * Goes though all available media sources until it finds one capable of + * constructing a GrlMedia object representing the media resource exposed + * by @uri. + * + * This method is asynchronous. + * + * Since: 0.2.0 + */ +void +grl_multiple_get_media_from_uri (const gchar *uri, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResolveCb callback, + gpointer user_data) +{ + GrlRegistry *registry; + GList *sources; + struct MediaFromUriCallbackData *mfucd; + + g_return_if_fail (uri != NULL); + g_return_if_fail (keys != NULL); + g_return_if_fail (callback != NULL); + g_return_if_fail (GRL_IS_OPERATION_OPTIONS (options)); + + registry = grl_registry_get_default (); + sources = + grl_registry_get_sources_by_operations (registry, + GRL_OP_MEDIA_FROM_URI, + TRUE); + + /* Iterate through the sources, trying each one which knows how to deal with + * @uri, and continuing if it then returns %NULL for the media. */ + mfucd = g_new0 (struct MediaFromUriCallbackData, 1); + + mfucd->sources = sources; /* transfer */ + mfucd->iter = sources; + mfucd->user_callback = callback; + mfucd->user_data = user_data; + mfucd->uri = g_strdup (uri); + mfucd->keys = g_list_copy ((GList *) keys); + mfucd->options = g_object_ref (options); + + /* Start the first iteration off. */ + media_from_uri_cb (NULL, 0, NULL, mfucd, NULL); +} diff --git a/src/grl-multiple.h b/src/grl-multiple.h new file mode 100644 index 0000000..36c5c8c --- /dev/null +++ b/src/grl-multiple.h @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2010 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_MULTIPLE_H_ +#define _GRL_MULTIPLE_H_ + +#include + +#include "grl-source.h" +#include "grl-operation-options.h" + +G_BEGIN_DECLS + +guint grl_multiple_search (const GList *sources, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data); + +GList *grl_multiple_search_sync (const GList *sources, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GError **error); + +void grl_multiple_get_media_from_uri (const gchar *uri, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResolveCb callback, + gpointer user_data); + +G_END_DECLS + +#endif diff --git a/src/grl-operation-options-priv.h b/src/grl-operation-options-priv.h new file mode 100644 index 0000000..49de323 --- /dev/null +++ b/src/grl-operation-options-priv.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_OPERATION_OPTIONS_PRIV_H_ +#define _GRL_OPERATION_OPTIONS_PRIV_H_ + +#include + +/* FIXME: Would probably be best to change these (and the APIs using them) into + * GQuarks */ +#define GRL_OPERATION_OPTION_SKIP "skip" +#define GRL_OPERATION_OPTION_COUNT "count" +#define GRL_OPERATION_OPTION_RESOLUTION_FLAGS "resolution-flags" +#define GRL_OPERATION_OPTION_TYPE_FILTER "type-filter" +#define GRL_OPERATION_OPTION_KEY_EQUAL_FILTER "key-equal-filter" +#define GRL_OPERATION_OPTION_KEY_RANGE_FILTER "key-range-filter" + +gboolean grl_operation_options_key_is_set (GrlOperationOptions *options, + const gchar *key); + +#endif /* _GRL_OPERATION_OPTIONS_PRIV_H_ */ diff --git a/src/grl-operation-options.c b/src/grl-operation-options.c new file mode 100644 index 0000000..74c823f --- /dev/null +++ b/src/grl-operation-options.c @@ -0,0 +1,909 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-operation-options + * @short_description: Describes the options to be passed to an operation + * @see_also: #GrlCaps, grl_source_resolve(), + * grl_source_search(), grl_source_browse(), + * grl_source_query() + * + */ +#include +#include +#include +#include +#include + +#include "grl-operation-options-priv.h" +#include "grl-type-builtins.h" + +struct _GrlOperationOptionsPrivate { + GHashTable *data; + GHashTable *key_filter; + GHashTable *key_range_filter; + GrlCaps *caps; +}; + +G_DEFINE_TYPE_WITH_PRIVATE (GrlOperationOptions, grl_operation_options, G_TYPE_OBJECT); + +#define SKIP_DEFAULT 0; +#define COUNT_DEFAULT GRL_COUNT_INFINITY; +#define RESOLUTION_FLAGS_DEFAULT GRL_RESOLVE_NORMAL; +#define TYPE_FILTER_DEFAULT GRL_TYPE_FILTER_ALL; + +static void +grl_operation_options_dispose (GrlOperationOptions *self) +{ +} + +static void +grl_operation_options_finalize (GrlOperationOptions *self) +{ + g_hash_table_unref (self->priv->data); + g_hash_table_unref (self->priv->key_filter); + g_hash_table_unref (self->priv->key_range_filter); + g_clear_object (&self->priv->caps); + G_OBJECT_CLASS (grl_operation_options_parent_class)->finalize ((GObject *) self); +} + +static void +grl_operation_options_init (GrlOperationOptions *self) +{ + self->priv = grl_operation_options_get_instance_private (self); + + self->priv->data = grl_g_value_hashtable_new (); + self->priv->key_filter = grl_g_value_hashtable_new_direct (); + self->priv->key_range_filter = grl_range_value_hashtable_new (); + self->priv->caps = NULL; +} + +static void +grl_operation_options_class_init (GrlOperationOptionsClass *self_class) +{ + GObjectClass *object_class = G_OBJECT_CLASS (self_class); + + object_class->dispose = (void (*) (GObject *object)) grl_operation_options_dispose; + object_class->finalize = (void (*) (GObject *object)) grl_operation_options_finalize; +} + +static void +set_value (GrlOperationOptions *options, + const gchar *key, + const GValue *value) +{ + g_hash_table_insert (options->priv->data, + g_strdup (key), grl_g_value_dup (value)); +} + +static void +copy_option (GrlOperationOptions *source, + GrlOperationOptions *destination, + const gchar *key) +{ + const GValue *value; + + value = g_hash_table_lookup (source->priv->data, key); + + if (value != NULL) + set_value (destination, key, value); +} + +static gboolean +check_and_copy_option (GrlOperationOptions *options, + GrlCaps *caps, + const gchar *key, + GrlOperationOptions **supported_options, + GrlOperationOptions **unsupported_options) +{ + if (grl_operation_options_key_is_set (options, key)) { + GValue *value; + gboolean filter_is_supported; + + value = g_hash_table_lookup (options->priv->data, key); + filter_is_supported = grl_caps_test_option (caps, key, value); + + if (filter_is_supported && supported_options) + set_value (*supported_options, key, value); + else if (!filter_is_supported && unsupported_options) + set_value (*unsupported_options, key, value); + + return filter_is_supported; + } + + return TRUE; +} + +static void +key_filter_dup (gpointer key_p, GValue *value, GHashTable *destination) +{ + g_hash_table_insert (destination, key_p, grl_g_value_dup (value)); +} + +static void +key_range_filter_dup (GrlKeyID key, GrlRangeValue *value, GHashTable *destination) +{ + grl_range_value_hashtable_insert (destination, GRLKEYID_TO_POINTER (key), value->min, value->max); +} + +/* ========== API ========== */ + +/** + * grl_operation_options_new: + * @caps: (allow-none): caps that options will have to match. If %NULL, all + * options will be accepted. + * + * Creates a new GrlOperationOptions object. + * + * Returns: a new GrlOperationOptions instance. + * + * Since: 0.2.0 + */ +GrlOperationOptions * +grl_operation_options_new (GrlCaps *caps) +{ + GrlOperationOptions *options = g_object_new (GRL_OPERATION_OPTIONS_TYPE, NULL); + if (caps != NULL) + options->priv->caps = g_object_ref (caps); + + return options; +} + +/** + * grl_operation_options_obey_caps: + * @options: a #GrlOperationOptions instance + * @caps: capabilities against which we want to test @options + * @supported_options: (out callee-allocates): if not %NULL, will contain a + * newly-allocated #GrlOperationOptions instance containing all the values of + * @options that match @caps. + * @unsupported_options: (out callee-allocates): if not %NULL, will contain a + * newly-allocated #GrlOperationOptions instance containing all the values of + * @options that do not match @caps. + * + * Check whether @options obey to @caps. + * Optionally provide the options that match (respectively don't match) @caps + * in @supported_options (respectively @unsupported_options). + * This would typically (but not necessarily) be used with a + * #GrlOperationOptions instance that was created with %NULL caps. + * + * Returns: %TRUE if @options obey to @caps, %FALSE otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_operation_options_obey_caps (GrlOperationOptions *options, + GrlCaps *caps, + GrlOperationOptions **supported_options, + GrlOperationOptions **unsupported_options) +{ + gboolean ret = TRUE; + GHashTableIter table_iter; + gpointer key_ptr; + GValue *value; + GrlRangeValue *range_value; + + if (supported_options) { + *supported_options = grl_operation_options_new (caps); + + /* these options are always supported */ + copy_option (options, *supported_options, GRL_OPERATION_OPTION_SKIP); + copy_option (options, *supported_options, GRL_OPERATION_OPTION_COUNT); + copy_option (options, *supported_options, GRL_OPERATION_OPTION_RESOLUTION_FLAGS); + } + + if (unsupported_options) + *unsupported_options = grl_operation_options_new (NULL); + + ret &= check_and_copy_option (options, + caps, + GRL_OPERATION_OPTION_TYPE_FILTER, + supported_options, + unsupported_options); + + /* Check filter-by-equal-key */ + g_hash_table_iter_init (&table_iter, options->priv->key_filter); + while (g_hash_table_iter_next (&table_iter, &key_ptr, (gpointer *)&value)) { + GrlKeyID key_id = GRLPOINTER_TO_KEYID (key_ptr); + if (grl_caps_is_key_filter (caps, key_id)) { + if (supported_options) { + g_hash_table_insert ((*supported_options)->priv->key_filter, + key_ptr, + grl_g_value_dup (value)); + } + } else { + ret = FALSE; + if (unsupported_options) { + g_hash_table_insert ((*unsupported_options)->priv->key_filter, + key_ptr, + grl_g_value_dup (value)); + } + } + } + + /* Check filter-by-range-key */ + g_hash_table_iter_init (&table_iter, options->priv->key_range_filter); + while (g_hash_table_iter_next (&table_iter, &key_ptr, (gpointer *)&range_value)) { + GrlKeyID key_id = GRLPOINTER_TO_KEYID (key_ptr); + if (grl_caps_is_key_range_filter (caps, key_id)) { + if (supported_options) { + g_hash_table_insert ((*supported_options)->priv->key_range_filter, + key_ptr, + grl_range_value_dup (range_value)); + } + } else { + ret = FALSE; + if (unsupported_options) { + g_hash_table_insert ((*unsupported_options)->priv->key_range_filter, + key_ptr, + grl_range_value_dup (range_value)); + } + } + } + + return ret; +} + +/** + * grl_operation_options_copy: + * @options: a #GrlOperationOptions instance + * + * Returns: (transfer full): a new #GrlOperationOptions instance with its values being copies of + * the values of @options. + * + * Since: 0.2.0 + */ +GrlOperationOptions * +grl_operation_options_copy (GrlOperationOptions *options) +{ + GrlOperationOptions *copy = grl_operation_options_new (options->priv->caps); + + copy_option (options, copy, GRL_OPERATION_OPTION_SKIP); + copy_option (options, copy, GRL_OPERATION_OPTION_COUNT); + copy_option (options, copy, GRL_OPERATION_OPTION_RESOLUTION_FLAGS); + copy_option (options, copy, GRL_OPERATION_OPTION_TYPE_FILTER); + + g_hash_table_foreach (options->priv->key_filter, + (GHFunc) key_filter_dup, + copy->priv->key_filter); + + g_hash_table_foreach (options->priv->key_range_filter, + (GHFunc) key_range_filter_dup, + copy->priv->key_range_filter); + + return copy; +} + +/** + * grl_operation_options_key_is_set: + * @options: a #GrlOperationOptions instance + * @key: an operation option key + * + * This is an internal method that shouldn't be used outside of Grilo. + * + * Returns: whether @key is set in @options. + * + * Since: 0.2.0 + */ +gboolean +grl_operation_options_key_is_set (GrlOperationOptions *options, + const gchar *key) +{ + return g_hash_table_lookup_extended (options->priv->data, key, NULL, NULL); +} + +/** + * grl_operation_options_set_skip: + * @options: a #GrlOperationOptions instance + * @skip: number of elements to skip in an operation + * + * Set the skip option for an operation. Will only succeed if @skip obeys to the + * inherent capabilities of @options. + * + * Returns: %TRUE if @skip could be set, %FALSE otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_operation_options_set_skip (GrlOperationOptions *options, + guint skip) +{ + GValue skip_val = { 0, }; + + g_value_init (&skip_val, G_TYPE_UINT); + g_value_set_uint (&skip_val, skip); + + set_value (options, GRL_OPERATION_OPTION_SKIP, &skip_val); + + g_value_unset (&skip_val); + + return TRUE; +} + +/** + * grl_operation_options_get_skip: + * @options: a #GrlOperationOptions instance + * + * Get the skip option, that is, the number of elements to skip before + * retrieving media items in an operation done with @options. + * + * Returns: the value of the skip option, or a default value if it is not set. + * + * Since: 0.2.0 + */ +guint +grl_operation_options_get_skip (GrlOperationOptions *options) +{ + const GValue *value = + g_hash_table_lookup (options->priv->data, GRL_OPERATION_OPTION_SKIP); + + if (value) + return g_value_get_uint (value); + + return SKIP_DEFAULT; +} + +/** + * grl_operation_options_set_count: + * @options: a #GrlOperationOptions instance + * @count: number of elements to retrieve in an operation + * + * Set the count option for an operation. Will only succeed if @count obey to + * the inherent capabilities of @options. + * + * Returns: %TRUE if @count could be set, %FALSE otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_operation_options_set_count (GrlOperationOptions *options, gint count) +{ + GValue count_val = { 0, }; + + g_value_init (&count_val, G_TYPE_INT); + g_value_set_int (&count_val, count); + + set_value (options, GRL_OPERATION_OPTION_COUNT, &count_val); + + g_value_unset (&count_val); + + return TRUE; +} + +/** + * grl_operation_options_get_count: + * @options: a #GrlOperationOptions instance + * + * Get the count option, that is, the number of elements to retrieve in an + * operation done with @options. + * + * Returns: the value of the count option, or a default value if it is not set. + * + * Since: 0.2.0 + */ +gint +grl_operation_options_get_count (GrlOperationOptions *options) +{ + const GValue *value = + g_hash_table_lookup (options->priv->data, GRL_OPERATION_OPTION_COUNT); + + if (value) + return g_value_get_int (value); + + return COUNT_DEFAULT; +} + +/** + * grl_operation_options_set_resolution_flags: + * @options: a #GrlOperationOptions instance + * @flags: the resolution flags to be set for an operation. See + * #GrlResolutionFlags for possible values. + * + * Set the resolution flags for an operation. Will only succeed if @flags obey + * to the inherent capabilities of @options. + * + * Returns: %TRUE if @flags could be set, %FALSE otherwise. + * + * Since: 0.2.12 + */ +gboolean +grl_operation_options_set_resolution_flags (GrlOperationOptions *options, + GrlResolutionFlags flags) +{ + GValue value = { 0, }; + + /* FIXME: I think we should use mk_enum to have a GType for + * GrlResolutionFlags */ + g_value_init (&value, G_TYPE_UINT); + g_value_set_uint (&value, flags); + set_value (options, GRL_OPERATION_OPTION_RESOLUTION_FLAGS, &value); + g_value_unset (&value); + + return TRUE; +} + +/** + * grl_operation_options_get_resolution_flags: + * @options: a #GrlOperationOptions instance + * + * Returns: resolution flags of @options. + * + * Since: 0.2.12 + */ +GrlResolutionFlags +grl_operation_options_get_resolution_flags (GrlOperationOptions *options) +{ + const GValue *value; + + if (options) + value = g_hash_table_lookup (options->priv->data, + GRL_OPERATION_OPTION_RESOLUTION_FLAGS); + else + value = NULL; + + if (value) + return g_value_get_uint (value); + + return RESOLUTION_FLAGS_DEFAULT; +} + +/** + * grl_operation_options_set_type_filter: + * @options: a #GrlOperationOptions instance + * @filter: the type of media to get + * + * Set the type of media filter for an operation. Only those media elements that + * match the @filter will be returned. Will only succeed if @filter obey to the + * inherent capabilities of @options. + * + * Returns: %TRUE if @flags could be set, %FALSE otherwise + * + * Since: 0.2.0 + **/ +gboolean +grl_operation_options_set_type_filter (GrlOperationOptions *options, + GrlTypeFilter filter) +{ + GValue value = { 0 }; + gboolean ret; + + g_value_init (&value, GRL_TYPE_TYPE_FILTER); + g_value_set_flags (&value, filter); + + ret = (options->priv->caps == NULL) || + grl_caps_test_option (options->priv->caps, + GRL_OPERATION_OPTION_TYPE_FILTER, &value); + + if (ret) + set_value (options, GRL_OPERATION_OPTION_TYPE_FILTER, &value); + + g_value_unset (&value); + + return ret; +} + +/** + * grl_operation_options_get_type_filter: + * @options: a #GrlOperationOptions instance + * + * + * Returns: resolution flags of @options + * + * Since: 0.2.0 + **/ +GrlTypeFilter +grl_operation_options_get_type_filter (GrlOperationOptions *options) +{ + const GValue *value = g_hash_table_lookup (options->priv->data, + GRL_OPERATION_OPTION_TYPE_FILTER); + + if (value) { + return g_value_get_flags (value); + } + + return TYPE_FILTER_DEFAULT; +} + +/** + * grl_operation_options_set_key_filter_value: + * @options: a #GrlOperationOptions instance + * @key: a #GrlKeyID + * @value: a #GValue + * + * Set filter as "@key == @value". + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + **/ +gboolean +grl_operation_options_set_key_filter_value (GrlOperationOptions *options, + GrlKeyID key, + GValue *value) +{ + gboolean ret; + GrlRegistry *registry; + GType key_type; + + registry = grl_registry_get_default (); + key_type = grl_registry_lookup_metadata_key_type (registry, key); + + if (G_VALUE_TYPE (value) != key_type) + return FALSE; + + ret = (options->priv->caps == NULL) || + grl_caps_is_key_filter (options->priv->caps, key); + + if (ret) { + if (value) { + g_hash_table_insert (options->priv->key_filter, + GRLKEYID_TO_POINTER (key), + grl_g_value_dup (value)); + } else { + g_hash_table_remove (options->priv->key_filter, + GRLKEYID_TO_POINTER (key)); + } + } + + return ret; +} + +/** + * grl_operation_options_set_key_filters: + * @options: a #GrlOperationOptions instance + * @...: pairs of #GrlKeyID, value + * + * Set filter as "k1 == v1 AND k2 == v2 AND ..." + * + * + * Elements from album "Frozen" with a bitrate of 256kbs. + * + * grl_operation_options_set_key_filters (my_options, + * GRL_METADATA_KEY_ALBUM, "Frozen", + * GRL_METADATA_KEY_BITRATE, 256, + * NULL); + * + * + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + **/ +gboolean +grl_operation_options_set_key_filters (GrlOperationOptions *options, + ...) +{ + GType key_type; + GValue value = { 0 }; + GrlKeyID next_key; + gboolean skip; + gboolean success = TRUE; + va_list args; + + va_start (args, options); + next_key = va_arg (args, GrlKeyID); + while (next_key) { + key_type = GRL_METADATA_KEY_GET_TYPE (next_key); + g_value_init (&value, key_type); + skip = FALSE; + if (key_type == G_TYPE_STRING) { + g_value_set_string (&value, va_arg (args, gchar *)); + } else if (key_type == G_TYPE_INT) { + g_value_set_int (&value, va_arg (args, gint)); + } else if (key_type == G_TYPE_BOOLEAN) { + g_value_set_boolean (&value, va_arg (args, gboolean)); + } else if (key_type == G_TYPE_DATE_TIME) { + g_value_set_boxed (&value, va_arg (args, gconstpointer)); + } else { + GRL_WARNING ("Unexpected key type when setting up the filter"); + success = FALSE; + skip = TRUE; + } + + if (!skip) { + success &= grl_operation_options_set_key_filter_value (options, + next_key, + &value); + } + + g_value_unset (&value); + next_key = va_arg (args, GrlKeyID); + } + + va_end (args); + + return success; +} + +/** + * grl_operation_options_set_key_filter_dictionary: (rename-to grl_operation_options_set_key_filters) + * @options: a #GrlOperationOptions instance + * @filters: (transfer none) (element-type GrlKeyID GValue): + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + */ +gboolean +grl_operation_options_set_key_filter_dictionary (GrlOperationOptions *options, + GHashTable *filters) +{ + GHashTableIter iter; + gpointer _key, _value; + gboolean ret = TRUE; + + g_hash_table_iter_init (&iter, filters); + while (g_hash_table_iter_next (&iter, &_key, &_value)) { + GrlKeyID key = GRLPOINTER_TO_KEYID (_key); + GValue *value = (GValue *)_value; + ret &= + grl_operation_options_set_key_filter_value (options, key, value); + } + + return ret; +} + +/** + * grl_operation_options_get_key_filter: + * @options: a #GrlOperationOptions instance + * @key: + * + * Returns: (transfer none): the filter + * + * Since: 0.2.0 + */ +GValue * +grl_operation_options_get_key_filter (GrlOperationOptions *options, + GrlKeyID key) +{ + return g_hash_table_lookup (options->priv->key_filter, + GRLKEYID_TO_POINTER (key)); +} + +/** + * grl_operation_options_get_key_filter_list: + * @options: a #GrlOperationOptions instance + * + * Returns: (transfer container) (element-type GrlKeyID): + * + * Since: 0.2.0 + */ +GList * +grl_operation_options_get_key_filter_list (GrlOperationOptions *options) +{ + return g_hash_table_get_keys (options->priv->key_filter); +} + +/** + * grl_operation_options_set_key_range_filter_value: + * @options: a #GrlOperationOptions instance + * @key: a #GrlKeyID + * @min_value: (in) (allow-none): minimum value for range + * @max_value: (in) (allow-none): maximum value for range + * + * Set filter as "@min_value <= @key <= @max_value". + * + * If @min_value is %NULL, then filter is "@key <= @max_value". + * + * If @max_value is %NULL, then filter is "@key >= @min_value". + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + **/ +gboolean +grl_operation_options_set_key_range_filter_value (GrlOperationOptions *options, + GrlKeyID key, + GValue *min_value, + GValue *max_value) +{ + gboolean ret; + + ret = (options->priv->caps == NULL) || + grl_caps_is_key_range_filter (options->priv->caps, key); + + if (ret) { + if (min_value || max_value) { + grl_range_value_hashtable_insert (options->priv->key_range_filter, + GRLKEYID_TO_POINTER (key), + min_value, max_value); + } else { + g_hash_table_remove (options->priv->key_range_filter, + GRLKEYID_TO_POINTER (key)); + } + } + + return ret; +} + +/** + * grl_operation_options_set_key_range_filter: + * @options: a #GrlOperationOptions instance + * @...: triplets of #GrlKeyID, minvalue, maxvalue + * + * Set filter as "min1 <= k1 <= max1 AND min2 <= k2 <= max2 AND ..." + * + * The range can be open if some of the minX, maxX values are %NULL. + + * + * Album must start with "T" and the bitrate should be 256kbs or greater. + * + * grl_operation_options_set_key_range_filters (my_options, + * GRL_METADATA_KEY_ALBUM, "Ta", "Tz", + * GRL_METADATA_KEY_BITRATE, 256, NULL, + * NULL); + * + * + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + **/ +gboolean +grl_operation_options_set_key_range_filter (GrlOperationOptions *options, + ...) +{ + GType key_type; + GValue min_value = { 0 }; + GValue *min_p_value; + gint min_int_value; + gchar *min_str_value; + gfloat min_float_value; + gconstpointer min_date_value; + GValue max_value = { 0 }; + GValue *max_p_value; + gint max_int_value; + gchar *max_str_value; + gfloat max_float_value; + gconstpointer max_date_value; + GrlKeyID next_key; + gboolean skip; + gboolean success = TRUE; + va_list args; + + va_start (args, options); + next_key = va_arg (args, GrlKeyID); + while (next_key) { + key_type = GRL_METADATA_KEY_GET_TYPE (next_key); + g_value_init (&min_value, key_type); + g_value_init (&max_value, key_type); + min_p_value = NULL; + max_p_value = NULL; + skip = FALSE; + if (key_type == G_TYPE_STRING) { + min_str_value = va_arg (args, gchar *); + max_str_value = va_arg (args, gchar *); + if (min_str_value) { + g_value_set_string (&min_value, min_str_value); + min_p_value = &min_value; + } + if (max_str_value) { + g_value_set_string (&max_value, max_str_value); + max_p_value = &max_value; + } + } else if (key_type == G_TYPE_INT) { + min_int_value = va_arg (args, gint); + max_int_value = va_arg (args, gint); + if (min_int_value > G_MININT) { + g_value_set_int (&min_value, min_int_value); + min_p_value = &min_value; + } + if (max_int_value < G_MAXINT) { + g_value_set_int (&max_value, max_int_value); + max_p_value = &max_value; + } + } else if (key_type == G_TYPE_FLOAT) { + min_float_value = va_arg (args, gdouble); + max_float_value = va_arg (args, gdouble); + if (min_float_value > G_MINFLOAT) { + g_value_set_float (&min_value, min_float_value); + min_p_value = &min_value; + } + if (max_float_value < G_MAXFLOAT) { + g_value_set_float (&max_value, max_float_value); + max_p_value = &max_value; + } + } else if (key_type == G_TYPE_DATE_TIME) { + min_date_value = va_arg (args, gconstpointer); + max_date_value = va_arg (args, gconstpointer); + if (min_date_value) { + g_value_set_boxed (&min_value, min_date_value); + min_p_value = &min_value; + } + if (max_date_value) { + g_value_set_boxed (&max_value, max_date_value); + max_p_value = &max_value; + } + } else { + GRL_WARNING ("Unexpected key type when setting up the filter"); + success = FALSE; + skip = TRUE; + } + + if (!skip) { + success &= grl_operation_options_set_key_range_filter_value (options, + next_key, + min_p_value, + max_p_value); + } + + g_value_unset (&min_value); + g_value_unset (&max_value); + next_key = va_arg (args, GrlKeyID); + } + + va_end (args); + + return success; +} + +/** + * grl_operation_options_get_key_range_filter: + * @options: a #GrlOperationOptions instance + * @key: a #GrlKeyID + * @min_value: (out) (allow-none) (transfer none): the minimum value for the range + * @max_value: (out) (allow-none) (transfer none): the maximum value for the range + * + * Stores the limits of the range in the filter for @key in @min_value and + * @max_value. If some of the values has no limit, it will set a %NULL. + * + * Since: 0.2.0 + **/ +void +grl_operation_options_get_key_range_filter (GrlOperationOptions *options, + GrlKeyID key, + GValue **min_value, + GValue **max_value) +{ + GrlRangeValue *range = + (GrlRangeValue *) g_hash_table_lookup (options->priv->key_range_filter, + GRLKEYID_TO_POINTER (key)); + + if (min_value) { + if (range && range->min) { + *min_value = range->min; + } else { + *min_value = NULL; + } + } + + if (max_value) { + if (range && range->max) { + *max_value = range->max; + } else { + *max_value = NULL; + } + } +} + +/** + * grl_operation_options_get_key_range_filter_list: + * @options: a #GrlOperationOptions instance + * + * Returns: (transfer container) (element-type GrlKeyID): + * + * Since: 0.2.0 + */ +GList * +grl_operation_options_get_key_range_filter_list (GrlOperationOptions *options) +{ + return g_hash_table_get_keys (options->priv->key_range_filter); +} diff --git a/src/grl-operation-options.h b/src/grl-operation-options.h new file mode 100644 index 0000000..a6c3ee9 --- /dev/null +++ b/src/grl-operation-options.h @@ -0,0 +1,161 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#include +#include + +#if !defined (_GRL_OPERATION_OPTIONS_H_) +#define _GRL_OPERATION_OPTIONS_H_ + +G_BEGIN_DECLS + +typedef struct _GrlOperationOptionsPrivate GrlOperationOptionsPrivate; + +typedef struct { + GObject parent; + + /*< private >*/ + GrlOperationOptionsPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING_SMALL]; +} GrlOperationOptions; + +/** + * GrlOperationOptionsClass: + * @parent: the parent class structure + * + * Grilo Operation Options class. + */ +typedef struct { + GObjectClass parent; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlOperationOptionsClass; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlOperationOptions, g_object_unref) + +#define GRL_TYPE_OPERATION_OPTIONS (grl_operation_options_get_type ()) +#define GRL_OPERATION_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptions)) +#define GRL_OPERATION_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptionsClass)) +#define GRL_IS_OPERATION_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRL_TYPE_OPERATION_OPTIONS)) +#define GRL_IS_OPERATION_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRL_TYPE_OPERATION_OPTIONS)) +#define GRL_OPERATION_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptionsClass)) + +/* Keep this macro for backwards compatibility */ +#define GRL_OPERATION_OPTIONS_TYPE (GRL_TYPE_OPERATION_OPTIONS) + +/** + * GrlResolutionFlags: + * @GRL_RESOLVE_NORMAL: Normal mode. + * @GRL_RESOLVE_FULL: Try other plugins if necessary. + * @GRL_RESOLVE_IDLE_RELAY: Use idle loop to relay results. + * @GRL_RESOLVE_FAST_ONLY: Only resolve fast metadata keys. + * + * Resolution flags + */ +typedef enum { + GRL_RESOLVE_NORMAL = 0, /* Normal mode */ + GRL_RESOLVE_FULL = (1 << 0), /* Try other plugins if necessary */ + GRL_RESOLVE_IDLE_RELAY = (1 << 1), /* Use idle loop to relay results */ + GRL_RESOLVE_FAST_ONLY = (1 << 2) /* Only resolve fast metadata keys */ +} GrlResolutionFlags; + +/** + * GrlWriteFlags: + * @GRL_WRITE_NORMAL: Normal mode. + * @GRL_WRITE_FULL: Try other plugins if necessary. + * + * Flags for writing operations. + */ +typedef enum { + GRL_WRITE_NORMAL = 0, /* Normal mode */ + GRL_WRITE_FULL = (1 << 0) /* Try other plugins if necessary */ +} GrlWriteFlags; + +#define GRL_COUNT_INFINITY (-1) + +GType grl_operation_options_get_type (void); + +GrlOperationOptions *grl_operation_options_new (GrlCaps *caps); + +gboolean grl_operation_options_obey_caps (GrlOperationOptions *options, + GrlCaps *caps, + GrlOperationOptions **supported_options, + GrlOperationOptions **unsupported_options); + +GrlOperationOptions *grl_operation_options_copy (GrlOperationOptions *options); + +gboolean grl_operation_options_set_skip (GrlOperationOptions *options, guint skip); +guint grl_operation_options_get_skip (GrlOperationOptions *options); + +gboolean grl_operation_options_set_count (GrlOperationOptions *options, gint count); +gint grl_operation_options_get_count (GrlOperationOptions *options); + +gboolean grl_operation_options_set_resolution_flags (GrlOperationOptions *options, + GrlResolutionFlags flags); +GrlResolutionFlags + grl_operation_options_get_resolution_flags (GrlOperationOptions *options); + +gboolean grl_operation_options_set_type_filter (GrlOperationOptions *options, + GrlTypeFilter filter); + +GrlTypeFilter grl_operation_options_get_type_filter (GrlOperationOptions *options); + +gboolean grl_operation_options_set_key_filter_value (GrlOperationOptions *options, + GrlKeyID key, + GValue *value); + +gboolean grl_operation_options_set_key_filters (GrlOperationOptions *options, + ...) G_GNUC_NULL_TERMINATED; + +gboolean grl_operation_options_set_key_filter_dictionary (GrlOperationOptions *options, + GHashTable *filters); + +GValue *grl_operation_options_get_key_filter (GrlOperationOptions *options, + GrlKeyID key); + +GList *grl_operation_options_get_key_filter_list (GrlOperationOptions *options); + +gboolean grl_operation_options_set_key_range_filter_value (GrlOperationOptions *options, + GrlKeyID key, + GValue *min_value, + GValue *max_value); + +gboolean grl_operation_options_set_key_range_filter (GrlOperationOptions *options, + ...); + +void grl_operation_options_get_key_range_filter (GrlOperationOptions *options, + GrlKeyID key, + GValue **min_value, + GValue **max_value); + + +GList *grl_operation_options_get_key_range_filter_list (GrlOperationOptions *options); + +G_END_DECLS + +#endif /* _GRL_OPERATION_OPTIONS_H_ */ diff --git a/src/grl-operation-priv.h b/src/grl-operation-priv.h new file mode 100644 index 0000000..bdf4302 --- /dev/null +++ b/src/grl-operation-priv.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_OPERATION_PRIV_H_ +#define _GRL_OPERATION_PRIV_H_ + +#include + +typedef void (*GrlOperationCancelCb) (gpointer data); + +void grl_operation_init (void); + +guint grl_operation_generate_id (void); + +void grl_operation_set_private_data (guint operation_id, + gpointer private_data, + GrlOperationCancelCb cancel_cb, + GDestroyNotify destroy_cb); + +gpointer grl_operation_get_private_data (guint operation_id); + +void grl_operation_remove (guint operation_id); + +#endif /* _GRL_OPERATION_PRIV_H_ */ diff --git a/src/grl-operation.c b/src/grl-operation.c new file mode 100644 index 0000000..bbe12a9 --- /dev/null +++ b/src/grl-operation.c @@ -0,0 +1,206 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include "grl-operation.h" +#include "grl-operation-priv.h" +#include "grl-log.h" + +typedef struct +{ + GrlOperationCancelCb cancel_cb; + GDestroyNotify destroy_cb; + gpointer private_data; + gpointer user_data; + GDestroyNotify user_data_destroy_func; +} OperationData; + +static guint operations_id; +static GHashTable *operations; + +static void +operation_data_free (OperationData *data) +{ + if (data->user_data_destroy_func && data->user_data) { + data->user_data_destroy_func (data->user_data); + data->user_data = NULL; + } + + if (data->destroy_cb) { + data->destroy_cb (data->private_data); + } + + g_slice_free (OperationData, data); +} + +void +grl_operation_init (void) +{ + static gboolean initialized = FALSE; + + if (G_LIKELY (initialized)) + return; + + initialized = TRUE; + operations = g_hash_table_new_full (g_direct_hash, g_direct_equal, + NULL, + (GDestroyNotify) operation_data_free); + operations_id = 1; +} + +guint +grl_operation_generate_id (void) +{ + guint operation_id = operations_id++; + OperationData *data = g_slice_new0 (OperationData); + + g_hash_table_insert (operations, GUINT_TO_POINTER (operation_id), data); + + return operation_id; +} + +void +grl_operation_set_private_data (guint operation_id, + gpointer private_data, + GrlOperationCancelCb cancel_cb, + GDestroyNotify destroy_cb) +{ + OperationData *data = g_hash_table_lookup (operations, + GUINT_TO_POINTER (operation_id)); + + g_return_if_fail (data != NULL); + + data->cancel_cb = cancel_cb; + data->destroy_cb = destroy_cb; + data->private_data = private_data; +} + +/** + * grl_operation_get_private_data: (skip) + * @operation_id: operation identifier + */ +gpointer +grl_operation_get_private_data (guint operation_id) +{ + OperationData *data = g_hash_table_lookup (operations, + GUINT_TO_POINTER (operation_id)); + + g_return_val_if_fail (data != NULL, NULL); + + return data->private_data; +} + +void +grl_operation_remove (guint operation_id) +{ + g_hash_table_remove (operations, GUINT_TO_POINTER (operation_id)); +} + +/*** PUBLIC API ***/ + +/** + * grl_operation_cancel: + * @operation_id: the identifier of a running operation + * + * Cancel an operation. + */ +void +grl_operation_cancel (guint operation_id) +{ + OperationData *data = g_hash_table_lookup (operations, + GUINT_TO_POINTER (operation_id)); + + if (!data) { + GRL_WARNING ("Invalid operation %u", operation_id); + return; + } + + g_return_if_fail (data != NULL); + + if (data->cancel_cb) { + data->cancel_cb (data->private_data); + } +} + +/** + * grl_operation_get_data: + * @operation_id: the identifier of a running operation + * + * Obtains the previously attached data + * + * Returns: (transfer none): The previously attached data. + */ +gpointer +grl_operation_get_data (guint operation_id) +{ + OperationData *data = g_hash_table_lookup (operations, + GUINT_TO_POINTER (operation_id)); + + if (!data) { + GRL_WARNING ("Invalid operation %u", operation_id); + return NULL; + } + + return data->user_data; +} + +/** + * grl_operation_set_data: + * @operation_id: the identifier of a running operation + * @user_data: the data to attach + * + * Attach a pointer to the specific operation. + */ +void +grl_operation_set_data (guint operation_id, gpointer user_data) +{ + grl_operation_set_data_full (operation_id, user_data, NULL); +} + +/** + * grl_operation_set_data_full: + * @operation_id: the identifier of a running operation + * @user_data: (allow-none): the data to attach + * @destroy_func: (allow-none): function to release @user_data when the operation terminates + * + * Attach a pointer to the specific operation. + * + * Note that the @destroy_func callback is not called if @user_data is %NULL. + * + * Since: 0.2.7 + */ +void +grl_operation_set_data_full (guint operation_id, gpointer user_data, GDestroyNotify destroy_func) +{ + OperationData *data = g_hash_table_lookup (operations, + GUINT_TO_POINTER (operation_id)); + + if (!data) { + GRL_WARNING ("Invalid operation %u", operation_id); + } else { + if (data->user_data_destroy_func && data->user_data) + data->user_data_destroy_func (data->user_data); + + data->user_data = user_data; + data->user_data_destroy_func = destroy_func; + } +} + diff --git a/src/grl-operation.h b/src/grl-operation.h new file mode 100644 index 0000000..715278f --- /dev/null +++ b/src/grl-operation.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_OPERATION_H_ +#define _GRL_OPERATION_H_ + +#include + +G_BEGIN_DECLS + +void grl_operation_cancel (guint operation_id); + +gpointer grl_operation_get_data (guint operation_id); + +void grl_operation_set_data (guint operation_id, gpointer user_data); + +void grl_operation_set_data_full (guint operation_id, gpointer user_data, GDestroyNotify destroy_func); + +G_END_DECLS + +#endif /* _GRL_OPERATION_H_ */ diff --git a/src/grl-plugin-priv.h b/src/grl-plugin-priv.h new file mode 100644 index 0000000..0aa796b --- /dev/null +++ b/src/grl-plugin-priv.h @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2010-2012 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/* + * Protected API for GrlPlugin class + */ + +#ifndef _GRL_PLUGIN_PRIV_H_ +#define _GRL_PLUGIN_PRIV_H_ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "grl-plugin.h" +#include "grl-registry.h" + +#include +#include + +G_BEGIN_DECLS + +void grl_plugin_set_desc (GrlPlugin *plugin, + GrlPluginDescriptor *desc); + +void grl_plugin_set_load_func (GrlPlugin *plugin, + GrlPluginInitFunc load_function); + +void grl_plugin_set_unload_func (GrlPlugin *plugin, + GrlPluginDeinitFunc unload_function); + +void grl_plugin_set_register_keys_func (GrlPlugin *plugin, + GrlPluginRegisterKeysFunc register_keys_function); + +gboolean grl_plugin_load (GrlPlugin *plugin, GList *configurations); + +void grl_plugin_unload (GrlPlugin *plugin); + +void grl_plugin_register_keys (GrlPlugin *plugin); + +void grl_plugin_set_id (GrlPlugin *plugin, + const gchar *id); + +void grl_plugin_set_filename (GrlPlugin *plugin, + const gchar *filename); + +void grl_plugin_set_module (GrlPlugin *plugin, + GModule *module); + +void grl_plugin_set_module_name (GrlPlugin *plugin, + const gchar *module_name); + +G_END_DECLS + +#endif /* _GRL_PLUGIN_PRIV_H_ */ diff --git a/src/grl-plugin.c b/src/grl-plugin.c new file mode 100644 index 0000000..bf869aa --- /dev/null +++ b/src/grl-plugin.c @@ -0,0 +1,571 @@ +/* + * Copyright (C) 2010-2012 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-plugin + * @short_description: Base class for Grilo Plugins + * @see_also: #GrlSource + * + * Grilo is extensible, so #GrlSource instances can be loaded at runtime. + * A plugin system can provide one or more of the basic + * Grilo #GrlSource subclasses. + * + * This is a base class for anything that can be added to a Grilo Plugin. + */ + +#include "grl-plugin.h" +#include "grl-plugin-priv.h" +#include "grl-registry.h" +#include "grl-log.h" + +#include + +#define GRL_LOG_DOMAIN_DEFAULT plugin_log_domain +GRL_LOG_DOMAIN(plugin_log_domain); + +enum { + PROP_0, + PROP_LOADED, + PROP_LAST +}; + +static GParamSpec *properties[PROP_LAST] = { 0 }; + +struct _GrlPluginPrivate { + GrlPluginDescriptor desc; + gchar *filename; + gchar *module_name; + GModule *module; + gboolean loaded; +}; + +static void grl_plugin_finalize (GObject *object); + +static void grl_plugin_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec); + +/* ================ GrlPlugin GObject ================ */ + +G_DEFINE_TYPE_WITH_PRIVATE (GrlPlugin, grl_plugin, G_TYPE_OBJECT); + +static void +grl_plugin_class_init (GrlPluginClass *plugin_class) +{ + GObjectClass *gobject_class; + gobject_class = G_OBJECT_CLASS (plugin_class); + + gobject_class->finalize = grl_plugin_finalize; + gobject_class->get_property = grl_plugin_get_property; + + properties[PROP_LOADED] = g_param_spec_boolean ("loaded", + "Loaded", + "Plugin is loaded", + FALSE, + G_PARAM_READABLE | + G_PARAM_STATIC_STRINGS); + + /** + * GrlPlugin:loaded: + * + * @TRUE if plugin is loaded. + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_LOADED, + properties[PROP_LOADED]); +} + +static void +grl_plugin_init (GrlPlugin *plugin) +{ + plugin->priv = grl_plugin_get_instance_private (plugin); +} + +static void +grl_plugin_finalize (GObject *object) +{ + GrlPlugin *plugin = GRL_PLUGIN (object); + + g_free (plugin->priv->filename); + g_free (plugin->priv->module_name); + + G_OBJECT_CLASS (grl_plugin_parent_class)->finalize (object); +} + +static void +grl_plugin_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GrlPlugin *plugin = GRL_PLUGIN (object); + + switch (prop_id) { + case PROP_LOADED: + g_value_set_boolean (value, plugin->priv->loaded); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; + } +} + +/* ============ PRIVATE API ============ */ + +/** + * grl_plugin_set_desc: (skip) + * @plugin: a plugin + * @desc: description + * + * Sets the plugin description. + **/ +void +grl_plugin_set_desc (GrlPlugin *plugin, + GrlPluginDescriptor *desc) +{ + plugin->priv->desc.major_version = desc->major_version; + plugin->priv->desc.minor_version = desc->minor_version; + plugin->priv->desc.id = desc->id; + plugin->priv->desc.name = desc->name; + plugin->priv->desc.description = desc->description; + plugin->priv->desc.author = desc->author; + plugin->priv->desc.version = desc->version; + plugin->priv->desc.license = desc->license; + plugin->priv->desc.site = desc->site; + + plugin->priv->desc.init = desc->init; + plugin->priv->desc.deinit = desc->deinit; + plugin->priv->desc.register_keys = desc->register_keys; +} + +/** + * grl_plugin_set_load_func: (skip) + * @plugin: a plugin + * @load_function: a function + * + * Sets the function to be executed when plugin is loaded + */ +void +grl_plugin_set_load_func (GrlPlugin *plugin, + GrlPluginInitFunc load_function) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + plugin->priv->desc.init = load_function; +} + +/** + * grl_plugin_set_unload_func: (skip) + * @plugin: a plugin + * @unload_function: a function + * + * Sets the function to be executed when plugin is unloaded + */ +void +grl_plugin_set_unload_func (GrlPlugin *plugin, + GrlPluginDeinitFunc unload_function) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + plugin->priv->desc.deinit = unload_function; +} + +/** + * grl_plugin_set_register_keys_func: (skip) + * @plugin: a plugin + * @register_keys_function: a function + * + * Sets the function to be executed to register new + * metadata keys. + */ +void +grl_plugin_set_register_keys_func (GrlPlugin *plugin, + GrlPluginRegisterKeysFunc register_keys_function) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + plugin->priv->desc.register_keys = register_keys_function; +} + +/** + * grl_plugin_load: (skip) + * @plugin: a plugin + * @configurations: (element-type GrlConfig): a list of configurations + * + * Load the plugin + * + * Returns: @TRUE if loaded was successful + */ +gboolean +grl_plugin_load (GrlPlugin *plugin, + GList *configurations) +{ + GrlRegistry *registry; + + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), FALSE); + + if (!plugin->priv->desc.init) { + return FALSE; + } + + registry = grl_registry_get_default (); + + if (!plugin->priv->desc.init (registry, plugin, configurations)) { + return FALSE; + } + + plugin->priv->loaded = TRUE; + g_object_notify_by_pspec (G_OBJECT (plugin), properties[PROP_LOADED]); + + return TRUE; +} + +/** + * grl_plugin_unload: (skip) + * @plugin: a plugin + * + * Unloads the plugin + */ +void +grl_plugin_unload (GrlPlugin *plugin) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + if (plugin->priv->desc.deinit) { + plugin->priv->desc.deinit (plugin); + } + + plugin->priv->loaded = FALSE; + g_object_notify_by_pspec (G_OBJECT (plugin), properties[PROP_LOADED]); +} + +/** + * grl_plugin_register_keys: (skip) + * @plugin: a plugin + * + * Register custom metadata keys for the plugin + */ +void +grl_plugin_register_keys (GrlPlugin *plugin) +{ + GrlRegistry *registry; + + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + registry = grl_registry_get_default (); + + if (plugin->priv->desc.register_keys) { + plugin->priv->desc.register_keys (registry, plugin); + } +} + +/** + * grl_plugin_set_id: (skip) + * @plugin: a plugin + * @id: plugin identifier + * + * Sets the id of the plugin + */ +void +grl_plugin_set_id (GrlPlugin *plugin, + const gchar *id) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + g_clear_pointer (&plugin->priv->desc.id, g_free); + + plugin->priv->desc.id = g_strdup (id); +} + +/** + * grl_plugin_set_filename: (skip) + * @plugin: a plugin + * @filename: a filename + * + * Sets the filename containing the plugin + */ +void +grl_plugin_set_filename (GrlPlugin *plugin, + const gchar *filename) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + g_clear_pointer (&plugin->priv->filename, g_free); + + plugin->priv->filename = g_strdup (filename); +} + +/** + * grl_plugin_set_module_name: (skip) + * @plugin: a plugin + * @module_name: a module name + * + * Sets the module name for the the plugin + */ +void +grl_plugin_set_module_name (GrlPlugin *plugin, + const gchar *module_name) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + + g_clear_pointer (&plugin->priv->module_name, g_free); + + plugin->priv->module_name = g_strdup (module_name); +} + +/** + * grl_plugin_set_module: (skip) + * @plugin: a plugin + * @module: a module + * + * Sets the module of the plugin + */ +void +grl_plugin_set_module (GrlPlugin *plugin, + GModule *module) +{ + g_return_if_fail (GRL_IS_PLUGIN (plugin)); + plugin->priv->module = module; +} + +/* ============ PUBLIC API ============= */ + +/** + * grl_plugin_get_name: + * @plugin: a plugin + * + * Get the name of the plugin + * + * Returns: the name of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_name (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.name; +} + +/** + * grl_plugin_get_description: + * @plugin: a plugin + * + * Get the description of the plugin + * + * Returns: the description of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_description (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.description; +} + +/** + * grl_plugin_get_version: + * @plugin: a plugin + * + * Get the version of the plugin + * + * Returns: the version of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_version (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.version; +} + +/** + * grl_plugin_get_license: + * @plugin: a plugin + * + * Get the license of the plugin + * + * Returns: the license of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_license (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.license ? plugin->priv->desc.license : "unknown"; +} + +/** + * grl_plugin_get_author: + * @plugin: a plugin + * + * Get the author of the plugin + * + * Returns: the author of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_author (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.author; +} + +/** + * grl_plugin_get_site: + * @plugin: a plugin + * + * Get the site of the plugin + * + * Returns: the site of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_site (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.site; +} + +/** + * grl_plugin_get_id: + * @plugin: a plugin + * + * Get the id of the plugin + * + * Returns: the id of the @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_id (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->desc.id; +} + +/** + * grl_plugin_get_filename: + * @plugin: a plugin + * + * Get the filename containing the plugin + * + * Returns: the filename containing @plugin + * + * Since: 0.2.0 + */ +const gchar * +grl_plugin_get_filename (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->filename; +} + +/** + * grl_plugin_get_module_name: + * @plugin: a plugin + * + * Get the plugin module name + * + * Returns: the module name containing @plugin + * + * Since: 0.3.0 + */ +const gchar * +grl_plugin_get_module_name (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->module_name; +} + +/** + * grl_plugin_get_module: (skip) + * @plugin: a plugin + * + * Gets the #GModule containing the plugin + * + * Returns: a #GModule + * + * Since: 0.2.0 + **/ +GModule * +grl_plugin_get_module (GrlPlugin *plugin) +{ + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + return plugin->priv->module; +} + +/** + * grl_plugin_get_sources: + * @plugin: a plugin + * + * Gets the sources belonging to @plugin. + * + * Returns: (transfer container) (element-type GrlSource): a #GList of + * #GrlSources. The content of the list should not be modified or + * freed. Use g_list_free() when done using the list. + * + * Since: 0.2.0 + **/ +GList * +grl_plugin_get_sources (GrlPlugin *plugin) +{ + GrlRegistry *registry; + GList *all_sources; + GList *plugin_sources = NULL; + GList *sources_iter; + + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), NULL); + + registry = grl_registry_get_default (); + all_sources = grl_registry_get_sources (registry, FALSE); + + for (sources_iter = all_sources; + sources_iter; + sources_iter = g_list_next (sources_iter)) { + if (grl_source_get_plugin (GRL_SOURCE (sources_iter->data)) == plugin) { + plugin_sources = g_list_prepend (plugin_sources, sources_iter->data); + } + } + + g_list_free (all_sources); + + return plugin_sources; +} diff --git a/src/grl-plugin.h b/src/grl-plugin.h new file mode 100644 index 0000000..ee81bcd --- /dev/null +++ b/src/grl-plugin.h @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2010-2012 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_PLUGIN_H_ +#define _GRL_PLUGIN_H_ + +#include +#include +#include + +#include "grl-definitions.h" + +/* Info */ + +#define GRL_PLUGIN_NAME "name" +#define GRL_PLUGIN_DESCRIPTION "description" +#define GRL_PLUGIN_VERSION "version" +#define GRL_PLUGIN_LICENSE "license" +#define GRL_PLUGIN_AUTHOR "author" +#define GRL_PLUGIN_SITE "site" + +/* Macros */ + +#define GRL_TYPE_PLUGIN \ + (grl_plugin_get_type ()) + +#define GRL_PLUGIN(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_PLUGIN, \ + GrlPlugin)) + +#define GRL_IS_PLUGIN(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_PLUGIN)) + +#define GRL_PLUGIN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + GRL_TYPE_PLUGIN, \ + GrlPluginClass)) + +#define GRL_IS_PLUGIN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + GRL_TYPE_PLUGIN)) + +#define GRL_PLUGIN_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_PLUGIN, \ + GrlPluginClass)) + +/* GrlPlugin object */ + +typedef struct _GrlPlugin GrlPlugin; +typedef struct _GrlPluginPrivate GrlPluginPrivate; + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlPlugin, g_object_unref) + +struct _GrlPlugin { + + GObject parent; + + /*< private >*/ + GrlPluginPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING]; +}; + +/* GrlPlugin class */ + +typedef struct _GrlPluginClass GrlPluginClass; + +/** + * GrlPluginClass: + * @parent_class: the parent class structure + */ +struct _GrlPluginClass { + + GObjectClass parent_class; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +/* Function prototypes */ + +G_BEGIN_DECLS + +GType grl_plugin_get_type (void); + +const gchar *grl_plugin_get_name (GrlPlugin *plugin); + +const gchar *grl_plugin_get_description (GrlPlugin *plugin); + +const gchar *grl_plugin_get_version (GrlPlugin *plugin); + +const gchar *grl_plugin_get_license (GrlPlugin *plugin); + +const gchar *grl_plugin_get_author (GrlPlugin *plugin); + +const gchar *grl_plugin_get_site (GrlPlugin *plugin); + +const gchar *grl_plugin_get_id (GrlPlugin *plugin); + +const gchar *grl_plugin_get_filename (GrlPlugin *plugin); + +const gchar *grl_plugin_get_module_name (GrlPlugin *plugin); + +GModule *grl_plugin_get_module (GrlPlugin *plugin); + +GList *grl_plugin_get_sources (GrlPlugin *plugin); + +G_END_DECLS + +#endif /* _GRL_PLUGIN_H_ */ diff --git a/src/grl-range-value.c b/src/grl-range-value.c new file mode 100644 index 0000000..3f9264f --- /dev/null +++ b/src/grl-range-value.c @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/* + * This module provides helper functions to use Range Values easily. + * Inspired by libsoup's soup-value-utils: + * http://git.gnome.org/browse/libsoup/tree/libsoup/soup-value-utils.c + * + */ + +#include +#include + +G_DEFINE_BOXED_TYPE (GrlRangeValue, grl_range_value, + (GBoxedCopyFunc) grl_range_value_dup, + (GBoxedFreeFunc) grl_range_value_free) + + +GrlRangeValue * +grl_range_value_new (GValue *min, GValue *max) +{ + GrlRangeValue *range; + + range = g_slice_new0 (GrlRangeValue); + if (min) { + range->min = grl_g_value_dup (min); + } + + if (max) { + range->max = grl_g_value_dup (max); + } + + return range; +} + +void +grl_range_value_free (GrlRangeValue *range) +{ + g_clear_pointer (&range->min, grl_g_value_free); + g_clear_pointer (&range->max, grl_g_value_free); + + g_slice_free (GrlRangeValue, range); +} + +/** + * grl_range_value_hashtable_new: + * + * Returns: (transfer full) (element-type gpointer GrlRangeValue): a #GHashTable + */ +GHashTable * +grl_range_value_hashtable_new (void) +{ + return g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)grl_range_value_free); +} + +GrlRangeValue * +grl_range_value_dup (const GrlRangeValue *range) +{ + return grl_range_value_new (range->min, range->max); +} + +void +grl_range_value_hashtable_insert (GHashTable *hash_table, + gpointer key, + GValue *min, + GValue *max) +{ + GrlRangeValue *range = grl_range_value_new (min, max); + g_hash_table_insert (hash_table, key, range); +} diff --git a/src/grl-range-value.h b/src/grl-range-value.h new file mode 100644 index 0000000..5bce911 --- /dev/null +++ b/src/grl-range-value.h @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#if !defined (_GRL_RANGE_VALUE_HELPER_H_) +#define _GRL_RANGE_VALUE_HELPER_H_ + +#include + +typedef struct { + GValue *min; + GValue *max; +} GrlRangeValue; + +G_BEGIN_DECLS + +GrlRangeValue *grl_range_value_new (GValue *min, + GValue *max); + +void grl_range_value_free (GrlRangeValue *range); + +GHashTable *grl_range_value_hashtable_new (void); + +GrlRangeValue *grl_range_value_dup (const GrlRangeValue *range); + +void grl_range_value_hashtable_insert (GHashTable *hash_table, + gpointer key, + GValue *min, + GValue *max); + +GType grl_range_value_get_type (void); + +G_END_DECLS + +#endif /* _GRL_RANGE_VALUE_HELPER_H_ */ diff --git a/src/grl-registry-priv.h b/src/grl-registry-priv.h new file mode 100644 index 0000000..e8eeef2 --- /dev/null +++ b/src/grl-registry-priv.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_REGISTRY_PRIV_H_ +#define _GRL_REGISTRY_PRIV_H_ + +#include + +void +grl_registry_restrict_plugins (GrlRegistry *registry, + gchar **plugins); + +GrlKeyID grl_registry_register_metadata_key_system (GrlRegistry *registry, + GParamSpec *param_spec, + GrlKeyID key, + GrlKeyID bind_key, + GError **error); + +void grl_registry_shutdown (GrlRegistry *registry); + +GrlKeyID grl_registry_register_metadata_key_for_type (GrlRegistry *registry, + const gchar *key_name, + GType type); + +#endif /* _GRL_REGISTRY_PRIV_H_ */ diff --git a/src/grl-registry.c b/src/grl-registry.c new file mode 100644 index 0000000..a6189b7 --- /dev/null +++ b/src/grl-registry.c @@ -0,0 +1,2113 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * Copyright (C) 2011 Intel Corporation. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-registry + * @short_description: Grilo plugins loader and manager + * @see_also: #GrlPlugin, #GrlSource + * + * The registry holds the metadata of a set of plugins. + * + * The #GrlRegistry object is a list of plugins and some functions + * for dealing with them. Each #GrlPlugin is matched 1-1 with a file + * on disk, and may or may not be loaded a given time. There only can be + * a single instance of #GrlRegistry (singleton pattern). + * + * A #GrlPlugin can hold several data #GrlSource sources, and #GrlRegistry + * shall register each one of them. + */ + +#include "grl-registry.h" + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "grl-registry-priv.h" +#include "grl-plugin-priv.h" +#include "grl-log.h" +#include "grl-error.h" + +#include +#include +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT registry_log_domain +GRL_LOG_DOMAIN(registry_log_domain); + +#define XML_ROOT_ELEMENT_NAME "plugin" + +#define GRL_PLUGIN_INFO_SUFFIX "xml" + +#define GRL_PLUGIN_INFO_MODULE "module" + +#define LOCAL_NET_TAG "net:local" +#define INTERNET_NET_TAG "net:internet" + +#define SET_INVISIBLE_SOURCE(src, val) \ + g_object_set_data(G_OBJECT(src), "invisible", GINT_TO_POINTER(val)) +#define SOURCE_IS_INVISIBLE(src) \ + GPOINTER_TO_INT(g_object_get_data(G_OBJECT(src), "invisible")) + +/* GQuark-like implementation, where we manually assign the first IDs. */ +struct KeyIDHandler { + GHashTable *string_to_id; + GArray *id_to_string; + gint last_id; +}; + +struct _GrlRegistryPrivate { + GHashTable *configs; + GHashTable *plugins; + GHashTable *sources; + GHashTable *related_keys; + GHashTable *system_keys; + GHashTable *ranks; + GSList *plugins_dir; + GSList *allowed_plugins; + gboolean all_plugins_preloaded; + struct KeyIDHandler key_id_handler; + GNetworkMonitor *netmon; +}; + +static void grl_registry_setup_ranks (GrlRegistry *registry); + +static void key_id_handler_init (struct KeyIDHandler *handler); + +static void key_id_handler_free (struct KeyIDHandler *handler); + +static GrlKeyID key_id_handler_get_key (struct KeyIDHandler *handler, + const gchar *key_name); + +static const gchar *key_id_handler_get_name (struct KeyIDHandler *handler, + GrlKeyID key); + +static GrlKeyID key_id_handler_add (struct KeyIDHandler *handler, + GrlKeyID key, const gchar *key_name); + +static gboolean param_spec_is_equal (GParamSpec *curr, GParamSpec *new); + +static void shutdown_plugin (GrlPlugin *plugin); + +static void configs_free (GList *configs); + +static GrlPlugin *grl_registry_prepare_plugin (GrlRegistry *registry, + const gchar *library_filename, + GError **error); + +/* ================ GrlRegistry GObject ================ */ + +enum { + SIG_SOURCE_ADDED, + SIG_SOURCE_REMOVED, + SIG_METADATA_KEY_ADDED, + SIG_LAST +}; +static gint registry_signals[SIG_LAST]; + +G_DEFINE_TYPE_WITH_PRIVATE (GrlRegistry, grl_registry, G_TYPE_OBJECT); + +static void +grl_registry_class_init (GrlRegistryClass *klass) +{ + /** + * GrlRegistry::source-added: + * @registry: the registry + * @source: the source that has been added + * + * Signals that a source has been added to the registry. + * + * Since: 0.2.0 + */ + registry_signals[SIG_SOURCE_ADDED] = + g_signal_new("source-added", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, + 0, + NULL, + NULL, + g_cclosure_marshal_VOID__OBJECT, + G_TYPE_NONE, 1, GRL_TYPE_SOURCE); + + /** + * GrlRegistry::source-removed: + * @registry: the registry + * @source: the source that has been removed + * + * Signals that a source has been removed from the registry. + * + * Since: 0.2.0 + */ + registry_signals[SIG_SOURCE_REMOVED] = + g_signal_new("source-removed", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, + 0, + NULL, + NULL, + g_cclosure_marshal_VOID__OBJECT, + G_TYPE_NONE, 1, GRL_TYPE_SOURCE); + + /** + * GrlRegistry::metadata-key-added: + * @registry: the registry + * @key: the name of the new key added + * + * Signals that a new metadata key has been registered. + * + * Since: 0.2.10 + */ + registry_signals[SIG_METADATA_KEY_ADDED] = + g_signal_new("metadata-key-added", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, + 0, + NULL, + NULL, + g_cclosure_marshal_VOID__STRING, + G_TYPE_NONE, 1, G_TYPE_STRING); +} + +static void +get_connectivity (GrlRegistry *registry, + GNetworkConnectivity *connectivity, + gboolean *network_available) +{ + g_assert (connectivity != NULL); + g_assert (network_available != NULL); + + if (g_getenv("GRL_NET_MOCKED") != NULL) { + GRL_DEBUG ("Mocked network, assuming network is available and connectivity " + "level is FULL"); + *connectivity = G_NETWORK_CONNECTIVITY_FULL; + *network_available = TRUE; + } else { + g_object_get (G_OBJECT (registry->priv->netmon), + "connectivity", connectivity, + "network-available", network_available, + NULL); + + GRL_DEBUG ("Connectivity level is %d, Network is %s", + *connectivity, *network_available ? "available" : "unavailable"); + } +} + +static void +network_changed_cb (GObject *gobject, + GParamSpec *pspec, + GrlRegistry *registry) +{ + GNetworkConnectivity connectivity; + gboolean network_available; + GHashTableIter iter; + GrlSource *current_source; + + GRL_DEBUG ("Network availability changed"); + get_connectivity (registry, &connectivity, &network_available); + + if (!network_available) { + g_hash_table_iter_init (&iter, registry->priv->sources); + + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) ¤t_source)) { + const char **tags = grl_source_get_tags (current_source); + + if (!tags) + continue; + + if ((g_strv_contains (tags, LOCAL_NET_TAG) || + g_strv_contains (tags, INTERNET_NET_TAG)) && + !SOURCE_IS_INVISIBLE(current_source)) { + GRL_DEBUG ("Network isn't available for '%s', hiding", + grl_source_get_id (current_source)); + SET_INVISIBLE_SOURCE(current_source, TRUE); + g_signal_emit (registry, registry_signals[SIG_SOURCE_REMOVED], 0, current_source); + } + } + } else { + g_hash_table_iter_init (&iter, registry->priv->sources); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) ¤t_source)) { + const char **tags = grl_source_get_tags (current_source); + + if (!tags) + continue; + + if (g_strv_contains (tags, LOCAL_NET_TAG) && + SOURCE_IS_INVISIBLE(current_source)) { + GRL_DEBUG ("Local network became available for '%s', showing", + grl_source_get_id (current_source)); + SET_INVISIBLE_SOURCE(current_source, FALSE); + g_signal_emit (registry, registry_signals[SIG_SOURCE_ADDED], 0, current_source); + } + + if (g_strv_contains (tags, INTERNET_NET_TAG) && + connectivity == G_NETWORK_CONNECTIVITY_FULL && + SOURCE_IS_INVISIBLE(current_source)) { + GRL_DEBUG ("Internet became available for '%s', showing", + grl_source_get_id (current_source)); + SET_INVISIBLE_SOURCE(current_source, FALSE); + g_signal_emit (registry, registry_signals[SIG_SOURCE_ADDED], 0, current_source); + } + + if (g_strv_contains (tags, INTERNET_NET_TAG) && + connectivity != G_NETWORK_CONNECTIVITY_FULL && + !SOURCE_IS_INVISIBLE(current_source)) { + GRL_DEBUG ("Internet became unavailable for '%s', hiding", + grl_source_get_id (current_source)); + SET_INVISIBLE_SOURCE(current_source, TRUE); + g_signal_emit (registry, registry_signals[SIG_SOURCE_REMOVED], 0, current_source); + } + } + } +} + +static void +grl_registry_init (GrlRegistry *registry) +{ + registry->priv = grl_registry_get_instance_private (registry); + + registry->priv->configs = + g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) configs_free); + registry->priv->plugins = + g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref); + registry->priv->sources = + g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); + registry->priv->related_keys = + g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, NULL); + registry->priv->system_keys = + g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) g_param_spec_unref); + + registry->priv->netmon = g_network_monitor_get_default (); + g_signal_connect (G_OBJECT (registry->priv->netmon), "notify::connectivity", + G_CALLBACK (network_changed_cb), registry); + g_signal_connect (G_OBJECT (registry->priv->netmon), "notify::network-available", + G_CALLBACK (network_changed_cb), registry); + + key_id_handler_init (®istry->priv->key_id_handler); + + grl_registry_setup_ranks (registry); +} + +/* ================ Utitilies ================ */ + +static void +configs_free (GList *configs) +{ + g_list_free_full (configs, g_object_unref); +} + +static void +update_source_visibility (GrlRegistry *registry, + GrlSource *source) +{ + GNetworkConnectivity connectivity; + gboolean network_available; + const char **tags; + gboolean needs_local, needs_inet; + + tags = grl_source_get_tags (source); + if (!tags) + return; + + needs_local = g_strv_contains (tags, LOCAL_NET_TAG); + needs_inet = g_strv_contains (tags, INTERNET_NET_TAG); + + if (!needs_local && + !needs_inet) + return; + + get_connectivity (registry, &connectivity, &network_available); + + GRL_DEBUG ("Source %s needs %s %s%s", + grl_source_get_id (source), + needs_local ? "local network" : "", + needs_inet && needs_local ? " and " : "", + needs_inet ? "Internet" : ""); + + if (!network_available) { + if (needs_local || needs_inet) { + GRL_DEBUG ("Network isn't available for '%s', hiding", + grl_source_get_id (source)); + SET_INVISIBLE_SOURCE(source, TRUE); + } + } else { + if (connectivity != G_NETWORK_CONNECTIVITY_FULL) { + if (needs_inet) { + GRL_DEBUG ("Internet isn't available for '%s', hiding", + grl_source_get_id (source)); + SET_INVISIBLE_SOURCE(source, TRUE); + } + } + } +} + +static void +config_source_rank (GrlRegistry *registry, + const gchar *source_id, + gint rank) +{ + GRL_DEBUG ("Rank configuration, '%s:%d'", source_id, rank); + g_hash_table_insert (registry->priv->ranks, + g_strdup (source_id), + GINT_TO_POINTER (rank)); +} + +static void +set_source_rank (GrlRegistry *registry, GrlSource *source) +{ + gint rank; + + rank = + GPOINTER_TO_INT (g_hash_table_lookup (registry->priv->ranks, + grl_source_get_id (source))); + if (!rank) { + rank = GRL_RANK_DEFAULT; + } + g_object_set (source, "rank", rank, NULL); + GRL_DEBUG ("Source rank '%s' : %d", grl_source_get_id (source), rank); +} + +static void +grl_registry_setup_ranks (GrlRegistry *registry) +{ + const gchar *ranks_env; + gchar **rank_specs; + gchar **iter; + + registry->priv->ranks = g_hash_table_new_full (g_str_hash, g_str_equal, + g_free, NULL); + + ranks_env = g_getenv (GRL_PLUGIN_RANKS_VAR); + if (!ranks_env) { + GRL_DEBUG ("$%s is not set, using default ranks.", GRL_PLUGIN_RANKS_VAR); + return; + } + + rank_specs = g_strsplit (ranks_env, ",", 0); + iter = rank_specs; + + while (*iter) { + gchar **rank_info = g_strsplit (*iter, ":", 2); + if (rank_info[0] && rank_info[1]) { + gchar *tmp; + gchar *id = rank_info[0]; + gchar *srank = rank_info[1]; + gint rank = (gint) g_ascii_strtoll (srank, &tmp, 10); + if (*tmp != '\0') { + GRL_WARNING ("Incorrect ranking definition: '%s'. Skipping...", *iter); + } else { + config_source_rank (registry, id, rank); + } + } else { + GRL_WARNING ("Incorrect ranking definition: '%s'. Skipping...", *iter); + } + g_strfreev (rank_info); + iter++; + } + + g_strfreev (rank_specs); +} + +static gint +compare_by_rank (gconstpointer a, + gconstpointer b) { + gint rank_a; + gint rank_b; + + rank_a = grl_source_get_rank (GRL_SOURCE (a)); + rank_b = grl_source_get_rank (GRL_SOURCE (b)); + + return (rank_a < rank_b) - (rank_a > rank_b); +} + +static gboolean +register_keys_plugin (GrlRegistry *registry, + GrlPlugin *plugin, + GError **error) +{ + gboolean is_loaded; + + /* Check if plugin is already loaded */ + g_object_get (plugin, "loaded", &is_loaded, NULL); + if (is_loaded) { + GRL_WARNING ("Plugin is already loaded: '%s'", grl_plugin_get_id (plugin)); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Plugin “%s” is already loaded"), grl_plugin_get_id (plugin)); + return FALSE; + } + + grl_plugin_register_keys (plugin); + + return TRUE; +} + +static gboolean +activate_plugin (GrlRegistry *registry, + GrlPlugin *plugin, + GError **error) +{ + GList *plugin_configs; + + plugin_configs = g_hash_table_lookup (registry->priv->configs, + grl_plugin_get_id (plugin)); + + if (!grl_plugin_load (plugin, plugin_configs)) { + GRL_DEBUG ("Failed to initialize plugin from %s. Check if plugin is well configured", grl_plugin_get_filename (plugin)); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Failed to initialize plugin from %s"), grl_plugin_get_filename (plugin)); + shutdown_plugin (plugin); + return FALSE; + } + + GRL_DEBUG ("Loaded plugin '%s' from '%s'", + grl_plugin_get_id (plugin), + grl_plugin_get_filename (plugin)); + + return TRUE; +} + +static GrlKeyID +grl_registry_register_metadata_key_full (GrlRegistry *registry, + GParamSpec *param_spec, + GrlKeyID key, + GrlKeyID bind_key, + GError **error) +{ + GList *bound_partners; + GList *partner; + const gchar *key_name; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), 0); + g_return_val_if_fail (G_IS_PARAM_SPEC (param_spec), 0); + GrlKeyID registered_key; + + key_name = g_param_spec_get_name (param_spec); + registered_key = key_id_handler_get_key (®istry->priv->key_id_handler, key_name); + if (registered_key != GRL_METADATA_KEY_INVALID) { + GParamSpec *key_spec = g_hash_table_lookup (registry->priv->system_keys, + (gpointer) key_name); + if (param_spec_is_equal (key_spec, param_spec)) { + /* Key registered */ + GRL_DEBUG ("metadata key '%s' already registered with same spec", key_name); + g_param_spec_unref (param_spec); + return registered_key; + } else { + GRL_WARNING ("metadata key '%s' already exists", key_name); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_REGISTER_METADATA_KEY_FAILED, + _("Metadata key “%s” already registered in different format"), + key_name); + return GRL_METADATA_KEY_INVALID; + } + } + + registered_key = key_id_handler_add (®istry->priv->key_id_handler, key, key_name); + + if (registered_key == GRL_METADATA_KEY_INVALID) { + GRL_WARNING ("metadata key '%s' cannot be registered", key_name); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_REGISTER_METADATA_KEY_FAILED, + _("Metadata key “%s” cannot be registered"), + key_name); + + return GRL_METADATA_KEY_INVALID; + } + + g_hash_table_insert (registry->priv->system_keys, + (gpointer) key_name, + param_spec); + + if (bind_key == GRL_METADATA_KEY_INVALID) { + /* Key is only related to itself */ + g_hash_table_insert (registry->priv->related_keys, + GRLKEYID_TO_POINTER (registered_key), + g_list_prepend (NULL, + GRLKEYID_TO_POINTER (registered_key))); + } else { + /* Add the new key to the partners */ + bound_partners = g_hash_table_lookup (registry->priv->related_keys, GRLKEYID_TO_POINTER (bind_key)); + bound_partners = g_list_append (bound_partners, GRLKEYID_TO_POINTER (registered_key)); + for (partner = bound_partners; + partner; + partner = g_list_next (partner)) { + g_hash_table_insert (registry->priv->related_keys, + partner->data, + bound_partners); + } + } + + return registered_key; +} + +G_GNUC_INTERNAL GrlKeyID +grl_registry_register_metadata_key_for_type (GrlRegistry *registry, + const gchar *key_name, + GType type) +{ + GParamSpec *spec; + + switch (type) { + case G_TYPE_INT: + spec = g_param_spec_int (key_name, + key_name, + key_name, + 0, G_MAXINT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); + break; + + case G_TYPE_INT64: + spec = g_param_spec_int64 (key_name, + key_name, + key_name, + -1, G_MAXINT64, + -1, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); + break; + + case G_TYPE_STRING: + spec = g_param_spec_string (key_name, + key_name, + key_name, + NULL, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); + break; + + case G_TYPE_BOOLEAN: + spec = g_param_spec_boolean (key_name, + key_name, + key_name, + FALSE, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); + break; + + case G_TYPE_FLOAT: + spec = g_param_spec_float (key_name, + key_name, + key_name, + 0, G_MAXFLOAT, + 0, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); + break; + + default: + if (type == G_TYPE_DATE_TIME) { + spec = g_param_spec_boxed (key_name, + key_name, + key_name, + G_TYPE_DATE_TIME, + G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); + } else { + GRL_WARNING ("'%s' is being ignored as G_TYPE '%s' is not being handled", + key_name, G_VALUE_TYPE_NAME (type)); + return GRL_METADATA_KEY_INVALID; + } + } + + return grl_registry_register_metadata_key (registry, spec, GRL_METADATA_KEY_INVALID, NULL); +} + +static void +key_id_handler_init (struct KeyIDHandler *handler) +{ + const gchar *null_string = NULL; + handler->string_to_id = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); + handler->id_to_string = g_array_new (FALSE, /* zero terminated */ + TRUE, /* zero-initialised */ + sizeof (const gchar *)); + /* We want indices in ->id_to_string to start from 1, so we add a NULL entry + * for GRL_METADATA_KEY_INVALID (i.e. 0) */ + g_array_insert_val (handler->id_to_string, + GRL_METADATA_KEY_INVALID, + null_string); +} + +static void +key_id_handler_free (struct KeyIDHandler *handler) +{ + g_hash_table_unref (handler->string_to_id); + g_array_unref (handler->id_to_string); +} + +static +GrlKeyID key_id_handler_get_key (struct KeyIDHandler *handler, const gchar *key_name) +{ + gpointer val = g_hash_table_lookup (handler->string_to_id, key_name); + if (val == NULL) + return GRL_METADATA_KEY_INVALID; + + return GRLPOINTER_TO_KEYID (val); +} + +static const gchar * +key_id_handler_get_name (struct KeyIDHandler *handler, GrlKeyID key) +{ + if (key < handler->id_to_string->len) + return g_array_index (handler->id_to_string, const gchar *, key); + + return NULL; +} + +/* + * key_id_handler_add: + * @handler: the handler + * @key: a specific key for system keys, or GRL_METADATA_KEY_INVALID for it to + * be assigned + * @name: the name of the key. + * + * Add a new key<->name correspondence. + * + * Returns: the new key number, or GRL_METADATA_KEY_INVALID if the key could + * not be created (typically if @key or @name is already registered). + */ +static GrlKeyID +key_id_handler_add (struct KeyIDHandler *handler, GrlKeyID key, const gchar *name) +{ + GrlKeyID _key = key; + + if (_key == GRL_METADATA_KEY_INVALID) { + /* existing keys go from 1 to (id_to_string->len - 1), so the next + * available key is id_to_string->len, which will be incremented by + * g_array_insert_val() */ + _key = handler->id_to_string->len; + } + + if (NULL != key_id_handler_get_name (handler, _key)) { + GRL_WARNING ("Cannot register %d:%s because key is already defined as %s", + _key, name, key_id_handler_get_name (handler, _key)); + return GRL_METADATA_KEY_INVALID; + } else if ( GRL_METADATA_KEY_INVALID != key_id_handler_get_key (handler, name)) { + /* _key or name is already in use! */ + GRL_WARNING ("Cannot register %d:%s because name is already registered with key %d", + _key, name, key_id_handler_get_key (handler, name)); + return GRL_METADATA_KEY_INVALID; + } else { + /* name_copy is shared between handler->id_to_string and + * handler->string_to_id */ + gchar *name_copy = g_strdup (name); + + if (_key >= handler->id_to_string->len) + g_array_set_size (handler->id_to_string, _key + 1); + + /* yes, g_array_index() is a macro that give you an lvalue */ + g_array_index (handler->id_to_string, const gchar *, _key) = name_copy; + g_hash_table_insert (handler->string_to_id, + name_copy, GRLKEYID_TO_POINTER (_key)); + } + + return _key; + +} + +static GList * +key_id_handler_get_all_keys (struct KeyIDHandler *handler) +{ + return g_hash_table_get_values (handler->string_to_id); +} + +#define CHECK_NUMERIC_PARAM_SPEC_LIMITS(is_type, cast_type, a, b) { \ + if (is_type) { \ + if ((cast_type(a))->maximum != (cast_type(b))->maximum || \ + (cast_type(a))->minimum != (cast_type(b))->minimum || \ + (cast_type(a))->default_value != (cast_type(b))->default_value) \ + return FALSE; \ + return TRUE; \ + } \ +} + +/* @curr: The current spec we have + * @new: The spec to match + * + * Returns: true if specs are the same, false otherwise. + */ +static gboolean +param_spec_is_equal (GParamSpec *cur, + GParamSpec *new) +{ + GType ctype = G_PARAM_SPEC_TYPE (cur); + + if (ctype != G_PARAM_SPEC_TYPE (new)) + return FALSE; + + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_INT), + G_PARAM_SPEC_INT, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_LONG), + G_PARAM_SPEC_LONG, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_INT64), + G_PARAM_SPEC_INT64, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_CHAR), + G_PARAM_SPEC_CHAR, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_UINT), + G_PARAM_SPEC_UINT, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_ULONG), + G_PARAM_SPEC_ULONG, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_UINT64), + G_PARAM_SPEC_UINT64, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_UCHAR), + G_PARAM_SPEC_UCHAR, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_FLOAT), + G_PARAM_SPEC_FLOAT, cur, new); + CHECK_NUMERIC_PARAM_SPEC_LIMITS ((ctype == G_TYPE_PARAM_DOUBLE), + G_PARAM_SPEC_DOUBLE, cur, new); + if (ctype == G_TYPE_PARAM_STRING) { + GParamSpecString *c = G_PARAM_SPEC_STRING (cur); + GParamSpecString *n = G_PARAM_SPEC_STRING (new); + return (g_strcmp0 (c->default_value, n->default_value) == 0); + } else if (ctype == G_TYPE_PARAM_ENUM) { + GParamSpecEnum *c = G_PARAM_SPEC_ENUM (cur); + GParamSpecEnum *n = G_PARAM_SPEC_ENUM (new); + if (c->default_value != n->default_value || + cur->value_type != new->value_type) { + GRL_DEBUG ("%s differ (values: %d and %d) (types: %s and %s)", + g_type_name (ctype), c->default_value, n->default_value, + g_type_name (cur->value_type), g_type_name (new->value_type)); + return FALSE; + } + } else if (ctype == G_TYPE_PARAM_FLAGS) { + GParamSpecFlags *c = G_PARAM_SPEC_FLAGS (cur); + GParamSpecFlags *n = G_PARAM_SPEC_FLAGS (new); + if (c->default_value != n->default_value || + cur->value_type != new->value_type) { + GRL_DEBUG ("%s differ (values: %d and %d) (types: %s and %s)", + g_type_name (ctype), c->default_value, n->default_value, + g_type_name (cur->value_type), g_type_name (new->value_type)); + return FALSE; + } + } else if (ctype == G_TYPE_PARAM_BOOLEAN) { + GParamSpecBoolean *c = G_PARAM_SPEC_BOOLEAN (cur); + GParamSpecBoolean *n = G_PARAM_SPEC_BOOLEAN (new); + if (c->default_value != n->default_value) { + GRL_DEBUG ("%s type differ: %s != %s", g_type_name (ctype), + g_type_name (cur->value_type), g_type_name (new->value_type)); + return FALSE; + } + } else if (ctype == G_TYPE_PARAM_BOXED || ctype == G_TYPE_PARAM_OBJECT) { + if (cur->value_type != new->value_type) { + GRL_DEBUG ("%s type differ: %s != %s", g_type_name (ctype), + g_type_name (cur->value_type), g_type_name (new->value_type)); + return FALSE; + } + } else { + g_warn_if_reached(); + return FALSE; + } + + return TRUE; +} + +#undef CHECK_NUMERIC_PARAM_SPEC_LIMITS + +static void +shutdown_plugin (GrlPlugin *plugin) +{ + GRL_DEBUG ("Unloading plugin '%s'", grl_plugin_get_id (plugin)); + grl_plugin_unload (plugin); + + if (grl_plugin_get_module (plugin)) { + g_module_close (grl_plugin_get_module (plugin)); + grl_plugin_set_module (plugin, NULL); + } +} + +/* ================ PRIVATE API ================ */ + +/* + * grl_registry_restrict_plugins: + * @registry: the registry instance + * @plugins: a @NULL-terminated array of plugins identifiers + * + * Restrict the plugins that application sees to this list. + * + * Other plugins will not be available for the application, unless it uses + * directly #grl_registry_load_plugin() function. + **/ +void +grl_registry_restrict_plugins (GrlRegistry *registry, + gchar **plugins) +{ + g_return_if_fail (GRL_IS_REGISTRY (registry)); + g_return_if_fail (plugins); + + /* Free previous list */ + if (registry->priv->allowed_plugins) { + g_slist_free_full (registry->priv->allowed_plugins, g_free); + registry->priv->allowed_plugins = NULL; + } + + while (*plugins) { + registry->priv->allowed_plugins = g_slist_prepend (registry->priv->allowed_plugins, + g_strdup (*plugins)); + plugins++; + } +} + +/* + * grl_registry_shutdown: + * @registry: the registry instance + * + * Frees all the resources in the registry and the registry itself. + **/ +void +grl_registry_shutdown (GrlRegistry *registry) +{ + GHashTableIter iter; + GList *each_key; + GList *related_keys = NULL; + GrlPlugin *plugin = NULL; + GrlSource *source = NULL; + + if (registry->priv->plugins) { + g_hash_table_iter_init (&iter, registry->priv->plugins); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &plugin)) { + shutdown_plugin (plugin); + } + g_clear_pointer (®istry->priv->plugins, g_hash_table_unref); + } + + if (registry->priv->sources) { + g_hash_table_iter_init (&iter, registry->priv->sources); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &source)) { + g_object_unref (source); + } + g_clear_pointer (®istry->priv->sources, g_hash_table_unref); + } + + g_clear_pointer (®istry->priv->ranks, g_hash_table_unref); + g_clear_pointer (®istry->priv->configs, g_hash_table_unref); + + /* We need to free this table with care. Several keys can be pointing to the + same value, so we need to ensure that we only free the value once */ + if (registry->priv->related_keys) { + while (TRUE) { + g_hash_table_iter_init (&iter, registry->priv->related_keys); + if (!g_hash_table_iter_next (&iter, NULL, (gpointer *) &related_keys)) { + break; + } + /* This will invalidate the iterator */ + for (each_key = related_keys; each_key; each_key = g_list_next (each_key)) { + g_hash_table_remove (registry->priv->related_keys, GRLKEYID_TO_POINTER (each_key->data)); + } + g_list_free (related_keys); + } + g_clear_pointer (®istry->priv->related_keys, g_hash_table_unref); + } + + g_slist_free_full (registry->priv->plugins_dir, (GDestroyNotify) g_free); + g_slist_free_full (registry->priv->allowed_plugins, (GDestroyNotify) g_free); + + key_id_handler_free (®istry->priv->key_id_handler); + g_clear_pointer (®istry->priv->system_keys, g_hash_table_unref); + + g_object_unref (registry); +} + +/* ================ PUBLIC API ================ */ + +/** + * grl_registry_get_default: + * + * As the registry is designed to work as a singleton, this + * method is in charge of creating the only instance or + * returned it if it is already in memory. + * + * Returns: (transfer none): a new or an already created instance of the registry. + * + * It is NOT MT-safe + * + * Since: 0.2.0 + */ +GrlRegistry * +grl_registry_get_default (void) +{ + static GrlRegistry *registry = NULL; + + if (!registry) { + registry = g_object_new (GRL_TYPE_REGISTRY, NULL); + g_object_add_weak_pointer (G_OBJECT (registry), (gpointer *) ®istry); + } + + return registry; +} + +/** + * grl_registry_register_source: + * @registry: the registry instance + * @plugin: the plugin which owns the source + * @source: (transfer full): the source to register + * @error: error return location or @NULL to ignore + * + * Register a @source in the @registry with the given @plugin information + * + * Returns: %TRUE if success, %FALSE% otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_registry_register_source (GrlRegistry *registry, + GrlPlugin *plugin, + GrlSource *source, + GError **error) +{ + gchar *id; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (GRL_IS_PLUGIN (plugin), FALSE); + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + + g_object_get (source, "source-id", &id, NULL); + GRL_DEBUG ("New source available: '%s'", id); + + /* Take ownership of the source */ + g_object_ref_sink (source); + g_object_unref (source); + + /* Do not free id, since g_hash_table_insert does not copy, + it will be freed when removed from the hash table */ + g_hash_table_insert (registry->priv->sources, id, source); + + /* Set the plugin as owner of source */ + g_object_set (source, "plugin", plugin, NULL); + + /* Set source rank */ + set_source_rank (registry, source); + + /* Update whether it should be invisible */ + update_source_visibility (registry, source); + + if (!SOURCE_IS_INVISIBLE(source)) + g_signal_emit (registry, registry_signals[SIG_SOURCE_ADDED], 0, source); + + return TRUE; +} + +/** + * grl_registry_unregister_source: + * @registry: the registry instance + * @source: the source to unregister + * @error: error return location or @NULL to ignore + * + * Removes the @source from the @registry hash table + * + * Returns: %TRUE if success, %FALSE% otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_registry_unregister_source (GrlRegistry *registry, + GrlSource *source, + GError **error) +{ + gchar *id; + gboolean ret = TRUE; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + + g_object_get (source, "source-id", &id, NULL); + GRL_DEBUG ("Unregistering source '%s'", id); + + if (g_hash_table_remove (registry->priv->sources, id)) { + GRL_DEBUG ("source '%s' is no longer available", id); + g_signal_emit (registry, registry_signals[SIG_SOURCE_REMOVED], 0, source); + g_object_unref (source); + } else { + GRL_WARNING ("source '%s' not found", id); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_UNREGISTER_SOURCE_FAILED, + _("Source with id “%s” was not found"), id); + ret = FALSE; + } + + g_free (id); + return ret; +} + +/** + * grl_registry_add_directory: + * @registry: the registry instance + * @path: a path with plugins + * + * Set this path as part of default paths to load plugins. + * + * Since: 0.2.0 + **/ +void +grl_registry_add_directory (GrlRegistry *registry, + const gchar *path) +{ + g_return_if_fail (GRL_IS_REGISTRY (registry)); + g_return_if_fail (path); + + /* Use append instead of prepend so plugins are loaded in the same order as + they were added */ + registry->priv->plugins_dir = g_slist_append (registry->priv->plugins_dir, + g_strdup (path)); + registry->priv->all_plugins_preloaded = FALSE; +} + +static GrlPlugin * +grl_registry_prepare_plugin_from_desc (GrlRegistry *registry, + GrlPluginDescriptor *plugin_desc) +{ + GrlPlugin *plugin; + + if (!plugin_desc->init || + !plugin_desc->id) { + GRL_WARNING ("Plugin descriptor is not valid"); + return NULL; + } + + plugin = g_object_new (GRL_TYPE_PLUGIN, NULL); + grl_plugin_set_id (plugin, plugin_desc->id); + grl_plugin_set_filename (plugin, plugin_desc->id); + + grl_plugin_set_load_func (plugin, plugin_desc->init); + grl_plugin_set_unload_func (plugin, plugin_desc->deinit); + grl_plugin_set_register_keys_func (plugin, plugin_desc->register_keys); + + /* Insert plugin ID as part of plugin information */ + grl_plugin_set_module_name (plugin, plugin_desc->id); + + return plugin; +} + +static GrlPlugin * +grl_registry_prepare_plugin (GrlRegistry *registry, + const gchar *library_filename, + GError **error) +{ + GModule *module; + GrlPluginDescriptor *plugin_desc; + GrlPlugin *plugin; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + + module = g_module_open (library_filename, G_MODULE_BIND_LOCAL); + if (!module) { + GRL_WARNING ("Failed to open module: %s", g_module_error ()); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Failed to load plugin from %s"), library_filename); + return NULL; + } + + if (!g_module_symbol (module, "GRL_PLUGIN_DESCRIPTOR", (gpointer) &plugin_desc)) { + GRL_WARNING ("Plugin descriptor not found in '%s'", library_filename); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Invalid plugin file %s"), library_filename); + g_module_close (module); + return NULL; + } + + if (!plugin_desc->init || + !plugin_desc->id) { + GRL_WARNING ("Plugin descriptor is not valid: '%s'", library_filename); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("“%s” is not a valid plugin file"), library_filename); + g_module_close (module); + return NULL; + } + + /* Check if plugin is preloaded; if not, then create one */ + plugin = g_hash_table_lookup (registry->priv->plugins, + plugin_desc->id); + + if (plugin) { + g_module_close (module); + /* Check if the existent plugin is precisely this same plugin */ + if (g_strcmp0 (grl_plugin_get_filename (plugin), library_filename) == 0) { + return plugin; + } else { + GRL_WARNING ("Plugin '%s' already exists", library_filename); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Plugin “%s” already exists"), library_filename); + return NULL; + } + } + + /* Check if plugin is allowed */ + if (registry->priv->allowed_plugins && + !g_slist_find_custom (registry->priv->allowed_plugins, + plugin_desc->id, + (GCompareFunc) g_strcmp0)) { + GRL_DEBUG ("Plugin '%s' not allowed; skipping", plugin_desc->id); + g_module_close (module); + return NULL; + } + + plugin = g_object_new (GRL_TYPE_PLUGIN, NULL); + grl_plugin_set_desc (plugin, plugin_desc); + grl_plugin_set_module (plugin, module); + grl_plugin_set_filename (plugin, library_filename); + + /* Make plugin resident */ + g_module_make_resident (module); + + g_hash_table_insert (registry->priv->plugins, g_strdup (plugin_desc->id), plugin); + + /* Register custom keys */ + grl_plugin_register_keys (plugin); + + return plugin; +} + +/** + * grl_registry_activate_all_plugins: + * @registry: the registry instace + * + * Activate all the plugins loaded. + * + * Returns: %TRUE if some plugin has been activated + * + * Since: 0.3.0 + **/ +gboolean +grl_registry_activate_all_plugins (GrlRegistry *registry) +{ + GList *all_plugins; + GList *l; + gboolean plugin_activated = FALSE; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + + all_plugins = g_hash_table_get_values (registry->priv->plugins); + for (l = all_plugins; l; l = l->next) { + GrlPlugin *plugin = l->data; + plugin_activated |= activate_plugin (registry, plugin, NULL); + } + g_list_free (all_plugins); + + return plugin_activated; +} + +/** + * grl_registry_load_plugin: + * @registry: the registry instance + * @library_filename: the path to the so file + * @error: error return location or @NULL to ignore + * + * Loads a module from shared object file stored in @path + * + * Returns: %TRUE if the module is loaded correctly + * + * Since: 0.2.0 + */ +gboolean +grl_registry_load_plugin (GrlRegistry *registry, + const gchar *library_filename, + GError **error) +{ + GrlPlugin *plugin; + + plugin = grl_registry_prepare_plugin (registry, library_filename, error); + if (!plugin) + return FALSE; + + return register_keys_plugin (registry, plugin, error); +} + +/** + * grl_registry_load_plugin_from_desc: (skip) + * @registry: the registry instance + * @plugin_desc: the #GrlPluginDescriptor for the plugin + * @error: error return location or @NULL to ignore + * + * Loads the grilo plugin defined by @plugin_desc. This is + * used to load plugins that aren't shared libraries, and are + * built into applications. + * + * + * Minimal example for loading a builtin plugin, in C. + * + * static GrlPluginDescriptor descriptor = { + * .plugin_id = "grl-example", + * .plugin_init = grl_example_plugin_init, + * }; + * + * grl_registry_load_plugin_from_desc (registry, &descriptor, &error); + * + * + * + * Returns: %TRUE if the plugin is initialised correctly + * + * Since: 0.3.0 + */ +gboolean +grl_registry_load_plugin_from_desc (GrlRegistry *registry, + GrlPluginDescriptor *plugin_desc, + GError **error) +{ + GrlPlugin *plugin; + + plugin = grl_registry_prepare_plugin_from_desc (registry, plugin_desc); + if (!plugin) + return FALSE; + + return register_keys_plugin (registry, plugin, error) && + activate_plugin (registry, plugin, error); +} + +/** + * grl_registry_load_plugin_directory: + * @registry: the registry instance + * @path: the path to the directory + * @error: error return location or @NULL to ignore + * + * Loads a set of modules from directory in @path which contains + * a group shared object files. + * + * Returns: %TRUE if the directory is valid. + * + * Since: 0.2.0 + */ +gboolean +grl_registry_load_plugin_directory (GrlRegistry *registry, + const gchar *path, + GError **error) +{ + GDir *dir; + GError *dir_error = NULL; + GrlPlugin *plugin; + const gchar *entry; + gboolean plugin_loaded = FALSE; + gchar *filename; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (path, FALSE); + + dir = g_dir_open (path, 0, &dir_error); + if (!dir) { + GRL_WARNING ("Could not open directory '%s': %s", + path, + dir_error->message); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Invalid path %s"), path); + g_error_free (dir_error); + return FALSE; + } + + while ((entry = g_dir_read_name (dir)) != NULL) { + filename = g_build_filename (path, entry, NULL); + if (g_strrstr (filename, "." G_MODULE_SUFFIX) == NULL) { + g_free (filename); + continue; + } + + plugin = grl_registry_prepare_plugin (registry, filename, NULL); + plugin_loaded |= (plugin != NULL); + g_free (filename); + } + g_dir_close (dir); + + return plugin_loaded; +} + +/** + * grl_registry_load_all_plugins: + * @registry: the registry instance + * @activate: %TRUE if plugins must be activated after loading + * @error: error return location or @NULL to ignore + * + * Load all the modules available in the default directory path. + * + * The default directory path can be changed through the environment + * variable %GRL_PLUGIN_PATH and it can contain several paths separated + * by ":" + * + * Returns: %FALSE% is all the configured plugin paths are invalid, + * %TRUE% otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_registry_load_all_plugins (GrlRegistry *registry, + gboolean activate, + GError **error) +{ + GSList *plugin_dir; + gboolean loaded_one; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), TRUE); + + /* Preload all plugins */ + if (!registry->priv->all_plugins_preloaded) { + for (plugin_dir = registry->priv->plugins_dir; + plugin_dir; + plugin_dir = g_slist_next (plugin_dir)) { + grl_registry_load_plugin_directory (registry, + plugin_dir->data, + NULL); + } + registry->priv->all_plugins_preloaded = TRUE; + } + + if (activate) { + loaded_one = grl_registry_activate_all_plugins (registry); + + if (!loaded_one) { + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("All configured plugin paths are invalid")); + } + + return loaded_one; + } else { + return TRUE; + } +} + +/** + * grl_registry_activate_plugin_by_id: + * @registry: the registry instance + * @plugin_id: plugin identifier + * @error: error return location or @NULL to ignore + * + * Activates plugin identified by @plugin_id. + * + * Returns: %TRUE if the plugin is loaded correctly + * + * Since: 0.3.0 + **/ +gboolean +grl_registry_activate_plugin_by_id (GrlRegistry *registry, + const gchar *plugin_id, + GError **error) +{ + GrlPlugin *plugin; + gboolean is_loaded; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (plugin_id, FALSE); + + + /* Check if plugin is available */ + plugin = g_hash_table_lookup (registry->priv->plugins, plugin_id); + if (!plugin) { + GRL_WARNING ("Plugin '%s' not available", plugin_id); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Plugin “%s” not available"), plugin_id); + return FALSE; + } + + /* Check if plugin is already loaded */ + g_object_get (plugin, "loaded", &is_loaded, NULL); + if (is_loaded) { + GRL_WARNING ("Plugin '%s' is already loaded", plugin_id); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_LOAD_PLUGIN_FAILED, + _("Plugin “%s” is already loaded"), plugin_id); + return FALSE; + } + + /* activate plugin */ + return activate_plugin (registry, plugin, error); +} + +/** + * grl_registry_lookup_source: + * @registry: the registry instance + * @source_id: the id of a source + * + * This function will search and retrieve a source given its identifier. + * + * Returns: (transfer none): The source found. + * + * Since: 0.2.0 + */ +GrlSource * +grl_registry_lookup_source (GrlRegistry *registry, + const gchar *source_id) +{ + GrlSource *source; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), NULL); + g_return_val_if_fail (source_id != NULL, NULL); + + source = (GrlSource *) g_hash_table_lookup (registry->priv->sources, + source_id); + if (source && !SOURCE_IS_INVISIBLE(source)) + return source; + return NULL; +} + +/** + * grl_registry_get_sources: + * @registry: the registry instance + * @ranked: whether the returned list shall be returned ordered by rank + * + * This function will return all the available sources in the @registry. + * + * If @ranked is %TRUE, the source list will be ordered by rank. + * + * Returns: (element-type GrlSource) (transfer container): a #GList of + * available #GrlSources. The content of the list should not be + * modified or freed. Use g_list_free() when done using the list. + * + * Since: 0.2.0 + */ +GList * +grl_registry_get_sources (GrlRegistry *registry, + gboolean ranked) +{ + GHashTableIter iter; + GList *source_list = NULL; + GrlSource *current_source; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), NULL); + + g_hash_table_iter_init (&iter, registry->priv->sources); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) ¤t_source)) { + if (!SOURCE_IS_INVISIBLE(current_source)) + source_list = g_list_prepend (source_list, current_source); + } + + if (ranked) { + source_list = g_list_sort (source_list, (GCompareFunc) compare_by_rank); + } + + return source_list; +} + +/** + * grl_registry_get_sources_by_operations: + * @registry: the registry instance + * @ops: a bitwise mangle of the requested operations. + * @ranked: whether the returned list shall be returned ordered by rank + * + * Give an array of all the available sources in the @registry capable of + * perform the operations requested in @ops. + * + * If @ranked is %TRUE, the source list will be ordered by rank. + * + * Returns: (element-type GrlSource) (transfer container): a #GList of + * available #GrlSources. The content of the list should not be + * modified or freed. Use g_list_free() when done using the list. + * + * Since: 0.2.0 + */ +GList * +grl_registry_get_sources_by_operations (GrlRegistry *registry, + GrlSupportedOps ops, + gboolean ranked) +{ + GHashTableIter iter; + GList *source_list = NULL; + GrlSource *source; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), NULL); + + g_hash_table_iter_init (&iter, registry->priv->sources); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &source)) { + GrlSupportedOps source_ops; + source_ops = + grl_source_supported_operations (source); + if ((source_ops & ops) == ops && + !SOURCE_IS_INVISIBLE(source)) { + source_list = g_list_prepend (source_list, source); + } + } + + if (ranked) { + source_list = g_list_sort (source_list, compare_by_rank); + } + + return source_list; +} + +/** + * grl_registry_lookup_plugin: + * @registry: the registry instance + * @plugin_id: the id of a plugin + * + * This function will search and retrieve a plugin given its identifier. + * + * Returns: (transfer none): The plugin found + * + * Since: 0.2.0 + **/ +GrlPlugin * +grl_registry_lookup_plugin (GrlRegistry *registry, + const gchar *plugin_id) +{ + g_return_val_if_fail (GRL_IS_REGISTRY (registry), NULL); + g_return_val_if_fail (plugin_id, NULL); + + return (GrlPlugin *) g_hash_table_lookup (registry->priv->plugins, + plugin_id); +} + +/** + * grl_registry_get_plugins: + * @registry: the registry instance + * @only_loaded: whether the returned list shall include only loaded plugins + * + * This function will return all the available plugins in the @registry. + * + * If @only_loaded is %TRUE, the plugin list will contain only plugins that are + * loaded. + * + * Returns: (element-type GrlPlugin) (transfer container): a #GList of + * available #GrlPlugins. The content of the list should not be modified + * or freed. Use g_list_free() when done using the list. + * + * Since: 0.2.0 + **/ +GList * +grl_registry_get_plugins (GrlRegistry *registry, + gboolean only_loaded) +{ + GList *plugin_list = NULL; + GHashTableIter iter; + GrlPlugin *current_plugin; + gboolean is_loaded; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), NULL); + + if (only_loaded) { + g_hash_table_iter_init (&iter, registry->priv->plugins); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) ¤t_plugin)) { + g_object_get (current_plugin, "loaded", &is_loaded, NULL); + if (is_loaded) { + plugin_list = g_list_prepend (plugin_list, current_plugin); + } + } + } else { + plugin_list = g_hash_table_get_keys (registry->priv->plugins); + } + + return plugin_list; +} + +/** + * grl_registry_unload_plugin: + * @registry: the registry instance + * @plugin_id: the identifier of the plugin + * @error: error return location or @NULL to ignore + * + * Unload from memory a module identified by @plugin_id. This means call the + * module's deinit function. + * + * Returns: %TRUE% on success. + * + * Since: 0.2.0 + */ +gboolean +grl_registry_unload_plugin (GrlRegistry *registry, + const gchar *plugin_id, + GError **error) +{ + GrlPlugin *plugin; + GList *sources = NULL; + GList *sources_iter; + + GRL_DEBUG ("%s: %s", __FUNCTION__, plugin_id); + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (plugin_id != NULL, FALSE); + + /* First check the plugin is valid */ + plugin = g_hash_table_lookup (registry->priv->plugins, plugin_id); + if (!plugin) { + GRL_WARNING ("Could not deinit plugin '%s'. Plugin not found.", plugin_id); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_UNLOAD_PLUGIN_FAILED, + _("Plugin not found: “%s”"), plugin_id); + return FALSE; + } + + /* Second, shut down any sources spawned by this plugin */ + GRL_DEBUG ("Shutting down sources spawned by '%s'", plugin_id); + sources = grl_registry_get_sources (registry, FALSE); + + for (sources_iter = sources; sources_iter; + sources_iter = g_list_next (sources_iter)) { + GrlSource *source = GRL_SOURCE (sources_iter->data); + if (grl_source_get_plugin (source) == plugin) { + grl_registry_unregister_source (registry, source, NULL); + } + } + g_list_free (sources); + + /* Third, shut down the plugin */ + shutdown_plugin (plugin); + + return TRUE; +} + +/** + * grl_registry_register_metadata_key: + * @registry: The plugin registry + * @param_spec: (transfer full): The definition of the key to register + * @bind_key: The key the new key is bind to, or #GRL_METADATA_KEY_INVALID if it is not bound. + * @error: error return location or @NULL to ignore + * + * Registers a new metadata key, creating a relation between the new key and + * @bind_key. + * + * Two keys are related when the values of both keys are somehow related. + * + * One example of a relation would be the one between the URI of a media + * resource and its mime-type: they are both tied together and one does not make + * sense without the other. + * + * Relations between keys allow the framework to provide all the data that is + * somehow related when any of the related keys are requested. + + * Returns: The #GrlKeyID registered. + * + * Since: 0.3.0 + */ +GrlKeyID +grl_registry_register_metadata_key (GrlRegistry *registry, + GParamSpec *param_spec, + GrlKeyID bind_key, + GError **error) +{ + GrlKeyID key; + + key = grl_registry_register_metadata_key_full (registry, + param_spec, + GRL_METADATA_KEY_INVALID, + bind_key, + error); + + if (key != GRL_METADATA_KEY_INVALID) { + g_signal_emit (registry, registry_signals[SIG_METADATA_KEY_ADDED], + 0, + grl_metadata_key_get_name (key)); + } + + return key; +} + +/* + * grl_registry_register_metadata_key_system: + * + * This is an internal method only meant to be used to register core + * keys. + * + * For internal use. Plugin developers should use + * grl_registry_register_metadata_key(). + */ +GrlKeyID +grl_registry_register_metadata_key_system (GrlRegistry *registry, + GParamSpec *param_spec, + GrlKeyID key, + GrlKeyID bind_key, + GError **error) +{ + GrlKeyID registered_key; + + registered_key = grl_registry_register_metadata_key_full (registry, + param_spec, + key, + bind_key, + error); + + return registered_key; +} + +/** + * grl_registry_lookup_metadata_key: + * @registry: the registry instance + * @key_name: the key name + * + * Look up for the metadata key with name @key_name. + * + * Returns: The metadata key, or GRL_METADATA_KEY_INVALID if not found + * + * Since: 0.2.0 + */ +GrlKeyID +grl_registry_lookup_metadata_key (GrlRegistry *registry, + const gchar *key_name) +{ + g_return_val_if_fail (GRL_IS_REGISTRY (registry), 0); + g_return_val_if_fail (key_name, 0); + + return key_id_handler_get_key (®istry->priv->key_id_handler, key_name); +} + +/** + * grl_registry_lookup_metadata_key_name: + * @registry: the registry instance + * @key: a metadata key + * + * Returns @key name. + * + * Returns: metadata key name, or @NULL if not found + * + * Since: 0.2.0 + */ +const gchar * +grl_registry_lookup_metadata_key_name (GrlRegistry *registry, + GrlKeyID key) +{ + g_return_val_if_fail (GRL_IS_REGISTRY (registry), 0); + + return key_id_handler_get_name (®istry->priv->key_id_handler, key); +} + +/** + * grl_registry_lookup_metadata_key_desc: + * @registry: the registry instance + * @key: a metadata key + * + * Returns @key description. + * + * Returns: metadata key description, or @NULL if not found + * + * Since: 0.2.0 + */ +const gchar * +grl_registry_lookup_metadata_key_desc (GrlRegistry *registry, + GrlKeyID key) +{ + const gchar *key_name; + GParamSpec *key_pspec; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), 0); + + key_name = key_id_handler_get_name (®istry->priv->key_id_handler, key); + if (!key_name) { + return NULL; + } + key_pspec = g_hash_table_lookup (registry->priv->system_keys, key_name); + + if (key_pspec) { + return g_param_spec_get_blurb (key_pspec); + } else { + return NULL; + } +} + +/** + * grl_registry_lookup_metadata_key_type: + * @registry: the registry instance + * @key: a metadata key + * + * Returns @key expected value type. + * + * Returns: metadata key type, or @G_TYPE_INVALID if not found + * + * Since: 0.2.0 + */ +GType +grl_registry_lookup_metadata_key_type (GrlRegistry *registry, + GrlKeyID key) +{ + const gchar *key_name; + GParamSpec *key_pspec; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), 0); + + key_name = key_id_handler_get_name (®istry->priv->key_id_handler, key); + if (!key_name) { + return G_TYPE_INVALID; + } + key_pspec = g_hash_table_lookup (registry->priv->system_keys, key_name); + + if (key_pspec) { + return G_PARAM_SPEC_VALUE_TYPE (key_pspec); + } else { + return G_TYPE_INVALID; + } +} + +/** + * grl_registry_metadata_key_validate: + * @registry: the registry instance + * @key: a metadata key + * @value: value to be validate + * + * Validates @value content complies with the key specification. That is, it has + * the expected type, and value are within the range specified in key (for + * integer values). + * + * Returns: %TRUE if complies + * + * Since: 0.2.0 + **/ +gboolean +grl_registry_metadata_key_validate (GrlRegistry *registry, + GrlKeyID key, + GValue *value) +{ + const gchar *key_name; + GParamSpec *key_pspec; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (G_IS_VALUE (value), FALSE); + + key_name = key_id_handler_get_name (®istry->priv->key_id_handler, key); + if (!key_name) { + return FALSE; + } + key_pspec = g_hash_table_lookup (registry->priv->system_keys, key_name); + + if (key_pspec) { + return !g_param_value_validate (key_pspec, value); + } else { + return FALSE; + } +} + +/** + * grl_registry_lookup_metadata_key_relation: + * @registry: the registry instance + * @key: a metadata key + * + * Look up the list of keys that have a relation with @key. + * + * @key is included in that list. + * + * Returns: (element-type GrlKeyID) (transfer none): a #GList of + * related keys, or @NULL if key is invalid. + * + * Since: 0.2.0 + **/ +const GList * +grl_registry_lookup_metadata_key_relation (GrlRegistry *registry, + GrlKeyID key) +{ + g_return_val_if_fail (GRL_IS_REGISTRY (registry), NULL); + + return g_hash_table_lookup (registry->priv->related_keys, GRLKEYID_TO_POINTER (key)); +} + +/** + * grl_registry_get_metadata_keys: + * @registry: the registry instance + * + * Returns a list with all registered keys in system. + * + * Returns: (transfer container) (element-type GrlKeyID): a #GList with all the available + * #GrlKeyIDs. The content of the list should not be modified or freed. + * Use g_list_free() when done using the list. + * + * Since: 0.2.0 + **/ +GList * +grl_registry_get_metadata_keys (GrlRegistry *registry) +{ + return key_id_handler_get_all_keys (®istry->priv->key_id_handler); +} + +/** + * grl_registry_add_config: + * @registry: the registry instance + * @config: (transfer full): a configuration set + * @error: error return location or @NULL to ignore + * + * Add a configuration for a plugin/source. + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + */ +gboolean +grl_registry_add_config (GrlRegistry *registry, + GrlConfig *config, + GError **error) +{ + gchar *plugin_id; + GList *configs = NULL; + + g_return_val_if_fail (config != NULL, FALSE); + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + + plugin_id = grl_config_get_plugin (config); + if (!plugin_id) { + GRL_WARNING ("Plugin configuration missed plugin information, ignoring..."); + g_set_error (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_CONFIG_FAILED, + _("Plugin configuration does not contain “plugin-id” reference")); + return FALSE; + } + + configs = g_hash_table_lookup (registry->priv->configs, plugin_id); + if (configs) { + /* Notice that we are using g_list_append on purpose to avoid + having to insert again in the hash table */ + configs = g_list_append (configs, config); + g_free (plugin_id); + } else { + configs = g_list_prepend (configs, config); + g_hash_table_insert (registry->priv->configs, + (gpointer) plugin_id, + configs); + } + + return TRUE; +} + +static void +add_config_from_keyfile (GKeyFile *keyfile, + GrlRegistry *registry) +{ + GrlConfig *config; + gchar **key; + gchar **keys; + gchar **plugin; + gchar **plugins; + gchar *value; + + /* Look up for defined plugins */ + plugins = g_key_file_get_groups (keyfile, NULL); + for (plugin = plugins; *plugin; plugin++) { + config = grl_config_new (*plugin, NULL); + + /* Look up configuration keys for this plugin */ + keys = g_key_file_get_keys (keyfile, *plugin, NULL, NULL); + for (key = keys; *key; key++) { + value = g_key_file_get_string (keyfile, *plugin, *key, NULL); + if (value) { + grl_config_set_string (config, *key, value); + g_free (value); + } + } + grl_registry_add_config (registry, config, NULL); + g_strfreev (keys); + } + g_strfreev (plugins); +} + +/** + * grl_registry_add_config_from_file: + * @registry: the registry instance + * @config_file: a key-value file containing the configuration + * @error: error return location or @NULL to ignore + * + * Load plugin configurations from a .ini-like config file. + * + * Returns: %TRUE on success + * + * Since: 0.2.0 + **/ +gboolean +grl_registry_add_config_from_file (GrlRegistry *registry, + const gchar *config_file, + GError **error) +{ + GError *load_error = NULL; + GKeyFile *keyfile; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (config_file, FALSE); + + keyfile = g_key_file_new (); + + if (g_key_file_load_from_file (keyfile, + config_file, + G_KEY_FILE_NONE, + &load_error)) { + add_config_from_keyfile (keyfile, registry); + g_key_file_free (keyfile); + return TRUE; + } else { + GRL_WARNING ("Unable to load configuration. %s", load_error->message); + g_set_error_literal (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_CONFIG_LOAD_FAILED, + load_error->message); + g_error_free (load_error); + g_key_file_free (keyfile); + return FALSE; + } +} + +/** + * grl_registry_add_config_from_resource: + * @registry: the registry instance + * @resource_path: a key-value file containing the configuration + * @error: error return location or @NULL to ignore + * + * Load plugin configurations from a .ini-like resource file. + * + * Returns: %TRUE on success + * + * Since: 0.2.8 + **/ +gboolean +grl_registry_add_config_from_resource (GrlRegistry *registry, + const gchar *resource_path, + GError **error) +{ + GError *load_error = NULL; + GKeyFile *keyfile = NULL; + GBytes *bytes; + gboolean ret = FALSE; + + g_return_val_if_fail (GRL_IS_REGISTRY (registry), FALSE); + g_return_val_if_fail (resource_path, FALSE); + + bytes = g_resources_lookup_data (resource_path, 0, error); + if (bytes == NULL) + goto bail; + + keyfile = g_key_file_new (); + + if (g_key_file_load_from_data (keyfile, + g_bytes_get_data (bytes, NULL), + g_bytes_get_size (bytes), + G_KEY_FILE_NONE, + &load_error)) { + add_config_from_keyfile (keyfile, registry); + ret = TRUE; + } else { + GRL_WARNING ("Unable to load configuration. %s", load_error->message); + g_set_error_literal (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_CONFIG_LOAD_FAILED, + load_error->message); + g_error_free (load_error); + } + +bail: + g_clear_pointer (&keyfile, g_key_file_free); + g_clear_pointer (&bytes, g_bytes_unref); + + return ret; +} diff --git a/src/grl-registry.h b/src/grl-registry.h new file mode 100644 index 0000000..1bbcb63 --- /dev/null +++ b/src/grl-registry.h @@ -0,0 +1,336 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_REGISTRY_H_ +#define _GRL_REGISTRY_H_ + +#include +#include +#include + +#include +#include +#include +#include +#include + +#define GRL_PLUGIN_PATH_VAR "GRL_PLUGIN_PATH" +#define GRL_PLUGIN_LIST_VAR "GRL_PLUGIN_LIST" +#define GRL_PLUGIN_RANKS_VAR "GRL_PLUGIN_RANKS" + +/* Macros */ + +#define GRL_TYPE_REGISTRY \ + (grl_registry_get_type ()) + +#define GRL_REGISTRY(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_REGISTRY, \ + GrlRegistry)) + +#define GRL_IS_REGISTRY(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_REGISTRY)) + +#define GRL_REGISTRY_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + GRL_TYPE_REGISTRY, \ + GrlRegistryClass)) + +#define GRL_IS_REGISTRY_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + GRL_TYPE_REGISTRY)) + +#define GRL_REGISTRY_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_REGISTRY, \ + GrlRegistryClass)) + +/* Plugin registration */ + +/** +* GRL_PLUGIN_DEFINE: +* @major_version: the major version number of core that plugin was compiled for +* @minor_version: the minor version number of core that plugin was compiled for +* @id: the plugin identifier +* @name: name of plugin +* @description: description of plugin +* @author: author of plugin +* @version: version of plugin +* @license: license of plugin +* @site: URL to provider of plugin +* @init: the module initialization. It shall instantiate +* the #GrlPlugins provided +* @deinit: (allow-none): function to execute when the registry needs to dispose +* the module. +* @register_keys: (allow-none): function to execute before loading the +* plugin. It's aim is to register new keys +* +* Since: 0.3.0 +*/ +#define GRL_PLUGIN_DEFINE(major, \ + minor, \ + id, \ + name, \ + description, \ + author, \ + version, \ + license, \ + site, \ + init, \ + deinit, \ + register_keys) \ + G_MODULE_EXPORT GrlPluginDescriptor GRL_PLUGIN_DESCRIPTOR = { \ + major, \ + minor, \ + id, \ + name, \ + description, \ + author, \ + version, \ + license, \ + site, \ + init, \ + deinit, \ + register_keys \ + } + +/* Plugin descriptor */ + +typedef struct _GrlRegistry GrlRegistry; + +typedef struct _GrlPluginDescriptor GrlPluginDescriptor; + +typedef gboolean (*GrlPluginInitFunc) (GrlRegistry *registry, + GrlPlugin *plugin, + GList *configs); + +typedef void (*GrlPluginDeinitFunc) (GrlPlugin *plugin); + +typedef void (*GrlPluginRegisterKeysFunc) (GrlRegistry *registry, + GrlPlugin *plugin); + +/** +* GrlPluginDescriptor: +* @major_version: the major version number of core that plugin was compiled for +* @minor_version: the minor version number of core that plugin was compiled for +* @id: the plugin identifier +* @name: name of plugin +* @description: description of plugin +* @author: author of plugin +* @version: version of plugin +* @license: license of plugin +* @site: URL to provider of plugin +* @plugin_init: the module initialization. It shall instantiate +* the #GrlPlugins provided +* @plugin_deinit: function to execute when the registry needs +* to dispose the module. +* @plugin_register_keys: function to execute before loading the plugin. It's aim +* is to register new keys +* +* This structure is used for the module loader +* +* Since: 0.3.0 +*/ +struct _GrlPluginDescriptor { + gint major_version; + gint minor_version; + gchar *id; + gchar *name; + gchar *description; + gchar *author; + gchar *version; + gchar *license; + gchar *site; + + GrlPluginInitFunc init; + GrlPluginDeinitFunc deinit; + GrlPluginRegisterKeysFunc register_keys; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +/* Plugin ranks */ + +/** + * GrlRank: + * @GRL_RANK_LOWEST: will be chosen last or not at all + * @GRL_RANK_LOW: unlikely to be chosen + * @GRL_RANK_DEFAULT: likely to be chosen + * @GRL_RANK_HIGH: will be chosen + * @GRL_RANK_HIGHEST: will be chosen first + * + * Source priority ranks. Defines the order in which the resolver + * (or similar rank-picking mechanisms) will choose this source + * over an alternative one with the same function. + * + * These constants serve as a rough guidance for defining the rank + * of a GrlSource. Any value is valid, including values bigger + * than GRL_RANK_HIGHEST. + */ +typedef enum { + GRL_RANK_LOWEST = -64, + GRL_RANK_LOW = -32, + GRL_RANK_DEFAULT = 0, + GRL_RANK_HIGH = 32, + GRL_RANK_HIGHEST = 64 +} GrlRank; + +/* GrlRegistry object */ + +typedef struct _GrlRegistryPrivate GrlRegistryPrivate; + +struct _GrlRegistry { + + GObject parent; + + /*< private >*/ + GrlRegistryPrivate *priv; + + gpointer _grl_reserved[GRL_PADDING]; +}; + +/* GrlRegistry class */ + +typedef struct _GrlRegistryClass GrlRegistryClass; + +/** + * GrlRegistryClass: + * @parent_class: the parent class structure + * + * Grilo Registry class. Dynamic loader of plugins. + */ +struct _GrlRegistryClass { + + GObjectClass parent_class; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +G_BEGIN_DECLS + +GType grl_registry_get_type (void); + +GrlRegistry *grl_registry_get_default (void); + +void grl_registry_add_directory (GrlRegistry *registry, + const gchar *path); + +gboolean grl_registry_load_plugin (GrlRegistry *registry, + const gchar *library_filename, + GError **error); + +gboolean grl_registry_load_plugin_from_desc (GrlRegistry *registry, + GrlPluginDescriptor *plugin_desc, + GError **error); + +gboolean grl_registry_load_plugin_directory (GrlRegistry *registry, + const gchar *path, + GError **error); + +gboolean grl_registry_unload_plugin (GrlRegistry *registry, + const gchar *plugin_id, + GError **error); + +gboolean grl_registry_activate_all_plugins (GrlRegistry *registry); + +gboolean grl_registry_load_all_plugins (GrlRegistry *registry, + gboolean activate, + GError **error); + +gboolean grl_registry_activate_plugin_by_id (GrlRegistry *registry, + const gchar *plugin_id, + GError **error); + +gboolean grl_registry_register_source (GrlRegistry *registry, + GrlPlugin *plugin, + GrlSource *source, + GError **error); + +gboolean grl_registry_unregister_source (GrlRegistry *registry, + GrlSource *source, + GError **error); + +GrlSource *grl_registry_lookup_source (GrlRegistry *registry, + const gchar *source_id); + +GList *grl_registry_get_sources (GrlRegistry *registry, + gboolean ranked); + +GList *grl_registry_get_sources_by_operations (GrlRegistry *registry, + GrlSupportedOps ops, + gboolean ranked); + +GrlPlugin *grl_registry_lookup_plugin (GrlRegistry *registry, + const gchar *plugin_id); + +GList *grl_registry_get_plugins (GrlRegistry *registry, + gboolean only_loaded); + + +GrlKeyID grl_registry_register_metadata_key (GrlRegistry *registry, + GParamSpec *param_spec, + GrlKeyID bind_key, + GError **error); + +GrlKeyID grl_registry_lookup_metadata_key (GrlRegistry *registry, + const gchar *key_name); + +const GList *grl_registry_lookup_metadata_key_relation (GrlRegistry *registry, + GrlKeyID key); + +const gchar *grl_registry_lookup_metadata_key_name (GrlRegistry *registry, + GrlKeyID key); + +const gchar *grl_registry_lookup_metadata_key_desc (GrlRegistry *registry, + GrlKeyID key); + +GType grl_registry_lookup_metadata_key_type (GrlRegistry *registry, + GrlKeyID key); + +gboolean grl_registry_metadata_key_validate (GrlRegistry *registry, + GrlKeyID key, + GValue *value); + +GList *grl_registry_get_metadata_keys (GrlRegistry *registry); + +gboolean grl_registry_add_config (GrlRegistry *registry, + GrlConfig *config, + GError **error); + +gboolean grl_registry_add_config_from_file (GrlRegistry *registry, + const gchar *config_file, + GError **error); + +gboolean grl_registry_add_config_from_resource (GrlRegistry *registry, + const gchar *resource_path, + GError **error); + +G_END_DECLS + +#endif /* _GRL_REGISTRY_H_ */ diff --git a/src/grl-source.c b/src/grl-source.c new file mode 100644 index 0000000..b368c88 --- /dev/null +++ b/src/grl-source.c @@ -0,0 +1,4676 @@ +/* + * Copyright (C) 2010-2012 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-source + * @short_description: Abstract base class for sources + * @see_also: #GrlPlugin, #GrlSource, #GrlMedia + * + * GrlSource is the abstract base class needed to construct a source providing + * multimedia information that can be used in a Grilo application. + * + * The sources fetch information from different online or local + * databases and store them in the #GrlMedia. + */ + +#include "grl-source.h" + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "grl-operation.h" +#include "grl-operation-priv.h" +#include "grl-marshal.h" +#include "grl-type-builtins.h" +#include "grl-sync-priv.h" +#include "grl-registry.h" +#include "grl-error.h" +#include "grl-log.h" +#include "data/grl-media.h" + +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT source_log_domain +GRL_LOG_DOMAIN(source_log_domain); + +enum { + PROP_0, + PROP_ID, + PROP_NAME, + PROP_DESC, + PROP_ICON, + PROP_PLUGIN, + PROP_RANK, + PROP_AUTO_SPLIT_THRESHOLD, + PROP_SUPPORTED_MEDIA, + PROP_SOURCE_TAGS +}; + +enum { + SIG_CONTENT_CHANGED, + SIG_LAST +}; + +static gint source_signals[SIG_LAST]; + +typedef void (*MediaDecorateCb) (GrlMedia *media, + gpointer user_data, + const GError *error); + +struct _GrlSourcePrivate { + gchar *id; + gchar *name; + gchar *desc; + gint rank; + GrlSupportedMedia supported_media; + guint auto_split_threshold; + GrlPlugin *plugin; + GIcon *icon; + GPtrArray *tags; +}; + +typedef struct { + GrlMedia *media; + gboolean is_ready; + gint remaining; + GError *error; +} QueueElement; + +typedef struct { + GrlSource *source; + GList *required_keys; + gboolean being_queried; +} MapNode; + +struct AutoSplitCtl { + gboolean chunk_first; + guint chunk_requested; + guint chunk_consumed; + guint threshold; + guint count; + guint total_remaining; + guint chunk_remaining; +}; + +struct OperationState { + GrlSource *source; + guint operation_id; + gboolean cancelled; + gboolean completed; + gboolean started; +}; + +struct ResolveRelayCb { + GrlSource *source; + GrlSupportedOps operation_type; + guint operation_id; + GrlMedia *media; + GList *keys; + GrlOperationOptions *options; + GrlSourceResolveCb user_callback; + gpointer user_data; + GHashTable *map; + GHashTable *resolve_specs; + GList *specs_to_invoke; + gboolean cancel_invoked; + GError *error; + union { + GrlSourceResolveSpec *res; + GrlSourceMediaFromUriSpec *mfu; + } spec; +}; + +struct BrowseRelayCb { + GrlSource *source; + GrlSupportedOps operation_type; + guint operation_id; + GList *keys; + GrlOperationOptions *options; + GrlSourceResultCb user_callback; + gpointer user_data; + union { + GrlSourceBrowseSpec *browse; + GrlSourceSearchSpec *search; + GrlSourceQuerySpec *query; + } spec; + GQueue *queue; + gboolean dispatcher_running; + struct AutoSplitCtl *auto_split; +}; + +struct RemoveRelayCb { + GrlSource *source; + GrlMedia *media; + GrlSourceRemoveCb user_callback; + gpointer user_data; + GrlSourceRemoveSpec *spec; + GError *error; +}; + +struct StoreRelayCb { + GrlWriteFlags flags; + GrlSourceStoreCb user_callback; + gpointer user_data; + GrlSourceStoreSpec *spec; +}; + +struct StoreMetadataRelayCb { + GrlSource *source; + GrlMedia *media; + GHashTable *map; + GList *use_sources; + GList *failed_keys; + GList *specs; + GrlSourceStoreCb user_callback; + gpointer user_data; +}; + +struct ResolveFullResolutionCtlCb { + GrlSourceResolveCb user_callback; + gpointer user_data; + GList *keys; + GrlResolutionFlags flags; + guint operation_id; +}; + +struct ResolveFullResolutionDoneCb { + GrlSourceResolveCb user_callback; + gpointer user_data; + GHashTable *pending_callbacks; + gboolean cancelled; + GrlSource *source; + struct ResolveFullResolutionCtlCb *ctl_info;; +}; + +struct MediaDecorateData { + GrlSource *source; + guint operation_id; + GHashTable *pending_callbacks; + MediaDecorateCb callback; + gboolean cancelled; + gpointer user_data; +}; + +static void grl_source_finalize (GObject *plugin); + +static void grl_source_dispose (GObject *objct); + +static void grl_source_get_property (GObject *plugin, + guint prop_id, + GValue *value, + GParamSpec *pspec); + +static void grl_source_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec); + +static gboolean browse_idle (gpointer user_data); + +static gboolean search_idle (gpointer user_data); + +static gboolean query_idle (gpointer user_data); + +static void run_store_metadata (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data); + +static void map_list_nodes_free (GList *nodes); + +static void resolve_result_relay_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error); + +static gboolean resolve_idle (gpointer user_data); + +static gboolean resolve_all_done (gpointer user_data); + +static void source_cancel_cb (struct OperationState *op_state); + +/* ================ GrlSource GObject ================ */ + +G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GrlSource, + grl_source, + G_TYPE_OBJECT, + G_ADD_PRIVATE (GrlSource)); + +static void +grl_source_class_init (GrlSourceClass *source_class) +{ + GObjectClass *gobject_class; + + gobject_class = G_OBJECT_CLASS (source_class); + + gobject_class->dispose = grl_source_dispose; + gobject_class->finalize = grl_source_finalize; + gobject_class->set_property = grl_source_set_property; + gobject_class->get_property = grl_source_get_property; + + /** + * GrlSource:source-id: + * + * The identifier of the source. + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_ID, + g_param_spec_string ("source-id", + "Source identifier", + "The identifier of the source", + "", + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:source-name: + * + * The name of the source. + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_NAME, + g_param_spec_string ("source-name", + "Source name", + "The name of the source", + "", + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:source-desc: + * + * A description of the source + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_DESC, + g_param_spec_string ("source-desc", + "Source description", + "A description of the source", + "", + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:source-icon: + * + * #GIcon representing the source + * + * Since: 0.2.8 + */ + g_object_class_install_property (gobject_class, + PROP_ICON, + g_param_spec_object ("source-icon", + "Source icon", + "Icon representing the source", + G_TYPE_ICON, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:plugin: + * + * Plugin the source belongs to + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_PLUGIN, + g_param_spec_object ("plugin", + "Plugin", + "Plugin source belongs to", + GRL_TYPE_PLUGIN, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:rank: + * + * Source rank + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_RANK, + g_param_spec_int ("rank", + "Rank", + "Source rank", + G_MININT, + G_MAXINT, + GRL_RANK_DEFAULT, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:auto-split-threshold: + * + * Transparently split queries with count requests + * bigger than a certain threshold into smaller queries. + * + * Since: 0.2.0 + */ + g_object_class_install_property (gobject_class, + PROP_AUTO_SPLIT_THRESHOLD, + g_param_spec_uint ("auto-split-threshold", + "Auto-split threshold", + "Threshold to use auto-split of queries", + 0, G_MAXUINT, 0, + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); + /** + * GrlSource:supported-media: + * + * List of supported media types by this source. + * + * Since: 0.2.3 + */ + g_object_class_install_property (gobject_class, + PROP_SUPPORTED_MEDIA, + g_param_spec_flags ("supported-media", + "Supported media", + "List of supported media types", + GRL_TYPE_SUPPORTED_MEDIA, + GRL_SUPPORTED_MEDIA_ALL, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + /** + * GrlSource:source-tags: + * + * A string array of tags relevant this source. + * + * The tags are arbitrary, and applications should just pass over the tags + * it does not understand. Applications would usually use this to either + * group sources together, or hide certain sources: a radio application + * would filter for %GRL_MEDIA_TYPE_AUDIO in GrlSource::supported-media as + * well as "radio" being listed in the tags. + * + * To avoid irrelevant content being listed in applications, sources + * such as generic video sites should not be tagged as "cinema" or + * "tv" as they contain a lot of content that's not either of those. + * + * This is a list of commonly used values: + * + * - "cinema", or "tv" + * The content served is from cinema or TV sources. For example, a + * source for movie trailers would select the former, a source for + * streaming live TV would select the latter. + * + * - "radio" + * The content served is from streaming radios. + * + * - "music" + * The content served is music, for example, music stores such as + * Jamendo or Magnatune. + * + * - "country:country-code" + * The content is mostly relevant to users from a particular country, + * such as a national broadcaster. For example, BBC content would be + * tagged as "country:uk". Country codes should be an ISO-639-1 or + * ISO-639-2 code. + * + * - "protocol:protocol-name" + * The content browsing or searching uses a particular protocol, such + * as DLNA/UPnP or DMAP/DAAP. This makes it easier to whitelist or + * blacklist sources rather than matching the implementation specific + * source ID. Examples are "protocol:dlna" and "protocol:dmap". + * + * - "localhost", or "localuser" + * The content is served from the machine the application is running on, + * or by an application the user is running. Applications might choose to + * avoid showing the user's own data in their interfaces, or integrate it + * in the user's local collection. + * + * "net:local", or "net:internet" + * The source requires a connection to the local network, or a connection + * to the Internet. Sources with those tags will be automatically hidden + * from the application's reach when such networks aren't available, or + * we're not connected to a network. + * + * "net:plaintext" + * The source makes requests over plain text, non-encrypted, network channels, + * such as using HTTP to do searches or lookups. Applications would usually + * disable those by default, so that privacy is respected by default, and no + * data is leaked unintentionally. + * + * Since: 0.2.10 + */ + g_object_class_install_property (gobject_class, + PROP_SOURCE_TAGS, + g_param_spec_boxed ("source-tags", + "Tags", + "String array of tags relevant this source", + G_TYPE_STRV, + G_PARAM_READWRITE | + G_PARAM_CONSTRUCT | + G_PARAM_STATIC_STRINGS)); + + /** + * GrlSource::content-changed: + * @source: source that has changed + * @changed_medias: (element-type GrlMedia): a #GPtrArray with the medias + * that changed or a common ancestor of them of type #GrlMedia. + * @change_type: the kind of change that ocurred + * @location_unknown: @TRUE if the change happened in @media itself or in one + * of its direct children (when @media is a #GrlMedia). @FALSE otherwise + * + * Signals that the content in the source has changed. @changed_medias is the + * list of elements that have changed. Usually these medias are of type + * #GrlMedia container, meaning that the content of that container has changed. + * + * If @location_unknown is @TRUE it means the source cannot establish where the + * change happened: could be either in the container, in any child, or in any other + * descendant of the container in the hierarchy. + * + * Both @change_type and @location_unknown are applied to all elements in the + * list. + * + * For the cases where the source can only signal that a change happened, but + * not where, it would use a list with the the root container (@NULL id) and set + * location_unknown as @TRUE. + * + * Since: 0.2.0 + */ + source_signals[SIG_CONTENT_CHANGED] = + g_signal_new("content-changed", + G_TYPE_FROM_CLASS (gobject_class), + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, + 0, + NULL, + NULL, + grl_marshal_VOID__BOXED_ENUM_BOOLEAN, + G_TYPE_NONE, + 3, + G_TYPE_PTR_ARRAY, + GRL_TYPE_SOURCE_CHANGE_TYPE, + G_TYPE_BOOLEAN); +} + +static void +grl_source_init (GrlSource *source) +{ + source->priv = grl_source_get_instance_private (source); + source->priv->tags = g_ptr_array_new_with_free_func (g_free); +} + +static void +grl_source_dispose (GObject *object) +{ + GrlSource *source = GRL_SOURCE (object); + + g_clear_object (&source->priv->plugin); + + G_OBJECT_CLASS (grl_source_parent_class)->dispose (object); +} + +static void +grl_source_finalize (GObject *object) +{ + GrlSource *source = GRL_SOURCE (object); + + g_clear_object (&source->priv->icon); + g_clear_pointer (&source->priv->tags, g_ptr_array_unref); + g_free (source->priv->id); + g_free (source->priv->name); + g_free (source->priv->desc); + + G_OBJECT_CLASS (grl_source_parent_class)->finalize (object); +} + +static void +set_string_property (gchar **property, const GValue *value) +{ + g_clear_pointer (property, g_free); + *property = g_value_dup_string (value); +} + +static void +grl_source_set_tags (GrlSource *source, + const char **strv) +{ + guint i; + + g_ptr_array_set_size (source->priv->tags, 0); + if (strv == NULL) + return; + + for (i = 0; strv[i] != NULL; i++) + g_ptr_array_add (source->priv->tags, g_strdup (strv[i])); + g_ptr_array_add (source->priv->tags, NULL); +} + +static void +grl_source_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + GrlSource *source = GRL_SOURCE (object); + + switch (prop_id) { + case PROP_ID: + set_string_property (&source->priv->id, value); + break; + case PROP_NAME: + set_string_property (&source->priv->name, value); + break; + case PROP_DESC: + set_string_property (&source->priv->desc, value); + break; + case PROP_ICON: + g_clear_object (&source->priv->icon); + source->priv->icon = g_value_dup_object (value); + break; + case PROP_PLUGIN: + g_clear_object (&source->priv->plugin); + source->priv->plugin = g_value_dup_object (value); + break; + case PROP_RANK: + source->priv->rank = g_value_get_int (value); + break; + case PROP_AUTO_SPLIT_THRESHOLD: + source->priv->auto_split_threshold = g_value_get_uint (value); + break; + case PROP_SUPPORTED_MEDIA: + source->priv->supported_media = g_value_get_flags (value); + break; + case PROP_SOURCE_TAGS: + grl_source_set_tags (source, g_value_get_boxed (value)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (source, prop_id, pspec); + break; + } +} + +static void +grl_source_get_property (GObject *object, + guint prop_id, + GValue *value, + GParamSpec *pspec) +{ + GrlSource *source; + + source = GRL_SOURCE (object); + + switch (prop_id) { + case PROP_ID: + g_value_set_string (value, source->priv->id); + break; + case PROP_NAME: + g_value_set_string (value, source->priv->name); + break; + case PROP_DESC: + g_value_set_string (value, source->priv->desc); + break; + case PROP_ICON: + g_value_set_object (value, source->priv->icon); + break; + case PROP_PLUGIN: + g_value_set_object (value, source->priv->plugin); + break; + case PROP_RANK: + g_value_set_int (value, source->priv->rank); + break; + case PROP_AUTO_SPLIT_THRESHOLD: + g_value_set_uint (value, source->priv->auto_split_threshold); + break; + case PROP_SUPPORTED_MEDIA: + g_value_set_flags (value, source->priv->supported_media); + break; + case PROP_SOURCE_TAGS: + g_value_set_boxed (value, source->priv->tags->pdata); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (source, prop_id, pspec); + break; + } +} + +/* ================ Utilities ================ */ + +static void +operation_state_free (struct OperationState *op_state) +{ + g_object_unref (op_state->source); + g_free (op_state); +} + +/* + * This method will _intersect two key lists_: + * + * @keys_to_filter: user provided set we want to filter leaving only + * the keys that intersects with the @source_keys set. + * + * @source_keys: the %GrlSource's key set if + * @return_filtered is %TRUE a copy of the filtered set *complement* + * will be returned (a list of the filtered out keys). + */ +static GList * +filter_key_list (GrlSource *source, + GList **keys_to_filter, + gboolean return_filtered, + GList *source_keys) +{ + GList *iter_keys, *found; + GList *in_source = NULL; + GList *out_source = NULL; + + for (iter_keys = *keys_to_filter; + iter_keys; + iter_keys = g_list_next (iter_keys)) { + found = g_list_find (source_keys, iter_keys->data); + if (found) { + in_source = g_list_prepend (in_source, iter_keys->data); + } else { + if (return_filtered) { + out_source = g_list_prepend (out_source, iter_keys->data); + } + } + } + + g_list_free (*keys_to_filter); + *keys_to_filter = g_list_reverse (in_source); + + return g_list_reverse (out_source); +} + +static GList * +filter_known_keys (GrlMedia *media, + GList *keys) +{ + GList *unknown_keys = NULL; + GList *k; + + if (!media) { + return g_list_copy (keys); + } + + for (k = keys; k; k = g_list_next (k)) { + if (!grl_data_has_key (GRL_DATA (media), + GRLPOINTER_TO_KEYID (k->data))) { + unknown_keys = g_list_prepend (unknown_keys, k->data); + } + } + + return unknown_keys; +} + +/* + * Removes all keys from @keys that can't be resolved by any of the sources in + * @sourcelist. + */ +static GList * +filter_unresolvable_keys (GList *sourcelist, GList **keys) +{ + GList *each_key; + GList *delete_key; + GList *each_source; + gboolean supported; + + each_key = *keys; + while (each_key) { + supported = FALSE; + + for (each_source = sourcelist; + each_source; + each_source = g_list_next (each_source)) { + if (g_list_find ((GList *) grl_source_supported_keys (each_source->data), + each_key->data)) { + supported = TRUE; + break; + } + } + if (!supported) { + delete_key = each_key; + each_key = g_list_next (each_key); + *keys = g_list_delete_link (*keys, delete_key); + } else { + each_key = g_list_next (each_key); + } + } + + return *keys; +} + +/* + * filter_supported: + * @source: a source + * @keys: (element-type GrlKeyID) (transfer container) (allow-none) (inout): + * the list of keys to filter out + * @return_filtered: if %TRUE the return value shall be a new list with + * the unsupported keys + * + * Compares the received @keys list with the supported key list by the + * @source, and deletes those keys which are not supported. + * + * Returns: (element-type GrlKeyID) (transfer container): + * if @return_filtered is %TRUE will return the list of removed keys; + * otherwise %NULL + */ +static GList * +filter_supported (GrlSource *source, + GList **keys, + gboolean return_filtered) +{ + const GList *supported_keys; + + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + supported_keys = grl_source_supported_keys (source); + + return filter_key_list (source, keys, return_filtered, (GList *) supported_keys); +} + +/* + * filter_slow: + * @source: a source + * @keys: (element-type GrlKeyID) (transfer container) (allow-none) (inout): + * the list of keys to filter out + * @return_filtered: if %TRUE the return value shall be a new list with + * the slow keys + * + * This function does the opposite of other filter functions: removes the slow + * keys from @keys. If @return_filtered is %TRUE the removed slow keys are + * returned in a new list. + * + * Returns: (element-type GrlKeyID) (transfer container): if + * @return_filtered is %TRUE will return the list of slow keys; otherwise + * %NULL + */ +static GList * +filter_slow (GrlSource *source, + GList **keys, + gboolean return_filtered) +{ + const GList *slow_keys; + GList *fastest_keys, *tmp; + + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + slow_keys = grl_source_slow_keys (source); + + /* Note that we want to do the opposite */ + fastest_keys = filter_key_list (source, keys, TRUE, (GList *) slow_keys); + tmp = *keys; + *keys = fastest_keys; + + if (!return_filtered) { + g_list_free (tmp); + return NULL; + } else { + return tmp; + } +} + +/* + * filter_writable: + * @source: a source + * @keys: (element-type GrlKeyID) (transfer container) (allow-none) (inout): + * the list of keys to filter out + * @return_filtered: if %TRUE the return value shall be a new list with + * the non-writable keys + * + * Similar to filter_supported() but applied to the writable keys in + * grl_source_writable_keys(). + * + * Filter the @keys list keeping only those keys that are writtable in + * @source. If @return_filtered is %TRUE then the removed keys are returned in a + * new list. + * + * Returns: (element-type GrlKeyID) (transfer container): + * if @return_filtered is %TRUE will return the list of non-writtable keys; + * otherwise %NULL + */ +static GList * +filter_writable (GrlSource *source, + GList **keys, + gboolean return_filtered) +{ + const GList *writable_keys; + + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + g_return_val_if_fail (keys != NULL, NULL); + + writable_keys = grl_source_writable_keys (source); + + return filter_key_list (source, keys, return_filtered, (GList *) writable_keys); +} + +/* + * Operation states: + * - started: The operation has been invoked, but not started (plugin has + * not been invoked) yet. + * - finished: We have already emitted the last result to the user + * - completed: We have already received the last result in the relay cb + * (If it is finished it is also completed). + * - cancelled: Operation valid (not finished) but was cancelled. + * - ongoing: if the operation is valid (not finished) and not cancelled. + */ + + +/* + * operation_set_started: + * + * Sets operation as started (we have invoked the operation in the plugin). + **/ +static void +operation_set_started (guint operation_id) +{ + struct OperationState *op_state; + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = grl_operation_get_private_data (operation_id); + + if (op_state) { + op_state->started = TRUE; + } +} + +/* + * operation_is_started: + * + * Checks if operation has been started (the operation in plugin has been + * invoked). + **/ +G_GNUC_UNUSED static gboolean +operation_is_started (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return op_state && op_state->started; +} + +/* + * operation_set_finished: + * + * Sets operation as finished (we have already emitted the last result + * to the user). + */ +static void +operation_set_finished (guint operation_id) +{ + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + grl_operation_remove (operation_id); +} + +/* + * operation_is_finished: + * + * Checks if operation is finished (we have already emitted the last + * result to the user). + */ +G_GNUC_UNUSED static gboolean +operation_is_finished (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return op_state == NULL; +} + +/* + * operation_set_completed: + * + * Sets the operation as completed (we have already received the last + * result in the relay cb. If it is finsihed it is also completed). + */ +static void +operation_set_completed (guint operation_id) +{ + struct OperationState *op_state; + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = grl_operation_get_private_data (operation_id); + + if (op_state) { + op_state->completed = TRUE; + } +} + +/* + * operation_is_completed: + * + * Checks if operation is completed (we have already received the last + * result in the relay cb. A finished operation is also a completed + * operation). + */ +static gboolean +operation_is_completed (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return !op_state || op_state->completed; +} + +/* + * operation_set_cancelled: + * + * Sets the operation as cancelled (a valid operation, i.e., not + * finished, was cancelled) + */ +static void +operation_set_cancelled (guint operation_id) +{ + struct OperationState *op_state; + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = grl_operation_get_private_data (operation_id); + + if (op_state) { + op_state->cancelled = TRUE; + } +} + +/* + * operation_is_cancelled: + * + * Checks if operation is cancelled (a valid operation that was + * cancelled). + */ +static gboolean +operation_is_cancelled (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return op_state && op_state->cancelled; +} + +/* + * operation_set_ongoing: + * + * Sets the operation as ongoing (operation is valid, not finished, not started + * and not cancelled) + */ +static void +operation_set_ongoing (GrlSource *source, guint operation_id) +{ + struct OperationState *op_state; + + GRL_DEBUG ("%s (%d)", __FUNCTION__, operation_id); + + op_state = g_new0 (struct OperationState, 1); + op_state->source = g_object_ref (source); + op_state->operation_id = operation_id; + + grl_operation_set_private_data (operation_id, + op_state, + (GrlOperationCancelCb) source_cancel_cb, + (GDestroyNotify) operation_state_free); +} + +/* + * operation_is_ongoing: + * + * Checks if operation is ongoing (operation is valid, and it is not + * finished nor cancelled). + */ +static gboolean +operation_is_ongoing (guint operation_id) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (operation_id); + + return op_state && !op_state->cancelled; +} + +static void +source_cancel_cb (struct OperationState *op_state) +{ + GrlSource *source = op_state->source; + + if (!operation_is_ongoing (op_state->operation_id)) { + GRL_DEBUG ("Tried to cancel invalid or already cancelled operation. " + "Skipping..."); + return; + } + + /* Mark the operation as finished, if the source does not implement + cancellation or it did not make it in time, we will not emit the results + for this operation in any case. At any rate, we will not free the + operation data until we are sure the plugin won't need it any more. In the + case of operations dealing with multiple results, like browse() or + search(), this will happen when it emits remaining = 0 (which can be + because it did not cancel the op or because it managed to cancel it and is + signaling so) */ + operation_set_cancelled (op_state->operation_id); + + /* If the source provides an implementation for operation cancellation, + let's use that to avoid further unnecessary processing in the plugin */ + if (GRL_SOURCE_GET_CLASS (source)->cancel) { + GRL_SOURCE_GET_CLASS (source)->cancel (source, + op_state->operation_id); + } +} + +static void +cancel_resolve (gpointer source, gpointer operation_id, gpointer user_data) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (GPOINTER_TO_UINT (operation_id)); + if (op_state) { + source_cancel_cb (op_state); + } +} + +static void +resolve_spec_free (GrlSourceResolveSpec *spec) +{ + g_object_unref (spec->source); + g_object_unref (spec->media); + g_object_unref (spec->options); + g_list_free (spec->keys); + g_free (spec); +} + +static void +browse_relay_spec_free (struct BrowseRelayCb *brc) +{ + switch (brc->operation_type) { + case GRL_OP_BROWSE: + g_object_unref (brc->spec.browse->source); + g_object_unref (brc->spec.browse->container); + g_object_unref (brc->spec.browse->options); + g_free (brc->spec.browse); + break; + case GRL_OP_SEARCH: + g_object_unref (brc->spec.search->source); + g_object_unref (brc->spec.search->options); + g_free (brc->spec.search->text); + g_free (brc->spec.search); + break; + case GRL_OP_QUERY: + g_object_unref (brc->spec.query->source); + g_object_unref (brc->spec.query->options); + g_free (brc->spec.query->query); + g_free (brc->spec.query); + break; + default: + g_assert_not_reached (); + break; + } +} + +static void +media_from_uri_spec_free (GrlSourceMediaFromUriSpec *spec) +{ + g_object_unref (spec->source); + g_object_unref (spec->options); + g_free (spec->uri); + g_free (spec); +} + +static void +store_spec_free (GrlSourceStoreSpec *spec) +{ + g_object_unref (spec->source); + g_object_unref (spec->media); + if (spec->parent) { + g_object_unref (spec->parent); + } + g_free (spec); +} + +static void +store_metadata_spec_free (GrlSourceStoreMetadataSpec *spec) +{ + g_object_unref (spec->source); + g_object_unref (spec->media); + g_free (spec); +} + +static void +resolve_relay_free (struct ResolveRelayCb *rrc) +{ + GHashTableIter iter; + gpointer value; + + g_object_unref (rrc->source); + g_clear_object(&rrc->media); + g_clear_error (&rrc->error); + g_object_unref (rrc->options); + g_list_free (rrc->keys); + + if (rrc->map) { + g_hash_table_iter_init (&iter, rrc->map); + while (g_hash_table_iter_next (&iter, NULL, &value)) { + map_list_nodes_free ((GList *) value); + } + g_hash_table_unref (rrc->map); + } + g_clear_pointer (&rrc->resolve_specs, g_hash_table_unref); + + g_slice_free (struct ResolveRelayCb, rrc); +} + +static void +browse_relay_free (struct BrowseRelayCb *brc) +{ + g_object_unref (brc->source); + g_object_unref (brc->options); + g_list_free (brc->keys); + if (brc->auto_split) { + g_slice_free (struct AutoSplitCtl, brc->auto_split); + } + g_clear_pointer (&brc->queue, g_queue_free); + + g_slice_free (struct BrowseRelayCb, brc); +} + +static void +remove_relay_free (struct RemoveRelayCb *rrc) +{ + g_object_unref (rrc->source); + g_object_unref (rrc->media); + if (rrc->spec) { + g_object_unref (rrc->spec->source); + g_object_unref (rrc->spec->media); + g_free (rrc->spec->media_id); + g_free (rrc->spec); + } + g_slice_free (struct RemoveRelayCb, rrc); +} + +static void +store_relay_free (struct StoreRelayCb *src) +{ + g_slice_free (struct StoreRelayCb, src); +} + +static void +store_metadata_relay_free (struct StoreMetadataRelayCb *smrc) +{ + g_object_unref (smrc->source); + g_object_unref (smrc->media); + g_list_free (smrc->failed_keys); + g_hash_table_unref (smrc->map); + g_list_free (smrc->use_sources); + g_list_free_full (smrc->specs, (GDestroyNotify) store_metadata_spec_free); + + g_slice_free (struct StoreMetadataRelayCb, smrc); +} + +/* + * Returns a list of all the keys that are in deps but are not defined in data + */ +static GList * +missing_in_data (GrlData *data, const GList *deps) +{ + GList *iter, *result = NULL; + GRL_DEBUG ("missing_in_data"); + + if (!data) + return g_list_copy ((GList *) deps); + + for (iter = (GList *)deps; iter; iter = g_list_next (iter)) { + if (!grl_data_has_key (data, GRLPOINTER_TO_KEYID (iter->data))) + result = g_list_append (result, iter->data); + } + + return result; +} + +/* + * TRUE iff source supports all those keys + */ +static gboolean +source_supports (GrlSource *source, + const GList *keys) +{ + const GList *iter; + GList *supported; + + supported = (GList *) grl_source_supported_keys (source); + + for (iter = keys; iter; iter = g_list_next (iter)) { + if (!g_list_find (supported, iter->data)) { + return FALSE; + } + } + return TRUE; +} + +/* + * Find the source that should be queried to add @key to @media. + * If @additional_keys is provided, the result may include sources that need + * more metadata to be present in @media, the keys corresponding to that + * metadata will be put in @additional_keys. + * If @additional_keys is NULL, will only consider sources that can resolve + * @keys immediately + * + * If @main_source_is_only_resolver is TRUE and @additional_keys is not @NULL, + * only additional keys that can be resolved directly by @source will be + * considered. Sources that need other additional keys will not be put in the + * returned list. + * + * @source will never be considered as additional source. + * + * @source and @additional_keys may not be @NULL if + * @main_source_is_only_resolver is @TRUE. + * + * Assumes @key is not already in @media. + */ +static GrlSource * +get_additional_source_for_key (GrlSource *source, + GList *sources, + GrlMedia *media, + GrlKeyID key, + GList **additional_keys, + gboolean main_source_is_only_resolver) +{ + GList *iter; + + g_return_val_if_fail (source || !main_source_is_only_resolver, NULL); + g_return_val_if_fail (additional_keys || !main_source_is_only_resolver, NULL); + + for (iter = sources; iter; iter = g_list_next (iter)) { + GList *_additional_keys = NULL; + GrlSource *_source = (GrlSource *) iter->data; + + if (_source == source) { + continue; + } + + if (grl_source_may_resolve (_source, media, key, &_additional_keys)) { + return _source; + } + + if (additional_keys && _additional_keys) { + if (main_source_is_only_resolver && + !source_supports (source, _additional_keys)) + continue; + + *additional_keys = _additional_keys; + return _source; + } + } + + return NULL; +} + +/* + * Does the same thing as g_list_concat(), except that elements from + * @additional_set that are already in @original_set are destroyed instead of + * being added to the result. The same happens for elements that are more than + * once in @additional_set. + * Because of that, if @original_set does not contain doubles, the result will + * not contain doubles. + * + * You can also use this method to remove doubles from a list like that: + * my_list = list_union (NULL, my_list, free_func); + * + * Note that no elements are copied, elements of @additional_set are either + * moved to @original_set or destroyed. + * Therefore, both @original_set and @additional_set are modified. + * + * @free_func is optional. + */ +static GList * +list_union (GList *original_set, GList *additional_set, GDestroyNotify free_func) +{ + while (additional_set) { + /* these two lines pop the first element of additional_set into tmp */ + GList *tmp = additional_set; + additional_set = g_list_remove_link (additional_set, tmp); + + if (NULL == g_list_find (original_set, tmp->data)) { + original_set = g_list_concat (original_set, tmp); + } else { + if (free_func) + free_func (tmp->data); + g_list_free_1 (tmp); + } + } + return original_set; +} + +/* + * Find the sources that should be queried to add @keys to @media. + * If @additional_keys is provided, the result may include sources that need + * more metadata to be present in @media, the keys corresponding to that + * metadata will be put in @additional_keys. + * If @additional_keys is NULL, will only consider sources that can resolve + * @keys immediately + * + * If @main_source_is_only_resolver is TRUE and @additional_keys is not @NULL, + * only additional keys that can be resolved directly by @source will be + * considered. Sources that need other additional keys will not be put in the + * returned list. + * + * Ignore elements of @keys that are already in @media. + */ +static GList * +get_additional_sources (GrlSource *source, + GrlMedia *media, + GList *keys, + GList **additional_keys, + gboolean main_source_is_only_resolver) +{ + GList *missing_keys, *iter, *result = NULL, *sources; + GrlRegistry *registry; + + missing_keys = missing_in_data (GRL_DATA (media), keys); + if (!missing_keys) + return NULL; + + registry = grl_registry_get_default (); + sources = grl_registry_get_sources_by_operations (registry, + GRL_OP_RESOLVE, + TRUE); + + for (iter = missing_keys; iter; iter = g_list_next (iter)) { + GrlKeyID key = GRLPOINTER_TO_KEYID (iter->data); + GrlSource *_source; + GList *needed_keys = NULL; + + _source = get_additional_source_for_key (source, sources, media, key, + additional_keys?&needed_keys:NULL, + main_source_is_only_resolver); + if (_source) { + result = g_list_append (result, _source); + + if (needed_keys) + *additional_keys = list_union (*additional_keys, needed_keys, NULL); + + GRL_INFO ("%s can resolve %s %s", + grl_source_get_name (_source), + GRL_METADATA_KEY_GET_NAME (key), + needed_keys? "with more keys" : "directly"); + + } else { + GRL_DEBUG ("Could not find a source for %s", + GRL_METADATA_KEY_GET_NAME (key)); + } + } + g_list_free (missing_keys); + + /* list_union() is used to remove duplicates */ + return list_union (NULL, result, NULL); +} + +/* + * Will add to @keys the keys that should be asked to @source when doing an + * operation with GRL_RESOLVE_FULL. + * The added keys are the keys that will be needed by other sources to obtain + * the ones that @source says it cannot resolve. + */ +static GList * +expand_operation_keys (GrlSource *source, + GrlMedia *media, + GList *keys) +{ + GList *unsupported_keys = NULL, + *additional_keys = NULL, + *sources; + + GRL_DEBUG (__FUNCTION__); + + if (!keys) + return NULL; + + /* Get the list of keys not supported by the source; they will be queried to + other sources */ + unsupported_keys = filter_supported (source, &keys, TRUE); + + /* now, for each of the unsupported keys to solve + * (the ones we know @source cannot resolve), try to find a matching source. + * A matching source may need additional keys, but then these additional keys + * can be resolved by @source. + */ + + sources = + get_additional_sources (source, media, unsupported_keys, + &additional_keys, TRUE); + g_list_free (sources); + + /* Merge back the supported and unsupported list, and add also the additional keys */ + keys = g_list_concat (keys, unsupported_keys); + keys = list_union (keys, additional_keys, NULL); + + return keys; +} + +/* + * Returns %TRUE if @key is a slow key for @source + */ +static gboolean +is_slow_key (GrlSource *source, GrlKeyID key) +{ + return (g_list_find ((GList *) grl_source_slow_keys (source), + GRLKEYID_TO_POINTER (key)) != NULL); +} + +/* + * Create a node for the map keys + */ +static MapNode * +map_node_new (GrlSource *source, GList *keys) +{ + MapNode *node = g_new (MapNode, 1); + node->source = g_object_ref (source); + node->required_keys = g_list_copy (keys); + node->being_queried = FALSE; + + return node; +} + +/* + * Free a MapNode + */ +static void +map_node_free (MapNode *node) +{ + g_object_unref (node->source); + g_list_free (node->required_keys); + g_free (node); +} + +/* + * Free a list of MapNodes + */ +static void +map_list_nodes_free (GList *nodes) +{ + + g_list_free_full (nodes, (GDestroyNotify) map_node_free); +} + +/* + * Create a new (key, [sources]) map + */ +static GHashTable * +map_keys_new (void) +{ + return g_hash_table_new (g_direct_hash, g_direct_equal); +} + +/* + * Maps each key in @keys to the list of sources (from @sources) that can + * resolve that key. For each of those (key, source) pair, a list of keys + * dependencies is added + */ +static void +map_keys_to_sources (GHashTable *map, GList *keys, GList *sources, GrlMedia *media, gboolean filter_slow_keys) +{ + GList *each_source; + GList *resolvable_sources; + GList *each_key; + GList *required_keys; + GList *keys_to_map_later = NULL; + + for (each_key = keys; + each_key; + each_key = g_list_next (each_key)) { + if (g_hash_table_lookup_extended (map, each_key->data, NULL, NULL)) { + /* Key already in map; skip */ + continue; + } + resolvable_sources = NULL; + for (each_source = sources; + each_source; + each_source = g_list_next (each_source)) { + if (filter_slow_keys && + is_slow_key (each_source->data, GRLPOINTER_TO_KEYID (each_key->data))) { + continue; + } + required_keys = NULL; + if (grl_source_may_resolve (each_source->data, + media, + GRLPOINTER_TO_KEYID (each_key->data), + &required_keys)) { + resolvable_sources = g_list_prepend (resolvable_sources, map_node_new (each_source->data, NULL)); + } else if (required_keys) { + resolvable_sources = g_list_prepend (resolvable_sources, map_node_new (each_source->data, required_keys)); + keys_to_map_later = g_list_concat (keys_to_map_later, required_keys); + } + } + + resolvable_sources = g_list_reverse (resolvable_sources); + g_hash_table_insert (map, each_key->data, resolvable_sources); + } + + if (keys_to_map_later) { + map_keys_to_sources (map, keys_to_map_later, sources, media, filter_slow_keys); + g_list_free (keys_to_map_later); + } +} + +/* + * Create a new (source, spec) map + */ +static GHashTable * +map_sources_new (void) +{ + return g_hash_table_new_full (g_direct_hash, g_direct_equal, + g_object_unref, + (GDestroyNotify) resolve_spec_free); +} + +/* + * Given a (keys, [sources]) @map, builds a map of sources to + * GrlSourceResolveSpec that can solve @key in @media. Returns @FALSE if the + * key can't be mapped (could be, for instance, that it detects a loop) + */ +static gboolean +map_sources_to_specs (GHashTable *specs, + GHashTable *map, + GrlMedia *media, + GrlKeyID key, + GrlOperationOptions *options, + gpointer user_data) +{ + GList *map_nodes; + MapNode *node; + GList *each_required_key; + GrlSourceResolveSpec *rs; + gboolean success; + + /* Search the source candidate to solve the key */ + map_nodes = g_hash_table_lookup (map, GRLKEYID_TO_POINTER (key)); + while (map_nodes) { + node = (MapNode *) map_nodes->data; + if (node->being_queried) { + /* If it has required keys and it is marked as being queried, it means we + have enter in a loop */ + return (node->required_keys == NULL); + } + /* Check if it has any dependency */ + if (node->required_keys) { + /* Mark node to avoid endless loops */ + node->being_queried = TRUE; + success = TRUE; + for (each_required_key = node->required_keys; + each_required_key; + each_required_key = g_list_next (each_required_key)) { + success = map_sources_to_specs (specs, map, media, + GRLPOINTER_TO_KEYID (each_required_key->data), + options, user_data); + if (!success) { + break; + } + } + node->being_queried = FALSE; + if (success) { + return TRUE; + } else { + /* Try next node */ + map_nodes = g_list_next (map_nodes); + continue; + } + } else { + rs = g_hash_table_lookup (specs, node->source); + if (!rs) { + /* Build spec */ + rs = g_new (GrlSourceResolveSpec, 1); + rs->source = g_object_ref (node->source); + rs->media = g_object_ref (media); + rs->operation_id = grl_operation_generate_id (); + rs->keys = g_list_prepend (NULL, GRLKEYID_TO_POINTER (key)); + rs->options = g_object_ref (options); + rs->callback = resolve_result_relay_cb; + rs->user_data = user_data; + g_hash_table_insert (specs, g_object_ref (node->source), rs); + } else { + /* Put key in spec */ + rs->keys = g_list_prepend (rs->keys, GRLKEYID_TO_POINTER (key)); + } + node->being_queried = TRUE; + } + return TRUE; + } + + return FALSE; +} + +/* + * Update @map knowing @key is known; means dropping the @key from the map and + * updating all keys that were depending on @key. + */ +static void +map_update_known_key (GHashTable *map, GrlKeyID key, GrlMedia *media) +{ + GList *keylist; + GList *each_key; + GList *map_nodes; + GList *each_node; + MapNode *node; + + map_list_nodes_free (g_hash_table_lookup (map, GRLKEYID_TO_POINTER (key))); + g_hash_table_remove (map, GRLKEYID_TO_POINTER (key)); + + keylist = g_hash_table_get_keys (map); + for (each_key = keylist; + each_key; + each_key = g_list_next (each_key)) { + map_nodes = g_hash_table_lookup (map, each_key->data); + for (each_node = map_nodes; + each_node; + each_node = g_list_next (each_node)) { + node = (MapNode *) each_node->data; + if (g_list_find (node->required_keys, (gconstpointer) GRLKEYID_TO_POINTER (key))) { + /* Let's recompute the required keys */ + g_list_free (node->required_keys); + node->required_keys = NULL; + grl_source_may_resolve (node->source, + media, + GRLPOINTER_TO_KEYID (each_key->data), + &(node->required_keys)); + } + } + } + g_list_free (keylist); +} + +/* + * Update @map knowing that @key could not be resolved by @source. + */ +static void +map_update_unknown_key (GHashTable *map, GrlKeyID key, GrlSource *source) +{ + GList *unsolvable_keys = NULL; + GList *each_unsolvable_key; + GList *each_key; + GList *map_nodes; + GList *delete_nodes = NULL; + GList *each_node; + GList *keylist; + MapNode *node; + + map_nodes = g_hash_table_lookup (map, GRLKEYID_TO_POINTER (key)); + each_node = map_nodes; + while (each_node) { + node = (MapNode *) each_node->data; + if (node->being_queried && node->source == source) { + map_nodes = g_list_delete_link (map_nodes, each_node); + map_node_free (node); + g_hash_table_insert (map, GRLKEYID_TO_POINTER (key), map_nodes); + each_node = NULL; + } else { + each_node = g_list_next (each_node); + } + } + + /* If @map_nodes is empty, means no source is able to solve this key; so any + other (key, source) depending on this key can't neither be solved; so + remove them from the map */ + if (!map_nodes) { + unsolvable_keys = g_list_prepend (unsolvable_keys, + GRLKEYID_TO_POINTER (key)); + for (each_unsolvable_key = g_list_last (unsolvable_keys); + each_unsolvable_key; + each_unsolvable_key = g_list_previous (each_unsolvable_key)) { + keylist = g_hash_table_get_keys (map); + for (each_key = keylist; + each_key; + each_key = g_list_next (each_key)) { + map_nodes = g_hash_table_lookup (map, each_key->data); + if (map_nodes) { + for (each_node = map_nodes; + each_node; + each_node = g_list_next (each_node)) { + node = (MapNode *) each_node->data; + if (g_list_find (node->required_keys, each_unsolvable_key->data)) { + /* Put this node for further deletion, as it can't be solved */ + delete_nodes = g_list_prepend (delete_nodes, node); + } + } + /* Delete nodes */ + for (each_node = delete_nodes; + each_node; + each_node = g_list_next (each_node)) { + map_nodes = g_list_remove (map_nodes, each_node->data); + } + g_list_free (delete_nodes); + delete_nodes = NULL; + + g_hash_table_insert (map, each_key->data, map_nodes); + /* If this key can't be resolved neither, mark it */ + if (!map_nodes) { + unsolvable_keys = g_list_prepend (unsolvable_keys, each_key->data); + } + } + } + g_list_free (keylist); + } + g_list_free (unsolvable_keys); + } +} + +static void +send_decorated_media (GrlMedia *media, + gpointer user_data, + const GError *error) +{ + struct ResolveRelayCb *mrc = (struct ResolveRelayCb *) user_data; + + mrc->user_callback (mrc->spec.res->source, mrc->spec.res->operation_id, + media, mrc->user_data, error); + resolve_relay_free (mrc); +} + +static void +media_decorate_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + struct MediaDecorateData *mdd = (struct MediaDecorateData *) user_data; + GError *_error = NULL; + GRL_DEBUG (__FUNCTION__); + + if (operation_id > 0) { + g_hash_table_remove (mdd->pending_callbacks, source); + } + + /* Check if pending resolutions must be cancelled */ + if (!mdd->cancelled && + operation_is_cancelled (mdd->operation_id)) { + mdd->cancelled = TRUE; + g_hash_table_foreach (mdd->pending_callbacks, cancel_resolve, NULL); + } + + /* If all operations are complete, send the element */ + if (g_hash_table_size (mdd->pending_callbacks) == 0) { + if (mdd->cancelled) { + _error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED, + _("Operation was cancelled")); + } + mdd->callback (media, mdd->user_data, _error); + g_clear_error (&_error); + g_object_unref (mdd->source); + g_hash_table_unref (mdd->pending_callbacks); + g_slice_free (struct MediaDecorateData, mdd); + } +} + +static void +media_decorate (GrlSource *main_source, + guint main_operation_id, + GrlMedia *media, + GList *keys, + GrlOperationOptions *options, + MediaDecorateCb callback, + gpointer user_data) +{ + struct MediaDecorateData *mdd; + GList *s, *sources; + guint operation_id; + GrlOperationOptions *decorate_options; + GrlOperationOptions *supported_options; + GrlResolutionFlags flags; + + flags = grl_operation_options_get_resolution_flags (options); + if (flags & GRL_RESOLVE_FULL) { + decorate_options = grl_operation_options_copy (options); + grl_operation_options_set_resolution_flags (decorate_options, + flags & ~GRL_RESOLVE_FULL); + } else { + decorate_options = g_object_ref (options); + } + + sources = get_additional_sources (main_source, media, + keys, NULL, FALSE); + + mdd = g_slice_new (struct MediaDecorateData); + mdd->source = g_object_ref (main_source); + mdd->operation_id = main_operation_id; + mdd->callback = callback; + mdd->user_data = user_data; + mdd->pending_callbacks = g_hash_table_new (g_direct_hash, g_direct_equal); + mdd->cancelled = FALSE; + + for (s = sources; s; s = g_list_next (s)) { + if (grl_source_supported_operations (s->data) & GRL_OP_RESOLVE) { + grl_operation_options_obey_caps (decorate_options, + grl_source_get_caps (s->data, GRL_OP_RESOLVE), + &supported_options, + NULL); + operation_id = grl_source_resolve (s->data, media, keys, supported_options, + media_decorate_cb, mdd); + g_object_unref (supported_options); + if (operation_id > 0) { + g_hash_table_insert (mdd->pending_callbacks, + s->data, + GUINT_TO_POINTER (operation_id)); + } + } + } + + /* Check if nobody can solve the keys */ + if (g_hash_table_size (mdd->pending_callbacks) == 0) { + media_decorate_cb (NULL, 0, media, mdd, NULL); + } + + g_object_unref (decorate_options); + g_list_free (sources); +} + +static void +media_from_uri_result_relay_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + struct ResolveRelayCb *rrc = (struct ResolveRelayCb *) user_data; + GError *_error = (GError *) error; + GList *unknown_keys; + + GRL_DEBUG (__FUNCTION__); + + /* Free specs */ + media_from_uri_spec_free (rrc->spec.mfu); + + /* Append the source-id in case it is not set */ + if (media && !grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_SOURCE)) { + grl_data_set_string (GRL_DATA (media), GRL_METADATA_KEY_SOURCE, grl_source_get_id (source)); + } + + /* Check if cancelled */ + if (operation_is_cancelled (rrc->operation_id)) { + /* if the plugin already set an error, we don't care because we're + * cancelled */ + GRL_DEBUG ("operation was cancelled"); + _error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED, + _("Operation was cancelled")); + } + + if (_error) { + rrc->user_callback (source, rrc->operation_id, media, rrc->user_data, _error); + if (_error != error) { + g_error_free (_error); + } + operation_set_finished (rrc->operation_id); + resolve_relay_free (rrc); + return; + } + + if (grl_operation_options_get_resolution_flags (rrc->options) & GRL_RESOLVE_FULL) { + /* Check if there are unsolved keys that need to be solved by other + sources */ + unknown_keys = filter_known_keys (media, rrc->keys); + if (unknown_keys) { + media_decorate (source, operation_id, media, unknown_keys, rrc->options, + send_decorated_media, rrc); + g_list_free (unknown_keys); + return; + } + } + + rrc->user_callback (source, rrc->operation_id, media, rrc->user_data, error); + operation_set_finished (rrc->operation_id); + resolve_relay_free (rrc); +} + +static void +cancel_resolve_spec (GrlSource *source, GrlSourceResolveSpec *spec) +{ + struct OperationState *op_state; + + op_state = grl_operation_get_private_data (spec->operation_id); + if (op_state) { + source_cancel_cb (op_state); + } +} + +static void +resolve_result_relay_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + struct ResolveRelayCb *rrc = (struct ResolveRelayCb *) user_data; + GList *each_key; + GList *delete_key; + + GRL_DEBUG (__FUNCTION__); + + if (!operation_is_cancelled (operation_id)) { + /* Check which keys are now known */ + each_key = rrc->keys; + while (each_key) { + if (grl_data_has_key (GRL_DATA (media), GRLPOINTER_TO_KEYID (each_key->data))) { + map_update_known_key (rrc->map, GRLPOINTER_TO_KEYID (each_key->data), media); + delete_key = each_key; + each_key = g_list_next (each_key); + rrc->keys = g_list_delete_link (rrc->keys, delete_key); + } else { + map_update_unknown_key (rrc->map, GRLPOINTER_TO_KEYID (each_key->data), source); + each_key = g_list_next (each_key); + } + } + + g_hash_table_remove (rrc->resolve_specs, source); + } + + operation_set_finished (operation_id); + + if (operation_is_cancelled (rrc->operation_id) && + !rrc->cancel_invoked) { + rrc->cancel_invoked = TRUE; + g_hash_table_foreach (rrc->resolve_specs, (GHFunc) cancel_resolve_spec, NULL); + } + + if (error && source == rrc->source && !rrc->error) { + /* Save error for further sending */ + rrc->error = g_error_copy (error); + } + + if (g_hash_table_size (rrc->resolve_specs) == 0 && !rrc->specs_to_invoke) { + /* All sources have replied. Let's run another round if not cancelled */ + if (!operation_is_cancelled (rrc->operation_id)) { + each_key = rrc->keys; + while (each_key) { + if (map_sources_to_specs (rrc->resolve_specs, rrc->map, media, + GRLPOINTER_TO_KEYID (each_key->data), + rrc->options, rrc)) { + each_key = g_list_next (each_key); + } else { + delete_key = each_key; + each_key = g_list_next (each_key); + rrc->keys = g_list_delete_link (rrc->keys, delete_key); + } + } + + } + + rrc->specs_to_invoke = g_hash_table_get_values (rrc->resolve_specs); + if (rrc->specs_to_invoke) { + guint id; + id = g_idle_add_full (grl_operation_options_get_resolution_flags (rrc->options) & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + resolve_idle, + rrc, + NULL); + g_source_set_name_by_id (id, "[grilo] resolve_idle"); + } else { + guint id; + id = g_idle_add_full (grl_operation_options_get_resolution_flags (rrc->options) & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + resolve_all_done, + rrc, + NULL); + g_source_set_name_by_id (id, "[grilo] resolve_all_done"); + } + } +} + +static gboolean +queue_process (gpointer user_data) +{ + QueueElement *qelement; + GError *error; + gint remaining; + struct BrowseRelayCb *brc = (struct BrowseRelayCb *) user_data; + + /* Check if operation is cancelled */ + if (operation_is_cancelled (brc->operation_id)) { + /* This is how this works: if operation is cancelled, no one will add more + elements to queue. If one with remaining=0 is found, means that the + browse/search/query operation finished before operation is cancelled. So we + need to emit this result to user to tell him that operation is cancelled. For + elements that are not ready, means that a source_resolve() was run to get + solve more keys. So the algorithm is freeing all elements that are ready, and + if some of them has remaining==0, sending the cancel signal to user */ + while ((qelement = (QueueElement *) g_queue_peek_head (brc->queue)) && + qelement->is_ready) { + g_queue_pop_head (brc->queue); + if (qelement->remaining == 0) { + error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED, + _("Operation was cancelled")); + brc->user_callback (brc->source, brc->operation_id, NULL, + 0, brc->user_data, error); + g_error_free (error); + } + g_clear_error (&qelement->error); + g_free (qelement); + } + if (g_queue_is_empty (brc->queue)) { + operation_set_finished (brc->operation_id); + browse_relay_free (brc); + return FALSE; + } + brc->dispatcher_running = FALSE; + return FALSE; + } + + /* Send the last element */ + qelement = (QueueElement *) g_queue_pop_head (brc->queue); + remaining = qelement->remaining; + brc->user_callback (brc->source, brc->operation_id, qelement->media, + remaining, brc->user_data, qelement->error); + g_clear_error (&qelement->error); + g_free (qelement); + + if (remaining == 0) { + operation_set_finished (brc->operation_id); + browse_relay_free (brc); + return FALSE; + } + + /* Check if should keep running */ + qelement = (QueueElement *) g_queue_peek_head (brc->queue); + brc->dispatcher_running = qelement && qelement->is_ready; + + return brc->dispatcher_running; +} + +static void +queue_start_process (struct BrowseRelayCb *brc) +{ + QueueElement *qelement; + + if (!brc->dispatcher_running) { + qelement = g_queue_peek_head (brc->queue); + if (qelement && qelement->is_ready) { + guint id = g_idle_add (queue_process, brc); + g_source_set_name_by_id (id, "[grilo] queue_process"); + brc->dispatcher_running = TRUE; + } + } +} + +static gint +compare_queue_element (QueueElement *qelement, + GrlMedia *media) +{ + return qelement->media != media; //return 0 when equal +} + +static void +media_ready_cb (GrlMedia *media, + gpointer user_data, + const GError *error) +{ + GList *element; + QueueElement *qelement; + struct BrowseRelayCb *brc = (struct BrowseRelayCb *) user_data; + + /* Mark element as ready */ + element = g_queue_find_custom (brc->queue, media, + (GCompareFunc) compare_queue_element); + if (!element) { + GRL_WARNING ("Media not found in the queue!"); + return; + } + + qelement = (QueueElement *) element->data; + qelement->is_ready = TRUE; + queue_start_process (brc); +} + +static void +queue_add_media (struct BrowseRelayCb *brc, + GrlMedia *media, + guint remaining, + const GError *error) +{ + QueueElement *qelement; + GList *unknown_keys = NULL; + + if (!brc->queue) { + brc->queue = g_queue_new (); + } + + /* Add element */ + qelement = g_new (QueueElement, 1); + qelement->media = media; + qelement->remaining = remaining; + /* Media is ready if we do not need to ask other sources to complete it */ + qelement->is_ready = TRUE; + if (grl_operation_options_get_resolution_flags (brc->options) & GRL_RESOLVE_FULL) { + unknown_keys = filter_known_keys (media, brc->keys); + if (unknown_keys) { + qelement->is_ready = FALSE; + } + } + if (error) { + qelement->error = g_error_copy (error); + } else { + qelement->error = NULL; + } + g_queue_push_tail (brc->queue, qelement); + + if (!qelement->is_ready) { + media_decorate (brc->source, brc->operation_id, media, unknown_keys, + brc->options, media_ready_cb, brc); + } + + queue_start_process (brc); +} + +static struct AutoSplitCtl * +auto_split_setup (GrlSource *source, + GrlOperationOptions *options) +{ + struct AutoSplitCtl *as_ctl = NULL; + gint count = grl_operation_options_get_count (options); + + if (source->priv->auto_split_threshold > 0 && + count > source->priv->auto_split_threshold) { + GRL_DEBUG ("auto-split: enabled"); + + as_ctl = g_slice_new (struct AutoSplitCtl); + as_ctl->threshold = source->priv->auto_split_threshold; + as_ctl->total_remaining = count; + as_ctl->chunk_remaining = as_ctl->threshold; + count = as_ctl->chunk_remaining; + grl_operation_options_set_count (options, count); + GRL_DEBUG ("auto-split: requesting chunk (skip=%u, count=%u)", + grl_operation_options_get_skip (options), + count); + } + + return as_ctl; +} + +static void +auto_split_run_next_chunk (struct BrowseRelayCb *brc) +{ + guint id; + brc->auto_split->chunk_remaining = MIN (brc->auto_split->threshold, + brc->auto_split->total_remaining); + + switch (brc->operation_type) { + case GRL_OP_BROWSE: + grl_operation_options_set_skip (brc->spec.browse->options, + grl_operation_options_get_skip (brc->spec.browse->options) + + brc->auto_split->threshold); + grl_operation_options_set_count (brc->spec.browse->options, + brc->auto_split->chunk_remaining); + GRL_DEBUG ("auto-split: requesting chunk (skip=%u, count=%u)", + grl_operation_options_get_skip (brc->spec.browse->options), + grl_operation_options_get_count (brc->spec.browse->options)); + id = g_idle_add_full (grl_operation_options_get_resolution_flags (brc->options) & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + browse_idle, + brc->spec.browse, + NULL); + g_source_set_name_by_id (id, "[grilo] browse_idle"); + break; + case GRL_OP_SEARCH: + grl_operation_options_set_skip (brc->spec.search->options, + grl_operation_options_get_skip (brc->spec.search->options) + + brc->auto_split->threshold); + grl_operation_options_set_count (brc->spec.search->options, + brc->auto_split->chunk_remaining); + GRL_DEBUG ("auto-split: requesting chunk (skip=%u, count=%u)", + grl_operation_options_get_skip (brc->spec.search->options), + grl_operation_options_get_count (brc->spec.search->options)); + id = g_idle_add_full (grl_operation_options_get_resolution_flags (brc->options) & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + search_idle, + brc->spec.search, + NULL); + g_source_set_name_by_id (id, "[grilo] search_idle"); + break; + case GRL_OP_QUERY: + grl_operation_options_set_skip (brc->spec.query->options, + grl_operation_options_get_skip (brc->spec.query->options) + + brc->auto_split->threshold); + grl_operation_options_set_count (brc->spec.query->options, + brc->auto_split->chunk_remaining); + GRL_DEBUG ("auto-split: requesting chunk (skip=%u, count=%u)", + grl_operation_options_get_skip (brc->spec.query->options), + grl_operation_options_get_count (brc->spec.query->options)); + id = g_idle_add_full (grl_operation_options_get_resolution_flags (brc->options) & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + query_idle, + brc->spec.query, + NULL); + g_source_set_name_by_id (id, "[grilo] query_idle"); + break; + default: + g_assert_not_reached (); + break; + } +} + +static void +warn_if_no_id (GrlMedia *media, + GrlSource *source) +{ + const char *id; + + if (media == NULL || !grl_media_is_container (media)) + return; + + id = grl_media_get_id (media); + if (id == NULL || *id == '\0') + GRL_WARNING ("Media container is not browsable, has no ID: %s (source: %s)", + grl_media_get_title (media), + grl_source_get_id (source)); +} + +static void +browse_result_relay_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + GError *_error; + struct BrowseRelayCb *brc = (struct BrowseRelayCb *) user_data; + + GRL_DEBUG (__FUNCTION__); + + /* Ignore elements after operation has completed */ + if (operation_is_completed (operation_id)) { + GRL_WARNING ("Source '%s' emitted 'remaining=0' more than once " + "for operation %d", + grl_source_get_id (source), operation_id); + g_clear_object (&media); + return; + } + + /* Check if cancelled */ + if (operation_is_cancelled (operation_id)) { + GRL_DEBUG ("Operation is cancelled, skipping result until getting the last one"); + g_clear_object (&media); + /* Wait for the last element */ + if (remaining > 0) { + return; + } else { + _error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED, + _("Operation was cancelled")); + brc->user_callback (source, operation_id, NULL, 0, + brc->user_data, _error); + g_error_free (_error); + goto free_resources; + } + } + + /* Auto-split management */ + if (brc->auto_split) { + brc->auto_split->chunk_remaining--; + brc->auto_split->total_remaining--; + /* On last element, check if more elements should be asked: if source + satisfied all requested elements, but we need to get more */ + if (remaining == 0) { + if (brc->auto_split->chunk_remaining == 0 && + brc->auto_split->total_remaining > 0) { + auto_split_run_next_chunk (brc); + remaining = brc->auto_split->total_remaining; + } + } else { + remaining = brc->auto_split->total_remaining; + } + } + + /* Set the source */ + if (media && !grl_media_get_source (media)) { + grl_media_set_source (media, grl_source_get_id (source)); + } + + /* If we need further processing of media, put it in a queue */ + if (grl_operation_options_get_resolution_flags (brc->options) & + (GRL_RESOLVE_FULL | GRL_RESOLVE_IDLE_RELAY)) { + queue_add_media (brc, media, remaining, error); + } else { + warn_if_no_id (media, source); + brc->user_callback (source, operation_id, media, remaining, + brc->user_data, error); + } + + if (remaining == 0) { + free_resources: + browse_relay_spec_free (brc); + if (!brc->queue || g_queue_is_empty (brc->queue)) { + operation_set_finished (operation_id); + browse_relay_free (brc); + } else { + /* There are elements pending to be processed; let's wait to free it in + the queue */ + operation_set_completed (operation_id); + } + } +} + +static void +remove_result_relay_cb (GrlSource *source, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + struct RemoveRelayCb *rrc = (struct RemoveRelayCb *) user_data; + + rrc->user_callback (source, media, rrc->user_data, error); + remove_relay_free (rrc); +} + +static gboolean +resolve_idle (gpointer user_data) +{ + struct ResolveRelayCb *rrc = (struct ResolveRelayCb *) user_data; + GrlSourceResolveSpec *rs; + GList *spec; + GList *key; + gboolean run_next; + + GRL_DEBUG (__FUNCTION__); + + /* Abort if operation was cancelled */ + if (operation_is_cancelled (rrc->operation_id)) { + for (spec = rrc->specs_to_invoke; + spec; + spec = g_list_next (rs)) { + rs = (GrlSourceResolveSpec *) spec->data; + g_hash_table_remove (rrc->resolve_specs, rs->source); + } + g_list_free (rrc->specs_to_invoke); + rrc->specs_to_invoke = NULL; + run_next = FALSE; + resolve_result_relay_cb (rrc->source, rrc->operation_id, rrc->media, rrc, NULL); + } else { + rs = rrc->specs_to_invoke->data; + rrc->specs_to_invoke = g_list_delete_link (rrc->specs_to_invoke, + rrc->specs_to_invoke); + run_next = (rrc->specs_to_invoke != NULL); + + /* Put the specific keys in rs also into rrc */ + for (key = rs->keys; key; key = g_list_next (key)) { + if (!g_list_find (rrc->keys, key->data)) { + rrc->keys = g_list_prepend (rrc->keys, key->data); + } + } + + operation_set_ongoing (rs->source, rs->operation_id); + operation_set_started (rs->operation_id); + GRL_SOURCE_GET_CLASS (rs->source)->resolve (rs->source, rs); + } + + return run_next; +} + +static gboolean +resolve_all_done (gpointer user_data) +{ + struct ResolveRelayCb *rrc = (struct ResolveRelayCb *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (operation_is_cancelled (rrc->operation_id)) { + g_clear_error (&rrc->error); + rrc->error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED, + _("Operation was cancelled")); + } + + rrc->user_callback (rrc->source, rrc->operation_id, rrc->media, rrc->user_data, rrc->error); + operation_set_finished (rrc->operation_id); + resolve_relay_free (rrc); + + return FALSE; +} + +static gboolean +media_from_uri_idle (gpointer user_data) +{ + GrlSourceMediaFromUriSpec *mfus = (GrlSourceMediaFromUriSpec *) user_data; + + GRL_DEBUG (__FUNCTION__); + + /* Abort if operation is cancelled */ + if (operation_is_cancelled (mfus->operation_id)) { + mfus->callback (mfus->source, mfus->operation_id, + NULL, mfus->user_data, NULL); + } else { + operation_set_started (mfus->operation_id); + GRL_SOURCE_GET_CLASS (mfus->source)->media_from_uri (mfus->source, mfus); + } + + return FALSE; +} + +static gboolean +browse_idle (gpointer user_data) +{ + GrlSourceBrowseSpec *bs = (GrlSourceBrowseSpec *) user_data; + + GRL_DEBUG (__FUNCTION__); + + /* Abort if operation is cancelled */ + if (operation_is_cancelled (bs->operation_id)) { + bs->callback (bs->source, bs->operation_id, NULL, 0, bs->user_data, NULL); + } else { + operation_set_started (bs->operation_id); + GRL_SOURCE_GET_CLASS (bs->source)->browse (bs->source, bs); + } + + return FALSE; +} + +static gboolean +search_idle (gpointer user_data) +{ + GrlSourceSearchSpec *ss = (GrlSourceSearchSpec *) user_data; + + GRL_DEBUG (__FUNCTION__); + + /* Abort if operation is cancelled */ + if (operation_is_cancelled (ss->operation_id)) { + ss->callback (ss->source, ss->operation_id, NULL, 0, ss->user_data, NULL); + } else { + operation_set_started (ss->operation_id); + GRL_SOURCE_GET_CLASS (ss->source)->search (ss->source, ss); + } + + return FALSE; +} + +static gboolean +query_idle (gpointer user_data) +{ + GrlSourceQuerySpec *qs = (GrlSourceQuerySpec *) user_data; + GRL_DEBUG (__FUNCTION__); + + /* Abort if operation is cancelled */ + if (operation_is_cancelled (qs->operation_id)) { + qs->callback (qs->source, qs->operation_id, NULL, 0, qs->user_data, NULL); + } else { + operation_set_started (qs->operation_id); + GRL_SOURCE_GET_CLASS (qs->source)->query (qs->source, qs); + } + + return FALSE; +} + +static gboolean +remove_idle (gpointer user_data) +{ + struct RemoveRelayCb *rrc = (struct RemoveRelayCb *) user_data; + GRL_DEBUG (__FUNCTION__); + + if (rrc->error) { + rrc->user_callback (rrc->source, rrc->media, rrc->user_data, rrc->error); + remove_relay_free (rrc); + } else { + GRL_SOURCE_GET_CLASS (rrc->source)->remove (rrc->source, rrc->spec); + } + + return FALSE; +} + +static void +resolve_result_async_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (error) { + ds->error = g_error_copy (error); + } + + ds->data = media; + ds->complete = TRUE; +} + +static void +multiple_result_async_cb (GrlSource *source, + guint op_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (error) { + ds->error = g_error_copy (error); + + /* Free previous results */ + g_list_free_full (ds->data, g_object_unref); + + ds->data = NULL; + ds->complete = TRUE; + return; + } + + if (media) { + ds->data = g_list_prepend (ds->data, media); + } + + if (remaining == 0) { + ds->data = g_list_reverse (ds->data); + ds->complete = TRUE; + } +} + +static void +remove_async_cb (GrlSource *source, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (error) { + ds->error = g_error_copy (error); + } + + ds->complete = TRUE; +} + +static void +store_result_async_cb (GrlSource *source, + GrlMedia *media, + GList *failed_keys, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (error) { + ds->error = g_error_copy (error); + } + + ds->data = g_list_copy (failed_keys); + ds->complete = TRUE; +} + + +static void +store_metadata_result_async_cb (GrlSource *source, + GrlMedia *media, + GList *failed_keys, + gpointer user_data, + const GError *error) +{ + GrlDataSync *ds = (GrlDataSync *) user_data; + + GRL_DEBUG (__FUNCTION__); + + if (error) { + ds->error = g_error_copy (error); + } + + ds->data = g_list_copy (failed_keys); + ds->complete = TRUE; +} + +static GHashTable * +map_writable_keys (GrlSource *source, + GList *keys, + GrlWriteFlags flags, + GList **failed_keys) +{ + GHashTable *map; + GrlRegistry *registry; + GList *sources = NULL; + GList *sources_iter; + GList *unsupported_keys; + GrlSource *_source; + + map = g_hash_table_new_full (g_direct_hash, g_direct_equal, + g_object_unref, + (GDestroyNotify) g_list_free); + + /* 'key_list' holds keys that can be written by this source + 'unsupportedy_keys' holds those that must be handled by other sources */ + GList *key_list = g_list_copy (keys); + if (grl_source_supported_operations (source) & GRL_OP_STORE_METADATA) { + unsupported_keys = filter_writable (source, &key_list, TRUE); + } else { + unsupported_keys = key_list; + key_list = NULL; + } + + if (key_list) { + g_hash_table_insert (map, g_object_ref (source), key_list); + } + + if (!unsupported_keys || !(flags & GRL_WRITE_FULL)) { + /* We are done! */ + goto done; + } + + /* Check if other sources can write the missing keys */ + registry = grl_registry_get_default (); + sources = + grl_registry_get_sources_by_operations (registry, + GRL_OP_STORE_METADATA, + TRUE); + + for (sources_iter = sources; unsupported_keys && sources_iter; + sources_iter = g_list_next (sources_iter)) { + _source = GRL_SOURCE (sources_iter->data); + + if (_source == source) { + continue; + } + + key_list = unsupported_keys; + unsupported_keys = filter_writable (_source, &key_list, TRUE); + + if (!key_list) { + continue; + } + + g_hash_table_insert (map, g_object_ref (_source), key_list); + + if (!unsupported_keys) { + break; + } + } + + g_list_free (sources); + + done: + *failed_keys = unsupported_keys; + return map; +} + +static void +store_relay_cb (GrlSource *source, + GrlMedia *media, + GList *failed_keys, + gpointer user_data, + const GError *error) +{ + struct StoreRelayCb *src = (struct StoreRelayCb *) user_data; + GrlSourceStoreSpec *ss = src->spec; + + GRL_DEBUG (__FUNCTION__); + + if (error || !(src->flags & GRL_WRITE_FULL)) { + if (src->user_callback) + src->user_callback (source, media, failed_keys, src->user_data, error); + } else if (failed_keys != NULL) { + run_store_metadata (source, media, failed_keys, GRL_WRITE_FULL, + src->user_callback, src->user_data); + } + store_relay_free (src); + store_spec_free (ss); +} + +static void +store_metadata_ctl_cb (GrlSource *source, + GrlMedia *media, + GList *failed_keys, + gpointer user_data, + const GError *error) +{ + struct StoreMetadataRelayCb *smrc; + GError *own_error = NULL; + + GRL_DEBUG (__FUNCTION__); + + smrc = (struct StoreMetadataRelayCb *) user_data; + + if (failed_keys) { + smrc->failed_keys = g_list_concat (smrc->failed_keys, failed_keys); + } + + g_hash_table_remove (smrc->map, source); + + /* If we all sources have answered */ + if (g_hash_table_size (smrc->map) == 0) { + /* We ignore the plugin errors, instead we create an own error + if some keys were not written */ + if (smrc->user_callback) { + if (smrc->failed_keys) { + own_error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_STORE_METADATA_FAILED, + _("Some keys could not be written")); + } + smrc->user_callback (smrc->source, + media, + smrc->failed_keys, + smrc->user_data, + own_error); + g_clear_error (&own_error); + } + store_metadata_relay_free (smrc); + } +} + +static gboolean +store_idle (gpointer user_data) +{ + GrlSourceStoreSpec *ss = (GrlSourceStoreSpec *) user_data; + + GRL_DEBUG (__FUNCTION__); + + GRL_SOURCE_GET_CLASS (ss->source)->store(ss->source, ss); + + return FALSE; +} + +static gboolean +store_metadata_idle (gpointer user_data) +{ + GrlSourceStoreMetadataSpec *sms; + gboolean stop; + struct StoreMetadataRelayCb *smrc; + + GRL_DEBUG (__FUNCTION__); + + smrc = (struct StoreMetadataRelayCb *) user_data; + + sms = g_new (GrlSourceStoreMetadataSpec, 1); + + sms->source = g_object_ref (g_list_first (smrc->use_sources)->data); + sms->keys = g_hash_table_lookup (smrc->map, sms->source); + sms->media = g_object_ref (smrc->media); + sms->callback = store_metadata_ctl_cb; + sms->user_data = smrc; + + /* Remove list header */ + smrc->use_sources = g_list_remove_link (smrc->use_sources, smrc->use_sources); + smrc->specs = g_list_prepend (smrc->specs, sms); + + stop = smrc->use_sources == NULL; + GRL_SOURCE_GET_CLASS (sms->source)->store_metadata (sms->source, sms); + + return !stop; +} + +static void +run_store_metadata (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data) +{ + GHashTable *map; + GList *failed_keys = NULL; + GError *error; + struct StoreMetadataRelayCb *smrc; + guint id; + + map = map_writable_keys (source, keys, flags, &failed_keys); + + if (g_hash_table_size (map) == 0) { + error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_STORE_METADATA_FAILED, + _("None of the specified keys are writable")); + if (callback) { + callback (source, media, failed_keys, user_data, error); + } + + g_error_free (error); + g_list_free (failed_keys); + g_hash_table_unref (map); + + return; + } + + smrc = g_slice_new (struct StoreMetadataRelayCb); + smrc->source = g_object_ref (source); + smrc->media = g_object_ref (media); + smrc->map = map; + smrc->use_sources = g_hash_table_get_keys (map); + smrc->failed_keys = failed_keys; + smrc->specs = NULL; + smrc->user_callback = callback; + smrc->user_data = user_data; + + id = g_idle_add (store_metadata_idle, smrc); + g_source_set_name_by_id (id, "[grilo] store_metadata_idle"); +} + +static gboolean +check_options (GrlSource *source, + GrlSupportedOps operation, + GrlOperationOptions *options) +{ + GrlCaps *caps; + + /* FIXME: that check should be in somewhere in GrlOperationOptions */ + if (grl_operation_options_get_count (options) == 0) + return FALSE; + + /* Check only if the source supports the operation */ + if (grl_source_supported_operations (source) & operation) { + caps = grl_source_get_caps (source, operation); + + return grl_operation_options_obey_caps (options, caps, NULL, NULL); + } else { + return TRUE; + } +} + +/* ============= API ============= */ + +/** + * grl_source_supported_keys: + * @source: a source + * + * Get a list of #GrlKeyID, which describe a metadata types that this + * source can fetch and store. + * + * Returns: (element-type GrlKeyID) (transfer none): a #GList with the keys + * + * Since: 0.2.0 + */ +const GList * +grl_source_supported_keys (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + if (GRL_SOURCE_GET_CLASS (source)->supported_keys) { + return GRL_SOURCE_GET_CLASS (source)->supported_keys (source); + } else { + return NULL; + } +} + +/** + * grl_source_slow_keys: + * @source: a source + * + * Similar to grl_source_supported_keys(), but these keys + * are marked as slow because of the amount of traffic/processing needed + * to fetch them. + * + * Returns: (element-type GrlKeyID) (transfer none): a #GList with the keys + * + * Since: 0.2.0 + */ +const GList * +grl_source_slow_keys (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + if (GRL_SOURCE_GET_CLASS (source)->slow_keys) { + return GRL_SOURCE_GET_CLASS (source)->slow_keys (source); + } else { + return NULL; + } +} + +/** + * grl_source_writable_keys: + * @source: a source + * + * Similar to grl_source_supported_keys(), but these keys + * are marked as writable, meaning the source allows the client + * to provide new values for these keys that will be stored permanently. + * + * Returns: (element-type GrlKeyID) (transfer none): + * a #GList with the keys + * + * Since: 0.2.0 + */ +const GList * +grl_source_writable_keys (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + if (GRL_SOURCE_GET_CLASS (source)->writable_keys) { + return GRL_SOURCE_GET_CLASS (source)->writable_keys (source); + } else { + return NULL; + } +} + +/** + * grl_source_get_id: + * @source: a source + * + * Returns: the ID of the @source + * + * Since: 0.2.0 + */ +const gchar * +grl_source_get_id (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + return source->priv->id; +} + +/** + * grl_source_get_name: + * @source: a source + * + * Returns: the name of the @source + * + * Since: 0.2.0 + */ +const gchar * +grl_source_get_name (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + return source->priv->name; +} + +/** + * grl_source_get_icon: + * @source: a source + * + * Returns: (transfer none): a #GIcon + * + * Since: 0.2.8 + */ +GIcon * +grl_source_get_icon (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + return source->priv->icon; +} + +/** + * grl_source_get_description: + * @source: a source + * + * Returns: the description of the @source + * + * Since: 0.2.0 + */ +const gchar * +grl_source_get_description (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + return source->priv->desc; +} + +/** + * grl_source_get_tags: + * @source: a source + * + * Returns: (element-type utf8) (transfer none): a %NULL-terminated list of tags + * + * Since: 0.2.10 + */ +const char ** +grl_source_get_tags (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + return (const char **) source->priv->tags->pdata; +} + +/** + * grl_source_get_plugin: + * @source: a source + * + * Returns: (transfer none): the plugin this source belongs to + * + * Since: 0.2.0 + **/ +GrlPlugin * +grl_source_get_plugin (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), NULL); + + return source->priv->plugin; +} + +/** + * grl_source_get_rank: + * @source: a source + * + * Gets the source rank + * + * Returns: rank value + * + * Since: 0.2.0 + **/ +gint +grl_source_get_rank (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + + return source->priv->rank; +} + +/** + * grl_source_get_supported_media: + * @source: a source + * + * Gets the supported type of medias @source can deal with. + * + * Returns: a #GrlSupportedMedia value + * + * Since: 0.3.0 + **/ +GrlSupportedMedia +grl_source_get_supported_media (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + + return source->priv->supported_media; +} + +/** + * grl_source_supported_operations: + * @source: a source + * + * By default the derived objects of #GrlSource can only resolve. + * + * Returns: (type uint): a bitwise mangle with the supported operations by + * the source + * + * Since: 0.2.0 + */ +GrlSupportedOps +grl_source_supported_operations (GrlSource *source) +{ + GrlSupportedOps ops = GRL_OP_NONE; + GrlSourceClass *source_class; + + g_return_val_if_fail (GRL_IS_SOURCE (source), GRL_OP_NONE); + + source_class = GRL_SOURCE_GET_CLASS (source); + + if (source_class->supported_operations) { + return source_class->supported_operations (source); + } + + if (source_class->resolve) { + ops |= GRL_OP_RESOLVE; + } + if (source_class->test_media_from_uri && + source_class->media_from_uri) { + ops |= GRL_OP_MEDIA_FROM_URI; + } + if (source_class->browse) { + ops |= GRL_OP_BROWSE; + } + if (source_class->search) { + ops |= GRL_OP_SEARCH; + } + if (source_class->query) { + ops |= GRL_OP_QUERY; + } + if (source_class->remove) { + ops |= GRL_OP_REMOVE; + } + if (source_class->store_metadata) { + ops |= GRL_OP_STORE_METADATA; + } + if (source_class->store) { + ops |= GRL_OP_STORE; + } + + if (source_class->notify_change_start && + source_class->notify_change_stop) { + ops |= GRL_OP_NOTIFY_CHANGE; + } + + return ops; +} + +/** + * grl_source_get_auto_split_threshold: + * @source: a source + * + * Gets how much elements the source is able to handle in a single request. + * + * See #grl_source_set_auto_split_threshold() + * + * Returns: the assigned threshold, or 0 if there is no threshold + * + * Since: 0.2.0 + */ +guint +grl_source_get_auto_split_threshold (GrlSource *source) +{ + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + + return source->priv->auto_split_threshold; +} + +/** + * grl_source_set_auto_split_threshold: + * @source: a source + * @threshold: the threshold to set + * + * Sets how much elements the source is able to handle in a single request. + * + * If user, during a search or browsing operation, asks for more elements than + * the threshold, the request will be automatically splitted in chunks, so up to + * @threshold elements will be asked in each request. + * + * Source will act as if user were asking just a chunk, and user won't notice + * that the request was chunked. + * + * + * + * This function is intended to be used only by plugins. + * + * + * + * Since: 0.2.0 + */ +void +grl_source_set_auto_split_threshold (GrlSource *source, + guint threshold) +{ + g_return_if_fail (GRL_IS_SOURCE (source)); + + source->priv->auto_split_threshold = threshold; +} + +/** + * grl_source_resolve: + * @source: a source + * @media: (allow-none) (transfer full): a data transfer object + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options to pass to this operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * This method is intended to fetch the requested keys of metadata of + * a given @media to the media source. + * + * This method is asynchronous. + * + * Returns: the operation identifie + * + * Since: 0.2.0 + */ +guint +grl_source_resolve (GrlSource *source, + GrlMedia *media, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResolveCb callback, + gpointer user_data) +{ + GList *_keys; + GList *each_key; + GList *delete_key; + struct ResolveRelayCb *rrc; + guint operation_id; + GList *sources = NULL; + GrlResolutionFlags flags; + GrlOperationOptions *resolve_options; + + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + g_return_val_if_fail (keys != NULL, 0); + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (check_options (source, GRL_OP_RESOLVE, options), 0); + + if (!media) { + /* Special case, NULL media ==> root container */ + media = grl_media_container_new (); + grl_media_set_id (media, NULL); + grl_media_set_source (media, grl_source_get_id (source)); + } else if (!grl_media_get_source (media)) { + grl_media_set_source (media, grl_source_get_id (source)); + } + + /* By default assume we will use the parameters specified by the user */ + _keys = filter_known_keys (media, (GList *) keys); + + flags = grl_operation_options_get_resolution_flags (options); + + if (flags & GRL_RESOLVE_FULL) { + GRL_DEBUG ("requested full metadata"); + sources = grl_registry_get_sources_by_operations (grl_registry_get_default (), + GRL_OP_RESOLVE, + TRUE); + /* Put current source on top, if it supports resolve() */ + if (grl_source_supported_operations (source) & GRL_OP_RESOLVE) { + sources = g_list_remove (sources, source); + sources = g_list_prepend (sources, source); + } + flags &= ~GRL_RESOLVE_FULL; + resolve_options = grl_operation_options_copy (options); + grl_operation_options_set_resolution_flags (resolve_options, flags); + } else { + /* Consider only this source, if it supports resolve() */ + if (grl_source_supported_operations (source) & GRL_OP_RESOLVE) { + sources = g_list_prepend (NULL, source); + } + resolve_options = g_object_ref (options); + } + + if (flags & GRL_RESOLVE_FAST_ONLY) { + GRL_DEBUG ("requested fast keys"); + } + + operation_id = grl_operation_generate_id (); + + operation_set_ongoing (source, operation_id); + + /* Always hook an own relay callback so we can do some + post-processing before handing out the results + to the user */ + rrc = g_slice_new0 (struct ResolveRelayCb); + rrc->source = g_object_ref (source); + rrc->operation_type = GRL_OP_RESOLVE; + rrc->operation_id = operation_id; + rrc->media = g_object_ref (media); + rrc->user_callback = callback; + rrc->user_data = user_data; + rrc->options = resolve_options; + + /* If there are no sources able to solve just send the media */ + if (g_list_length (sources) == 0) { + guint id; + g_list_free (_keys); + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + resolve_all_done, + rrc, + NULL); + g_source_set_name_by_id (id, "[grilo] resolve_all_done"); + return operation_id; + } + + _keys = filter_unresolvable_keys (sources, &_keys); + + rrc->keys = _keys; + rrc->map = map_keys_new (); + rrc->resolve_specs = map_sources_new (); + + map_keys_to_sources (rrc->map, _keys, sources, media, flags & GRL_RESOLVE_FAST_ONLY); + g_list_free (sources); + + each_key = rrc->keys; + while (each_key) { + if (map_sources_to_specs (rrc->resolve_specs, rrc->map, media, + GRLPOINTER_TO_KEYID (each_key->data), + resolve_options, rrc)) { + each_key = g_list_next (each_key); + } else { + delete_key = each_key; + each_key = g_list_next (each_key); + rrc->keys = g_list_delete_link (rrc->keys, delete_key); + } + } + + rrc->specs_to_invoke = g_hash_table_get_values (rrc->resolve_specs); + if (rrc->specs_to_invoke) { + guint id; + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + resolve_idle, + rrc, + NULL); + g_source_set_name_by_id (id, "[grilo] resolve_idle"); + } else { + guint id; + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + resolve_all_done, + rrc, + NULL); + g_source_set_name_by_id (id, "[grilo] resolve_all_done"); + } + + return operation_id; +} + +/** + * grl_source_resolve_sync: + * @source: a source + * @media: (allow-none) (transfer full): a data transfer object + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options to pass to this operation + * @error: a #GError, or @NULL + * + * This method is intended to fetch the requested keys of metadata of + * a given @media to the media source. + * + * This method is synchronous. + * + * Returns: (transfer full): a filled #GrlMedia + * + * Since: 0.2.0 + */ +GrlMedia * +grl_source_resolve_sync (GrlSource *source, + GrlMedia *media, + const GList *keys, + GrlOperationOptions *options, + GError **error) +{ + GrlDataSync *ds; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_resolve (source, + media, + keys, + options, + resolve_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + g_slice_free (GrlDataSync, ds); + + return media; +} + +/** + * grl_source_may_resolve: + * @source: a source + * @media: a media on which we want more metadata + * @key_id: the key corresponding to a metadata we might want + * @missing_keys: (element-type GrlKeyID): an optional originally empty list + * + * Checks whether @key_id may be resolved with @source for @media, so that the + * caller can avoid calling grl_source_resolve() if it can be known in + * advance it will fail. + * + * If the resolution is known to be impossible because more keys are needed in + * @media, and @missing_keys is not @NULL, it is populated with the list of + * GrlKeyID that would be needed. + * + * This function is synchronous and should not block. + * + * Returns: @TRUE if there's a possibility that @source resolves @key_id for + * @media, @FALSE otherwise. + * + * Since: 0.2.0 + */ +gboolean +grl_source_may_resolve (GrlSource *source, + GrlMedia *media, + GrlKeyID key_id, + GList **missing_keys) +{ + GrlSourceClass *klass; + const GList *supported_keys; + const gchar *media_source; + + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (!missing_keys || !*missing_keys, FALSE); + + klass = GRL_SOURCE_GET_CLASS (source); + + if (klass->may_resolve) { + return klass->may_resolve (source, media, key_id, missing_keys); + } + + /* Default behaviour is to assume that if source implements resolve, then any + supported key for its own content is resolved */ + if (klass->resolve) { + GRL_DEBUG ("Using default may_resolve()"); + /* We need to know the media source */ + if (media == NULL || + (media_source = grl_media_get_source (media)) == NULL) { + if (missing_keys) { + *missing_keys = NULL; + *missing_keys = + g_list_prepend (*missing_keys, + GRLKEYID_TO_POINTER (GRL_METADATA_KEY_SOURCE)); + } + return FALSE; + } + /* Content is from different source */ + if (g_strcmp0 (grl_source_get_id (source), media_source) != 0) { + return FALSE; + } + /* Check if the key is supported */ + supported_keys = grl_source_supported_keys (source); + return (g_list_find ((GList *) supported_keys, + GRLKEYID_TO_POINTER (key_id)) != NULL); + } else { + GRL_WARNING ("Source %s does not implement may_resolve()", + grl_source_get_id (source)); + return FALSE; + } +} + +/** + * grl_source_test_media_from_uri: + * @source: a source + * @uri: A URI that can be used to identify a media resource + * + * Tests whether @source can instantiate a #GrlMedia object representing + * the media resource exposed at @uri. + * + * Returns: %TRUE if it can, %FALSE otherwise. + * + * This method is synchronous. + * + * Since: 0.2.0 + */ +gboolean +grl_source_test_media_from_uri (GrlSource *source, + const gchar *uri) +{ + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (uri != NULL, FALSE); + + if (GRL_SOURCE_GET_CLASS (source)->test_media_from_uri) { + return GRL_SOURCE_GET_CLASS (source)->test_media_from_uri (source, uri); + } else { + return FALSE; + } +} + +/** + * grl_source_get_media_from_uri: + * @source: a source + * @uri: A URI that can be used to identify a media resource + * @keys: (element-type GrlKeyID): A list of keys to resolve + * @options: options wanted for that operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Creates an instance of #GrlMedia representing the media resource + * exposed at @uri. + * + * It is recommended to call grl_source_test_media_from_uri() before invoking + * this to check whether the target source can theoretically do the resolution. + * + * This method is asynchronous. + * + * Returns: the operation identifier + * + * Since: 0.2.0 + */ +guint +grl_source_get_media_from_uri (GrlSource *source, + const gchar *uri, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResolveCb callback, + gpointer user_data) +{ + GList *_keys; + GrlSourceMediaFromUriSpec *mfus; + struct ResolveRelayCb *rrc; + guint operation_id; + GrlResolutionFlags flags; + guint id; + + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + g_return_val_if_fail (uri != NULL, 0); + g_return_val_if_fail (keys != NULL, 0); + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_MEDIA_FROM_URI, 0); + g_return_val_if_fail (check_options (source, GRL_OP_MEDIA_FROM_URI, options), 0); + + _keys = g_list_copy ((GList *) keys); + flags = grl_operation_options_get_resolution_flags (options); + + if (flags & GRL_RESOLVE_FAST_ONLY) { + filter_slow (source, &_keys, FALSE); + } + + if (flags & GRL_RESOLVE_FULL) { + _keys = expand_operation_keys (source, NULL, _keys); + } + + operation_id = grl_operation_generate_id (); + + /* We cannot prepare for full resolution yet because we don't + have a GrlMedia t operate with. + TODO: full resolution could be added in the relay calback + when we get the GrlMedia object */ + + /* Always hook an own relay callback so we can do some + post-processing before handing out the results + to the user */ + rrc = g_slice_new0 (struct ResolveRelayCb); + rrc->source = g_object_ref (source); + rrc->operation_type = GRL_OP_MEDIA_FROM_URI; + rrc->operation_id = operation_id; + rrc->keys = _keys; + rrc->options = g_object_ref (options); + rrc->user_callback = callback; + rrc->user_data = user_data; + + mfus = g_new0 (GrlSourceMediaFromUriSpec, 1); + mfus->source = g_object_ref (source); + mfus->operation_id = operation_id; + mfus->uri = g_strdup (uri); + mfus->keys = _keys; + mfus->options = grl_operation_options_copy (options); + mfus->callback = media_from_uri_result_relay_cb; + mfus->user_data = rrc; + + /* Save a reference to the operaton spec in the relay-cb's + user_data so that we can free the spec there */ + rrc->spec.mfu = mfus; + + operation_set_ongoing (source, operation_id); + + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? + G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + media_from_uri_idle, + mfus, + NULL); + g_source_set_name_by_id (id, "[grilo] media_from_uri_idle"); + + return operation_id; +} + +/** + * grl_source_get_media_from_uri_sync: + * @source: a source + * @uri: A URI that can be used to identify a media resource + * @keys: (element-type GrlKeyID): a list of keys to resolve + * @options: options wanted for that operation + * @error: a #GError, or @NULL + * + * Creates an instance of #GrlMedia representing the media resource + * exposed at @uri. + * + * It is recommended to call grl_source_test_media_from_uri() before + * invoking this to check whether the target source can theoretically do the + * resolution. + * + * This method is synchronous. + * + * Returns: (transfer full): a filled #GrlMedia + * + * Since: 0.2.0 + */ +GrlMedia * +grl_source_get_media_from_uri_sync (GrlSource *source, + const gchar *uri, + const GList *keys, + GrlOperationOptions *options, + GError **error) +{ + GrlDataSync *ds; + GrlMedia *result; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_get_media_from_uri (source, + uri, + keys, + options, + resolve_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + result = (GrlMedia *) ds->data; + g_slice_free (GrlDataSync, ds); + + return result; +} + +/** + * grl_source_browse: + * @source: a source + * @container: (allow-none): a container of data transfer objects + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Browse from media elements through an available list. + * + * This method is asynchronous. + * + * Returns: the operation identifier + * + * Since: 0.2.0 + */ +guint +grl_source_browse (GrlSource *source, + GrlMedia *container, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data) +{ + GList *_keys; + GrlSourceBrowseSpec *bs; + guint operation_id; + struct BrowseRelayCb *brc; + GrlResolutionFlags flags; + guint id; + + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_BROWSE, 0); + g_return_val_if_fail (check_options (source, GRL_OP_BROWSE, options), 0); + + /* By default assume we will use the parameters specified by the user */ + _keys = g_list_copy ((GList *) keys); + + flags = grl_operation_options_get_resolution_flags (options); + + if (flags & GRL_RESOLVE_FAST_ONLY) { + GRL_DEBUG ("requested fast keys"); + filter_slow (source, &_keys, FALSE); + } + + /* Setup full resolution mode if requested */ + if (flags & GRL_RESOLVE_FULL) { + GRL_DEBUG ("requested full metadata"); + _keys = expand_operation_keys (source, NULL, _keys); + } + + operation_id = grl_operation_generate_id (); + + /* Always hook an own relay callback so we can do some + post-processing before handing out the results + to the user */ + brc = g_slice_new (struct BrowseRelayCb); + brc->source = g_object_ref (source); + brc->operation_type = GRL_OP_BROWSE; + brc->operation_id = operation_id; + brc->keys = _keys; + brc->options = g_object_ref (options); + brc->user_callback = callback; + brc->user_data = user_data; + brc->queue = NULL; + brc->dispatcher_running = FALSE; + + bs = g_new (GrlSourceBrowseSpec, 1); + bs->source = g_object_ref (source); + bs->operation_id = operation_id; + /* _keys is already a copy */ + bs->keys = _keys; + bs->options = grl_operation_options_copy (options); + bs->callback = browse_result_relay_cb; + bs->user_data = brc; + + if (!container) { + /* Special case: NULL container ==> NULL id */ + bs->container = grl_media_container_new (); + grl_media_set_source (bs->container, + grl_source_get_id (source)); + } else { + bs->container = g_object_ref (container); + } + + /* Save a reference to the operaton spec in the relay-cb's + user_data so that we can free the spec there when we get + the last result */ + brc->spec.browse = bs; + + /* Setup auto-split management if requested */ + brc->auto_split = auto_split_setup (source, bs->options); + + operation_set_ongoing (source, operation_id); + + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + browse_idle, + bs, + NULL); + g_source_set_name_by_id (id, "[grilo] browse_idle"); + + return operation_id; +} + +/** + * grl_source_browse_sync: + * @source: a source + * @container: (allow-none): a container of data transfer objects + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @error: a #GError, or @NULL + * + * Browse media elements through an available + * list. + * + * This method is synchronous. + * + * Returns: (element-type GrlMedia) (transfer full): a #GList with #GrlMedia + * elements. After use g_object_unref() every element and g_list_free() the + * list. + * + * Since: 0.2.0 + */ +GList * +grl_source_browse_sync (GrlSource *source, + GrlMedia *container, + const GList *keys, + GrlOperationOptions *options, + GError **error) +{ + GrlDataSync *ds; + GList *result; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_browse (source, + container, + keys, + options, + multiple_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + result = (GList *) ds->data; + g_slice_free (GrlDataSync, ds); + + return result; +} + +/** + * grl_source_search: + * @source: a source + * @text: the text to search + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Search for the @text string in a source for data identified with that string. + * + * If @text is @NULL then no text filter will be applied, and thus, no media + * items from @source will be filtered. If @source does not support NULL-text + * search operations it should notiy the client by setting + * @GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED in @callback's error parameter. + * + * This method is asynchronous. + * + * Returns: the operation identifier + * + * Since: 0.2.0 + */ +guint +grl_source_search (GrlSource *source, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data) +{ + GList *_keys; + GrlSourceSearchSpec *ss; + guint operation_id; + struct BrowseRelayCb *brc; + GrlResolutionFlags flags; + guint id; + + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_SEARCH, 0); + g_return_val_if_fail (check_options (source, GRL_OP_SEARCH, options), 0); + + /* By default assume we will use the parameters specified by the user */ + _keys = g_list_copy ((GList *) keys); + + flags = grl_operation_options_get_resolution_flags (options); + + if (flags & GRL_RESOLVE_FAST_ONLY) { + GRL_DEBUG ("requested fast keys"); + filter_slow (source, &_keys, FALSE); + } + + /* Setup full resolution mode if requested */ + if (flags & GRL_RESOLVE_FULL) { + GRL_DEBUG ("requested full metadata"); + _keys = expand_operation_keys (source, NULL, _keys); + } + + operation_id = grl_operation_generate_id (); + + /* Always hook an own relay callback so we can do some + post-processing before handing out the results + to the user */ + brc = g_slice_new (struct BrowseRelayCb); + brc->source = g_object_ref (source); + brc->operation_type = GRL_OP_SEARCH; + brc->operation_id = operation_id; + brc->keys = _keys; + brc->options = g_object_ref (options); + brc->user_callback = callback; + brc->user_data = user_data; + brc->queue = NULL; + brc->dispatcher_running = FALSE; + + ss = g_new (GrlSourceSearchSpec, 1); + ss->source = g_object_ref (source); + ss->operation_id = operation_id; + ss->text = g_strdup (text); + ss->keys = _keys; + ss->options = grl_operation_options_copy (options); + ss->callback = browse_result_relay_cb; + ss->user_data = brc; + + /* Save a reference to the operaton spec in the relay-cb's + user_data so that we can free the spec there when we get + the last result */ + brc->spec.search = ss; + + /* Setup auto-split management if requested */ + brc->auto_split = auto_split_setup (source, ss->options); + + operation_set_ongoing (source, operation_id); + + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + search_idle, + ss, + NULL); + g_source_set_name_by_id (id, "[grilo] search_idle"); + + return operation_id; +} + +/** + * grl_source_search_sync: + * @source: a source + * @text: the text to search + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @error: a #GError, or @NULL + * + * Search for the @text string in a source for data identified with that string. + * + * If @text is @NULL then no text filter will be applied, and thus, no media + * items from @source will be filtered. If @source does not support NULL-text + * search operations it should notiy the client by setting + * @GRL_CORE_ERROR_SEARCH_NULL_UNSUPPORTED in the error parameter. + * + * This method is synchronous. + * + * Returns: (element-type GrlMedia) (transfer full): a #GList with #GrlMedia + * elements. After use g_object_unref() every element and g_list_free() the + * list. + * + * Since: 0.2.0 + */ +GList * +grl_source_search_sync (GrlSource *source, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GError **error) +{ + GrlDataSync *ds; + GList *result; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_search (source, + text, + keys, + options, + multiple_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + result = (GList *) ds->data; + g_slice_free (GrlDataSync, ds); + + return result; +} + +/** + * grl_source_query: + * @source: a source + * @query: the query to process + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Execute a specialized query (specific for each provider) on a media + * repository. + * + * It is different from grl_source_search() semantically, because the query + * implies a carefully crafted string, rather than a simple string to search. + * + * This method is asynchronous. + * + * Returns: the operation identifier + * + * Since: 0.2.0 + */ +guint +grl_source_query (GrlSource *source, + const gchar *query, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data) +{ + GList *_keys; + GrlSourceQuerySpec *qs; + guint operation_id; + struct BrowseRelayCb *brc; + GrlResolutionFlags flags; + guint id; + + g_return_val_if_fail (GRL_IS_SOURCE (source), 0); + g_return_val_if_fail (GRL_IS_OPERATION_OPTIONS (options), 0); + g_return_val_if_fail (query != NULL, 0); + g_return_val_if_fail (callback != NULL, 0); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_QUERY, 0); + g_return_val_if_fail (check_options (source, GRL_OP_QUERY, options), 0); + + /* By default assume we will use the parameters specified by the user */ + _keys = g_list_copy ((GList *) keys); + + flags = grl_operation_options_get_resolution_flags (options); + + if (flags & GRL_RESOLVE_FAST_ONLY) { + GRL_DEBUG ("requested fast keys"); + filter_slow (source, &_keys, FALSE); + } + + if (flags & GRL_RESOLVE_FULL) { + GRL_DEBUG ("requested full metadata"); + _keys = expand_operation_keys (source, NULL, _keys); + } + + operation_id = grl_operation_generate_id (); + + /* Always hook an own relay callback so we can do some + post-processing before handing out the results + to the user */ + brc = g_slice_new (struct BrowseRelayCb); + brc->source = g_object_ref (source); + brc->operation_type = GRL_OP_QUERY; + brc->operation_id = operation_id; + brc->keys = _keys; + brc->options = g_object_ref (options); + brc->user_callback = callback; + brc->user_data = user_data; + brc->queue = NULL; + brc->dispatcher_running = FALSE; + + qs = g_new (GrlSourceQuerySpec, 1); + qs->source = g_object_ref (source); + qs->operation_id = operation_id; + qs->query = g_strdup (query); + qs->keys = _keys; + qs->options = grl_operation_options_copy (options); + qs->callback = browse_result_relay_cb; + qs->user_data = brc; + + /* Save a reference to the operaton spec in the relay-cb's + user_data so that we can free the spec there when we get + the last result */ + brc->spec.query = qs; + + /* Setup auto-split management if requested */ + brc->auto_split = auto_split_setup (source, qs->options); + + operation_set_ongoing (source, operation_id); + + id = g_idle_add_full (flags & GRL_RESOLVE_IDLE_RELAY? G_PRIORITY_DEFAULT_IDLE: G_PRIORITY_HIGH_IDLE, + query_idle, + qs, + NULL); + g_source_set_name_by_id (id, "[grilo] query_idle"); + + return operation_id; +} + +/** + * grl_source_query_sync: + * @source: a source + * @query: the query to process + * @keys: (element-type GrlKeyID): the #GList of + * #GrlKeyIDs to request + * @options: options wanted for that operation + * @error: a #GError, or @NULL + * + * Execute a specialized query (specific for each provider) on a media + * repository. + * + * This method is synchronous. + * + * Returns: (element-type GrlMedia) (transfer full): a #GList with #GrlMedia + * elements. After use g_object_unref() every element and g_list_free() the + * list. + * + * Since: 0.2.0 + */ +GList * +grl_source_query_sync (GrlSource *source, + const gchar *query, + const GList *keys, + GrlOperationOptions *options, + GError **error) +{ + GrlDataSync *ds; + GList *result; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_query (source, + query, + keys, + options, + multiple_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + result = (GList *) ds->data; + g_slice_free (GrlDataSync, ds); + + return result; +} + +static gboolean +grl_source_store_remove_impl (GrlSource *source, + GrlMedia *media, + GrlSourceRemoveCb callback, + gpointer user_data) +{ + const gchar *id; + struct RemoveRelayCb *rrc; + GrlSourceRemoveSpec *rs; + guint tag_id; + + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + g_return_val_if_fail (callback != NULL, FALSE); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_REMOVE, FALSE); + + rrc = g_slice_new (struct RemoveRelayCb); + rrc->source = g_object_ref (source); + rrc->media = g_object_ref (media); + rrc->user_callback = callback; + rrc->user_data = user_data; + + /* Check that we have the minimum information we need */ + id = grl_media_get_id (media); + if (!id) { + rrc->error = g_error_new (GRL_CORE_ERROR, + GRL_CORE_ERROR_REMOVE_FAILED, + _("Media has no “id”, cannot remove")); + rrc->spec = NULL; + } else { + rrc->error = NULL; + rs = g_new0 (GrlSourceRemoveSpec, 1); + rs->source = g_object_ref (source); + rs->media_id = g_strdup (id); + rs->media = g_object_ref (media); + rs->callback = remove_result_relay_cb; + rs->user_data = rrc; + rrc->spec = rs; + } + + tag_id = g_idle_add (remove_idle, rrc); + g_source_set_name_by_id (tag_id, "[grilo] remove_idle"); + + return TRUE; +} + +/** + * grl_source_remove: + * @source: a source + * @media: a data transfer object + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Remove a @media from the @source repository. + * + * This method is asynchronous. + * + * Since: 0.2.0 + */ +void +grl_source_remove (GrlSource *source, + GrlMedia *media, + GrlSourceRemoveCb callback, + gpointer user_data) +{ + grl_source_store_remove_impl (source, media, callback, user_data); +} + +/** + * grl_source_remove_sync: + * @source: a source + * @media: a data transfer object + * @error: a #GError, or @NULL + * + * Remove a @media from the @source repository. + * + * This method is synchronous. + * + * Since: 0.2.0 + */ +void +grl_source_remove_sync (GrlSource *source, + GrlMedia *media, + GError **error) +{ + GrlDataSync *ds; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_store_remove_impl (source, + media, + remove_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + g_slice_free (GrlDataSync, ds); +} + +static gboolean +grl_source_store_impl (GrlSource *source, + GrlMedia *parent, + GrlMedia *media, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data) +{ + struct StoreRelayCb *src; + GrlSourceStoreSpec *ss; + guint id; + + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (!parent || grl_media_is_container (parent), FALSE); + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + + g_return_val_if_fail ((!parent && + grl_source_supported_operations (source) & GRL_OP_STORE) || + (parent && + grl_source_supported_operations (source) & GRL_OP_STORE_PARENT), + FALSE); + + src = g_slice_new (struct StoreRelayCb); + src->flags = flags; + src->user_callback = callback; + src->user_data = user_data; + + ss = g_new (GrlSourceStoreSpec, 1); + ss->source = g_object_ref (source); + ss->parent = parent? g_object_ref (parent): NULL; + ss->media = g_object_ref (media); + ss->callback = store_relay_cb; + ss->user_data = src; + + src->spec = ss; + + id = g_idle_add (store_idle, ss); + g_source_set_name_by_id (id, "[grilo] store_idle"); + + return TRUE; +} + +/** + * grl_source_store: + * @source: a source + * @parent: (allow-none): a parent to store the data transfer objects + * @media: a data transfer object + * @flags: flags to configure specific behaviour of the operation + * @callback: (scope notified): the user defined callback + * @user_data: the user data to pass in the callback + * + * Store the @media into the @parent container + * + * This method is asynchronous. + * + * Since: 0.3.0 + */ +void +grl_source_store (GrlSource *source, + GrlMedia *parent, + GrlMedia *media, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data) +{ + grl_source_store_impl (source, parent, media, flags, callback, user_data); +} + +/** + * grl_source_store_sync: + * @source: a source + * @parent: (allow-none): a #GrlMedia container to store the data transfer objects + * @media: a #GrlMedia data transfer object + * @flags: flags to configure specific behaviour of the operation + * @error: a #GError, or @NULL + * + * Store the @media into the @parent container. + * + * This method is synchronous. + * + * Since: 0.3.0 + */ +void +grl_source_store_sync (GrlSource *source, + GrlMedia *parent, + GrlMedia *media, + GrlWriteFlags flags, + GError **error) +{ + GrlDataSync *ds; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_store_impl (source, + parent, + media, + flags, + store_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + g_slice_free (GrlDataSync, ds); +} + +static gboolean +grl_source_store_metadata_impl (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data) +{ + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (GRL_IS_MEDIA (media), FALSE); + g_return_val_if_fail (keys != NULL, FALSE); + + run_store_metadata (source, media, keys, flags, callback, user_data); + + return TRUE; +} + +/** + * grl_source_store_metadata: + * @source: a metadata source + * @media: the #GrlMedia object that we want to operate on. + * @keys: (element-type GrlKeyID) (allow-none): a list + * of #GrlKeyID whose values we want to change. + * @flags: Flags to configure specific behaviors of the operation. + * @callback: (scope notified): the callback to execute when the operation is finished. + * @user_data: user data set for the @callback + * + * Get the values for @keys from @media and store it permanently. After + * calling this method, future queries that return this media object + * shall return this new values for the selected keys. + * + * This function is asynchronous and uses the Glib's main loop. + * + * Since: 0.2.0 + */ +void +grl_source_store_metadata (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data) +{ + grl_source_store_metadata_impl (source, + media, + keys, + flags, + callback, + user_data); +} + +/** + * grl_source_store_metadata_sync: + * @source: a source + * @media: the #GrlMedia object that we want to operate on + * @keys: (element-type GrlKeyID) (allow-none): a list of + * #GrlKeyID whose values we want to change + * @flags: Flags to configure specific behaviors of the operation. + * @error: a #GError, or @NULL + * + * Update @keys values from @media in the @source. After calling this method, + * future queries that return this media object shall return this new value for + * the selected key. + * + * This function is synchronous. + * + * Returns: (element-type GrlKeyID) (transfer container): + * a #GList of keys that could not be updated, or @NULL + * + * Since: 0.2.0 + */ +GList * +grl_source_store_metadata_sync (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GError **error) +{ + GrlDataSync *ds; + GList *failed; + + ds = g_slice_new0 (GrlDataSync); + + if (grl_source_store_metadata_impl (source, + media, + keys, + flags, + store_metadata_result_async_cb, + ds)) + grl_wait_for_async_operation_complete (ds); + + if (ds->error) { + if (error) { + *error = ds->error; + } else { + g_error_free (ds->error); + } + } + + failed = ds->data; + + g_slice_free (GrlDataSync, ds); + + return failed; +} + +/** + * grl_source_notify_change_start: + * @source: a source + * @error: a #GError, or @NULL + * + * Starts emitting ::content-changed signals when @source discovers changes in + * the content. This instructs @source to setup the machinery needed to be aware + * of changes in the content. + * + * Returns: @TRUE if initialization has succeed. + * + * Since: 0.2.0 + */ +gboolean +grl_source_notify_change_start (GrlSource *source, + GError **error) +{ + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_NOTIFY_CHANGE, FALSE); + + return GRL_SOURCE_GET_CLASS (source)->notify_change_start (source, error); +} + +/** + * grl_source_notify_change_stop: + * @source: a source + * @error: a #GError, or @NULL + * + * This will drop emission of ::content-changed signals from @source. When this + * is done @source should stop the machinery required for it to track changes in + * the content. + * + * Returns: @TRUE if stop has succeed. + * + * Since: 0.2.0 + */ +gboolean +grl_source_notify_change_stop (GrlSource *source, + GError **error) +{ + GRL_DEBUG (__FUNCTION__); + + g_return_val_if_fail (GRL_IS_SOURCE (source), FALSE); + g_return_val_if_fail (grl_source_supported_operations (source) & + GRL_OP_NOTIFY_CHANGE, FALSE); + + return GRL_SOURCE_GET_CLASS (source)->notify_change_stop (source, error); +} + +static void +grl_media_set_source_if_unset (GrlMedia *media, + const gchar *source) +{ + if (grl_media_get_source (media) != NULL) + return; + grl_media_set_source (media, source); +} + +/** + * grl_source_notify_change_list: + * @source: a source + * @changed_medias: (element-type GrlMedia) (transfer full): the list of + * medias that have changed + * @change_type: the type of change + * @location_unknown: if change has happpened in @media or any descendant + * + * Emits "content-changed" signal to notify subscribers that a change ocurred + * in @source. + * + * The function will take ownership of @changed medias and it should not be + * manipulated in any way by the caller after invoking this function. If that is + * needed, the caller must ref the array in advance. + * + * See GrlSource::content-changed signal. + * + * + * + * This function is intended to be used only by plugins. + * + * + * + * Since: 0.2.0 + */ +void grl_source_notify_change_list (GrlSource *source, + GPtrArray *changed_medias, + GrlSourceChangeType change_type, + gboolean location_unknown) +{ + const gchar *source_id; + + g_return_if_fail (GRL_IS_SOURCE (source)); + g_return_if_fail (changed_medias); + + /* Set the source */ + source_id = grl_source_get_id (source); + g_ptr_array_foreach (changed_medias, + (GFunc) grl_media_set_source_if_unset, + (gpointer) source_id); + + /* Add hook to free content when freeing the array */ + g_ptr_array_set_free_func (changed_medias, (GDestroyNotify) g_object_unref); + + g_signal_emit (source, + source_signals[SIG_CONTENT_CHANGED], + 0, + changed_medias, + change_type, + location_unknown); + + g_ptr_array_unref (changed_medias); +} + +/** + * grl_source_notify_change: + * @source: a source + * @media: (allow-none): the media which has changed, or @NULL to use the root container. + * @change_type: the type of change + * @location_unknown: if change has happened in @media or any descendant + * + * Emits "content-changed" signal to notify subscribers that a change ocurred + * in @source. + * + * See #grl_source_notify_change_list() function. + * + * + * + * This function is intended to be used only by plugins. + * + * + * + * Since: 0.2.0 + */ +void grl_source_notify_change (GrlSource *source, + GrlMedia *media, + GrlSourceChangeType change_type, + gboolean location_unknown) +{ + GPtrArray *ptr_array; + + g_return_if_fail (GRL_IS_SOURCE (source)); + + if (!media) { + media = grl_media_container_new (); + } else { + g_object_ref (media); + } + + ptr_array = g_ptr_array_sized_new (1); + g_ptr_array_add (ptr_array, media); + grl_source_notify_change_list (source, ptr_array, + change_type, location_unknown); +} + +/******************************************************************************/ + +/** + * grl_source_get_caps: + * @source: a source + * @operation: a supported operation. Even though the type allows to specify + * several operations, only one should be provided here. + * + * Get the capabilities of @source for @operation. + * + * Returns: (transfer none): The capabilities + * + * Since: 0.2.0 + */ +GrlCaps * +grl_source_get_caps (GrlSource *source, + GrlSupportedOps operation) +{ + static GrlCaps *default_caps = NULL; + GrlSourceClass *klass = GRL_SOURCE_GET_CLASS (source); + + if (klass->get_caps) + return klass->get_caps (source, operation); + + if (!default_caps) + default_caps = grl_caps_new (); + + return default_caps; +} diff --git a/src/grl-source.h b/src/grl-source.h new file mode 100644 index 0000000..68c1342 --- /dev/null +++ b/src/grl-source.h @@ -0,0 +1,660 @@ +/* + * Copyright (C) 2012 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_SOURCE_H_ +#define _GRL_SOURCE_H_ + +#include +#include +#include +#include +#include + +#include +#include +#include + +/* Macros */ + +#define GRL_TYPE_SOURCE \ + (grl_source_get_type ()) + +#define GRL_SOURCE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + GRL_TYPE_SOURCE, \ + GrlSource)) + +#define GRL_IS_SOURCE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + GRL_TYPE_SOURCE)) + +#define GRL_SOURCE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + GRL_TYPE_SOURCE, \ + GrlSourceClass)) + +#define GRL_IS_SOURCE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + GRL_TYPE_SOURCE)) + +#define GRL_SOURCE_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + GRL_TYPE_SOURCE, \ + GrlSourceClass)) + +typedef struct _GrlSource GrlSource; +typedef struct _GrlSourcePrivate GrlSourcePrivate; + +struct _GrlSource { + + GObject parent; + + /*< private >*/ + GrlSourcePrivate *priv; + + gpointer _grl_reserved[GRL_PADDING]; +}; + +/** + * GrlSupportedOps: + * @GRL_OP_NONE: no operation is supported + * @GRL_OP_RESOLVE: Fetch specific keys of metadata based on other metadata. + * @GRL_OP_BROWSE: Retrieve complete sets of #GrlMedia + * @GRL_OP_SEARCH: Look up for #GrlMedia given a search text + * @GRL_OP_QUERY: Look up for #GrlMedia give a service specific query + * @GRL_OP_STORE: Store content in a service + * @GRL_OP_STORE_PARENT: Store content as child of a certian parent category. + * @GRL_OP_STORE_METADATA: Update metadata of a #GrlMedia in a service. + * @GRL_OP_REMOVE: Remove content from a service. + * @GRL_OP_MEDIA_FROM_URI: Create a #GrlMedia instance from an URI + * representing a media resource. + * @GRL_OP_NOTIFY_CHANGE: Notify about changes in the #GrlSource. + * + * Bitwise flags which reflect the kind of operations that a + * #GrlSource supports. + */ +typedef enum { + GRL_OP_NONE = 0, + GRL_OP_RESOLVE = 1, + GRL_OP_BROWSE = 1 << 1, + GRL_OP_SEARCH = 1 << 2, + GRL_OP_QUERY = 1 << 3, + GRL_OP_STORE = 1 << 4, + GRL_OP_STORE_PARENT = 1 << 5, + GRL_OP_STORE_METADATA = 1 << 6, + GRL_OP_REMOVE = 1 << 7, + GRL_OP_MEDIA_FROM_URI = 1 << 8, + GRL_OP_NOTIFY_CHANGE = 1 << 9 +} GrlSupportedOps; + + /** + * GrlSupportedMedia: + * @GRL_SUPPORTED_MEDIA_NONE: no media + * @GRL_SUPPORTED_MEDIA_AUDIO: audio media + * @GRL_SUPPORTED_MEDIA_VIDEO: video media + * @GRL_SUPPORTED_MEDIA_IMAGE: image media + * @GRL_SUPPORTED_MEDIA_ALL: any media + */ +typedef enum { + GRL_SUPPORTED_MEDIA_NONE = 0, + GRL_SUPPORTED_MEDIA_AUDIO = (1 << 0), + GRL_SUPPORTED_MEDIA_VIDEO = (1 << 1), + GRL_SUPPORTED_MEDIA_IMAGE = (1 << 2), + GRL_SUPPORTED_MEDIA_ALL = (GRL_SUPPORTED_MEDIA_AUDIO | GRL_SUPPORTED_MEDIA_VIDEO | GRL_SUPPORTED_MEDIA_IMAGE) +} GrlSupportedMedia; + +/** + * GrlSourceChangeType: + * @GRL_CONTENT_CHANGED: content has changed. It is used when any property of + * #GrlMedia has changed, or in case of containers, if several children have + * been added and removed. + * @GRL_CONTENT_ADDED: new content has been added. + * @GRL_CONTENT_REMOVED: content has been removed + * + * Specifies which kind of change has happened in the plugin + */ +typedef enum { + GRL_CONTENT_CHANGED, + GRL_CONTENT_ADDED, + GRL_CONTENT_REMOVED +} GrlSourceChangeType; + +/** + * GrlSourceResolveCb: + * @source: a source + * @operation_id: operation identifier + * @media: (transfer full): a data transfer object + * @user_data: user data passed to grl_source_resolve() + * @error: (nullable): possible #GError generated at processing + * + * Prototype for the callback passed to grl_source_resolve(). If the URI did + * not resolve to a valid media record, @media will be %NULL. If there was an + * error during resolution, @error will be set. + * + * If @media is non-%NULL, ownership of it is transferred to the callback, and + * it must be freed afterwards using g_object_unref(). + */ +typedef void (*GrlSourceResolveCb) (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error); + +/** + * GrlSourceResultCb: + * @source: a source + * @operation_id: operation identifier + * @media: (nullable) (transfer full): a data transfer object + * @remaining: the number of remaining #GrlMedia to process, or + * GRL_SOURCE_REMAINING_UNKNOWN if it is unknown + * @user_data: user data passed to the used method + * @error: (nullable): possible #GError generated at processing + * + * Prototype for the callback passed to the media sources' methods + */ +typedef void (*GrlSourceResultCb) (GrlSource *source, + guint operation_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error); + +/** + * GrlSourceRemoveCb: + * @source: a source + * @media: (transfer full): a data transfer object + * @user_data: user data passed to grl_source_remove() + * @error: (nullable): possible #GError generated at processing + * + * Prototype for the callback passed to grl_source_remove() + */ +typedef void (*GrlSourceRemoveCb) (GrlSource *source, + GrlMedia *media, + gpointer user_data, + const GError *error); + +/** + * GrlSourceStoreCb: + * @source: a source + * @media: (transfer full): a #GrlMedia transfer object + * @failed_keys: (element-type GrlKeyID) (transfer none): #GList of + * keys that could not be updated, if any + * @user_data: user data + * @error: (nullable): possible #GError generated + * + * Prototype for the callback passed to grl_source_store_foo functions + */ +typedef void (*GrlSourceStoreCb) (GrlSource *source, + GrlMedia *media, + GList *failed_keys, + gpointer user_data, + const GError *error); + +/** + * GrlSourceResolveSpec: + * @source: a source + * @operation_id: operation identifier + * @media: a data transfer object + * @keys: the #GList of #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * resolve vmethod. + */ +typedef struct { + GrlSource *source; + guint operation_id; + GrlMedia *media; + GList *keys; + GrlOperationOptions *options; + GrlSourceResolveCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceResolveSpec; + +/** + * GrlSourceMediaFromUriSpec: + * @source: a source + * @operation_id: operation identifier + * @uri: A URI that can be used to identify a media resource + * @keys: Metadata keys to resolve + * @options: options wanted for that operation + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * media_from_uri vmethod. + */ +typedef struct { + GrlSource *source; + guint operation_id; + gchar *uri; + GList *keys; + GrlOperationOptions *options; + GrlSourceResolveCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceMediaFromUriSpec; + +/** + * GrlSourceBrowseSpec: + * @source: a source + * @operation_id: operation identifier + * @container: a container of data transfer objects + * @keys: the #GList of #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * browse vmethod. + */ +typedef struct { + GrlSource *source; + guint operation_id; + GrlMedia *container; + GList *keys; + GrlOperationOptions *options; + GrlSourceResultCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceBrowseSpec; + +/** + * GrlSourceSearchSpec: + * @source: a source + * @operation_id: operation identifier + * @text: the text to search + * @keys: the #GList of #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * search vmethod. + */ +typedef struct { + GrlSource *source; + guint operation_id; + gchar *text; + GList *keys; + GrlOperationOptions *options; + GrlSourceResultCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceSearchSpec; + +/** + * GrlSourceQuerySpec: + * @source: a source + * @operation_id: operation identifier + * @query: the query to process + * @keys: the #GList of #GrlKeyIDs to request + * @options: options wanted for that operation + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * query vmethod. + */ +typedef struct { + GrlSource *source; + guint operation_id; + gchar *query; + GList *keys; + GrlOperationOptions *options; + GrlSourceResultCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceQuerySpec; + +/** + * GrlSourceRemoveSpec: + * @source: a source + * @media_id: media identifier to remove + * @media: a data transfer object + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * store vmethod. + */ +typedef struct { + GrlSource *source; + gchar *media_id; + GrlMedia *media; + GrlSourceRemoveCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceRemoveSpec; + +/** + * GrlSourceStoreSpec: + * @source: a media source + * @parent: a parent to store the data transfer objects + * @media: a data transfer object + * @callback: the user defined callback + * @user_data: the user data to pass in the callback + * + * Data transport structure used internally by the plugins which support + * store vmethod. + */ +typedef struct { + GrlSource *source; + GrlMedia *parent; + GrlMedia *media; + GrlSourceStoreCb callback; + gpointer user_data; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceStoreSpec; + +/** + * GrlSourceStoreMetadataSpec: + * @source: a source + * @media: a #GrlMedia transfer object + * @keys: List of keys to be stored/updated. + * @flags: Flags to control specific bahviors of the set metadata operation. + * @callback: the callback passed to grl_source_store_metadata() + * @user_data: user data passed to grl_source_store_metadata() + * @failed_keys: for internal use of the framework only. + * + * Data transport structure used internally by the plugins which support + * store_metadata vmethod. + */ +typedef struct { + GrlSource *source; + GrlMedia *media; + GList *keys; + GrlWriteFlags flags; + GrlSourceStoreCb callback; + gpointer user_data; + GList *failed_keys; + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +} GrlSourceStoreMetadataSpec; + +/* GrlSource class */ + +typedef struct _GrlSourceClass GrlSourceClass; + +/** + * GrlSourceClass: + * @parent_class: the parent class structure + * @supported_operations: the operations that can be called + * @supported_keys: the list of keys that can be handled + * @slow_keys: the list of slow keys that can be fetched + * @writable_keys: the list of keys which value can be written + * @get_caps: the capabilities that @source supports for @operation + * @resolve: resolve the metadata of a given transfer object + * @may_resolve: return FALSE if it can be known without blocking that @key_id + * @test_media_from_uri: tests if this source can create #GrlMedia + * instances from a given URI. + * @media_from_uri: Creates a #GrlMedia instance representing the media + * exposed by a certain URI. + * @browse: browse through a list of media + * @search: search for media + * @query: query for a specific media + * @remove: remove a media from a container + * @store: store a media in a container + * @store_metadata: update metadata values for a given object in a + * permanent fashion + * @cancel: cancel the current operation + * @notify_change_start: start emitting signals about changes in content + * @notify_change_stop: stop emitting signals about changes in content + * + * Grilo Source class. Override the vmethods to implement the + * element functionality. + */ +struct _GrlSourceClass { + + GObjectClass parent_class; + + GrlSupportedOps (*supported_operations) (GrlSource *source); + + const GList * (*supported_keys) (GrlSource *source); + + const GList * (*slow_keys) (GrlSource *source); + + const GList * (*writable_keys) (GrlSource *source); + + GrlCaps * (*get_caps) (GrlSource *source, GrlSupportedOps operation); + + void (*resolve) (GrlSource *source, GrlSourceResolveSpec *ms); + + gboolean (*may_resolve) (GrlSource *source, GrlMedia *media, + GrlKeyID key_id, GList **missing_keys); + + gboolean (*test_media_from_uri) (GrlSource *source, + const gchar *uri); + + void (*media_from_uri) (GrlSource *source, + GrlSourceMediaFromUriSpec *mfus); + + void (*browse) (GrlSource *source, GrlSourceBrowseSpec *bs); + + void (*search) (GrlSource *source, GrlSourceSearchSpec *ss); + + void (*query) (GrlSource *source, GrlSourceQuerySpec *qs); + + void (*remove) (GrlSource *source, GrlSourceRemoveSpec *rs); + + void (*store) (GrlSource *source, GrlSourceStoreSpec *ss); + + void (*store_metadata) (GrlSource *source, GrlSourceStoreMetadataSpec *sms); + + void (*cancel) (GrlSource *source, guint operation_id); + + gboolean (*notify_change_start) (GrlSource *source, + GError **error); + + gboolean (*notify_change_stop) (GrlSource *source, + GError **error); + + /*< private >*/ + gpointer _grl_reserved[GRL_PADDING]; +}; + +G_BEGIN_DECLS + +GType grl_source_get_type (void); + +GrlSupportedOps grl_source_supported_operations (GrlSource *source); + +const GList *grl_source_supported_keys (GrlSource *source); + +const GList *grl_source_slow_keys (GrlSource *source); + +const GList *grl_source_writable_keys (GrlSource *source); + +GrlCaps *grl_source_get_caps (GrlSource *source, + GrlSupportedOps operation); + +void grl_source_set_auto_split_threshold (GrlSource *source, + guint threshold); + +guint grl_source_get_auto_split_threshold (GrlSource *source); + + +guint grl_source_resolve (GrlSource *source, + GrlMedia *media, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResolveCb callback, + gpointer user_data); + +GrlMedia *grl_source_resolve_sync (GrlSource *source, + GrlMedia *media, + const GList *keys, + GrlOperationOptions *options, + GError **error); + +gboolean grl_source_may_resolve (GrlSource *source, + GrlMedia *media, + GrlKeyID key_id, + GList **missing_keys); + +gboolean grl_source_test_media_from_uri (GrlSource *source, + const gchar *uri); + +guint grl_source_get_media_from_uri (GrlSource *source, + const gchar *uri, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResolveCb callback, + gpointer user_data); + +GrlMedia *grl_source_get_media_from_uri_sync (GrlSource *source, + const gchar *uri, + const GList *keys, + GrlOperationOptions *options, + GError **error); + +guint grl_source_browse (GrlSource *source, + GrlMedia *container, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data); + +GList *grl_source_browse_sync (GrlSource *source, + GrlMedia *container, + const GList *keys, + GrlOperationOptions *options, + GError **error); + +guint grl_source_search (GrlSource *source, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data); + +GList *grl_source_search_sync (GrlSource *source, + const gchar *text, + const GList *keys, + GrlOperationOptions *options, + GError **error); + +guint grl_source_query (GrlSource *source, + const gchar *query, + const GList *keys, + GrlOperationOptions *options, + GrlSourceResultCb callback, + gpointer user_data); + +GList *grl_source_query_sync (GrlSource *source, + const gchar *query, + const GList *keys, + GrlOperationOptions *options, + GError **error); + +void grl_source_remove (GrlSource *source, + GrlMedia *media, + GrlSourceRemoveCb callback, + gpointer user_data); + +void grl_source_remove_sync (GrlSource *source, + GrlMedia *media, + GError **error); + +void grl_source_store (GrlSource *source, + GrlMedia *parent, + GrlMedia *media, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data); + +void grl_source_store_sync (GrlSource *source, + GrlMedia *parent, + GrlMedia *media, + GrlWriteFlags flags, + GError **error); + +void grl_source_store_metadata (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GrlSourceStoreCb callback, + gpointer user_data); + +GList *grl_source_store_metadata_sync (GrlSource *source, + GrlMedia *media, + GList *keys, + GrlWriteFlags flags, + GError **error); + +gboolean grl_source_notify_change_start (GrlSource *source, + GError **error); + +gboolean grl_source_notify_change_stop (GrlSource *source, + GError **error); + +void grl_source_notify_change_list (GrlSource *source, + GPtrArray *changed_medias, + GrlSourceChangeType change_type, + gboolean location_unknown); + +void grl_source_notify_change (GrlSource *source, + GrlMedia *media, + GrlSourceChangeType change_type, + gboolean location_unknown); + +const gchar *grl_source_get_id (GrlSource *source); + +const gchar *grl_source_get_name (GrlSource *source); + +GIcon *grl_source_get_icon (GrlSource *source); + +const gchar *grl_source_get_description (GrlSource *source); + +GrlPlugin *grl_source_get_plugin (GrlSource *source); + +gint grl_source_get_rank (GrlSource *source); + +GrlSupportedMedia grl_source_get_supported_media (GrlSource *source); + +const char ** grl_source_get_tags (GrlSource *source); + +G_END_DECLS + +#endif /* _GRL_SOURCE_H_ */ diff --git a/src/grl-sync-priv.h b/src/grl-sync-priv.h new file mode 100644 index 0000000..cf6b1cc --- /dev/null +++ b/src/grl-sync-priv.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2010 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef _GRL_SYNC_PRIV_H_ +#define _GRL_SYNC_PRIV_H_ + +#include + +typedef struct { + gboolean complete; + gpointer data; + GError *error; +} GrlDataSync; + +void +grl_wait_for_async_operation_complete (GrlDataSync *ds); + +#endif /* _GRL_SYNC_PRIV_H_ */ diff --git a/src/grl-sync.c b/src/grl-sync.c new file mode 100644 index 0000000..20cdc0c --- /dev/null +++ b/src/grl-sync.c @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2010 Igalia S.L. + * Copyright (C) 2011 Intel Corporation. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include "grl-sync-priv.h" + +void +grl_wait_for_async_operation_complete (GrlDataSync *ds) +{ + GMainLoop *ml; + GMainContext *mc; + + ml = g_main_loop_new (g_main_context_get_thread_default (), TRUE); + mc = g_main_loop_get_context (ml); + + while (!ds->complete) { + g_main_context_iteration (mc, TRUE); + } + + g_main_loop_unref (ml); +} + diff --git a/src/grl-type-builtins.c b/src/grl-type-builtins.c new file mode 100644 index 0000000..f024cd5 --- /dev/null +++ b/src/grl-type-builtins.c @@ -0,0 +1,152 @@ + +/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ + +#include +/* enumerations from "./data/grl-media.h" */ +#include "./data/grl-media.h" +GType +grl_media_serialize_type_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GEnumValue values[] = { + { GRL_MEDIA_SERIALIZE_BASIC, "GRL_MEDIA_SERIALIZE_BASIC", "basic" }, + { GRL_MEDIA_SERIALIZE_PARTIAL, "GRL_MEDIA_SERIALIZE_PARTIAL", "partial" }, + { GRL_MEDIA_SERIALIZE_FULL, "GRL_MEDIA_SERIALIZE_FULL", "full" }, + { 0, NULL, NULL } + }; + etype = g_enum_register_static (g_intern_static_string ("GrlMediaSerializeType"), values); + } + return etype; +} +/* enumerations from "./grl-caps.h" */ +#include "./grl-caps.h" +GType +grl_type_filter_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GFlagsValue values[] = { + { GRL_TYPE_FILTER_NONE, "GRL_TYPE_FILTER_NONE", "none" }, + { GRL_TYPE_FILTER_AUDIO, "GRL_TYPE_FILTER_AUDIO", "audio" }, + { GRL_TYPE_FILTER_VIDEO, "GRL_TYPE_FILTER_VIDEO", "video" }, + { GRL_TYPE_FILTER_IMAGE, "GRL_TYPE_FILTER_IMAGE", "image" }, + { GRL_TYPE_FILTER_ALL, "GRL_TYPE_FILTER_ALL", "all" }, + { 0, NULL, NULL } + }; + etype = g_flags_register_static (g_intern_static_string ("GrlTypeFilter"), values); + } + return etype; +} +/* enumerations from "./grl-metadata-key.h" */ +#include "./grl-metadata-key.h" +GType +grl_media_type_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GEnumValue values[] = { + { GRL_MEDIA_TYPE_UNKNOWN, "GRL_MEDIA_TYPE_UNKNOWN", "unknown" }, + { GRL_MEDIA_TYPE_AUDIO, "GRL_MEDIA_TYPE_AUDIO", "audio" }, + { GRL_MEDIA_TYPE_VIDEO, "GRL_MEDIA_TYPE_VIDEO", "video" }, + { GRL_MEDIA_TYPE_IMAGE, "GRL_MEDIA_TYPE_IMAGE", "image" }, + { GRL_MEDIA_TYPE_CONTAINER, "GRL_MEDIA_TYPE_CONTAINER", "container" }, + { 0, NULL, NULL } + }; + etype = g_enum_register_static (g_intern_static_string ("GrlMediaType"), values); + } + return etype; +} +/* enumerations from "./grl-operation-options.h" */ +#include "./grl-operation-options.h" +GType +grl_resolution_flags_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GFlagsValue values[] = { + { GRL_RESOLVE_NORMAL, "GRL_RESOLVE_NORMAL", "normal" }, + { GRL_RESOLVE_FULL, "GRL_RESOLVE_FULL", "full" }, + { GRL_RESOLVE_IDLE_RELAY, "GRL_RESOLVE_IDLE_RELAY", "idle-relay" }, + { GRL_RESOLVE_FAST_ONLY, "GRL_RESOLVE_FAST_ONLY", "fast-only" }, + { 0, NULL, NULL } + }; + etype = g_flags_register_static (g_intern_static_string ("GrlResolutionFlags"), values); + } + return etype; +} +GType +grl_write_flags_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GFlagsValue values[] = { + { GRL_WRITE_NORMAL, "GRL_WRITE_NORMAL", "normal" }, + { GRL_WRITE_FULL, "GRL_WRITE_FULL", "full" }, + { 0, NULL, NULL } + }; + etype = g_flags_register_static (g_intern_static_string ("GrlWriteFlags"), values); + } + return etype; +} +/* enumerations from "./grl-source.h" */ +#include "./grl-source.h" +GType +grl_supported_ops_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GFlagsValue values[] = { + { GRL_OP_NONE, "GRL_OP_NONE", "none" }, + { GRL_OP_RESOLVE, "GRL_OP_RESOLVE", "resolve" }, + { GRL_OP_BROWSE, "GRL_OP_BROWSE", "browse" }, + { GRL_OP_SEARCH, "GRL_OP_SEARCH", "search" }, + { GRL_OP_QUERY, "GRL_OP_QUERY", "query" }, + { GRL_OP_STORE, "GRL_OP_STORE", "store" }, + { GRL_OP_STORE_PARENT, "GRL_OP_STORE_PARENT", "store-parent" }, + { GRL_OP_STORE_METADATA, "GRL_OP_STORE_METADATA", "store-metadata" }, + { GRL_OP_REMOVE, "GRL_OP_REMOVE", "remove" }, + { GRL_OP_MEDIA_FROM_URI, "GRL_OP_MEDIA_FROM_URI", "media-from-uri" }, + { GRL_OP_NOTIFY_CHANGE, "GRL_OP_NOTIFY_CHANGE", "notify-change" }, + { 0, NULL, NULL } + }; + etype = g_flags_register_static (g_intern_static_string ("GrlSupportedOps"), values); + } + return etype; +} +GType +grl_supported_media_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GFlagsValue values[] = { + { GRL_SUPPORTED_MEDIA_NONE, "GRL_SUPPORTED_MEDIA_NONE", "none" }, + { GRL_SUPPORTED_MEDIA_AUDIO, "GRL_SUPPORTED_MEDIA_AUDIO", "audio" }, + { GRL_SUPPORTED_MEDIA_VIDEO, "GRL_SUPPORTED_MEDIA_VIDEO", "video" }, + { GRL_SUPPORTED_MEDIA_IMAGE, "GRL_SUPPORTED_MEDIA_IMAGE", "image" }, + { GRL_SUPPORTED_MEDIA_ALL, "GRL_SUPPORTED_MEDIA_ALL", "all" }, + { 0, NULL, NULL } + }; + etype = g_flags_register_static (g_intern_static_string ("GrlSupportedMedia"), values); + } + return etype; +} +GType +grl_source_change_type_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const GEnumValue values[] = { + { GRL_CONTENT_CHANGED, "GRL_CONTENT_CHANGED", "changed" }, + { GRL_CONTENT_ADDED, "GRL_CONTENT_ADDED", "added" }, + { GRL_CONTENT_REMOVED, "GRL_CONTENT_REMOVED", "removed" }, + { 0, NULL, NULL } + }; + etype = g_enum_register_static (g_intern_static_string ("GrlSourceChangeType"), values); + } + return etype; +} + + +/* Generated data ends here */ + diff --git a/src/grl-type-builtins.c.template b/src/grl-type-builtins.c.template new file mode 100644 index 0000000..1189a4c --- /dev/null +++ b/src/grl-type-builtins.c.template @@ -0,0 +1,35 @@ +/*** BEGIN file-header ***/ +#include +/*** END file-header ***/ + +/*** BEGIN file-production ***/ +/* enumerations from "@filename@" */ +#include "@filename@" +/*** END file-production ***/ + +/*** BEGIN value-header ***/ +GType +@enum_name@_get_type (void) +{ + static GType etype = 0; + if (G_UNLIKELY(etype == 0)) { + static const G@Type@Value values[] = { +/*** END value-header ***/ + +/*** BEGIN value-production ***/ + { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, +/*** END value-production ***/ + +/*** BEGIN value-tail ***/ + { 0, NULL, NULL } + }; + etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); + } + return etype; +} + +/*** END value-tail ***/ + +/*** BEGIN file-tail ***/ + +/*** END file-tail ***/ diff --git a/src/grl-type-builtins.h b/src/grl-type-builtins.h new file mode 100644 index 0000000..b18e130 --- /dev/null +++ b/src/grl-type-builtins.h @@ -0,0 +1,41 @@ + +/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ + +#ifndef _GRL_TYPE_BUILTINS_H_ +#define _GRL_TYPE_BUILTINS_H_ + +#include + +G_BEGIN_DECLS + +/* enumerations from "./data/grl-media.h" */ +GType grl_media_serialize_type_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_MEDIA_SERIALIZE_TYPE (grl_media_serialize_type_get_type()) + +/* enumerations from "./grl-caps.h" */ +GType grl_type_filter_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_TYPE_FILTER (grl_type_filter_get_type()) + +/* enumerations from "./grl-metadata-key.h" */ +GType grl_media_type_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_MEDIA_TYPE (grl_media_type_get_type()) + +/* enumerations from "./grl-operation-options.h" */ +GType grl_resolution_flags_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_RESOLUTION_FLAGS (grl_resolution_flags_get_type()) +GType grl_write_flags_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_WRITE_FLAGS (grl_write_flags_get_type()) + +/* enumerations from "./grl-source.h" */ +GType grl_supported_ops_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_SUPPORTED_OPS (grl_supported_ops_get_type()) +GType grl_supported_media_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_SUPPORTED_MEDIA (grl_supported_media_get_type()) +GType grl_source_change_type_get_type (void) G_GNUC_CONST; +#define GRL_TYPE_SOURCE_CHANGE_TYPE (grl_source_change_type_get_type()) +G_END_DECLS + +#endif /* _GRL_TYPE_BUILTINS_H_ */ + +/* Generated data ends here */ + diff --git a/src/grl-type-builtins.h.template b/src/grl-type-builtins.h.template new file mode 100644 index 0000000..6714f84 --- /dev/null +++ b/src/grl-type-builtins.h.template @@ -0,0 +1,24 @@ +/*** BEGIN file-header ***/ +#ifndef _GRL_TYPE_BUILTINS_H_ +#define _GRL_TYPE_BUILTINS_H_ + +#include + +G_BEGIN_DECLS +/*** END file-header ***/ + +/*** BEGIN file-production ***/ + +/* enumerations from "@filename@" */ +/*** END file-production ***/ + +/*** BEGIN value-header ***/ +GType @enum_name@_get_type (void) G_GNUC_CONST; +#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) +/*** END value-header ***/ + +/*** BEGIN file-tail ***/ +G_END_DECLS + +#endif /* _GRL_TYPE_BUILTINS_H_ */ +/*** END file-tail ***/ diff --git a/src/grl-util.c b/src/grl-util.c new file mode 100644 index 0000000..27afbc8 --- /dev/null +++ b/src/grl-util.c @@ -0,0 +1,186 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/** + * SECTION:grl-util + * @short_description: utility functions + */ + +#include "grl-util.h" + +#include + +/** + * grl_paging_translate: + * @skip: number of elements to skip + * @count: number of elements to retrieve + * @max_page_size: maximum value for page size (0 for unlimited size) + * @page_size: optimal page size + * @page_number: page which contain the first element to retrieve (starting at 1) + * @internal_offset: in the @page_number, offset where first element can be found (starting at 0) + * + * Grilo browsing implements a paging mechanism through @skip and @count values. + * + * But there are some services (like Jamendo or Flickr) where paging is done + * through a page number and page size: user request all elements in a page, + * specifying in most cases what is the page size. + * + * This function is a helper for this task, computing from @skip and @count what + * is the optimal value of page size (limited by @max_page_size), which page + * should the user request, and where requested data start inside the page. + * + * By optimal we mean that it computes those values so only one page is required + * to satisfy the data, using the smallest page size. If user is limiting page + * size, then more requests to services might be needed. But still page size + * will be an optimal value. + * + * If @page_size is @NULL, then page size will be @max_page_size. If the later + * is also 0, then page size will be #G_MAXUINT. + * + * Since: 0.1.6 + **/ +void grl_paging_translate (guint skip, + guint count, + guint max_page_size, + guint *page_size, + guint *page_number, + guint *internal_offset) +{ + gulong _page_size; + gulong last_element; + + if (!page_size) { + if (max_page_size > 0) { + _page_size = max_page_size; + } else { + _page_size = G_MAXUINT; + } + } else { + if (skip < count) { + _page_size = skip + count; + if (max_page_size > 0) { + _page_size = CLAMP (_page_size, 0, max_page_size); + } + } else { + _page_size = count; + last_element = skip + count - 1; + while (skip/_page_size != last_element/_page_size && + (max_page_size == 0 || _page_size < max_page_size)) { + _page_size++; + } + } + _page_size = CLAMP (_page_size, 0, G_MAXUINT); + } + + if (page_size) { + *page_size = _page_size; + } + + if (page_number) { + *page_number = skip/_page_size + 1; + } + + if (internal_offset) { + *internal_offset = skip%_page_size; + } +} + +/** + * grl_list_from_va: (skip) + * @p: first pointer + * @...: va_list pointers + * + * Returns a #GList containing the va_list pointers. Use @NULL to finalize them, + * + * Returns: a #GList. + * + * Since: 0.1.6 + **/ +GList * +grl_list_from_va (gpointer p, ...) +{ + GList *pointer_list = NULL; + gpointer next_pointer; + va_list va_pointers; + + va_start (va_pointers, p); + next_pointer = p; + while (next_pointer) { + pointer_list = g_list_prepend (pointer_list, next_pointer); + next_pointer = va_arg (va_pointers, gpointer); + } + va_end (va_pointers); + + return g_list_reverse (pointer_list); +} + +/** + * grl_date_time_from_iso8601: + * @date: a date expressed in iso8601 format + * + * Returns: a newly-allocated #GDateTime set to the time corresponding to + * @date, or %NULL if @date could not be parsed properly. + * + * Since: 0.2.0 + */ +GDateTime * +grl_date_time_from_iso8601 (const gchar *date) +{ + GTimeVal t = { 0, }; + gboolean ret; + gchar *date_time; + gint date_length; + + if (!date) { + return NULL; + } + + ret = g_time_val_from_iso8601 (date, &t); + + /* second condition works around + * https://bugzilla.gnome.org/show_bug.cgi?id=650968 */ + if (!ret || (t.tv_sec == 0 && t.tv_usec == 0)) { + /* We might be in the case where there is a date alone. In that case, we + * take the convention of setting it to noon GMT */ + + /* Date can could be YYYY, YYYY-MM, YYYY-MM-DD or YYYYMMDD */ + date_length = strlen (date); + switch (date_length) { + case 4: + date_time = g_strdup_printf ("%s-01-01T12:00:00Z", date); + break; + case 7: + date_time = g_strdup_printf ("%s-01T12:00:00Z", date); + break; + default: + date_time = g_strdup_printf ("%sT12:00:00Z", date); + } + ret = g_time_val_from_iso8601 (date_time, &t); + g_free (date_time); + } + + if (ret) + return g_date_time_new_from_timeval_utc (&t); + + return NULL; +} + diff --git a/src/grl-util.h b/src/grl-util.h new file mode 100644 index 0000000..f2864b7 --- /dev/null +++ b/src/grl-util.h @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2010, 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef _GRL_UTIL_H_ +#define _GRL_UTIL_H_ + +#include + +G_BEGIN_DECLS + +void grl_paging_translate (guint skip, + guint count, + guint max_page_size, + guint *page_size, + guint *page_number, + guint *internal_offset); + +GList *grl_list_from_va (gpointer p, ...) G_GNUC_NULL_TERMINATED; + +GDateTime * grl_date_time_from_iso8601 (const gchar *date); + +G_END_DECLS + +#endif /* _GRL_UTIL_H_ */ diff --git a/src/grl-value-helper.c b/src/grl-value-helper.c new file mode 100644 index 0000000..35479b1 --- /dev/null +++ b/src/grl-value-helper.c @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/* + * This module provides helper functions to use GValues easily. Inspired by + * libsoup's soup-value-utils: + * http://git.gnome.org/browse/libsoup/tree/libsoup/soup-value-utils.c + * + */ + +#include + + +GValue * +grl_g_value_new (GType g_type) +{ + GValue *value; + + value = g_slice_new0 (GValue); + g_value_init (value, g_type); + + return value; +} + +void +grl_g_value_free (GValue *value) +{ + g_value_unset (value); + g_slice_free (GValue, value); +} + +/** + * grl_g_value_hashtable_new: + * + * Returns: (element-type utf8 GValue) (transfer full): a new hash table made to contain GValues. + */ +GHashTable * +grl_g_value_hashtable_new (void) +{ + return g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)grl_g_value_free); +} + +/** + * grl_g_value_hashtable_new_direct: + * + * Returns: (element-type gpointer GValue) (transfer full): a new hash table made to contain GValues. + */ +GHashTable * +grl_g_value_hashtable_new_direct (void) +{ + return g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)grl_g_value_free); +} + +/** + * grl_g_value_dup: + * @value: the #GValue to copy + * + * Returns: (transfer full): a duplicated #GValue + */ +GValue * +grl_g_value_dup (const GValue *value) +{ + GValue *new_value = grl_g_value_new (G_VALUE_TYPE (value)); + g_value_copy (value, new_value); + + return new_value; +} diff --git a/src/grl-value-helper.h b/src/grl-value-helper.h new file mode 100644 index 0000000..bda9069 --- /dev/null +++ b/src/grl-value-helper.h @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2011 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION) +#error "Only can be included directly." +#endif + +#if !defined (_GRL_VALUE_HELPER_H_) +#define _GRL_VALUE_HELPER_H_ + +#include + +G_BEGIN_DECLS + +GValue *grl_g_value_new (GType g_type); + +void grl_g_value_free (GValue *value); + +GHashTable *grl_g_value_hashtable_new (void); + +GHashTable *grl_g_value_hashtable_new_direct (void); + +GValue *grl_g_value_dup (const GValue *value); + +G_END_DECLS + +#endif /* _GRL_VALUE_HELPER_H_ */ diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..36c34b3 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,124 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +grl_marshal = gnome.genmarshal('grl-marshal', + sources: 'grl-marshal.list', + prefix: 'grl_marshal') + +grl_type_builtins = gnome.mkenums('grl-type-builtins', + sources: [ + 'data/grl-media.h', + 'grl-caps.h', + 'grl-metadata-key.h', + 'grl-operation-options.h', + 'grl-source.h', + ], + c_template: 'grl-type-builtins.c.template', + h_template: 'grl-type-builtins.h.template') + +grl_sources = [ + 'data/grl-config.c', + 'data/grl-data.c', + 'data/grl-media.c', + 'data/grl-related-keys.c', + 'grilo.c', + 'grl-caps.c', + 'grl-log.c', + 'grl-metadata-key.c', + 'grl-multiple.c', + 'grl-operation-options.c', + 'grl-operation.c', + 'grl-plugin.c', + 'grl-range-value.c', + 'grl-registry.c', + 'grl-source.c', + 'grl-sync.c', + 'grl-util.c', + 'grl-value-helper.c', +] + +grl_headers = [ + 'data/grl-config.h', + 'data/grl-data.h', + 'data/grl-media.h', + 'data/grl-related-keys.h', + 'grilo.h', + 'grl-caps.h', + 'grl-definitions.h', + 'grl-error.h', + 'grl-log.h', + 'grl-metadata-key.h', + 'grl-multiple.h', + 'grl-operation-options.h', + 'grl-operation.h', + 'grl-plugin.h', + 'grl-range-value.h', + 'grl-registry.h', + 'grl-source.h', + 'grl-util.h', + 'grl-value-helper.h', +] + +grl_priv_headers = [ + 'grl-metadata-key-priv.h', + 'grl-operation-options-priv.h', + 'grl-operation-priv.h', + 'grl-plugin-priv.h', + 'grl-registry-priv.h', + 'grl-sync-priv.h', +] + +configure_file(output: 'config.h', + configuration: cdata) + +install_headers(grl_headers, + subdir: grl_name) + +libgrl_inc = include_directories([ + '.', + 'data', +]) + +c_args = [ + '-DGRILO_COMPILATION', + '-DG_LOG_DOMAIN="Grilo"', + '-DHAVE_CONFIG_H', +] + +libgrl = shared_library(grl_name, + sources: grl_sources + grl_marshal + grl_type_builtins + grl_priv_headers, + install: true, + soversion: soversion, + version: grilo_lt_version, + dependencies: [glib_dep, gobject_dep, gmodule_dep, gio_dep, libxml_dep], + c_args: c_args, + link_args: '-Wl,--no-undefined', + include_directories: libgrl_inc) + +libgrl_dep = declare_dependency(link_with: libgrl, + include_directories: libgrl_inc, + dependencies: [glib_dep, gobject_dep, gmodule_dep, gio_dep, libxml_dep]) + +if enable_gir + gir_extra_args = [ + '--c-include=grilo.h', + '--cflags-begin', + ] + c_args + [ + '--cflags-end', + ] + + grl_gir = gnome.generate_gir(libgrl, + sources: grl_headers + grl_sources + grl_type_builtins, + namespace: 'Grl', + nsversion: grl_majorminor, + identifier_prefix: 'Grl', + symbol_prefix: 'grl', + dependencies: [ gobject_dep, gmodule_dep, gio_dep ], + includes: [ 'GObject-2.0', 'GModule-2.0', 'Gio-2.0' ], + install: true, + extra_args: gir_extra_args) +endif diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..4df8cbc --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,81 @@ +SUBDIRS = . + +if HAVE_INTROSPECTION +SUBDIRS += python +endif + +# things to test + +noinst_PROGRAMS = $(TEST_PROGS) + +AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/data $(DEPS_CFLAGS) +progs_ldadd = $(top_builddir)/src/lib@GRL_NAME@.la $(DEPS_LIBS) + +if BUILD_GRILO_NET +AM_CFLAGS += -I$(top_srcdir)/libs $(NET_CFLAGS) +progs_ldadd += $(top_builddir)/libs/net/libgrlnet-@GRL_MAJORMINOR@.la $(NET_LIBS) +endif + +TEST_PROGS = registry +registry_SOURCES = registry.c +registry_LDADD = $(progs_ldadd) + +TEST_PROGS += autoptr +autoptr_SOURCES = autoptr.c +autoptr_LDADD = $(progs_ldadd) + +if BUILD_GRILO_NET +TEST_PROGS += lib-net +lib_net_SOURCES = lib-net.c +lib_net_LDADD = $(progs_ldadd) +endif + +### testing rules (from glib) + +GTESTER = gtester + +# test: run all tests in cwd and subdirs +test: ${TEST_PROGS} + @test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS} + +# test-report: run tests in subdirs and generate report +# perf-report: run tests in subdirs with -m perf and generate report +# full-report: like test-report: with -m perf and -m slow +test-report perf-report full-report: ${TEST_PROGS} + @test -z "${TEST_PROGS}" || { \ + case $@ in \ + test-report) test_options="-k";; \ + perf-report) test_options="-k -m=perf";; \ + full-report) test_options="-k -m=perf -m=slow";; \ + esac ; \ + if test -z "$$GTESTER_LOGDIR" ; then \ + ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \ + elif test -n "${TEST_PROGS}" ; then \ + ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \ + fi ; \ + } + @ ignore_logdir=true ; \ + if test -z "$$GTESTER_LOGDIR" ; then \ + GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \ + ignore_logdir=false ; \ + fi ; \ + for subdir in $(SUBDIRS) . ; do \ + test "$$subdir" = "." -o "$$subdir" = "po" || \ + ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ + done ; \ + $$ignore_logdir || { \ + echo '' > $@.xml ; \ + echo '' >> $@.xml ; \ + for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \ + sed '1,1s/^?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \ + done ; \ + echo >> $@.xml ; \ + echo '' >> $@.xml ; \ + rm -rf "$$GTESTER_LOGDIR"/ ; \ + ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \ + } +.PHONY: test test-report perf-report full-report +# run make test as part of make check +check-local: test + +-include $(top_srcdir)/git.mk diff --git a/tests/Makefile.in b/tests/Makefile.in new file mode 100644 index 0000000..fa65532 --- /dev/null +++ b/tests/Makefile.in @@ -0,0 +1,850 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@HAVE_INTROSPECTION_TRUE@am__append_1 = python +noinst_PROGRAMS = $(am__EXEEXT_2) +@BUILD_GRILO_NET_TRUE@am__append_2 = -I$(top_srcdir)/libs $(NET_CFLAGS) +@BUILD_GRILO_NET_TRUE@am__append_3 = $(top_builddir)/libs/net/libgrlnet-@GRL_MAJORMINOR@.la $(NET_LIBS) +@BUILD_GRILO_NET_TRUE@am__append_4 = lib-net +subdir = tests +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +@BUILD_GRILO_NET_TRUE@am__EXEEXT_1 = lib-net$(EXEEXT) +am__EXEEXT_2 = registry$(EXEEXT) autoptr$(EXEEXT) $(am__EXEEXT_1) +PROGRAMS = $(noinst_PROGRAMS) +am_autoptr_OBJECTS = autoptr.$(OBJEXT) +autoptr_OBJECTS = $(am_autoptr_OBJECTS) +am__DEPENDENCIES_1 = +@BUILD_GRILO_NET_TRUE@am__DEPENDENCIES_2 = $(top_builddir)/libs/net/libgrlnet-@GRL_MAJORMINOR@.la \ +@BUILD_GRILO_NET_TRUE@ $(am__DEPENDENCIES_1) +am__DEPENDENCIES_3 = $(top_builddir)/src/lib@GRL_NAME@.la \ + $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) +autoptr_DEPENDENCIES = $(am__DEPENDENCIES_3) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +am__lib_net_SOURCES_DIST = lib-net.c +@BUILD_GRILO_NET_TRUE@am_lib_net_OBJECTS = lib-net.$(OBJEXT) +lib_net_OBJECTS = $(am_lib_net_OBJECTS) +@BUILD_GRILO_NET_TRUE@lib_net_DEPENDENCIES = $(am__DEPENDENCIES_3) +am_registry_OBJECTS = registry.$(OBJEXT) +registry_OBJECTS = $(am_registry_OBJECTS) +registry_DEPENDENCIES = $(am__DEPENDENCIES_3) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(autoptr_SOURCES) $(lib_net_SOURCES) $(registry_SOURCES) +DIST_SOURCES = $(autoptr_SOURCES) $(am__lib_net_SOURCES_DIST) \ + $(registry_SOURCES) +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = . python +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = . $(am__append_1) +AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/data \ + $(DEPS_CFLAGS) $(am__append_2) +progs_ldadd = $(top_builddir)/src/lib@GRL_NAME@.la $(DEPS_LIBS) \ + $(am__append_3) +TEST_PROGS = registry autoptr $(am__append_4) +registry_SOURCES = registry.c +registry_LDADD = $(progs_ldadd) +autoptr_SOURCES = autoptr.c +autoptr_LDADD = $(progs_ldadd) +@BUILD_GRILO_NET_TRUE@lib_net_SOURCES = lib-net.c +@BUILD_GRILO_NET_TRUE@lib_net_LDADD = $(progs_ldadd) + +### testing rules (from glib) +GTESTER = gtester +all: all-recursive + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign tests/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +autoptr$(EXEEXT): $(autoptr_OBJECTS) $(autoptr_DEPENDENCIES) $(EXTRA_autoptr_DEPENDENCIES) + @rm -f autoptr$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(autoptr_OBJECTS) $(autoptr_LDADD) $(LIBS) + +lib-net$(EXEEXT): $(lib_net_OBJECTS) $(lib_net_DEPENDENCIES) $(EXTRA_lib_net_DEPENDENCIES) + @rm -f lib-net$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(lib_net_OBJECTS) $(lib_net_LDADD) $(LIBS) + +registry$(EXEEXT): $(registry_OBJECTS) $(registry_DEPENDENCIES) $(EXTRA_registry_DEPENDENCIES) + @rm -f registry$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(registry_OBJECTS) $(registry_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/autoptr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-net.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/registry.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-recursive +all-am: Makefile $(PROGRAMS) +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ + mostlyclean-am + +distclean: distclean-recursive + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) check-am install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am check-local clean clean-generic clean-libtool \ + clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am + +.PRECIOUS: Makefile + + +# test: run all tests in cwd and subdirs +test: ${TEST_PROGS} + @test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS} + +# test-report: run tests in subdirs and generate report +# perf-report: run tests in subdirs with -m perf and generate report +# full-report: like test-report: with -m perf and -m slow +test-report perf-report full-report: ${TEST_PROGS} + @test -z "${TEST_PROGS}" || { \ + case $@ in \ + test-report) test_options="-k";; \ + perf-report) test_options="-k -m=perf";; \ + full-report) test_options="-k -m=perf -m=slow";; \ + esac ; \ + if test -z "$$GTESTER_LOGDIR" ; then \ + ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \ + elif test -n "${TEST_PROGS}" ; then \ + ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \ + fi ; \ + } + @ ignore_logdir=true ; \ + if test -z "$$GTESTER_LOGDIR" ; then \ + GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \ + ignore_logdir=false ; \ + fi ; \ + for subdir in $(SUBDIRS) . ; do \ + test "$$subdir" = "." -o "$$subdir" = "po" || \ + ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ + done ; \ + $$ignore_logdir || { \ + echo '' > $@.xml ; \ + echo '' >> $@.xml ; \ + for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \ + sed '1,1s/^?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \ + done ; \ + echo >> $@.xml ; \ + echo '' >> $@.xml ; \ + rm -rf "$$GTESTER_LOGDIR"/ ; \ + ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \ + } +.PHONY: test test-report perf-report full-report +# run make test as part of make check +check-local: test + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/autoptr.c b/tests/autoptr.c new file mode 100644 index 0000000..faef432 --- /dev/null +++ b/tests/autoptr.c @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2018 Yi-Soo An + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +/* + * This code is based on glib/tests/autoptr.c + */ + +#include + +#include +#include + +static void +test_grl_net_wc (void) +{ + g_autoptr (GrlNetWc) val = grl_net_wc_new (); + g_assert_nonnull (val); +} + +static void +test_grl_data (void) +{ + g_autoptr (GrlData) val = grl_data_new (); + g_assert_nonnull (val); +} + +static void +test_grl_related_keys (void) +{ + g_autoptr (GrlRelatedKeys) val = grl_related_keys_new (); + g_assert_nonnull (val); +} + +static void +test_grl_media (void) +{ + g_autoptr (GrlMedia) val = grl_media_new (); + g_assert_nonnull (val); +} + +static void +test_grl_caps (void) +{ + g_autoptr (GrlCaps) val = grl_caps_new (); + g_assert_nonnull (val); +} + +static void +test_grl_operation_options (void) +{ + g_autoptr (GrlOperationOptions) val = grl_operation_options_new (NULL); + g_assert_nonnull (val); +} + +static void +test_grl_plugin (void) +{ + g_autoptr (GrlPlugin) val = NULL; + + val = GRL_PLUGIN (g_object_new (GRL_TYPE_PLUGIN, NULL)); + + g_assert_nonnull (val); +} + +int +main (int argc, + char *argv[]) +{ + g_test_init (&argc, &argv, NULL); + + grl_init (&argc, &argv); + + g_test_add_func ("/autoptr/grl_net_wc", test_grl_net_wc); + + g_test_add_func ("/autoptr/grl_data", test_grl_data); + g_test_add_func ("/autoptr/grl_media", test_grl_media); + g_test_add_func ("/autoptr/grl_related_keys", test_grl_related_keys); + + g_test_add_func ("/autoptr/grl_caps", test_grl_caps); + g_test_add_func ("/autoptr/grl_operation_options", test_grl_operation_options); + g_test_add_func ("/autoptr/grl_plugin", test_grl_plugin); + + return g_test_run (); +} diff --git a/tests/lib-net.c b/tests/lib-net.c new file mode 100644 index 0000000..565847f --- /dev/null +++ b/tests/lib-net.c @@ -0,0 +1,297 @@ +/* + * Copyright (C) 2016 Victor Toso + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include +#include +#include +#include + +typedef struct { + GrlRegistry *registry; + GMainLoop *loop; + SoupServer *server; + GCancellable *cancellable; + guint timeout; + guint num_operations; + gboolean timeout_is_expected; +} Fixture; + +typedef struct { + Fixture *f; + guint id; + gint64 request_time; + gint64 expected_time; +} ThrottlingOperation; + +#define NO_DELAY 0 +#define DELAY 2 +#define BIG_DELAY 15 /* Big enough for a timeout */ + +#define THRESHOLD 1 /* 1 second, see https://bugzilla.gnome.org/show_bug.cgi?id=774578 */ + +#define NUM_STRESS_TEST 100 + +static void +fixture_setup (Fixture *fixture, gconstpointer data) +{ + fixture->num_operations = 0; + fixture->registry = grl_registry_get_default (); + fixture->loop = g_main_loop_new (NULL, TRUE); + fixture->server = soup_server_new (NULL, NULL); + fixture->cancellable = g_cancellable_new (); + fixture->timeout_is_expected = FALSE; +} + +static void +fixture_teardown (Fixture *fixture, gconstpointer data) +{ + g_main_loop_unref (fixture->loop); + g_object_unref (fixture->server); + g_object_unref (fixture->cancellable); +} + +/* unexpected */ +static gboolean +timeout (gpointer user_data) +{ + Fixture *f = user_data; + g_main_loop_quit (f->loop); + + if (!f->timeout_is_expected) + g_test_fail (); + + return G_SOURCE_REMOVE; +} + +static void +soup_server_throttling_cb (SoupServer *server, + SoupMessage *message, + const char *path, + GHashTable *query, + SoupClientContext *client, + gpointer user_data) +{ + gchar *response = g_strdup_printf ("%" G_GINT64_FORMAT, g_get_monotonic_time()); + + soup_message_set_response (message, "text/plain", SOUP_MEMORY_TAKE, response, strlen(response)); + soup_message_set_status (message, SOUP_STATUS_OK); +} + +static void +test_net_wc_throttling_cb (GObject *source_object, + GAsyncResult *res, + gpointer user_data) +{ + gchar *data; + gsize len; + gboolean ret; + guint64 received_time; + GError *err = NULL; + ThrottlingOperation *op = user_data; + Fixture *f = op->f; + + ret = grl_net_wc_request_finish (GRL_NET_WC (source_object), res, &data, &len, &err); + g_assert_no_error (err); + g_assert_true (ret); + received_time = g_ascii_strtoull (data, NULL, 0); + g_assert_cmpint (received_time, >=, op->expected_time); + + g_free (op); + f->num_operations--; + + if (f->num_operations == 0) { + if (f->timeout > 0) + g_source_remove(f->timeout); + g_main_loop_quit (f->loop); + } +} + +static ThrottlingOperation * +throttling_operation_new (Fixture *f, guint delay_in_sec) +{ + ThrottlingOperation *op; + static guint id = 0; + + op = g_new(ThrottlingOperation, 1); + op->f = f; + op->id = id; + op->request_time = g_get_monotonic_time (); + op->expected_time = op->request_time + (G_USEC_PER_SEC * delay_in_sec); + + /* Some THRESOLD seems necessary as the test time happens before the actual + * GrlNetWc computation. This test is more about throttling working than + * precision. */ + op->expected_time -= THRESHOLD; + + id++; + f->num_operations++; + return op; +} + +static void +test_net_wc_small_throttling (Fixture *f, + gconstpointer data) +{ + GSList *uris; + gchar *request; + GrlNetWc *wc; + ThrottlingOperation *op; + + g_test_bug ("769331"); + + GError *error = NULL; + soup_server_add_handler (f->server, NULL, soup_server_throttling_cb, NULL, NULL); + soup_server_listen_local (f->server, 0, 0, &error); + g_assert_no_error (error); + + uris = soup_server_get_uris (f->server); + g_assert_nonnull (uris); + request = soup_uri_to_string (uris->data, FALSE); + g_slist_free_full (uris, (GDestroyNotify) soup_uri_free); + g_assert_nonnull (request); + + wc = grl_net_wc_new (); + grl_net_wc_set_throttling (wc, DELAY); + + /* The throttling is considered between requests which means that the first + * request is done as fast as possible */ + op = throttling_operation_new(f, NO_DELAY); + grl_net_wc_request_async (wc, request, f->cancellable, test_net_wc_throttling_cb, op); + + op = throttling_operation_new(f, DELAY); + grl_net_wc_request_async (wc, request, f->cancellable, test_net_wc_throttling_cb, op); + + g_object_unref (wc); + g_free (request); + + f->timeout = g_timeout_add_seconds (5, timeout, f); + g_main_loop_run (f->loop); +} + +static void +test_net_wc_big_throttling (Fixture *f, + gconstpointer data) +{ + GSList *uris; + gchar *request; + GrlNetWc *wc; + ThrottlingOperation *op; + + g_test_bug ("769331"); + + GError *error = NULL; + soup_server_add_handler (f->server, NULL, soup_server_throttling_cb, NULL, NULL); + soup_server_listen_local (f->server, 0, 0, &error); + g_assert_no_error (error); + + uris = soup_server_get_uris (f->server); + g_assert_nonnull (uris); + request = soup_uri_to_string (uris->data, FALSE); + g_slist_free_full (uris, (GDestroyNotify) soup_uri_free); + g_assert_nonnull (request); + + wc = grl_net_wc_new (); + grl_net_wc_set_throttling (wc, BIG_DELAY); + + /* The throttling is considered between requests which means that the first + * request is done as fast as possible */ + op = throttling_operation_new(f, NO_DELAY); + grl_net_wc_request_async (wc, request, f->cancellable, test_net_wc_throttling_cb, op); + + op = throttling_operation_new(f, BIG_DELAY); + grl_net_wc_request_async (wc, request, f->cancellable, test_net_wc_throttling_cb, op); + + g_object_unref (wc); + g_free (request); + + f->timeout_is_expected = TRUE; + g_timeout_add_seconds (5, timeout, f); + g_main_loop_run (f->loop); +} + +static void +test_net_wc_no_throttling_stress (Fixture *f, + gconstpointer data) +{ + GSList *uris; + gchar *request; + GrlNetWc *wc; + gint i; + GError *error = NULL; + + g_test_bug ("771338"); + + /* Create SoupServer with simple callback to reply */ + soup_server_add_handler (f->server, NULL, soup_server_throttling_cb, NULL, NULL); + soup_server_listen_local (f->server, 0, 0, &error); + g_assert_no_error (error); + + uris = soup_server_get_uris (f->server); + g_assert_nonnull (uris); + request = soup_uri_to_string (uris->data, FALSE); + g_slist_free_full (uris, (GDestroyNotify) soup_uri_free); + g_assert_nonnull (request); + + /* Under the same grl-net-wc, create NUM_STRESS_TEST async operations to our + * test SoupServer to verify if any regression can be seen */ + wc = grl_net_wc_new (); + for (i = 0; i < NUM_STRESS_TEST; i++) { + ThrottlingOperation *op; + + op = throttling_operation_new(f, NO_DELAY); + grl_net_wc_request_async (wc, request, f->cancellable, test_net_wc_throttling_cb, op); + } + g_object_unref (wc); + g_free (request); + + f->timeout_is_expected = FALSE; + g_timeout_add_seconds (5, timeout, f); + g_main_loop_run (f->loop); +} + +int +main (int argc, char **argv) +{ + g_test_init (&argc, &argv, NULL); + + g_test_bug_base ("http://bugs.gnome.org/%s"); + + grl_init (&argc, &argv); + + g_test_add ("/net/throttling/small-delay", + Fixture, NULL, + fixture_setup, + test_net_wc_small_throttling, + fixture_teardown); + + g_test_add ("/net/throttling/big-delay", + Fixture, NULL, + fixture_setup, + test_net_wc_big_throttling, + fixture_teardown); + + g_test_add ("/net/throttling/disabled/stress", + Fixture, NULL, + fixture_setup, + test_net_wc_no_throttling_stress, + fixture_teardown); + + return g_test_run (); +} diff --git a/tests/python/Makefile.am b/tests/python/Makefile.am new file mode 100644 index 0000000..61af918 --- /dev/null +++ b/tests/python/Makefile.am @@ -0,0 +1,25 @@ +# things to test + +test: testrunner.py +if HAVE_INTROSPECTION + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(top_builddir)/src/.libs/ \ + GI_TYPELIB_PATH=${GI_TYPELIB_PATH}:$(top_builddir)/src/ \ + PYTHONPATH=$(top_builddir):$(top_builddir)/src/tests/python:$${PYTHONPATH:+$$PYTHONPATH:} \ + $(PYTHON) $(srcdir)/testrunner.py +endif + +if HAVE_INTROSPECTION +EXTRA_DIST = \ + testrunner.py \ + test_registry.py \ + test_plugin.py +endif + +.PHONY: test test-report perf-report full-report +# run make test as part of make check +check-local: test + +MAINTAINERCLEANFILES = \ + *.pyc + +-include $(top_srcdir)/git.mk diff --git a/tests/python/Makefile.in b/tests/python/Makefile.in new file mode 100644 index 0000000..21c7bb4 --- /dev/null +++ b/tests/python/Makefile.in @@ -0,0 +1,521 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# things to test +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = tests/python +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = util.py +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/util.py.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +@HAVE_INTROSPECTION_TRUE@EXTRA_DIST = \ +@HAVE_INTROSPECTION_TRUE@ testrunner.py \ +@HAVE_INTROSPECTION_TRUE@ test_registry.py \ +@HAVE_INTROSPECTION_TRUE@ test_plugin.py + +MAINTAINERCLEANFILES = \ + *.pyc + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/python/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign tests/python/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +util.py: $(top_builddir)/config.status $(srcdir)/util.py.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: check-am install-am install-strip + +.PHONY: all all-am check check-am check-local clean clean-generic \ + clean-libtool cscopelist-am ctags-am distclean \ + distclean-generic distclean-libtool distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am + +.PRECIOUS: Makefile + + +test: testrunner.py +@HAVE_INTROSPECTION_TRUE@ LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(top_builddir)/src/.libs/ \ +@HAVE_INTROSPECTION_TRUE@ GI_TYPELIB_PATH=${GI_TYPELIB_PATH}:$(top_builddir)/src/ \ +@HAVE_INTROSPECTION_TRUE@ PYTHONPATH=$(top_builddir):$(top_builddir)/src/tests/python:$${PYTHONPATH:+$$PYTHONPATH:} \ +@HAVE_INTROSPECTION_TRUE@ $(PYTHON) $(srcdir)/testrunner.py + +.PHONY: test test-report perf-report full-report +# run make test as part of make check +check-local: test + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/python/test_plugin.py b/tests/python/test_plugin.py new file mode 100644 index 0000000..fc9648b --- /dev/null +++ b/tests/python/test_plugin.py @@ -0,0 +1,72 @@ +import unittest +import logging + +try: + from gi.repository import Grl +except: + logging.warning("Unable to import Grilo's introspection bindings") + exit() + +class TestMediaPlugin(unittest.TestCase): + + NONEXISTING_KEY = 'nonexisting_key' + + def __init__(self, method_name): + super(TestMediaPlugin, self).__init__(method_name) + Grl.init([]) + self.registry = Grl.Registry.get_default() + self.registry.load_all_plugins() + sources = self.registry.get_sources(False) + if sources: + self.plugin = sources[0] + + def test_get_name(self): + name = self.plugin.get_name() + self.assertTrue(name) + + def test_get_description(self): + description = self.plugin.get_name() + self.assertTrue(description) + + def test_get_version(self): + version = self.plugin.get_version() + self.assertTrue(version) + + def test_get_license(self): + license = self.plugin.get_license() + self.assertTrue(license) + + def test_get_author(self): + author = self.plugin.get_author() + self.assertTrue(author) + + def test_get_site(self): + site = self.plugin.get_site() + self.assertTrue(site) + + def test_get_id(self): + id = self.plugin.get_id() + self.assertTrue(id) + + def test_get_filename(self): + filename = self.plugin.get_filename() + self.assertTrue(filename) + + def test_get_rank(self): + rank = self.plugin.get_rank() + self.assertTrue(rank is not None) + + def test_get_info_keys(self): + info_keys = self.plugin.get_info_keys() + self.assertTrue(info_keys) + + def test_get_info_existing_key(self): + keys = self.plugin.get_info_keys() + if keys: + existing_key = keys[0] + info = self.plugin.get_info(existing_key) + self.assertTrue(info) + + def test_get_info_nonexisting_key(self): + info = self.plugin.get_info(self.NONEXISTING_KEY) + self.assertFalse(info) diff --git a/tests/python/test_registry.py b/tests/python/test_registry.py new file mode 100644 index 0000000..b13c5bd --- /dev/null +++ b/tests/python/test_registry.py @@ -0,0 +1,165 @@ +import unittest +import os +import util +import tempfile +import logging +import constants +import glib + +try: + from gi.repository import Grl +except: + logging.warning("Unable to import Grilo's introspection bindings") + exit() + +class TestRegistry(unittest.TestCase): + + EXISTING_LIBRARY_PATH = None + + NONEXISTING_LIBRARY_PATH = 'NONEXISTING_LIBRARY.so' + + INVALID_LIBRARY_PATH = os.path.join(util.PREFIX, + util.GRL_LIB_NAME) + + NONEXISTING_SOURCE = 'NON_EXISTING_SOURCE' + + def __init__(self, method_name): + super(TestRegistry, self).__init__(method_name) + Grl.init([]) + self.registry = Grl.Registry.get_default() + plugin_paths = util.GRL_PLUGIN_PATH.split(':') + for path in plugin_paths: + if path: + entries = os.listdir(path) + self.EXISTING_LIBRARY_PATH = os.path.join(path, + entries[0]) + break + print self.EXISTING_LIBRARY_PATH + + def setUp(self): + pass + + def tearDown(self): + pass + + def test_get_default_not_null(self): + registry = Grl.Registry.get_default() + self.assertTrue(registry) + + def test_get_default_singleton(self): + registry1 = Grl.Registry.get_default() + registry2 = Grl.Registry.get_default() + self.assertEquals(registry1, registry2) + + def test_add_directory(self): + pass + + def test_load_existing(self): + # skipping since this is likely to have been loaded by another test + return None + + if not self.registry.load(self.EXISTING_LIBRARY_PATH): + self.fail() + + def test_load_unexisting(self): + self.assertRaises(glib.GError, self.registry.load, self.NONEXISTING_LIBRARY_PATH) + + def test_load_invalid(self): + self.assertRaises(glib.GError, self.registry.load, self.INVALID_LIBRARY_PATH) + + def test_load_directory_nonexisting(self): + self.assertRaises(glib.GError, self.registry.load_directory, '') + + def test_load_directory_existing(self): + if not self.registry.load_directory(os.getcwd()): + self.fail() + + def test_unload(self): + pass + + def test_load_all(self): + self.assertTrue(self.registry.load_all()) + + def test_register_source(self): + pass + + def test_unregister_source(self): + self.registry.load_all() + sources = self.registry.get_sources(False) + for source in sources: + self.registry.unregister_source(source) + sources = self.registry.get_sources(False) + self.assertEqual(len(sources), 0) + + def test_lookup_source(self): + self.registry.load_all() + sources = self.registry.get_sources(False) + + if sources: + expected = sources[0] + search_id = expected.get_id() + found = self.registry.lookup_source(search_id) + + self.assertEqual(expected, found) + + def test_lookup_source_nonexisting(self): + self.registry.load_all() + found = self.registry.lookup_source(self.NONEXISTING_SOURCE) + self.assertFalse(found) + + def test_get_sources(self): + sources = self.registry.get_sources(False) + self.assertEqual(len(sources), 0) + + self.registry.load_all() + sources = self.registry.get_sources(False) + self.assertNotEqual(len(sources), 0) + + def test_get_sources_ordering(self): + self.registry.load_all() + ordered_sources = self.registry.get_sources(True) + unordered_sources = self.registry.get_sources(False) + + unordered_sources.sort(key=Grl.MediaPlugin.get_rank) + self.assertEquals(ordered_sources, unordered_sources) + + def test_get_sources_by_operations_supported_ops(self): + self.registry.load_all() + for op in constants.SUPPORTED_OPS: + if op != Grl.SupportedOps.NONE: + sources = self.registry.get_sources_by_operations(op, False) + if sources: + supported_operations = sources[0].supported_operations() + self.assertTrue(supported_operations & op) + + def test_register_metadata_key(self): + pass + + def test_lookup_metadata_key_existing_key(self): + existing_key = self.registry.lookup_metadata_key(constants.KEY_ID) + self.assertTrue(existing_key) + + def test_lookup_metadata_key_nonexisting_key(self): + nonexisting_key = self.registry.lookup_metadata_key(constants.KEY_NONEXISTING) + self.assertTrue(nonexisting_key == Grl.METADATA_KEY_INVALID) + + def test_lookup_metadata_key_singleton(self): + a_key = self.registry.lookup_metadata_key(constants.KEY_ID) + another_key = self.registry.lookup_metadata_key(constants.KEY_ID) + self.assertEquals(a_key, another_key) + + def test_get_metadata_keys_contains(self): + registered_key = self.registry.lookup_metadata_key(constants.KEY_ARTIST) + metadata_keys = self.registry.get_metadata_keys() + self.assertTrue(registered_key in metadata_keys) + + def test_get_metadata_keys_all_keys(self): + registered_keys = [] + for k in constants.REGISTERED_KEYS: + registered_keys.append(self.registry.lookup_metadata_key(k)) + + metadata_keys = self.registry.get_metadata_keys() + self.assertEquals(registered_keys.sort(), metadata_keys.sort()) + + def test_add_config(self): + pass diff --git a/tests/python/testrunner.py b/tests/python/testrunner.py new file mode 100755 index 0000000..6e1f358 --- /dev/null +++ b/tests/python/testrunner.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python + +import unittest +import glob +import sys + +# https://bugzilla.gnome.org/show_bug.cgi?id=748455 +exit (0) + +test_loader = unittest.defaultTestLoader + +names = [] +args = sys.argv[1:] + +if args: + for item in args: + names.append(item[:-3]) +else: + for filename in glob.iglob("test_*.py"): + names.append(filename[:-3]) + +test_suites = [] +for name in names: + test_suites.append(test_loader.loadTestsFromName(name)) + +runner = unittest.TextTestRunner(verbosity=2) + +for suite in test_suites: + runner.run(suite) diff --git a/tests/python/util.py.in b/tests/python/util.py.in new file mode 100644 index 0000000..365c349 --- /dev/null +++ b/tests/python/util.py.in @@ -0,0 +1,9 @@ +import os + +GRL_PLUGIN_PATH_VAR = 'GRL_PLUGIN_PATH' +GRL_PLUGIN_PATH_DEFAULT = '''@GRL_PLUGINS_DIR@''' +GRL_PLUGIN_PATH = os.getenv(GRL_PLUGIN_PATH_VAR, + GRL_PLUGIN_PATH_DEFAULT) + +PREFIX = '''@libdir@''' +GRL_LIB_NAME = '''lib@GRL_NAME@.la''' diff --git a/tests/registry.c b/tests/registry.c new file mode 100644 index 0000000..4edabfe --- /dev/null +++ b/tests/registry.c @@ -0,0 +1,148 @@ +/* + * Copyright (C) 2010 Stefan Kost + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#undef G_DISABLE_ASSERT + +#include +#include +#include +#include +#include + +#include + +#define CHECK_MESSAGE(domain, error_message) \ + (g_strcmp0 (log_domain, domain) == 0 && strstr (message, error_message)) + +static gboolean +registry_load_error_handler (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *message, + gpointer user_data) +{ + if (CHECK_MESSAGE ("Grilo", "Failed to initialize plugin") || + CHECK_MESSAGE ("Grilo", "Configuration not provided") || + CHECK_MESSAGE ("Grilo", "Missing configuration") || + CHECK_MESSAGE ("Grilo", "Could not open plugin directory") || + CHECK_MESSAGE ("Grilo", "Could not read XML file")) { + return FALSE; + } + + return TRUE; +} + +typedef struct { + GrlRegistry *registry; + GMainLoop *loop; +} RegistryFixture; + +static void +registry_fixture_setup (RegistryFixture *fixture, gconstpointer data) +{ + g_test_log_set_fatal_handler (registry_load_error_handler, NULL); + + fixture->registry = grl_registry_get_default (); + fixture->loop = g_main_loop_new (NULL, TRUE); +} + +static void +registry_fixture_teardown (RegistryFixture *fixture, gconstpointer data) +{ + g_main_loop_unref(fixture->loop); +} + +static void +registry_init (void) +{ + GrlRegistry *registry; + + registry = grl_registry_get_default (); + g_assert (registry); +} + +static void +registry_load (RegistryFixture *fixture, gconstpointer data) +{ + gboolean res; + + res = grl_registry_load_all_plugins (fixture->registry, TRUE, NULL); + g_assert_cmpint (res, ==, TRUE); +} + +static void +registry_unregister (RegistryFixture *fixture, gconstpointer data) +{ + GList *sources = NULL; + GList *sources_iter; + int i; + + g_test_bug ("627207"); + + sources = grl_registry_get_sources (fixture->registry, FALSE); + + for (sources_iter = sources, i = 0; sources_iter; + sources_iter = g_list_next (sources_iter), i++) { + GrlSource *source = GRL_SOURCE (sources_iter->data); + + grl_registry_unregister_source (fixture->registry, source, NULL); + } + g_list_free (sources); + + /* We expect to have loaded sources */ + g_assert_cmpint (i, !=, 0); + + sources = grl_registry_get_sources (fixture->registry, FALSE); + for (sources_iter = sources, i = 0; sources_iter; + sources_iter = g_list_next (sources_iter), i++) + ; + g_list_free (sources); + + /* After unregistering the sources, we don't expect any */ + g_assert_cmpint (i, ==, 0); +} + +int +main (int argc, char **argv) +{ + setlocale (LC_ALL, ""); + + g_test_init (&argc, &argv, NULL); + + g_test_bug_base ("http://bugs.gnome.org/%s"); + + grl_init (&argc, &argv); + + /* registry tests */ + g_test_add_func ("/registry/init", registry_init); + + g_test_add ("/registry/load", + RegistryFixture, NULL, + registry_fixture_setup, + registry_load, + registry_fixture_teardown); + + g_test_add ("/registry/unregister", + RegistryFixture, NULL, + registry_fixture_setup, + registry_unregister, + registry_fixture_teardown); + + return g_test_run (); +} diff --git a/tools/Makefile.am b/tools/Makefile.am new file mode 100644 index 0000000..575d7c2 --- /dev/null +++ b/tools/Makefile.am @@ -0,0 +1,16 @@ +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010 Igalia S.L. All rights reserved. + +SUBDIRS = grilo-inspect grilo-launch + +if BUILD_GRILO_TEST_UI +SUBDIRS += grilo-test-ui +endif + +DIST_SUBDIRS = grilo-test-ui grilo-inspect grilo-launch + +-include $(top_srcdir)/git.mk diff --git a/tools/Makefile.in b/tools/Makefile.in new file mode 100644 index 0000000..eebceda --- /dev/null +++ b/tools/Makefile.in @@ -0,0 +1,685 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Iago Toral Quiroga +# +# Copyright (C) 2010 Igalia S.L. All rights reserved. +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@BUILD_GRILO_TEST_UI_TRUE@am__append_1 = grilo-test-ui +subdir = tools +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = grilo-inspect grilo-launch $(am__append_1) +DIST_SUBDIRS = grilo-test-ui grilo-inspect grilo-launch +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign tools/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tools/grilo-inspect/Makefile.am b/tools/grilo-inspect/Makefile.am new file mode 100644 index 0000000..17e51ca --- /dev/null +++ b/tools/grilo-inspect/Makefile.am @@ -0,0 +1,35 @@ +# +# Makefile.am +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2010 Igalia S.L. + +BUILT_SOURCES = grl-core-keys.h + +grl-inspect.c: grl-core-keys.h + +grl-core-keys.h: $(top_builddir)/src/grl-metadata-key.h + $(AWK) 'BEGIN { printf "gchar *grl_core_keys[] = {\n" } { if ( $$2 ~ /^GRL_METADATA_KEY_/ && $$2 !~ /_GET_/ ) printf "\""$$2"\",\n" } END { printf "};\n" }' $< > $@ + +bin_PROGRAMS = \ + grl-inspect-@GRL_MAJORMINOR@ + +grl_inspect_@GRL_MAJORMINOR@_SOURCES = \ + grl-inspect.c \ + grl-core-keys.h + +grl_inspect_@GRL_MAJORMINOR@_CFLAGS = \ + $(DEPS_CFLAGS) \ + -DPREFIX=$(prefix) \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/data + +grl_inspect_@GRL_MAJORMINOR@_LDADD = \ + $(DEPS_LIBS) \ + $(GTK_LIBS) \ + $(top_builddir)/src/lib@GRL_NAME@.la + +noinst_HEADERS = grl-core-keys.h + +-include $(top_srcdir)/git.mk diff --git a/tools/grilo-inspect/Makefile.in b/tools/grilo-inspect/Makefile.in new file mode 100644 index 0000000..331dd66 --- /dev/null +++ b/tools/grilo-inspect/Makefile.in @@ -0,0 +1,746 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2010 Igalia S.L. + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = grl-inspect-@GRL_MAJORMINOR@$(EXEEXT) +subdir = tools/grilo-inspect +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \ + $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +PROGRAMS = $(bin_PROGRAMS) +am_grl_inspect_@GRL_MAJORMINOR@_OBJECTS = \ + grl_inspect_@GRL_MAJORMINOR@-grl-inspect.$(OBJEXT) +grl_inspect_@GRL_MAJORMINOR@_OBJECTS = \ + $(am_grl_inspect_@GRL_MAJORMINOR@_OBJECTS) +am__DEPENDENCIES_1 = +grl_inspect_@GRL_MAJORMINOR@_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +grl_inspect_@GRL_MAJORMINOR@_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(grl_inspect_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(grl_inspect_@GRL_MAJORMINOR@_SOURCES) +DIST_SOURCES = $(grl_inspect_@GRL_MAJORMINOR@_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +HEADERS = $(noinst_HEADERS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +BUILT_SOURCES = grl-core-keys.h +grl_inspect_@GRL_MAJORMINOR@_SOURCES = \ + grl-inspect.c \ + grl-core-keys.h + +grl_inspect_@GRL_MAJORMINOR@_CFLAGS = \ + $(DEPS_CFLAGS) \ + -DPREFIX=$(prefix) \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/data + +grl_inspect_@GRL_MAJORMINOR@_LDADD = \ + $(DEPS_LIBS) \ + $(GTK_LIBS) \ + $(top_builddir)/src/lib@GRL_NAME@.la + +noinst_HEADERS = grl-core-keys.h +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/grilo-inspect/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign tools/grilo-inspect/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p \ + || test -f $$p1 \ + ; then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' \ + -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' \ + `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +grl-inspect-@GRL_MAJORMINOR@$(EXEEXT): $(grl_inspect_@GRL_MAJORMINOR@_OBJECTS) $(grl_inspect_@GRL_MAJORMINOR@_DEPENDENCIES) $(EXTRA_grl_inspect_@GRL_MAJORMINOR@_DEPENDENCIES) + @rm -f grl-inspect-@GRL_MAJORMINOR@$(EXEEXT) + $(AM_V_CCLD)$(grl_inspect_@GRL_MAJORMINOR@_LINK) $(grl_inspect_@GRL_MAJORMINOR@_OBJECTS) $(grl_inspect_@GRL_MAJORMINOR@_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +grl_inspect_@GRL_MAJORMINOR@-grl-inspect.o: grl-inspect.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_inspect_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grl_inspect_@GRL_MAJORMINOR@-grl-inspect.o -MD -MP -MF $(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Tpo -c -o grl_inspect_@GRL_MAJORMINOR@-grl-inspect.o `test -f 'grl-inspect.c' || echo '$(srcdir)/'`grl-inspect.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Tpo $(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-inspect.c' object='grl_inspect_@GRL_MAJORMINOR@-grl-inspect.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_inspect_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grl_inspect_@GRL_MAJORMINOR@-grl-inspect.o `test -f 'grl-inspect.c' || echo '$(srcdir)/'`grl-inspect.c + +grl_inspect_@GRL_MAJORMINOR@-grl-inspect.obj: grl-inspect.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_inspect_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grl_inspect_@GRL_MAJORMINOR@-grl-inspect.obj -MD -MP -MF $(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Tpo -c -o grl_inspect_@GRL_MAJORMINOR@-grl-inspect.obj `if test -f 'grl-inspect.c'; then $(CYGPATH_W) 'grl-inspect.c'; else $(CYGPATH_W) '$(srcdir)/grl-inspect.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Tpo $(DEPDIR)/grl_inspect_@GRL_MAJORMINOR@-grl-inspect.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-inspect.c' object='grl_inspect_@GRL_MAJORMINOR@-grl-inspect.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_inspect_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grl_inspect_@GRL_MAJORMINOR@-grl-inspect.obj `if test -f 'grl-inspect.c'; then $(CYGPATH_W) 'grl-inspect.c'; else $(CYGPATH_W) '$(srcdir)/grl-inspect.c'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: all check install install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ + clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am uninstall-binPROGRAMS + +.PRECIOUS: Makefile + + +grl-inspect.c: grl-core-keys.h + +grl-core-keys.h: $(top_builddir)/src/grl-metadata-key.h + $(AWK) 'BEGIN { printf "gchar *grl_core_keys[] = {\n" } { if ( $$2 ~ /^GRL_METADATA_KEY_/ && $$2 !~ /_GET_/ ) printf "\""$$2"\",\n" } END { printf "};\n" }' $< > $@ + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tools/grilo-inspect/grl-core-keys.h b/tools/grilo-inspect/grl-core-keys.h new file mode 100644 index 0000000..4878ee5 --- /dev/null +++ b/tools/grilo-inspect/grl-core-keys.h @@ -0,0 +1,63 @@ +gchar *grl_core_keys[] = { +"GRL_METADATA_KEY_INVALID", +"GRL_METADATA_KEY_ALBUM", +"GRL_METADATA_KEY_ARTIST", +"GRL_METADATA_KEY_AUTHOR", +"GRL_METADATA_KEY_BITRATE", +"GRL_METADATA_KEY_CERTIFICATE", +"GRL_METADATA_KEY_CHILDCOUNT", +"GRL_METADATA_KEY_PUBLICATION_DATE", +"GRL_METADATA_KEY_DESCRIPTION", +"GRL_METADATA_KEY_DURATION", +"GRL_METADATA_KEY_EXTERNAL_PLAYER", +"GRL_METADATA_KEY_EXTERNAL_URL", +"GRL_METADATA_KEY_FRAMERATE", +"GRL_METADATA_KEY_GENRE", +"GRL_METADATA_KEY_HEIGHT", +"GRL_METADATA_KEY_ID", +"GRL_METADATA_KEY_LAST_PLAYED", +"GRL_METADATA_KEY_LAST_POSITION", +"GRL_METADATA_KEY_LICENSE", +"GRL_METADATA_KEY_LYRICS", +"GRL_METADATA_KEY_MIME", +"GRL_METADATA_KEY_PLAY_COUNT", +"GRL_METADATA_KEY_RATING", +"GRL_METADATA_KEY_SITE", +"GRL_METADATA_KEY_SOURCE", +"GRL_METADATA_KEY_STUDIO", +"GRL_METADATA_KEY_THUMBNAIL", +"GRL_METADATA_KEY_THUMBNAIL_BINARY", +"GRL_METADATA_KEY_TITLE", +"GRL_METADATA_KEY_URL", +"GRL_METADATA_KEY_WIDTH", +"GRL_METADATA_KEY_SEASON", +"GRL_METADATA_KEY_EPISODE", +"GRL_METADATA_KEY_SHOW", +"GRL_METADATA_KEY_CREATION_DATE", +"GRL_METADATA_KEY_CAMERA_MODEL", +"GRL_METADATA_KEY_ORIENTATION", +"GRL_METADATA_KEY_FLASH_USED", +"GRL_METADATA_KEY_EXPOSURE_TIME", +"GRL_METADATA_KEY_ISO_SPEED", +"GRL_METADATA_KEY_TRACK_NUMBER", +"GRL_METADATA_KEY_MODIFICATION_DATE", +"GRL_METADATA_KEY_START_TIME", +"GRL_METADATA_KEY_FAVOURITE", +"GRL_METADATA_KEY_REGION", +"GRL_METADATA_KEY_KEYWORD", +"GRL_METADATA_KEY_PERFORMER", +"GRL_METADATA_KEY_PRODUCER", +"GRL_METADATA_KEY_DIRECTOR", +"GRL_METADATA_KEY_ORIGINAL_TITLE", +"GRL_METADATA_KEY_SIZE", +"GRL_METADATA_KEY_TITLE_FROM_FILENAME", +"GRL_METADATA_KEY_MB_ALBUM_ID", +"GRL_METADATA_KEY_MB_TRACK_ID", +"GRL_METADATA_KEY_MB_ARTIST_ID", +"GRL_METADATA_KEY_MB_RECORDING_ID", +"GRL_METADATA_KEY_EPISODE_TITLE", +"GRL_METADATA_KEY_AUDIO_TRACK", +"GRL_METADATA_KEY_ALBUM_DISC_NUMBER", +"GRL_METADATA_KEY_COMPOSER", +"GRL_METADATA_KEY_ALBUM_ARTIST", +}; diff --git a/tools/grilo-inspect/grl-inspect.c b/tools/grilo-inspect/grl-inspect.c new file mode 100644 index 0000000..fbe08a7 --- /dev/null +++ b/tools/grilo-inspect/grl-inspect.c @@ -0,0 +1,541 @@ +/* + * Copyright (C) 2010-2012 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include +#include +#include + +#include "config.h" +#include "grl-core-keys.h" + +#define GRL_LOG_DOMAIN_DEFAULT grl_inspect_log_domain +GRL_LOG_DOMAIN_STATIC(grl_inspect_log_domain); + +static gint delay = 1; +static GMainLoop *mainloop = NULL; +static gchar **introspect_elements = NULL; +static gchar *conffile = NULL; +static GrlRegistry *registry = NULL; +static gboolean version; +static gboolean keys; + +static GOptionEntry entries[] = { + { "delay", 'd', 0, + G_OPTION_ARG_INT, &delay, + "Wait some seconds before showing results (default 1 second)", + NULL }, + { "config", 'c', 0, + G_OPTION_ARG_STRING, &conffile, + "Configuration file to send to sources", + NULL }, + { "keys", 'k', 0, + G_OPTION_ARG_NONE, &keys, + "List available metadata keys in the system", + NULL }, + { "version", 'V', 0, + G_OPTION_ARG_NONE, &version, + "Print version", + NULL }, + { G_OPTION_REMAINING, '\0', 0, + G_OPTION_ARG_STRING_ARRAY, &introspect_elements, + "Elements to introspect", + NULL }, + { NULL } +}; + +static gint +compare_keys (gpointer key1, + gpointer key2) +{ + const gchar *key1_name = + grl_metadata_key_get_name (GRLPOINTER_TO_KEYID (key1)); + const gchar *key2_name = + grl_metadata_key_get_name (GRLPOINTER_TO_KEYID (key2)); + + return g_strcmp0 (key1_name, key2_name); +} + +static gint +compare_sources (gpointer key1, + gpointer key2) +{ + const gchar *source1_name = + grl_source_get_id (GRL_SOURCE (key1)); + const gchar *source2_name = + grl_source_get_id (GRL_SOURCE (key2)); + + return g_strcmp0 (source1_name, source2_name); +} + +static void +list_all_sources (void) +{ + GHashTable *grouped; + GList *plugins; + GList *plugins_iter; + GList *sources; + GList *sources_for_plugin; + GList *sources_iter; + GrlPlugin *plugin; + GrlSource *source; + const gchar *plugin_id; + const gchar *source_id; + + sources = grl_registry_get_sources (registry, FALSE); + + /* Group all sources by plugin */ + grouped = g_hash_table_new (g_str_hash, g_direct_equal); + + for (sources_iter = sources; sources_iter; + sources_iter = g_list_next (sources_iter)) { + source = GRL_SOURCE (sources_iter->data); + plugin = grl_source_get_plugin (source); + source_id = grl_source_get_id (source); + plugin_id = grl_plugin_get_id (plugin); + + sources_for_plugin = g_hash_table_lookup (grouped, plugin_id); + sources_for_plugin = g_list_insert_sorted (sources_for_plugin, + (gchar *) source_id, + (GCompareFunc) g_strcmp0); + g_hash_table_insert (grouped, (gchar *) plugin_id, sources_for_plugin); + } + + g_list_free (sources); + + /* Sort and show */ + plugins = g_hash_table_get_keys (grouped); + plugins = g_list_sort (plugins, (GCompareFunc) g_strcmp0); + for (plugins_iter = plugins; + plugins_iter; + plugins_iter = g_list_next (plugins_iter)) { + g_print ("%s:", (gchar *) plugins_iter->data); + sources_for_plugin = g_hash_table_lookup (grouped, plugins_iter->data); + for (sources_iter = sources_for_plugin; + sources_iter; + sources_iter = g_list_next (sources_iter)) { + g_print (" %s", (gchar *) sources_iter->data); + } + g_print ("\n"); + g_list_free (sources_for_plugin); + } + + g_list_free (plugins); + g_hash_table_unref (grouped); +} + +static void +list_all_keys (void) +{ + GList *keys; + GList *keys_iter; + + keys = grl_registry_get_metadata_keys (registry); + + keys = g_list_sort (keys, (GCompareFunc) compare_keys); + + for (keys_iter = keys; keys_iter; + keys_iter = g_list_next (keys_iter)) { + GrlKeyID key = GRLPOINTER_TO_KEYID (keys_iter->data); + g_print ("%s: %s\n", + grl_metadata_key_get_name (key), + grl_metadata_key_get_desc (key)); + } + g_list_free (keys); +} + +static void +print_keys (const GList *keys) +{ + GList *k; + GList *sorted = NULL; + + if (!keys) { + g_print ("---"); + return; + } + + /* First sort the keys */ + for (k = (GList *) keys; + k; + k = g_list_next (k)) { + sorted = g_list_insert_sorted (sorted, k->data, (GCompareFunc) compare_keys); + } + + k = sorted; + while (k) { + g_print ("%s", + GRL_METADATA_KEY_GET_NAME (GRLPOINTER_TO_KEYID (k->data))); + k = g_list_next (k); + if (k) { + g_print (", "); + } + } + + g_list_free (sorted); +} + +static void +print_related_keys (GrlKeyID key) +{ + const GList *partners; + + partners = grl_registry_lookup_metadata_key_relation (registry, key); + print_keys (partners); +} + +static void +print_readable_keys (GList *sources, GrlKeyID key) +{ + GList *s; + gboolean first = TRUE; + + for (s = sources; + s; + s = g_list_next (s)) { + if (g_list_find ((GList *) grl_source_supported_keys (s->data), + GRLKEYID_TO_POINTER (key))) { + if (!first) { + g_print (", "); + } else { + first = FALSE; + } + + g_print ("%s", grl_source_get_id (s->data)); + } + } + + if (first) { + g_print ("--\n"); + } else { + g_print ("\n"); + } +} + +static void +print_slow_keys (GList *sources, GrlKeyID key) +{ + GList *s; + gboolean first = TRUE; + + for (s = sources; + s; + s = g_list_next (s)) { + if (g_list_find ((GList *) grl_source_slow_keys (s->data), + GRLKEYID_TO_POINTER (key))) { + if (!first) { + g_print (", "); + } else { + first = FALSE; + } + + g_print ("%s", grl_source_get_id (s->data)); + } + } + + if (first) { + g_print ("--\n"); + } else { + g_print ("\n"); + } +} + +static void +print_writable_keys (GList *sources, GrlKeyID key) +{ + GList *s; + gboolean first = TRUE; + + for (s = sources; + s; + s = g_list_next (s)) { + if (g_list_find ((GList *) grl_source_writable_keys (s->data), + GRLKEYID_TO_POINTER (key))) { + if (!first) { + g_print (", "); + } else { + first = FALSE; + } + + g_print ("%s", grl_source_get_id (s->data)); + } + } + + if (first) { + g_print ("--\n"); + } else { + g_print ("\n"); + } +} + +static void +print_version (void) +{ + g_print ("grl-inspect-" GRL_MAJORMINOR " version " VERSION "\n"); + g_print ("Grilo " VERSION "\n"); + g_print ("https://wiki.gnome.org/Projects/Grilo\n"); +} + +static void +introspect_source (const gchar *source_id) +{ + GrlMediaType supported_media; + GrlPlugin *plugin; + GrlSource *source; + GrlSupportedOps supported_ops; + const gchar **tags; + + source = grl_registry_lookup_source (registry, source_id); + + if (source) { + plugin = grl_source_get_plugin (source); + + if (plugin) { + g_print ("Plugin Details:\n"); + g_print (" %-20s %s\n", "Identifier:", grl_plugin_get_id (plugin)); + g_print (" %-20s %s\n", "Name:", grl_plugin_get_name (plugin)); + g_print (" %-20s %s\n", "Description:", grl_plugin_get_description (plugin)); + g_print (" %-20s %s\n", "Filename:", grl_plugin_get_filename (plugin)); + g_print (" %-20s %s\n", "Author:", grl_plugin_get_author (plugin)); + g_print (" %-20s %s\n", "Version:", grl_plugin_get_version (plugin)); + g_print (" %-20s %s\n", "License:", grl_plugin_get_license (plugin)); + g_print (" %-20s %s\n", "Site:", grl_plugin_get_site (plugin)); + g_print ("\n"); + } + + g_print ("Source Details:\n"); + g_print (" %-20s %s\n", "Identifier:", + grl_source_get_id (source)); + g_print (" %-20s %s\n", "Name:", + grl_source_get_name (source)); + g_print (" %-20s %s\n", "Description:", + grl_source_get_description (source)); + g_print (" %-20s %d\n", "Rank:", + grl_source_get_rank (source)); + + /* Print tags */ + tags = grl_source_get_tags (source); + if (tags) { + g_print (" %-20s %s", "Tags:", *tags); + while (*(++tags)) { + g_print (", %s", *tags); + } + g_print ("\n"); + } + g_print ("\n"); + + /* Print supported media */ + supported_media = + grl_source_get_supported_media (source); + g_print ("Supported media type:\n"); + if (supported_media & GRL_MEDIA_TYPE_AUDIO) { + g_print (" audio\n"); + } + if (supported_media & GRL_MEDIA_TYPE_VIDEO) { + g_print (" video\n"); + } + if (supported_media & GRL_MEDIA_TYPE_IMAGE) { + g_print (" image\n"); + } + g_print ("\n"); + + /* Print supported operations */ + supported_ops = + grl_source_supported_operations (source); + g_print ("Supported operations:\n"); + if (supported_ops & GRL_OP_RESOLVE) { + g_print (" grl_media_source_resolve():\t\tResolve Metadata\n"); + } + if (supported_ops & GRL_OP_BROWSE) { + g_print (" grl_media_source_browse():\t\tBrowse\n"); + } + if (supported_ops & GRL_OP_SEARCH) { + g_print (" grl_media_source_search():\t\tSearch\n"); + } + if (supported_ops & GRL_OP_QUERY) { + g_print (" grl_media_source_query():\t\tQuery\n"); + } + if (supported_ops & GRL_OP_STORE) { + g_print (" grl_media_source_store():\tAdd New Media (in root)\n"); + } + if (supported_ops & GRL_OP_STORE_PARENT) { + g_print (" grl_media_source_store():\t\tAdd New Media\n"); + } + if (supported_ops & GRL_OP_STORE_METADATA) { + g_print (" grl_media_source_store_metadata():\tUpdate Metadata\n"); + } + if (supported_ops & GRL_OP_REMOVE) { + g_print (" grl_media_source_remove():\t\tRemove Media\n"); + } + if (supported_ops & GRL_OP_MEDIA_FROM_URI) { + g_print (" grl_media_source_test_media_from_uri():\tTest if it can get a Media from an URI\n"); + g_print (" grl_media_source_get_media_from_uri():\tGet a Media from an URI\n"); + } + g_print ("\n"); + + /* Print supported signals */ + g_print ("Supported signals:\n"); + if (supported_ops & GRL_OP_NOTIFY_CHANGE) { + g_print (" \"content-changed\" signal:\tNotify about changes\n"); + } + g_print ("\n"); + + /* Print supported keys */ + g_print ("Supported keys:\n"); + g_print (" Readable Keys:\t"); + print_keys (grl_source_supported_keys (source)); + g_print ("\n"); + g_print (" Slow Keys:\t\t"); + print_keys (grl_source_slow_keys (source)); + g_print ("\n"); + g_print (" Writable Keys:\t"); + print_keys (grl_source_writable_keys (source)); + g_print ("\n"); + g_print ("\n"); + } else { + g_printerr ("Source Not Found: %s\n\n", source_id); + } + g_print ("\n"); +} + +static void +introspect_key (const gchar *key_name) +{ + GList *sources; + GrlKeyID key; + guint32 key_number; + + key = grl_registry_lookup_metadata_key (registry, key_name); + key_number = (guint32) key; + + if (key) { + g_print ("Key Details:\n"); + g_print (" %-20s %s\n", "Identifier:", + (key_number < G_N_ELEMENTS (grl_core_keys))? grl_core_keys[key_number]: "--"); + g_print (" %-20s %s\n", "Name:", + grl_metadata_key_get_name (key)); + g_print (" %-20s %s\n", "Description:", + grl_metadata_key_get_desc (key)); + g_print (" %-20s %s\n", "Type:", + g_type_name (grl_metadata_key_get_type (key))); + g_print (" %-20s ", "Relations:"); + print_related_keys (key); + g_print ("\n\n"); + + sources = grl_registry_get_sources (registry, FALSE); + sources = g_list_sort (sources, (GCompareFunc) compare_sources); + + g_print ("Sources Supporting:\n"); + g_print (" Readable:\t"); + print_readable_keys (sources, key); + g_print (" Slow:\t\t"); + print_slow_keys (sources, key); + g_print (" Writable:\t"); + print_writable_keys (sources, key); + + g_list_free (sources); + + g_print ("\n"); + g_print ("\n"); + } else { + g_printerr ("Metadata Key Not Found: %s\n\n", key_name); + } + g_print ("\n"); +} + +static gboolean +run (gpointer data) +{ + gchar **s; + + if (keys) { + if (introspect_elements) { + for (s = introspect_elements; *s; s++) { + introspect_key (*s); + } + } else { + list_all_keys (); + } + } else { + if (introspect_elements) { + for (s = introspect_elements; *s; s++) { + introspect_source (*s); + } + } else { + list_all_sources (); + } + } + + g_main_loop_quit (mainloop); + + return FALSE; +} + +int +main (int argc, char *argv[]) +{ + GError *error = NULL; + GOptionContext *context; + + setlocale (LC_ALL, ""); + + context = g_option_context_new ("- introspect Grilo elements"); + g_option_context_add_main_entries (context, entries, NULL); + g_option_context_add_group (context, grl_init_get_option_group ()); + g_option_context_parse (context, &argc, &argv, &error); + g_option_context_free (context); + + if (error) { + g_printerr ("Invalid arguments, %s\n", error->message); + g_clear_error (&error); + return -1; + } + + if (version) { + print_version (); + return 0; + } + + grl_init (&argc, &argv); + + GRL_LOG_DOMAIN_INIT (grl_inspect_log_domain, "grl-inspect"); + + registry = grl_registry_get_default (); + if (conffile) { + grl_registry_add_config_from_file (registry, conffile, &error); + if (error) { + GRL_WARNING ("Unable to load configuration: %s", error->message); + g_error_free (error); + } + } + + mainloop = g_main_loop_new (NULL, FALSE); + + grl_registry_load_all_plugins (registry, TRUE, NULL); + + g_timeout_add_seconds ((guint) delay, run, NULL); + + g_main_loop_run (mainloop); + + grl_deinit (); + + return 0; +} diff --git a/tools/grilo-inspect/meson.build b/tools/grilo-inspect/meson.build new file mode 100644 index 0000000..048c232 --- /dev/null +++ b/tools/grilo-inspect/meson.build @@ -0,0 +1,28 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +python = find_program('python', required : false) +if not python.found() + python = import('python3').find_python() +endif +if not python.found() + error('Python2 or Python3 is required to compile grilo-inspect') +endif +run_command(python, + '@0@/generate_core_keys.py'.format(meson.current_source_dir()), + '@0@/src/grl-metadata-key.h'.format(meson.source_root()), + '@0@/grl-core-keys.h'.format(meson.current_build_dir())) + +configure_file(output: 'config.h', + configuration: cdata) + +executable('grl-inspect-@0@'.format(grl_majorminor), + 'grl-inspect.c', + install: true, + link_with: libgrl, + dependencies: [glib_dep, gobject_dep], + include_directories: libgrl_inc) diff --git a/tools/grilo-launch/Makefile.am b/tools/grilo-launch/Makefile.am new file mode 100644 index 0000000..1792e8a --- /dev/null +++ b/tools/grilo-launch/Makefile.am @@ -0,0 +1,24 @@ +# +# Makefile.am +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2014 Igalia S.L. + +bin_PROGRAMS = \ + grl-launch-@GRL_MAJORMINOR@ + +grl_launch_@GRL_MAJORMINOR@_SOURCES = \ + grl-launch.c + +grl_launch_@GRL_MAJORMINOR@_CFLAGS = \ + $(DEPS_CFLAGS) \ + -DPREFIX=$(prefix) \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/data + +grl_launch_@GRL_MAJORMINOR@_LDADD = \ + $(DEPS_LIBS) \ + $(top_builddir)/src/lib@GRL_NAME@.la + +-include $(top_srcdir)/git.mk diff --git a/tools/grilo-launch/Makefile.in b/tools/grilo-launch/Makefile.in new file mode 100644 index 0000000..9ef3920 --- /dev/null +++ b/tools/grilo-launch/Makefile.in @@ -0,0 +1,665 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2014 Igalia S.L. + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = grl-launch-@GRL_MAJORMINOR@$(EXEEXT) +subdir = tools/grilo-launch +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +PROGRAMS = $(bin_PROGRAMS) +am_grl_launch_@GRL_MAJORMINOR@_OBJECTS = \ + grl_launch_@GRL_MAJORMINOR@-grl-launch.$(OBJEXT) +grl_launch_@GRL_MAJORMINOR@_OBJECTS = \ + $(am_grl_launch_@GRL_MAJORMINOR@_OBJECTS) +am__DEPENDENCIES_1 = +grl_launch_@GRL_MAJORMINOR@_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(top_builddir)/src/lib@GRL_NAME@.la +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +grl_launch_@GRL_MAJORMINOR@_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(grl_launch_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(grl_launch_@GRL_MAJORMINOR@_SOURCES) +DIST_SOURCES = $(grl_launch_@GRL_MAJORMINOR@_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +grl_launch_@GRL_MAJORMINOR@_SOURCES = \ + grl-launch.c + +grl_launch_@GRL_MAJORMINOR@_CFLAGS = \ + $(DEPS_CFLAGS) \ + -DPREFIX=$(prefix) \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/data + +grl_launch_@GRL_MAJORMINOR@_LDADD = \ + $(DEPS_LIBS) \ + $(top_builddir)/src/lib@GRL_NAME@.la + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/grilo-launch/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign tools/grilo-launch/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p \ + || test -f $$p1 \ + ; then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' \ + -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' \ + `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +grl-launch-@GRL_MAJORMINOR@$(EXEEXT): $(grl_launch_@GRL_MAJORMINOR@_OBJECTS) $(grl_launch_@GRL_MAJORMINOR@_DEPENDENCIES) $(EXTRA_grl_launch_@GRL_MAJORMINOR@_DEPENDENCIES) + @rm -f grl-launch-@GRL_MAJORMINOR@$(EXEEXT) + $(AM_V_CCLD)$(grl_launch_@GRL_MAJORMINOR@_LINK) $(grl_launch_@GRL_MAJORMINOR@_OBJECTS) $(grl_launch_@GRL_MAJORMINOR@_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +grl_launch_@GRL_MAJORMINOR@-grl-launch.o: grl-launch.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_launch_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grl_launch_@GRL_MAJORMINOR@-grl-launch.o -MD -MP -MF $(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Tpo -c -o grl_launch_@GRL_MAJORMINOR@-grl-launch.o `test -f 'grl-launch.c' || echo '$(srcdir)/'`grl-launch.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Tpo $(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-launch.c' object='grl_launch_@GRL_MAJORMINOR@-grl-launch.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_launch_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grl_launch_@GRL_MAJORMINOR@-grl-launch.o `test -f 'grl-launch.c' || echo '$(srcdir)/'`grl-launch.c + +grl_launch_@GRL_MAJORMINOR@-grl-launch.obj: grl-launch.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_launch_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grl_launch_@GRL_MAJORMINOR@-grl-launch.obj -MD -MP -MF $(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Tpo -c -o grl_launch_@GRL_MAJORMINOR@-grl-launch.obj `if test -f 'grl-launch.c'; then $(CYGPATH_W) 'grl-launch.c'; else $(CYGPATH_W) '$(srcdir)/grl-launch.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Tpo $(DEPDIR)/grl_launch_@GRL_MAJORMINOR@-grl-launch.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='grl-launch.c' object='grl_launch_@GRL_MAJORMINOR@-grl-launch.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grl_launch_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grl_launch_@GRL_MAJORMINOR@-grl-launch.obj `if test -f 'grl-launch.c'; then $(CYGPATH_W) 'grl-launch.c'; else $(CYGPATH_W) '$(srcdir)/grl-launch.c'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool cscopelist-am ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool distdir \ + dvi dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-binPROGRAMS + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tools/grilo-launch/grl-launch.c b/tools/grilo-launch/grl-launch.c new file mode 100644 index 0000000..3b5df49 --- /dev/null +++ b/tools/grilo-launch/grl-launch.c @@ -0,0 +1,874 @@ +/* + * Copyright (C) 2014 Igalia S.L. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include +#include +#include + +#include "config.h" + +#define GRL_LOG_DOMAIN_DEFAULT grl_launch_log_domain +GRL_LOG_DOMAIN_STATIC(grl_launch_log_domain); + +static GMainLoop *mainloop = NULL; +static GOptionContext *context = NULL; +static GrlMediaSerializeType serialize_type; +static GrlRegistry *registry = NULL; +static gboolean full; +static gboolean serialize; +static gboolean titles; +static gboolean version; +static gchar **operation_list = NULL; +static gchar *conffile = NULL; +static gchar *flags_parameter; +static gchar *keys_parameter; +static gint count = G_MAXINT; +static gint delay = 1; +static gint skip = 0; + +static GOptionEntry entries[] = { + { "config", 'C', 0, + G_OPTION_ARG_STRING, &conffile, + "Configuration file to send to sources", + NULL }, + { "count", 'c', 0, + G_OPTION_ARG_INT, &count, + "Number of elements to return", + NULL }, + { "delay", 'd', 0, + G_OPTION_ARG_INT, &delay, + "Wait some seconds before performing the operation (default 1 second)", + NULL }, + { "flags", 'f', 0, + G_OPTION_ARG_STRING, &flags_parameter, + "List of comma-separated flags to use", + "full|fast_only|idle_relay" }, + { "full", 'F', 0, + G_OPTION_ARG_NONE, &full, + "Full serialize", + NULL }, + { "keys", 'k', 0, + G_OPTION_ARG_STRING, &keys_parameter, + "List of comma-separated keys to retrieve", + NULL }, + { "serialize", 'S', 0, + G_OPTION_ARG_NONE, &serialize, + "Serialize", + NULL }, + { "skip", 's', 0, + G_OPTION_ARG_INT, &skip, + "Number of elements to skip", + NULL }, + { "titles", 'T', 0, + G_OPTION_ARG_NONE, &titles, + "Print column titles", + NULL }, + { "version", 'V', 0, + G_OPTION_ARG_NONE, &version, + "Print version", + NULL }, + { G_OPTION_REMAINING, '\0', 0, + G_OPTION_ARG_STRING_ARRAY, &operation_list, + " ", + NULL }, + { NULL } +}; + +static gboolean +quit (gboolean print_help) +{ + gchar *help; + + if (print_help) { + help = g_option_context_get_help (context, TRUE, NULL); + g_print ("%s", help); + g_free (help); + } + + g_main_loop_quit (mainloop); + return FALSE; +} + +static void +print_version (void) +{ + g_print ("grl-launch-" GRL_MAJORMINOR " version " VERSION "\n"); + g_print ("Grilo " VERSION "\n"); + g_print ("https://wiki.gnome.org/Projects/Grilo\n"); +} + +static void +print_key (GrlMedia *media, + GrlKeyID key) +{ + GByteArray *binary_blob; + const GValue *value; + gboolean has_comma; + gchar *str_value; + + value = grl_data_get (GRL_DATA (media), key); + + if (!value) { + return; + } + + if (G_VALUE_HOLDS_STRING (value)) { + str_value = (gchar *) g_value_get_string (value); + has_comma = g_strstr_len (str_value, -1, ",") != NULL; + if (has_comma) { + g_print ("\"%s\"", str_value); + } else { + g_print ("%s", str_value); + } + } else if (G_VALUE_HOLDS_INT (value)) { + g_print ("%d", g_value_get_int (value)); + } else if (G_VALUE_HOLDS_FLOAT (value)) { + g_print ("%f", g_value_get_float (value)); + } else if (G_VALUE_HOLDS_BOOLEAN (value)) { + g_print ("%s", g_value_get_boolean (value)? "true": "false"); + } else if (G_VALUE_TYPE (value) == G_TYPE_BYTE_ARRAY) { + binary_blob = g_value_get_boxed (value); + str_value = g_base64_encode (binary_blob->data, binary_blob->len); + g_print ("%s", str_value); + g_free (str_value); + } else if (G_VALUE_TYPE (value) == G_TYPE_DATE_TIME) { + str_value = g_date_time_format (g_value_get_boxed (value), "%FT%T"); + g_print ("%s", str_value); + g_free (str_value); + } +} + +static void +print_titles (GList *keys) +{ + gboolean print_newline = FALSE; + + if (!titles) { + return; + } + + if (serialize || keys) { + print_newline = TRUE; + } + + if (serialize) { + g_print ("media"); + if (keys) { + g_print (","); + } + } + + while (keys) { + g_print ("%s", grl_metadata_key_get_name (GRLPOINTER_TO_KEYID (keys->data))); + keys = g_list_next (keys); + if (keys) { + g_print (","); + } + } + + if (print_newline) { + g_print ("\n"); + } +} + +static void +print_result_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + GList *k; + GList *keys = (GList *) user_data; + gboolean print_newline = FALSE; + gchar *media_serial; + static guint total_results = 0; + + if (error) { + g_print ("Error: %s\n", error->message); + } + + if (media) { + if (serialize || keys) { + print_newline = TRUE; + } + + total_results++; + if (serialize) { + media_serial = grl_media_serialize_extended (media, serialize_type); + g_print ("%s", media_serial); + g_free (media_serial); + if (keys) { + g_print (","); + } + } + k = keys; + while (k) { + print_key (media, GRLPOINTER_TO_KEYID (k->data)); + k = g_list_next (k); + if (k) { + g_print (","); + } + } + + g_object_unref (media); + + if (print_newline) { + g_print ("\n"); + } + } + + if (remaining == 0) { + switch (total_results) { + case 0: + g_print ("No results\n"); + break; + case 1: + g_print ("1 result\n"); + break; + default: + g_print ("%u results\n", total_results); + } + g_list_free (keys); + quit (FALSE); + } +} + +static void +print_single_result_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + print_result_cb (source, operation_id, media, 0, user_data, error); +} + +static GList * +get_keys (void) +{ + GList *keys = NULL; + GrlKeyID key; + GrlRegistry *registry; + gchar **keys_array; + gint i; + + if (!keys_parameter) { + return NULL; + } + + registry = grl_registry_get_default (); + keys_array = g_strsplit (keys_parameter, ",", -1); + + for (i = 0; keys_array[i]; i++) { + if (g_strcmp0 (keys_array[i], "*") == 0) { + g_list_free (keys); + g_strfreev (keys_array); + return grl_registry_get_metadata_keys (registry); + } + + key = grl_registry_lookup_metadata_key (registry, keys_array[i]); + if (key == GRL_METADATA_KEY_INVALID) { + g_print ("Unknown %s key\n", keys_array[i]); + } else { + keys = g_list_append (keys, GRLKEYID_TO_POINTER (key)); + } + } + + g_strfreev (keys_array); + + return keys; +} + +static GrlResolutionFlags +get_flags (void) +{ + GrlResolutionFlags flags = GRL_RESOLVE_NORMAL; + gchar **flags_array; + gint i; + + if (!flags_parameter) { + return flags; + } + + flags_array = g_strsplit (flags_parameter, ",", -1); + + for (i = 0; flags_array[i]; i++) { + if (g_strcmp0 (flags_array[i], "full") == 0) { + flags |= GRL_RESOLVE_FULL; + } else if (g_strcmp0 (flags_array[i], "idle_relay") == 0) { + flags |= GRL_RESOLVE_IDLE_RELAY; + } else if (g_strcmp0 (flags_array[i], "fast_only") == 0) { + flags |= GRL_RESOLVE_FAST_ONLY; + } else { + g_print ("Unknown %s flag\n", flags_array[i]); + } + } + + g_strfreev (flags_array); + + return flags; +} + +static void +get_source_and_media (const gchar *str, + GrlSource **source, + GrlMedia **media) +{ + GrlRegistry *registry = grl_registry_get_default(); + + /* Check if str is a source */ + *source = grl_registry_lookup_source (registry, str); + if (*source) { + *media = NULL; + } else { + /* Check then if this is a media */ + *media = grl_media_unserialize (str); + if (*media) { + *source = grl_registry_lookup_source (registry, grl_media_get_source (*media)); + } + } +} + +static void +content_changed_cb (GrlSource *source, + GPtrArray *changed_medias, + GrlSourceChangeType change_type, + gboolean location_unknown, + gpointer data) +{ + GrlMedia *media; + gint i; + + for (i = 0; i < changed_medias->len; i++) { + media = (GrlMedia *) g_ptr_array_index (changed_medias, i); + switch (change_type) { + case GRL_CONTENT_CHANGED: + g_print ("changed,"); + break; + case GRL_CONTENT_ADDED: + g_print ("added,"); + break; + case GRL_CONTENT_REMOVED: + g_print ("removed,"); + break; + } + + if (location_unknown) { + g_print ("true"); + } else { + g_print ("false"); + } + + if (serialize || data) { + g_print(","); + print_result_cb (source, 0, g_object_ref (media), -1, data, NULL); + } else { + g_print("\n"); + } + } +} + +static gboolean +run_search (gchar **search_params) +{ + GList *keys; + GrlOperationOptions *options; + GrlRegistry *registry; + GrlSource *source; + gchar *term; + + if (g_strv_length (search_params) != 2) { + return quit (TRUE); + } + + /* Empty string means "search all" */ + if (search_params[0][0] == '\0') { + term = NULL; + } else { + term = search_params[0]; + } + + registry = grl_registry_get_default (); + source = grl_registry_lookup_source (registry, search_params[1]); + + if (!source) { + g_print ("%s is not a valid source\n", search_params[1]); + return quit (FALSE); + } + + if (!(grl_source_supported_operations (source) & GRL_OP_SEARCH)) { + g_print ("%s do not support search\n", search_params[1]); + return quit (FALSE); + } + + keys = get_keys (); + + options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (options, get_flags ()); + grl_operation_options_set_count (options, count); + grl_operation_options_set_skip (options, skip); + + print_titles (keys); + + grl_source_search (source, term, keys, options, print_result_cb, keys); + + g_object_unref (options); + + return FALSE; +} + +static gboolean +run_browse (gchar **browse_params) +{ + GList *keys; + GrlMedia *media; + GrlOperationOptions *options; + GrlSource *source; + + if (g_strv_length (browse_params) != 1) { + return quit (TRUE); + } + + get_source_and_media (browse_params[0], &source, &media); + if (media && !grl_media_is_container (media)) { + g_print ("%s is not a media container\n", browse_params[0]); + return quit (FALSE); + } + + if (!source) { + g_print ("%s is not a valid source\n", browse_params[0]); + return quit (FALSE); + } + + if (!(grl_source_supported_operations (source) & GRL_OP_BROWSE)) { + g_print ("%s do not support browse\n", grl_source_get_id (source)); + return quit (FALSE); + } + + keys = get_keys(); + + options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (options, get_flags ()); + grl_operation_options_set_count (options, count); + grl_operation_options_set_skip (options, skip); + + print_titles (keys); + + grl_source_browse (source, media, keys, options, print_result_cb, keys); + + g_object_unref (options); + + return FALSE; +} + +static gboolean +run_resolve (gchar **resolve_params) +{ + GList *print_keys; + GList *search_keys; + GrlMedia *media; + GrlOperationOptions *options; + GrlRegistry *registry; + GrlSource *source; + + if (g_strv_length (resolve_params) > 2) { + return quit (TRUE); + } + + get_source_and_media (resolve_params[0], &source, &media); + + if (resolve_params[1]) { + /* Ask the other source */ + registry = grl_registry_get_default (); + source = grl_registry_lookup_source (registry, resolve_params[1]); + } + + if (!source) { + g_print ("%s is not a valid source\n", resolve_params[1]? resolve_params[1]: resolve_params[0]); + return quit (FALSE); + } + + + if (!(grl_source_supported_operations (source) & GRL_OP_RESOLVE)) { + g_print ("%s do not support resolve\n", grl_source_get_id (source)); + return quit (FALSE); + } + + print_keys = get_keys(); + + if (print_keys) { + search_keys = print_keys; + } else { + /* Resolve requires some key to resolve; let's use "id" */ + search_keys = g_list_append (NULL, GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ID)); + } + + options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (options, get_flags ()); + + print_titles (print_keys); + + grl_source_resolve (source, media, search_keys, options, print_single_result_cb, print_keys); + + g_object_unref (options); + + return FALSE; +} + +static gboolean +run_may_resolve (gchar **may_resolve_params) +{ + GList *required_keys = NULL; + GrlKeyID resolve_key; + GrlMedia *media; + GrlRegistry *registry; + GrlSource *source; + gboolean may; + + if (g_strv_length (may_resolve_params) > 3) { + return quit (TRUE); + } + + registry = grl_registry_get_default (); + resolve_key = grl_registry_lookup_metadata_key (registry, may_resolve_params[0]); + if (resolve_key == GRL_METADATA_KEY_INVALID) { + g_print ("Unknown %s key\n", may_resolve_params[0]); + return quit (FALSE); + } + + get_source_and_media (may_resolve_params[1], &source, &media); + + if (may_resolve_params[2]) { + /* Ask the other source */ + registry = grl_registry_get_default (); + source = grl_registry_lookup_source (registry, may_resolve_params[2]); + } + + if (!source) { + g_print ("%s is not a valid source\n", may_resolve_params[2]? may_resolve_params[2]: may_resolve_params[1]); + return quit (FALSE); + } + + + if (!(grl_source_supported_operations (source) & GRL_OP_RESOLVE)) { + g_print ("%s do not support resolve\n", grl_source_get_id (source)); + return quit (FALSE); + } + + may = grl_source_may_resolve (source, media, resolve_key, &required_keys); + + if (may) { + g_print ("%s can resolve %s key\n", grl_source_get_id (source), may_resolve_params[0]); + } else { + g_print ("%s cannot resolve %s key", grl_source_get_id (source), may_resolve_params[0]); + if (required_keys) { + g_print (". It requires "); + while (required_keys) { + g_print ("%s", grl_metadata_key_get_name (GRLPOINTER_TO_KEYID (required_keys->data))); + required_keys = g_list_next (required_keys); + if (required_keys) { + g_print (","); + } + } + } + g_print ("\n"); + } + + return quit (FALSE); +} + + +static gboolean +run_query (gchar **query_params) +{ + GList *keys; + GrlOperationOptions *options; + GrlRegistry *registry; + GrlSource *source; + + if (g_strv_length (query_params) != 2) { + return quit (TRUE); + } + + registry = grl_registry_get_default (); + source = grl_registry_lookup_source (registry, query_params[1]); + + if (!source) { + g_print ("%s is not a valid source\n", query_params[1]); + return quit (FALSE); + } + + if (!(grl_source_supported_operations (source) & GRL_OP_QUERY)) { + g_print ("%s do not support query\n", query_params[1]); + return quit (FALSE); + } + + keys = get_keys (); + + options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (options, get_flags ()); + grl_operation_options_set_count (options, count); + grl_operation_options_set_skip (options, skip); + + print_titles (keys); + + grl_source_query (source, query_params[0], keys, options, print_result_cb, keys); + + g_object_unref (options); + + return FALSE; +} + +static gboolean +run_monitor (gchar **monitor_params) +{ + GError *error = NULL; + GList *keys; + GrlRegistry *registry; + GrlSource *source; + + if (g_strv_length (monitor_params) != 1) { + return quit (TRUE); + } + + registry = grl_registry_get_default (); + source = grl_registry_lookup_source (registry, monitor_params[0]); + + if (!source) { + g_print ("%s is not a valid source\n", monitor_params[0]); + return quit (FALSE); + } + + if (!(grl_source_supported_operations (source) & GRL_OP_NOTIFY_CHANGE)) { + g_print ("%s do not support changes monitoring\n", monitor_params[0]); + return quit (FALSE); + } + + if (!grl_source_notify_change_start (source, &error)) { + g_print ("Cannot monitor on %s: %s\n", monitor_params[0], error->message); + g_error_free (error); + return quit (FALSE); + } + + keys = get_keys (); + + if (titles) { + g_print ("change_type,location_unknown"); + if (serialize || keys) { + g_print(","); + print_titles (keys); + } else { + g_print ("\n"); + } + } + + g_signal_connect (source, + "content-changed", + G_CALLBACK (content_changed_cb), + keys); + + return FALSE; +} + +static gboolean +run_test_media_from_uri (gchar **test_params) +{ + GList *p; + GList *sources; + GrlRegistry *registry; + GrlSource *source; + gboolean can_do; + + if (g_strv_length (test_params) > 2) { + return quit (TRUE); + } + + if (!test_params[0]) { + return quit (TRUE); + } + + registry = grl_registry_get_default (); + if (test_params[1]) { + source = grl_registry_lookup_source (registry, test_params[1]); + if (!source) { + g_print ("%s is not a valid source\n", test_params[1]); + return quit (FALSE); + } + if (!(grl_source_supported_operations (source) & GRL_OP_MEDIA_FROM_URI)) { + g_print ("%s does not support test_media_from_uri operation\n", test_params[1]); + return quit (FALSE); + } + can_do = grl_source_test_media_from_uri (source, test_params[0]); + g_print ("%s\t%s\n", test_params[1], can_do? "yes": "no"); + } else { + sources = grl_registry_get_sources_by_operations (registry, GRL_OP_MEDIA_FROM_URI, TRUE); + for (p = sources; p; p = g_list_next (p)) { + source = GRL_SOURCE (p->data); + can_do = grl_source_test_media_from_uri (source, test_params[0]); + if (can_do) { + g_print ("%s\t%s\n", grl_source_get_id (source), "yes"); + } + } + g_list_free (sources); + } + + return quit (FALSE); +} + +static gboolean +run_media_from_uri (gchar **uri_params) +{ + GList *print_keys; + GList *use_keys; + GrlOperationOptions *options; + GrlRegistry *registry; + GrlSource *source; + + if (g_strv_length (uri_params) != 2) { + return quit (TRUE); + } + + registry = grl_registry_get_default (); + source = grl_registry_lookup_source (registry, uri_params[1]); + + if (!source) { + g_print ("%s is not a valid source\n", uri_params[1]); + return quit (FALSE); + } + + if (!(grl_source_supported_operations (source) & GRL_OP_MEDIA_FROM_URI)) { + g_print ("%s does not support media_from_uri\n", uri_params[1]); + return quit (FALSE); + } + + print_keys = get_keys (); + + if (print_keys) { + use_keys = print_keys; + } else { + /* Media_From_Uri requires some key to use; let's use "id" */ + use_keys = g_list_append (NULL, GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ID)); + } + + options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (options, get_flags ()); + + print_titles (print_keys); + + grl_source_get_media_from_uri (source, uri_params[0], use_keys, options, print_single_result_cb, print_keys); + + g_object_unref (options); + + return FALSE; +} + +static gboolean +run (gpointer data) +{ + if (!operation_list) { + return quit (TRUE); + } + + if (g_strcmp0 (operation_list[0], "search") == 0) { + return run_search (++operation_list); + } else if (g_strcmp0 (operation_list[0], "browse") == 0) { + return run_browse (++operation_list); + } else if (g_strcmp0 (operation_list[0], "resolve") == 0) { + return run_resolve (++operation_list); + } else if (g_strcmp0 (operation_list[0], "may_resolve") == 0) { + return run_may_resolve (++operation_list); + } else if (g_strcmp0 (operation_list[0], "query") == 0) { + return run_query (++operation_list); + } else if (g_strcmp0 (operation_list[0], "monitor") == 0) { + return run_monitor (++operation_list); + } else if (g_strcmp0 (operation_list[0], "test_media_from_uri") == 0){ + return run_test_media_from_uri (++operation_list); + } else if (g_strcmp0 (operation_list[0], "media_from_uri") == 0){ + return run_media_from_uri (++operation_list); + } + + return quit (TRUE); +} + +int +main (int argc, char *argv[]) +{ + GError *error = NULL; + + setlocale (LC_ALL, ""); + + context = g_option_context_new ("OPERATION PARAMETERS..."); + g_option_context_add_main_entries (context, entries, NULL); + g_option_context_add_group (context, grl_init_get_option_group ()); + g_option_context_set_summary (context, + "\tbrowse |\n" + "\tmay_resolve | []\n" + "\tquery \n" + "\tresolve | []\n" + "\tsearch \n" + "\tmonitor \n" + "\ttest_media_from_uri []\n" + "\tmedia_from_uri "); + + g_option_context_parse (context, &argc, &argv, &error); + + if (error) { + g_printerr ("Invalid arguments, %s\n", error->message); + g_clear_error (&error); + return -1; + } + + if (version) { + print_version (); + return 0; + } + + serialize_type = full? GRL_MEDIA_SERIALIZE_FULL: GRL_MEDIA_SERIALIZE_BASIC; + + grl_init (&argc, &argv); + + GRL_LOG_DOMAIN_INIT (grl_launch_log_domain, "grl-launch"); + + registry = grl_registry_get_default (); + if (conffile) { + grl_registry_add_config_from_file (registry, conffile, &error); + if (error) { + GRL_WARNING ("Unable to load configuration: %s", error->message); + g_error_free (error); + } + } + + mainloop = g_main_loop_new (NULL, FALSE); + + grl_registry_load_all_plugins (registry, TRUE, NULL); + + g_timeout_add_seconds ((guint) delay, run, NULL); + + g_main_loop_run (mainloop); + + g_option_context_free (context); + grl_deinit (); + + return 0; +} diff --git a/tools/grilo-launch/meson.build b/tools/grilo-launch/meson.build new file mode 100644 index 0000000..744984b --- /dev/null +++ b/tools/grilo-launch/meson.build @@ -0,0 +1,16 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +configure_file(output: 'config.h', + configuration: cdata) + +executable('grl-launch-@0@'.format(grl_majorminor), + 'grl-launch.c', + install: true, + link_with: libgrl, + dependencies: [glib_dep, gobject_dep], + include_directories: libgrl_inc) diff --git a/tools/grilo-test-ui/Makefile.am b/tools/grilo-test-ui/Makefile.am new file mode 100644 index 0000000..a849af6 --- /dev/null +++ b/tools/grilo-test-ui/Makefile.am @@ -0,0 +1,41 @@ +# +# Makefile.am +# +# Author: Iago Toral +# +# Copyright (C) 2010 Igalia S.L. + +bin_PROGRAMS = grilo-test-ui-@GRL_MAJORMINOR@ + +grilo_test_ui_@GRL_MAJORMINOR@_SOURCES = \ + main.c + +grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS = \ + $(DEPS_CFLAGS) \ + $(GTU_CFLAGS) \ + $(GRL_FLICKR_CFLAGS) \ + -DPREFIX=$(prefix) \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/data + +grilo_test_ui_@GRL_MAJORMINOR@_LDADD = \ + $(DEPS_LIBS) \ + $(GTU_LIBS) \ + $(GRL_FLICKR_LIBS) \ + $(top_builddir)/src/lib@GRL_NAME@.la + +if HAVE_OAUTH + +grilo_test_ui_@GRL_MAJORMINOR@_SOURCES += \ + flickr-oauth.h \ + flickr-oauth.c + +grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS += \ + $(OAUTH_CFLAGS) + +grilo_test_ui_@GRL_MAJORMINOR@_LDADD += \ + $(OAUTH_LIBS) + +endif + +-include $(top_srcdir)/git.mk diff --git a/tools/grilo-test-ui/Makefile.in b/tools/grilo-test-ui/Makefile.in new file mode 100644 index 0000000..72fd5c1 --- /dev/null +++ b/tools/grilo-test-ui/Makefile.in @@ -0,0 +1,689 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# +# Makefile.am +# +# Author: Iago Toral +# +# Copyright (C) 2010 Igalia S.L. + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = grilo-test-ui-@GRL_MAJORMINOR@$(EXEEXT) +@HAVE_OAUTH_TRUE@am__append_1 = \ +@HAVE_OAUTH_TRUE@ flickr-oauth.h \ +@HAVE_OAUTH_TRUE@ flickr-oauth.c + +@HAVE_OAUTH_TRUE@am__append_2 = \ +@HAVE_OAUTH_TRUE@ $(OAUTH_CFLAGS) + +@HAVE_OAUTH_TRUE@am__append_3 = \ +@HAVE_OAUTH_TRUE@ $(OAUTH_LIBS) + +subdir = tools/grilo-test-ui +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +PROGRAMS = $(bin_PROGRAMS) +am__grilo_test_ui_@GRL_MAJORMINOR@_SOURCES_DIST = main.c \ + flickr-oauth.h flickr-oauth.c +@HAVE_OAUTH_TRUE@am__objects_1 = grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.$(OBJEXT) +am_grilo_test_ui_@GRL_MAJORMINOR@_OBJECTS = \ + grilo_test_ui_@GRL_MAJORMINOR@-main.$(OBJEXT) $(am__objects_1) +grilo_test_ui_@GRL_MAJORMINOR@_OBJECTS = \ + $(am_grilo_test_ui_@GRL_MAJORMINOR@_OBJECTS) +am__DEPENDENCIES_1 = +@HAVE_OAUTH_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) +grilo_test_ui_@GRL_MAJORMINOR@_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_1) $(top_builddir)/src/lib@GRL_NAME@.la \ + $(am__DEPENDENCIES_2) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +grilo_test_ui_@GRL_MAJORMINOR@_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(grilo_test_ui_@GRL_MAJORMINOR@_SOURCES) +DIST_SOURCES = $(am__grilo_test_ui_@GRL_MAJORMINOR@_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp TODO +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DEPS_CFLAGS = @DEPS_CFLAGS@ +DEPS_LIBS = @DEPS_LIBS@ +DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GREP = @GREP@ +GRLNET_LT_VERSION = @GRLNET_LT_VERSION@ +GRLNET_VERSION = @GRLNET_VERSION@ +GRLPLS_LT_VERSION = @GRLPLS_LT_VERSION@ +GRLPLS_VERSION = @GRLPLS_VERSION@ +GRL_LT_VERSION = @GRL_LT_VERSION@ +GRL_MAJORMINOR = @GRL_MAJORMINOR@ +GRL_MAJORMINOR_NORM = @GRL_MAJORMINOR_NORM@ +GRL_NAME = @GRL_NAME@ +GRL_PLUGINS_DIR = @GRL_PLUGINS_DIR@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +GTU_CFLAGS = @GTU_CFLAGS@ +GTU_LIBS = @GTU_LIBS@ +HTML_DIR = @HTML_DIR@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ +INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ +INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ +INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ +INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ +INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ +INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ +INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ +INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NET_CFLAGS = @NET_CFLAGS@ +NET_LIBS = @NET_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OAUTH_CFLAGS = @OAUTH_CFLAGS@ +OAUTH_LIBS = @OAUTH_LIBS@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOTEM_PL_PARSER_CFLAGS = @TOTEM_PL_PARSER_CFLAGS@ +TOTEM_PL_PARSER_LIBS = @TOTEM_PL_PARSER_LIBS@ +USE_NLS = @USE_NLS@ +VAPIGEN = @VAPIGEN@ +VAPIGEN_MAKEFILE = @VAPIGEN_MAKEFILE@ +VAPIGEN_VAPIDIR = @VAPIGEN_VAPIDIR@ +VERSION = @VERSION@ +WARN_CFLAGS = @WARN_CFLAGS@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +intltool__v_merge_options_ = @intltool__v_merge_options_@ +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +grilo_test_ui_@GRL_MAJORMINOR@_SOURCES = main.c $(am__append_1) +grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS = $(DEPS_CFLAGS) $(GTU_CFLAGS) \ + $(GRL_FLICKR_CFLAGS) -DPREFIX=$(prefix) -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/data $(am__append_2) +grilo_test_ui_@GRL_MAJORMINOR@_LDADD = $(DEPS_LIBS) $(GTU_LIBS) \ + $(GRL_FLICKR_LIBS) $(top_builddir)/src/lib@GRL_NAME@.la \ + $(am__append_3) +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/grilo-test-ui/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign tools/grilo-test-ui/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p \ + || test -f $$p1 \ + ; then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' \ + -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' \ + `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +grilo-test-ui-@GRL_MAJORMINOR@$(EXEEXT): $(grilo_test_ui_@GRL_MAJORMINOR@_OBJECTS) $(grilo_test_ui_@GRL_MAJORMINOR@_DEPENDENCIES) $(EXTRA_grilo_test_ui_@GRL_MAJORMINOR@_DEPENDENCIES) + @rm -f grilo-test-ui-@GRL_MAJORMINOR@$(EXEEXT) + $(AM_V_CCLD)$(grilo_test_ui_@GRL_MAJORMINOR@_LINK) $(grilo_test_ui_@GRL_MAJORMINOR@_OBJECTS) $(grilo_test_ui_@GRL_MAJORMINOR@_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +grilo_test_ui_@GRL_MAJORMINOR@-main.o: main.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grilo_test_ui_@GRL_MAJORMINOR@-main.o -MD -MP -MF $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Tpo -c -o grilo_test_ui_@GRL_MAJORMINOR@-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Tpo $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='grilo_test_ui_@GRL_MAJORMINOR@-main.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grilo_test_ui_@GRL_MAJORMINOR@-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c + +grilo_test_ui_@GRL_MAJORMINOR@-main.obj: main.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grilo_test_ui_@GRL_MAJORMINOR@-main.obj -MD -MP -MF $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Tpo -c -o grilo_test_ui_@GRL_MAJORMINOR@-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Tpo $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-main.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='grilo_test_ui_@GRL_MAJORMINOR@-main.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grilo_test_ui_@GRL_MAJORMINOR@-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` + +grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.o: flickr-oauth.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.o -MD -MP -MF $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Tpo -c -o grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.o `test -f 'flickr-oauth.c' || echo '$(srcdir)/'`flickr-oauth.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Tpo $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='flickr-oauth.c' object='grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.o `test -f 'flickr-oauth.c' || echo '$(srcdir)/'`flickr-oauth.c + +grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.obj: flickr-oauth.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -MT grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.obj -MD -MP -MF $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Tpo -c -o grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.obj `if test -f 'flickr-oauth.c'; then $(CYGPATH_W) 'flickr-oauth.c'; else $(CYGPATH_W) '$(srcdir)/flickr-oauth.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Tpo $(DEPDIR)/grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='flickr-oauth.c' object='grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(grilo_test_ui_@GRL_MAJORMINOR@_CFLAGS) $(CFLAGS) -c -o grilo_test_ui_@GRL_MAJORMINOR@-flickr-oauth.obj `if test -f 'flickr-oauth.c'; then $(CYGPATH_W) 'flickr-oauth.c'; else $(CYGPATH_W) '$(srcdir)/flickr-oauth.c'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool cscopelist-am ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool distdir \ + dvi dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-binPROGRAMS + +.PRECIOUS: Makefile + + +-include $(top_srcdir)/git.mk + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tools/grilo-test-ui/TODO b/tools/grilo-test-ui/TODO new file mode 100644 index 0000000..3fee7bd --- /dev/null +++ b/tools/grilo-test-ui/TODO @@ -0,0 +1 @@ +- Implement playback capabilities? diff --git a/tools/grilo-test-ui/flickr-oauth.c b/tools/grilo-test-ui/flickr-oauth.c new file mode 100644 index 0000000..8e847c5 --- /dev/null +++ b/tools/grilo-test-ui/flickr-oauth.c @@ -0,0 +1,329 @@ +#include "flickr-oauth.h" + +#include +#include + +#include +#include + +/* ---------- private functions declarations ---------- */ + +static gchar * +parse_request_token (const gchar *string, gchar **secret); + +static gchar * +parse_access_token (const gchar *string, gchar **secret); + +static gchar * +parse_token (const gint parts_no, const gchar *string, gchar **secret); + +static gchar * +get_param_value (const gchar *string); + +static gchar * +get_timestamp (void); + +static void +free_params (gchar **params, gint params_no); + +/* ---------- public API ---------- */ + +gchar * +flickroauth_get_signature (const gchar *consumer_secret, + const gchar *token_secret, + const gchar *url, + gchar **params, + gint params_no) +{ + gchar *params_string; + gchar *base_string; + gchar *encryption_key; + gchar *signature; + + qsort (params, params_no, sizeof (gchar *), oauth_cmpstringp); + + params_string = oauth_serialize_url (params_no, 0, params); + + base_string = oauth_catenc (3, FLICKR_OAUTH_HTTP_METHOD, + url, params_string); + + g_free (params_string); + + if (token_secret == NULL) + encryption_key = g_strdup_printf ("%s&", consumer_secret); + else + encryption_key = g_strdup_printf ("%s&%s", consumer_secret, token_secret); + + signature = oauth_sign_hmac_sha1 (base_string, encryption_key); + + g_free (encryption_key); + g_free (base_string); + + return signature; +} + +gchar * +flickroauth_get_request_token (const gchar *consumer_key, + const gchar *consumer_secret, + gchar **secret) +{ + gchar *signature; + gchar *url; + gchar *timestamp; + gchar *nonce; + gchar *params[7]; + gchar *params_string; /* one string later created from params[] */ + gchar *http_reply; + gchar *request_token = NULL; + + timestamp = get_timestamp (); + nonce = oauth_gen_nonce (); + + params[0] = g_strdup_printf ("oauth_callback=%s", FLICKR_OAUTH_CALLBACK); + params[1] = g_strdup_printf ("oauth_consumer_key=%s", consumer_key); + params[2] = g_strdup_printf ("oauth_nonce=%s", nonce); + params[3] = g_strdup_printf ("oauth_signature_method=%s", + FLICKR_OAUTH_SIGNATURE_METHOD); + params[4] = g_strdup_printf ("oauth_timestamp=%s", timestamp); + params[5] = g_strdup_printf ("oauth_version=%s", FLICKR_OAUTH_VERSION); + + + g_free (timestamp); + g_free (nonce); + + signature = flickroauth_get_signature (consumer_secret, NULL, + FLICKR_OAUTH_REQUESTTOKEN_URL, + params, 6); + + params[6] = g_strdup_printf ("oauth_signature=%s", signature); + g_free (signature); + + params_string = oauth_serialize_url (7, 0, params); + + free_params (params, 7); + + url = g_strdup_printf ("%s?%s", FLICKR_OAUTH_REQUESTTOKEN_URL, params_string); + g_free (params_string); + + http_reply = oauth_http_get2 (url, NULL, NULL); + g_free (url); + + if (http_reply) { + request_token = parse_request_token (http_reply, secret); + g_free (http_reply); + } + + return request_token; +} + +gchar * +flickroauth_get_access_token (const gchar *consumer_key, + const gchar *consumer_secret, + const gchar *oauth_token, + const gchar *oauth_token_secret, + const gchar *verifier, + gchar **secret) +{ + gchar *signature; + gchar *url; + gchar *timestamp; + gchar *nonce; + gchar *params[8]; + gchar *params_string; /* one string later created from params[] */ + gchar *http_reply; + gchar *access_token = NULL; + + timestamp = get_timestamp (); + nonce = oauth_gen_nonce (); + + params[0] = g_strdup_printf ("oauth_verifier=%s", verifier); + params[1] = g_strdup_printf ("oauth_consumer_key=%s", consumer_key); + params[2] = g_strdup_printf ("oauth_nonce=%s", nonce); + params[3] = g_strdup_printf ("oauth_signature_method=%s", + FLICKR_OAUTH_SIGNATURE_METHOD); + params[4] = g_strdup_printf ("oauth_timestamp=%s", timestamp); + params[5] = g_strdup_printf ("oauth_version=%s", FLICKR_OAUTH_VERSION); + params[6] = g_strdup_printf ("oauth_token=%s", oauth_token); + + g_free (timestamp); + g_free (nonce); + + signature = flickroauth_get_signature (consumer_secret, + oauth_token_secret, + FLICKR_OAUTH_ACCESSTOKEN_URL, + params, 7); + + params[7] = g_strdup_printf ("oauth_signature=%s", signature); + g_free (signature); + + params_string = oauth_serialize_url (8, 0, params); + + free_params (params, 8); + + url = g_strdup_printf ("%s?%s", FLICKR_OAUTH_ACCESSTOKEN_URL, params_string); + g_free (params_string); + + http_reply = oauth_http_get2 (url, NULL, NULL); + g_free (url); + + if (http_reply) { + access_token = parse_access_token (http_reply, secret); + g_free (http_reply); + } + + return access_token; +} + +gchar * +flickroauth_create_api_url (const gchar *consumer_key, + const gchar *consumer_secret, + const gchar *oauth_token, + const gchar *oauth_token_secret, + gchar **params, + const guint params_no) +{ + guint i; + gchar *nonce; + gchar *timestamp; + gchar *signature; + gchar *url; + gchar *params_string; + + g_return_val_if_fail (consumer_key, NULL); + + /* handle Non-authorised call */ + if (oauth_token == NULL) + { + params_string = oauth_serialize_url (params_no, 0, params); + + url = g_strdup_printf ("%s?api_key=%s&%s", FLICKR_API_URL, + consumer_key, + params_string); + + g_free (params_string); + + return url; + } + + /* there are 7 pre-filled parameters in authorize call*/ + guint params_all_no = params_no + 7; + gchar **params_all = g_malloc ((params_all_no) * sizeof (gchar *)); + + if (params_all == NULL) + return NULL; + + nonce = oauth_gen_nonce (); + timestamp = get_timestamp (); + + params_all[0] = g_strdup_printf ("oauth_nonce=%s", nonce); + params_all[1] = g_strdup_printf ("oauth_timestamp=%s", timestamp); + params_all[2] = g_strdup_printf ("oauth_consumer_key=%s", consumer_key); + params_all[3] = g_strdup_printf ("oauth_signature_method=%s", + FLICKR_OAUTH_SIGNATURE_METHOD); + params_all[4] = g_strdup_printf ("oauth_version=%s", FLICKR_OAUTH_VERSION); + params_all[5] = g_strdup_printf ("oauth_token=%s", oauth_token); + + /* copy user parameters to the params_all */ + for (i = 0; i < params_no; i++) + params_all[7 + i - 1] = g_strdup (params[i]); + + g_free (nonce); + g_free (timestamp); + + signature = flickroauth_get_signature (consumer_secret, + oauth_token_secret, + FLICKR_API_URL, params_all, + params_all_no - 1); + + params_all[params_all_no - 1] = g_strdup_printf ("oauth_signature=%s", + signature); + g_free (signature); + + params_string = oauth_serialize_url (params_all_no, 0, params_all); + + free_params (params_all, params_all_no); + g_free (params_all); + + url = g_strdup_printf ("%s?%s", FLICKR_API_URL, params_string); + + return url; +} + +inline gchar * +flickroauth_authorization_url (const gchar *oauth_token, const gchar *perms) +{ + gchar *url; + if (perms == NULL) + url = g_strdup_printf ("%s?oauth_token=%s", FLICKR_OAUTH_AUTHPOINT, + oauth_token); + else + url = g_strdup_printf ("%s?oauth_token=%s&perms=%s", FLICKR_OAUTH_AUTHPOINT, + oauth_token, perms); + + return url; +} + +/* ---------- private functions ---------- */ + +inline static gchar * +get_timestamp (void) +{ + GTimeVal tm; + g_get_current_time (&tm); + + return g_strdup_printf ("%lu", tm.tv_sec); +} + +static gchar +*get_param_value (const gchar *string) +{ + gchar *eq = strchr (string, '='); + + if (eq == NULL) + return NULL; + + return g_strdup (eq + 1); +} + +static gchar * +parse_token (const gint parts_no, const gchar *string, gchar **secret) +{ + gchar **array; + gchar *token = NULL; + gint i = 0; + + array = g_strsplit (string, "&", parts_no); + + while (array[i] != NULL) { + if (g_str_has_prefix (array[i], "oauth_token_secret")) + (*secret) = get_param_value (array[i]); + else if (g_str_has_prefix (array[i], "oauth_token")) + token = get_param_value(array[i]); + + i++; + } + + g_strfreev (array); + + return token; +} + +inline static gchar * +parse_access_token (const gchar *string, gchar **secret) +{ + return parse_token(5, string, secret); +} + +inline static gchar * +parse_request_token (const gchar *string, gchar **secret) +{ + return parse_token(3, string, secret); +} + +static void +free_params (gchar **params, gint params_no) +{ + gint i; + for (i = 0; i < params_no; i++) + g_free (params[i]); +} diff --git a/tools/grilo-test-ui/flickr-oauth.h b/tools/grilo-test-ui/flickr-oauth.h new file mode 100644 index 0000000..c36e28e --- /dev/null +++ b/tools/grilo-test-ui/flickr-oauth.h @@ -0,0 +1,90 @@ +/* + * Flickr authentication library (using OAuth) + * + * Authors: Marek Chalupa + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include + +#ifndef FLICKR_OAUTH_H +#define FLICKR_OAUTH_H + +#define FLICKR_API_URL "https://api.flickr.com/services/rest" +#define FLICKR_OAUTH_ACCESSTOKEN_URL "https://www.flickr.com/services/oauth/access_token" +#define FLICKR_OAUTH_REQUESTTOKEN_URL "https://www.flickr.com/services/oauth/request_token" +#define FLICKR_OAUTH_AUTHPOINT "https://www.flickr.com/services/oauth/authorize" + +/* OAuth definitions */ +#define FLICKR_OAUTH_SIGNATURE_METHOD "HMAC-SHA1" +#define FLICKR_OAUTH_VERSION "1.0" +#define FLICKR_OAUTH_CALLBACK "oob" +#define FLICKR_OAUTH_HTTP_METHOD "GET" + +/* ------------------------------------------------------------- */ +#define DEBUG +/* for debugging */ +#ifdef DEBUG + +/* +gchar *dev_consumer_key = "e6b8c86373f5e44e78fed8805e675ede"; +gchar *dev_consumer_secret = "39cea595d57bb9f5"; + +#include +#define dbg(A, ...) fprintf (stderr, "-- (DBG) %s:%d --\n" A "\n", __FUNCTION__,\ + __LINE__, __VA_ARGS__) + +*/ +#endif +/* ------------------------------------------------------------- */ + + +/* public API */ + +gchar * +flickroauth_get_signature (const gchar *consumer_secret, + const gchar *token_secret, + const gchar *url, + gchar **params, + gint params_no); + +gchar * +flickroauth_get_request_token (const gchar *consumer_key, + const gchar *consumer_secret, + gchar **secret); + +gchar * +flickroauth_get_access_token (const gchar *consumer_key, + const gchar *consumer_secret, + const gchar *oauth_token, + const gchar *oauth_token_secret, + const gchar *verifier, + gchar **secret); + +gchar * +flickroauth_create_api_url (const gchar *consumer_key, + const gchar *consumer_secret, + const gchar *oauth_token, + const gchar *oauth_token_secret, + gchar **params, + const guint params_no); + +gchar * +flickroauth_authorization_url (const gchar *oauth_token, const gchar *perms); + +#endif /* FLICKR_OAUTH_H */ diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c new file mode 100644 index 0000000..2bf15fc --- /dev/null +++ b/tools/grilo-test-ui/main.c @@ -0,0 +1,2472 @@ +/* + * Copyright (C) 2010-2012 Igalia S.L. + * Copyright (C) 2011 Intel Corporation. + * + * Contact: Iago Toral Quiroga + * + * 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.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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include + +#include + +#ifdef HAVE_OAUTH +#include "flickr-oauth.h" +#endif + +#include +#include +#include + +#define GRL_LOG_DOMAIN_DEFAULT test_ui_log_domain +GRL_LOG_DOMAIN_STATIC(test_ui_log_domain); + +/* ----- Flickr Security tokens ---- */ + +#define FLICKR_KEY "fa037bee8120a921b34f8209d715a2fa" +#define FLICKR_SECRET "9f6523b9c52e3317" + +#define FLICKR_AUTHORIZE_MSG \ + "This application requires your authorization before it can read " \ + "your personal photos on Flickr.\n\n" \ + "Authorizing is a simple process which takes place in your web " \ + "browser. Click on the link below, and when you are finished, " \ + "return to this window and press OK button to complete " \ + "authorization.\n\n" \ + "It is possible that you need to restart the application to " \ + "apply the changes.\n\n" \ + "If you do not authorize it, then you can not access your " \ + "private photos." + +/* ----- Youtube Config tokens ---- */ + +#define YOUTUBE_KEY "AIzaSyDLRGH1fK0-hIlkuVOgi96FLeskI_BDj2k" + +/* ----- Vimeo Config tokens ---- */ + +#define VIMEO_KEY "4d908c69e05a9d5b5c6669d302f920cb" +#define VIMEO_SECRET "4a923ffaab6238eb" + +/* ----- TMDb Config tokens ---- */ + +#define TMDB_KEY "719b9b296835b04cd919c4bf5220828a" + +/* ----- The TVDB key ---- */ + +#define THETVDB_KEY "3F476CEF2FBD0FB0" + +/* ----- AcoustID key ---- */ + +#define ACOUSTID_KEY "4ihkDsH37X" + +/* ----- Other ----- */ + +#define BROWSE_FLAGS (GRL_RESOLVE_FAST_ONLY | GRL_RESOLVE_IDLE_RELAY) +#define RESOLVE_FLAGS (GRL_RESOLVE_FULL | GRL_RESOLVE_IDLE_RELAY) + +#define WINDOW_TITLE "Grilo Test UI (v." VERSION ")" + +#define NOTIFICATION_TIMEOUT 5 + +#define BROWSER_MIN_WIDTH 320 +#define BROWSER_MIN_HEIGHT 400 + +#define METADATA_MIN_WIDTH 320 +#define METADATA_MIN_HEIGHT 400 + +#define BROWSE_CHUNK_SIZE 75 +#define BROWSE_MAX_COUNT 200 + +enum { + OBJECT_TYPE_SOURCE = 0, + OBJECT_TYPE_CONTAINER, + OBJECT_TYPE_MEDIA +}; + +enum { + BROWSER_MODEL_SOURCE = 0, + BROWSER_MODEL_CONTENT, + BROWSER_MODEL_TYPE, + BROWSER_MODEL_NAME, + BROWSER_MODEL_ICON +}; + +enum { + METADATA_MODEL_NAME = 0, + METADATA_MODEL_VALUE +}; + +enum { + SEARCH_MODEL_NAME = 0, + SEARCH_MODEL_SOURCE +}; + +enum { + QUERY_MODEL_NAME = 0, + QUERY_MODEL_SOURCE +}; + +typedef struct { + GtkWidget *window; + GtkWidget *lpane; + GtkWidget *rpane; + GtkWidget *search_text; + GtkWidget *search_combo; + GtkTreeModel *search_combo_model; + GtkWidget *search_btn; + GtkWidget *query_text; + GtkWidget *query_combo; + GtkTreeModel *query_combo_model; + GtkWidget *query_btn; + GtkWidget *store_btn; + GtkWidget *filter_audio; + GtkWidget *filter_video; + GtkWidget *filter_image; + GtkWidget *remove_btn; + GtkWidget *back_btn; + GtkWidget *show_btn; + GtkWidget *browser; + GtkTreeModel *browser_model; + GtkWidget *metadata; + GtkTreeModel *metadata_model; + GtkWidget *statusbar; + guint statusbar_context_id; +} UiView; + +typedef struct { + gboolean changes_notification; + + /* Keeps track of our browsing position and history */ + GList *source_stack; + GList *container_stack; + GrlSource *cur_source; + GrlMedia *cur_container; + + /* Keeps track of the last element we showed metadata for */ + GrlSource *cur_md_source; + GrlMedia *cur_md_media; + + /* Keeps track of browse/search state */ + gboolean op_ongoing; + GrlSource *cur_op_source; + guint cur_op_id; + gboolean multiple; + + /* Keeps track of the URL of the item selected */ + const gchar *last_url; +} UiState; + +typedef struct { + enum OperationType { + OP_TYPE_BROWSE, + OP_TYPE_SEARCH, + OP_TYPE_QUERY, + OP_TYPE_MULTI_SEARCH + } type; + guint offset; + guint count; + gchar *text; +} OperationState; + +typedef struct { + GAppInfo *eog; + GAppInfo *totem; + GAppInfo *mplayer; +} UriLaunchers; + +static UiView *view; +static UiState *ui_state; +static UriLaunchers *launchers; + +static GrlOperationOptions *default_options = NULL; +static GrlOperationOptions *default_resolve_options = NULL; + +static const char *ui_definition = + "" + "" + "
" + " " + " File" + "
" + " " + " _Authorize Flickr" + " app.authorize-flickr" + " " + "
" + "
" + " " + " _Shutdown Plugins" + " app.shutdown-plugins" + " " + " " + " _Load All Plugins" + " app.load-all-plugins" + " " + "
" + "
" + " " + " _Changes notification" + " app.changes-notification" + " " + "
" + "
" + " " + " _Quit" + " app.quit" + " <Primary>q" + " " + "
" + "
" + "
" + "
" + "
"; + +static void show_browsable_sources (void); +static void quit_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +#ifdef HAVE_OAUTH +static gchar *authorize_flickr (void); +static void authorize_flickr_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +#endif + +static void shutdown_plugins_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +static void shutdown_plugins (void); + +static void load_all_plugins_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); +static void load_all_plugins (void); + +static void changes_notification_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data); + +static void content_changed_cb (GrlSource *source, + GPtrArray *changed_medias, + GrlSourceChangeType change_type, + gboolean location_unknown, + gpointer data); + +static GActionEntry app_entries[] = +{ +#ifdef HAVE_OAUTH + { "authorize-flickr", authorize_flickr_cb, NULL, NULL, NULL }, +#endif + { "shutdown-plugins", shutdown_plugins_cb, NULL, NULL, NULL }, + { "load-all-plugins", load_all_plugins_cb, NULL, NULL, NULL }, + { "changes-notification", NULL, NULL, "false", changes_notification_cb }, + { "quit", quit_cb, NULL, NULL, NULL }, +}; + +static void +menu_setup (GApplication *app) +{ + GtkBuilder *builder; + GMenuModel *app_menu; + + g_action_map_add_action_entries (G_ACTION_MAP (app), + app_entries, G_N_ELEMENTS (app_entries), + app); + builder = gtk_builder_new_from_string (ui_definition, -1); + app_menu = G_MENU_MODEL (gtk_builder_get_object (builder, "menu")); + gtk_application_set_menubar (GTK_APPLICATION (app), app_menu); + + g_object_unref (builder); +} + +static void +quit_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + g_application_quit (G_APPLICATION (user_data)); +} + +#ifdef HAVE_OAUTH +static void +authorize_flickr_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + authorize_flickr (); +} +#endif + +static void +shutdown_plugins_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + shutdown_plugins (); +} + +static void +load_all_plugins_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + load_all_plugins (); +} + +static void +changes_notification_cb (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + GList *sources, *source; + GrlRegistry *registry; + + ui_state->changes_notification = g_variant_get_boolean (parameter); + g_simple_action_set_state (action, parameter); + + registry = grl_registry_get_default (); + sources = grl_registry_get_sources (registry, FALSE); + for (source = sources; source; source = g_list_next (source)) { + if (grl_source_supported_operations (GRL_SOURCE (source->data)) & + GRL_OP_NOTIFY_CHANGE) { + if (ui_state->changes_notification) { + grl_source_notify_change_start (GRL_SOURCE (source->data), NULL); + g_signal_connect (GRL_SOURCE (source->data), + "content-changed", + G_CALLBACK (content_changed_cb), + NULL); + } else { + grl_source_notify_change_stop (GRL_SOURCE (source->data), NULL); + g_signal_handlers_disconnect_by_func (source->data, + content_changed_cb, + NULL); + } + } + } + g_list_free (sources); +} + +static GtkTreeModel * +create_browser_model (void) +{ + return GTK_TREE_MODEL (gtk_list_store_new (5, + G_TYPE_OBJECT, /* Source */ + G_TYPE_OBJECT, /* Content */ + G_TYPE_INT, /* Type */ + G_TYPE_STRING, /* Name */ + G_TYPE_ICON)); /* Icon */ +} + +static GtkTreeModel * +create_resolve_model (void) +{ + return GTK_TREE_MODEL (gtk_list_store_new (2, + G_TYPE_STRING, /* name */ + G_TYPE_STRING)); /* value */ +} + +static GtkTreeModel * +create_search_combo_model (void) +{ + return GTK_TREE_MODEL (gtk_list_store_new (2, + G_TYPE_STRING, /* name */ + G_TYPE_OBJECT)); /* source */ +} + +static GtkTreeModel * +create_query_combo_model (void) +{ + return GTK_TREE_MODEL (gtk_list_store_new (2, + G_TYPE_STRING, /* name */ + G_TYPE_OBJECT)); /* source */ +} + +static GIcon * +get_icon_for_media (GrlMedia *media) +{ + if (grl_media_is_container (media)) { + return g_themed_icon_new ("folder"); + } else if (grl_media_is_video (media)) { + return g_themed_icon_new ("gnome-mime-video"); + } else if (grl_media_is_audio (media)) { + return g_themed_icon_new ("gnome-mime-audio"); + } else if (grl_media_is_image (media)) { + return g_themed_icon_new ("gnome-mime-image"); + } else { + return g_themed_icon_new ("text-x-generic"); + } +} + +static GList * +all_keys (void) +{ + GrlRegistry *registry; + static GList *keys = NULL; + + if (!keys) { + registry = grl_registry_get_default (); + keys = grl_registry_get_metadata_keys (registry); + } + + return keys; +} + +static GrlTypeFilter +get_type_filter (void) +{ + GrlTypeFilter filter = GRL_TYPE_FILTER_NONE; + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (view->filter_audio))) { + filter |= GRL_TYPE_FILTER_AUDIO; + } + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (view->filter_video))) { + filter |= GRL_TYPE_FILTER_VIDEO; + } + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (view->filter_image))) { + filter |= GRL_TYPE_FILTER_IMAGE; + } + + return filter; +} + +static void +browse_history_push (GrlSource *source, GrlMedia *media) +{ + if (source) + g_object_ref (source); + if (media) + g_object_ref (media); + + ui_state->source_stack = g_list_append (ui_state->source_stack, source); + ui_state->container_stack = g_list_append (ui_state->container_stack, media); +} + +static void +browse_history_pop (GrlSource **source, GrlMedia **media) +{ + GList *tmp; + tmp = g_list_last (ui_state->source_stack); + if (tmp) { + *source = GRL_SOURCE (tmp->data); + ui_state->source_stack = g_list_delete_link (ui_state->source_stack, tmp); + } + tmp = g_list_last (ui_state->container_stack); + if (tmp) { + *media = (GrlMedia *) tmp->data; + ui_state->container_stack = g_list_delete_link (ui_state->container_stack, + tmp); + } +} + +static void +set_cur_browse (GrlSource *source, GrlMedia *media) +{ + g_clear_object (&ui_state->cur_source); + g_clear_object (&ui_state->cur_container); + + if (source) + g_object_ref (source); + if (media) + g_object_ref (media); + + ui_state->cur_source = source; + ui_state->cur_container = media; +} + +static void +set_cur_resolve (GrlSource *source, GrlMedia *media) +{ + g_clear_object (&ui_state->cur_md_source); + g_clear_object (&ui_state->cur_md_media); + + if (source) + g_object_ref (source); + if (media) + g_object_ref (media); + + ui_state->cur_md_source = source; + ui_state->cur_md_media = media; +} + +static void +clear_panes (void) +{ + /* Prevent undesired cursor-changed signal calls */ + gtk_tree_view_set_model (GTK_TREE_VIEW (view->browser), + NULL); + if (view->browser_model) { + gtk_list_store_clear (GTK_LIST_STORE (view->browser_model)); + g_object_unref (view->browser_model); + } + view->browser_model = create_browser_model (); + gtk_tree_view_set_model (GTK_TREE_VIEW (view->browser), + view->browser_model); + + if (view->metadata_model) { + gtk_list_store_clear (GTK_LIST_STORE (view->metadata_model)); + g_object_unref (view->metadata_model); + } + view->metadata_model = create_resolve_model (); + gtk_tree_view_set_model (GTK_TREE_VIEW (view->metadata), + view->metadata_model); + + gtk_widget_set_sensitive (view->show_btn, FALSE); + ui_state->last_url = NULL; + + gtk_widget_set_sensitive (view->store_btn, FALSE); + gtk_widget_set_sensitive (view->remove_btn, FALSE); +} + +static void +clear_search_combo (void) +{ + if (view->search_combo_model) { + gtk_list_store_clear (GTK_LIST_STORE (view->search_combo_model)); + g_object_unref (view->search_combo_model); + } + view->search_combo_model = create_search_combo_model (); + gtk_combo_box_set_model (GTK_COMBO_BOX (view->search_combo), + view->search_combo_model); +} + +static void +clear_query_combo (void) +{ + if (view->query_combo_model) { + gtk_list_store_clear (GTK_LIST_STORE (view->query_combo_model)); + g_object_unref (view->query_combo_model); + } + view->query_combo_model = create_query_combo_model (); + gtk_combo_box_set_model (GTK_COMBO_BOX (view->query_combo), + view->query_combo_model); +} + +static void +clear_ui (void) +{ + clear_panes (); + clear_search_combo (); + clear_query_combo (); +} + +static void +cancel_current_operation (void) +{ + if (ui_state->op_ongoing) { + grl_operation_cancel (ui_state->cur_op_id); + ui_state->op_ongoing = FALSE; + } +} + +static gchar * +value_description (const GValue *value) +{ + if (value == NULL) + return g_strdup (""); + + if (G_VALUE_HOLDS_BOXED (value) + && G_VALUE_TYPE (value) == G_TYPE_DATE_TIME) { + GDateTime *date_time = g_value_get_boxed (value); + return g_date_time_format (date_time, "%FT%H:%M:%SZ"); + } else if (G_VALUE_HOLDS_STRING (value)) { + return g_value_dup_string (value); + } + + return g_strdup_value_contents (value); +} + +static char * +composed_value_description (GList *values) +{ + gint length = g_list_length (values); + GString *composed = g_string_new (""); + + while (values) { + char *desc = value_description ((GValue *) values->data); + g_string_append (composed, desc); + g_free (desc); + if (--length > 0) { + composed = g_string_append (composed, ", "); + } + values = g_list_next (values); + } + + return g_string_free (composed, FALSE); +} + +static void +resolve_cb (GrlSource *source, + guint operation_id, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + GList *keys, *i; + GtkTreeIter iter; + GrlKeyID key; + const gchar *key_name; + + /* Not interested if not the last media we + requested metadata for */ + if (media != ui_state->cur_md_media) { + return; + } + + if (view->metadata_model) { + gtk_list_store_clear (GTK_LIST_STORE (view->metadata_model)); + g_object_unref (view->metadata_model); + } + view->metadata_model = create_resolve_model (); + gtk_tree_view_set_model (GTK_TREE_VIEW (view->metadata), + view->metadata_model); + + if (error) { + if (g_error_matches (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED)) { + GRL_DEBUG ("Operation cancelled"); + } else { + g_critical ("Error: %s", error->message); + return; + } + } + + if (media) { + keys = grl_data_get_keys (GRL_DATA (media)); + i = keys; + while (i) { + key = GRLPOINTER_TO_KEYID (i->data); + key_name = grl_metadata_key_get_name (key); + if (grl_data_has_key (GRL_DATA (media), key)) { + GRL_DEBUG ("handling key %d (%s)", key, key_name); + GList *values = grl_data_get_single_values_for_key (GRL_DATA (media), key); + gchar *composed_value = composed_value_description (values); + g_list_free (values); + gtk_list_store_append (GTK_LIST_STORE (view->metadata_model), &iter); + gtk_list_store_set (GTK_LIST_STORE (view->metadata_model), + &iter, + METADATA_MODEL_NAME, + key_name, + METADATA_MODEL_VALUE, composed_value, + -1); + GRL_DEBUG (" %s: %s", key_name, composed_value); + g_free (composed_value); + } + i = g_list_next (i); + } + + g_list_free (keys); + + /* Don't free media (we do not ref it when issuing resolve(), + so its reference comes from the treeview and that's freed + when the treeview is cleared */ + + /* Set/unset show button */ + if ((grl_media_is_audio (media) || + grl_media_is_video (media) || + grl_media_is_image (media)) && + (ui_state->last_url = grl_media_get_url (media))) { + gtk_widget_set_sensitive (view->show_btn, TRUE); + } else { + gtk_widget_set_sensitive (view->show_btn, FALSE); + ui_state->last_url = NULL; + } + } +} + +static void +operation_started (GrlSource *source, guint operation_id, + gboolean multiple) +{ + ui_state->op_ongoing = TRUE; + ui_state->cur_op_source = source; + ui_state->cur_op_id = operation_id; + ui_state->multiple = multiple; + + /* Set busy cursor */ + GdkCursor *cursor; + cursor = gdk_cursor_new (GDK_WATCH); + gdk_window_set_cursor(gtk_widget_get_window (view->window), cursor); + g_object_unref (cursor); +} + +static void +operation_finished (void) +{ + ui_state->op_ongoing = FALSE; + + /* Set default cursor */ + gdk_window_set_cursor(gtk_widget_get_window (view->window), NULL); +} + +static void +browse_search_query_cb (GrlSource *source, + guint op_id, + GrlMedia *media, + guint remaining, + gpointer user_data, + const GError *error) +{ + gint type; + const gchar *name; + GtkTreeIter iter; + GIcon *icon; + OperationState *state = (OperationState *) user_data; + guint next_op_id; + + if (error) { + if (g_error_matches (error, + GRL_CORE_ERROR, + GRL_CORE_ERROR_OPERATION_CANCELLED)) { + GRL_DEBUG ("Operation cancelled"); + } else { + g_critical ("Error: %s", error->message); + } + } + + state->count++; + + if (media) { + icon = get_icon_for_media (media); + name = grl_media_get_title (media); + if (grl_media_is_container (media)) { + gint childcount = + grl_media_get_childcount (media); + type = OBJECT_TYPE_CONTAINER; + if (childcount != GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN) { + name = g_strdup_printf ("%s (%d)", name, childcount); + } else { + name = g_strconcat (name, " (?)", NULL); + } + } else { + type = OBJECT_TYPE_MEDIA; + } + + gtk_list_store_append (GTK_LIST_STORE (view->browser_model), &iter); + gtk_list_store_set (GTK_LIST_STORE (view->browser_model), + &iter, + BROWSER_MODEL_SOURCE, source, + BROWSER_MODEL_CONTENT, media, + BROWSER_MODEL_TYPE, type, + BROWSER_MODEL_NAME, name, + BROWSER_MODEL_ICON, icon, + -1); + + g_object_unref (media); + g_clear_object (&icon); + } + + if (remaining == 0) { + /* Done with this chunk, check if there is more to browse */ + if (ui_state->op_ongoing && + ui_state->cur_op_id == op_id && + media != NULL) { + /* Operation is still valid, so let's go */ + state->offset += state->count; + if (state->count >= BROWSE_CHUNK_SIZE && + state->offset < BROWSE_MAX_COUNT) { + GrlOperationOptions *options = + grl_operation_options_copy (default_options); + grl_operation_options_set_type_filter (options, + get_type_filter ()); + + GRL_DEBUG ("operation (%d) requesting more data from source", op_id); + state->count = 0; + + grl_operation_options_set_skip (options, state->offset); + grl_operation_options_set_count (options, BROWSE_CHUNK_SIZE); + + GrlOperationOptions *supported_options = NULL; + grl_operation_options_obey_caps (options, + grl_source_get_caps (source, GRL_OP_SEARCH), + &supported_options, + NULL); + switch (state->type) { + case OP_TYPE_BROWSE: + next_op_id = + grl_source_browse (source, + ui_state->cur_container, + all_keys (), + supported_options, + browse_search_query_cb, + state); + break; + case OP_TYPE_SEARCH: + next_op_id = + grl_source_search (source, + state->text, + all_keys (), + supported_options, + browse_search_query_cb, + state); + break; + case OP_TYPE_QUERY: + next_op_id = + grl_source_query (source, + state->text, + all_keys (), + supported_options, + browse_search_query_cb, + state); + break; + case OP_TYPE_MULTI_SEARCH: + /* this shouldn't happen as multiple search has no chunk + * size parameter */ + g_warn_if_reached (); + g_object_unref (options); + goto operation_finished; + break; + default: + g_assert_not_reached (); + } + g_object_unref (options); + g_object_unref (supported_options); + operation_started (source, next_op_id, FALSE); + } else { + /* We browsed all requested elements */ + goto operation_finished; + } + } else { + /* The operation was cancelled */ + goto operation_finished; + } + } + + return; + + operation_finished: + g_free (state); + operation_finished (); + GRL_DEBUG ("**** operation finished (%d) ****", op_id); +} + +static void +browse (GrlSource *source, GrlMedia *container) +{ + GrlOperationOptions *options; + GrlOperationOptions *supported_options; + + guint browse_id; + + if (source) { + /* If we have an ongoing operation, cancel it first */ + cancel_current_operation (); + clear_panes (); + + OperationState *state = g_new0 (OperationState, 1); + state->type = OP_TYPE_BROWSE; + + options = grl_operation_options_copy (default_options); + grl_operation_options_set_type_filter (options, + get_type_filter ()); + grl_operation_options_obey_caps (options, + grl_source_get_caps (GRL_SOURCE (source), GRL_OP_BROWSE), + &supported_options, + NULL); + g_object_unref (options); + browse_id = grl_source_browse (source, + container, + all_keys (), + supported_options, + browse_search_query_cb, + state); + g_object_unref (supported_options); + operation_started (source, browse_id, FALSE); + } else { + show_browsable_sources (); + } + + set_cur_browse (source, container); + set_cur_resolve (NULL, NULL); +} + +static void +browser_activated_cb (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + gpointer user_data) +{ + GtkTreeModel *model; + GtkTreeIter iter; + GrlMedia *content; + gint type; + GrlSource *source; + GrlMedia *container; + + model = gtk_tree_view_get_model (tree_view); + gtk_tree_model_get_iter (model, &iter, path); + gtk_tree_model_get (model, &iter, + BROWSER_MODEL_SOURCE, &source, + BROWSER_MODEL_CONTENT, &content, + BROWSER_MODEL_TYPE, &type, + -1); + + if (type == OBJECT_TYPE_MEDIA) { + return; + } + + if (type == OBJECT_TYPE_SOURCE) { + container = NULL; + } else if (content) { + container = content; + } else { + container = NULL; + } + + browse_history_push (ui_state->cur_source, ui_state->cur_container); + browse (source, container); + + g_clear_object (&source); + g_clear_object (&content); +} + +static void +add_source_metadata (GtkTreeModel *model, + const char *key, + const char *value) +{ + GtkTreeIter iter; + + gtk_list_store_append (GTK_LIST_STORE (model), &iter); + gtk_list_store_set (GTK_LIST_STORE (model), + &iter, + METADATA_MODEL_NAME, key, + METADATA_MODEL_VALUE, value, + -1); + GRL_DEBUG (" %s: %s", key, value); + +} + +static char * +supported_media_to_str (GrlSupportedMedia type) +{ + GString *s; + + if (type == GRL_SUPPORTED_MEDIA_NONE) + return g_strdup ("None"); + if (type == GRL_SUPPORTED_MEDIA_ALL) + return g_strdup ("All"); + + s = g_string_new (NULL); + if (GRL_SUPPORTED_MEDIA_AUDIO & type) + g_string_append (s, "audio, "); + if (GRL_SUPPORTED_MEDIA_VIDEO & type) + g_string_append (s, "video, "); + if (GRL_SUPPORTED_MEDIA_IMAGE & type) + g_string_append (s, "image, "); + + g_string_truncate (s, s->len - 2); + return g_string_free (s, FALSE); +} + +static char * +tags_to_str (char **tags) +{ + GString *s; + guint i; + + if (tags == NULL) + return g_strdup (""); + + s = g_string_new (NULL); + + for (i = 0; tags[i] != NULL; i++) { + g_string_append (s, tags[i]); + g_string_append (s, ", "); + } + + if (i > 0) + g_string_truncate (s, s->len - 2); + return g_string_free (s, FALSE); +} + +static void +populate_source_metadata (GrlSource *source) +{ + if (view->metadata_model) { + gtk_list_store_clear (GTK_LIST_STORE (view->metadata_model)); + g_object_unref (view->metadata_model); + } + view->metadata_model = create_resolve_model (); + gtk_tree_view_set_model (GTK_TREE_VIEW (view->metadata), + view->metadata_model); + + if (source) { + const char *str_props[] = { + "source-desc", + "source-id", + "source-name" + }; + guint i; + char *str; + guint auto_split_threshold; + int rank; + GrlSupportedMedia supported_media; + GIcon *icon; + char **tags; + + for (i = 0; i < G_N_ELEMENTS (str_props); i++) { + g_object_get (G_OBJECT (source), str_props[i], &str, NULL); + add_source_metadata (view->metadata_model, str_props[i], str); + g_free (str); + } + + g_object_get (G_OBJECT (source), + "auto-split-threshold", &auto_split_threshold, + "rank", &rank, + "supported-media", &supported_media, + "source-icon", &icon, + "source-tags", &tags, + NULL); + + str = g_strdup_printf ("%i", auto_split_threshold); + add_source_metadata (view->metadata_model, "auto-split-threshold", str); + g_free (str); + + str = g_strdup_printf ("%d", rank); + add_source_metadata (view->metadata_model, "rank", str); + g_free (str); + + str = supported_media_to_str (supported_media); + add_source_metadata (view->metadata_model, "supported-media", str); + g_free (str); + + if (icon) { + str = g_icon_to_string (icon); + add_source_metadata (view->metadata_model, "source-icon", str); + g_free (str); + g_object_unref (icon); + } + + str = tags_to_str (tags); + add_source_metadata (view->metadata_model, "source-tags", str); + g_free (str); + g_strfreev (tags); + } + + gtk_widget_set_sensitive (view->show_btn, FALSE); + ui_state->last_url = NULL; +} + +static void +resolve (GrlSource *source, GrlMedia *media) +{ + if (source && media) { + grl_source_resolve (source, + media, + all_keys (), + default_resolve_options, + resolve_cb, + NULL); + } else { + populate_source_metadata (source); + } +} + +static void +browser_row_selected_cb (GtkTreeView *tree_view, + gpointer user_data) +{ + GtkTreePath *path = NULL; + GtkTreeIter iter; + GrlSource *source; + GrlMedia *content; + + gtk_tree_view_get_cursor (tree_view, &path, NULL); + if (!path) { + return; + } + gtk_tree_model_get_iter (view->browser_model, &iter, path); + gtk_tree_model_get (view->browser_model, + &iter, + BROWSER_MODEL_SOURCE, &source, + BROWSER_MODEL_CONTENT, &content, + -1); + + if (source != ui_state->cur_md_source || + content != ui_state->cur_md_media) { + set_cur_resolve (source, content); + resolve (source, content); + } + + /* Check if we can store content in the selected item */ + if (content == NULL && + (grl_source_supported_operations (GRL_SOURCE (source)) & + GRL_OP_STORE)) { + gtk_widget_set_sensitive (view->store_btn, TRUE); + } else if (content && grl_media_is_container (content) && + grl_source_supported_operations (GRL_SOURCE (source)) & + GRL_OP_STORE_PARENT) { + gtk_widget_set_sensitive (view->store_btn, TRUE); + } else { + gtk_widget_set_sensitive (view->store_btn, FALSE); + } + + /* Check if we can remove the selected item */ + if (content != NULL && + (grl_source_supported_operations (GRL_SOURCE (source)) & + GRL_OP_REMOVE)) { + gtk_widget_set_sensitive (view->remove_btn, TRUE); + } else { + gtk_widget_set_sensitive (view->remove_btn, FALSE); + } + + gtk_tree_path_free(path); + g_object_unref (source); + g_clear_object (&content); +} + +static void +show_btn_clicked_cb (GtkButton *btn, gpointer user_data) +{ + GList *uri_list = NULL; + GError *error = NULL; + GAppInfo *app = NULL; + + if (ui_state->last_url) { + GRL_DEBUG ("playing: %s", ui_state->last_url); + uri_list = g_list_append (uri_list, (gpointer) ui_state->last_url); + if (grl_media_is_image (ui_state->cur_md_media)) { + app = launchers->eog; + } else { + /* Content from apple-trailers should be opened with mplayer, as they + require to change the user-agent */ + if (strcmp (grl_data_get_string (GRL_DATA (ui_state->cur_md_media), + GRL_METADATA_KEY_SOURCE), + "grl-apple-trailers") == 0) { + app = launchers->mplayer; + } else { + app = launchers->totem; + } + } + + g_app_info_launch_uris (app, uri_list, NULL, &error); + g_list_free (uri_list); + + if (error) { + GRL_WARNING ("Cannot use '%s' to show '%s'; using default application", + g_app_info_get_name (app), + ui_state->last_url); + g_clear_error (&error); + g_app_info_launch_default_for_uri (ui_state->last_url, NULL, &error); + if (error) { + GRL_WARNING ("Cannot use default application to show '%s'. " + "Stopping playback", ui_state->last_url); + g_error_free (error); + } + } + } +} + +static void +back_btn_clicked_cb (GtkButton *btn, gpointer user_data) +{ + GrlSource *prev_source = NULL; + GrlMedia *prev_container = NULL; + + /* TODO: when using dynamic sources this will break + because we have references to the removed sources + in these lists that we have to remove. */ + + /* Cancel previous operation, if any */ + cancel_current_operation (); + + /* Get previous source and container id, and browse it */ + browse_history_pop (&prev_source, &prev_container); + browse (prev_source, prev_container); + + g_clear_object (&prev_source); + g_clear_object (&prev_container); +} + +static void +store_cb (GrlSource *source, + GrlMedia *media, + GList *failed_keys, + gpointer user_data, + const GError *error) +{ + if (error) { + GRL_WARNING ("Error storing media: %s", error->message); + } else { + GRL_DEBUG ("Media stored"); + } + g_object_unref (media); +} + +static void +store_btn_clicked_cb (GtkButton *btn, gpointer user_data) +{ + GtkWidget *dialog; + GtkTreeSelection *sel; + GtkTreeModel *model = NULL; + GtkTreeIter iter; + GrlSource *source; + GrlMedia *container; + + sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (view->browser)); + gtk_tree_selection_get_selected (sel, &model, &iter); + gtk_tree_model_get (view->browser_model, &iter, + BROWSER_MODEL_SOURCE, &source, + BROWSER_MODEL_CONTENT, &container, + -1); + + dialog = + gtk_dialog_new_with_buttons ("Store content", + GTK_WINDOW (view->window), + GTK_DIALOG_MODAL | + GTK_DIALOG_DESTROY_WITH_PARENT, + "Store", GTK_RESPONSE_OK, + "Cancel", GTK_RESPONSE_CANCEL, + NULL); + GtkWidget *ca = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); + GtkWidget *box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + GtkWidget *l1 = gtk_label_new ("Title:"); + GtkWidget *e1 = gtk_entry_new (); + gtk_box_pack_start (GTK_BOX (box), l1, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (box), e1, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (ca), box, TRUE, TRUE, 0); + + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + GtkWidget *l2 = gtk_label_new ("URL:"); + GtkWidget *e2 = gtk_entry_new (); + gtk_box_pack_start (GTK_BOX (box), l2, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (box), e2, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (ca), box, TRUE, TRUE, 0); + + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + GtkWidget *l3 = gtk_label_new ("Desc:"); + GtkWidget *e3 = gtk_entry_new (); + gtk_box_pack_start (GTK_BOX (box), l3, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (box), e3, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (ca), box, TRUE, TRUE, 0); + + gtk_widget_show_all (dialog); + if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) { + GrlMedia *media; + const gchar *url = gtk_entry_get_text (GTK_ENTRY (e2)); + if (!url || !url[0]) { + media = grl_media_container_new (); + } else { + media = grl_media_new (); + grl_media_set_url (media, url); + } + grl_media_set_title (media, gtk_entry_get_text (GTK_ENTRY (e1))); + grl_media_set_description (media, + gtk_entry_get_text (GTK_ENTRY (e3))); + grl_source_store (source, container, + media, GRL_WRITE_FULL, store_cb, NULL); + } + + gtk_widget_destroy (dialog); + + if (source) { + g_object_unref (source); + } + if (container) { + g_object_unref (container); + } +} + +static void +remove_item_from_view (GrlSource *source, GrlMedia *media) +{ + GtkTreeIter iter; + GrlSource *iter_source; + GrlMedia *iter_media; + gboolean found = FALSE; + gboolean more; + + more = gtk_tree_model_get_iter_first (view->browser_model, &iter); + while (more && !found) { + gtk_tree_model_get (view->browser_model, &iter, + BROWSER_MODEL_SOURCE, &iter_source, + BROWSER_MODEL_CONTENT, &iter_media, + -1); + if (iter_source == source && iter_media == media) { + gtk_list_store_remove (GTK_LIST_STORE (view->browser_model), &iter); + found = TRUE; + } else { + more = gtk_tree_model_iter_next (view->browser_model, &iter); + } + if (source) { + g_object_unref (iter_source); + } + if (media) { + g_object_unref (iter_media); + } + } +} + +static void +remove_cb (GrlSource *source, + GrlMedia *media, + gpointer user_data, + const GError *error) +{ + if (error) { + GRL_WARNING ("Error removing media: %s", error->message); + } else { + GRL_DEBUG ("Media removed"); + remove_item_from_view (source, media); + } +} + +static void +remove_btn_clicked_cb (GtkButton *btn, gpointer user_data) +{ + GtkTreeSelection *sel; + GtkTreeModel *model = NULL; + GtkTreeIter iter; + GrlSource *source; + GrlMedia *media; + + sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (view->browser)); + gtk_tree_selection_get_selected (sel, &model, &iter); + gtk_tree_model_get (view->browser_model, &iter, + BROWSER_MODEL_SOURCE, &source, + BROWSER_MODEL_CONTENT, &media, + -1); + + grl_source_remove (source, media, remove_cb, NULL); + + g_clear_object (&source); + g_clear_object (&media); +} + +static void +search (GrlSource *source, const gchar *text) +{ + OperationState *state; + guint search_id; + gboolean multiple = FALSE; + GrlOperationOptions *options; + GrlOperationOptions *supported_options; + + /* If we have an operation ongoing, let's cancel it first */ + cancel_current_operation (); + + state = g_new0 (OperationState, 1); + state->text = (gchar *) text; + options = grl_operation_options_copy (default_options); + grl_operation_options_set_type_filter (options, + get_type_filter ()); + + if (source) { + /* Normal search */ + state->type = OP_TYPE_SEARCH; + grl_operation_options_obey_caps (options, + grl_source_get_caps (GRL_SOURCE (source), GRL_OP_SEARCH), + &supported_options, + NULL); + g_object_unref (options); + search_id = grl_source_search (source, + text, + all_keys (), + supported_options, + browse_search_query_cb, + state); + g_object_unref (supported_options); + } else { + /* Multiple search (all sources) */ + multiple = TRUE; + state->type = OP_TYPE_MULTI_SEARCH; + search_id = grl_multiple_search (NULL, + text, + all_keys (), + options, + browse_search_query_cb, + state); + } + clear_panes (); + operation_started (source, search_id, multiple); +} + +static void +search_btn_clicked_cb (GtkButton *btn, gpointer user_data) +{ + GtkTreeIter iter; + + if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (view->search_combo), + &iter)) { + GrlSource *source; + const gchar *text; + gtk_tree_model_get (view->search_combo_model, &iter, + SEARCH_MODEL_SOURCE, &source, + -1); + text = gtk_entry_get_text (GTK_ENTRY (view->search_text)); + /* Special case: empty search means search all */ + if (text[0] == '\0') { + search (source, NULL); + } else { + search (source, text); + } + + g_clear_object (&source); + } +} + +static void +query (GrlSource *source, const gchar *text) +{ + OperationState *state; + guint query_id; + + /* If we have an operation ongoing, let's cancel it first */ + cancel_current_operation (); + + state = g_new0 (OperationState, 1); + state->text = (gchar *) text; + state->type = OP_TYPE_QUERY; + query_id = grl_source_query (source, + text, + all_keys (), + default_options, + browse_search_query_cb, + state); + clear_panes (); + operation_started (source, query_id, FALSE); +} + +static void +query_btn_clicked_cb (GtkButton *btn, gpointer user_data) +{ + GtkTreeIter iter; + + if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (view->query_combo), + &iter)) { + GrlSource *source; + const gchar *text; + gtk_tree_model_get (view->query_combo_model, &iter, + QUERY_MODEL_SOURCE, &source, + -1); + text = gtk_entry_get_text (GTK_ENTRY (view->query_text)); + query (source, text); + + g_clear_object (&source); + } +} + +static void +query_combo_setup (void) +{ + GrlRegistry *registry; + GList *sources = NULL; + GList *sources_iter; + GtkTreeIter iter; + + clear_query_combo (); + + registry = grl_registry_get_default (); + sources = grl_registry_get_sources_by_operations (registry, + GRL_OP_QUERY, + FALSE); + for (sources_iter = sources; sources_iter; + sources_iter = g_list_next (sources_iter)) { + GrlSource *source = GRL_SOURCE (sources_iter->data); + const gchar *name = grl_source_get_name (source); + + gtk_list_store_append (GTK_LIST_STORE (view->query_combo_model), &iter); + gtk_list_store_set (GTK_LIST_STORE (view->query_combo_model), + &iter, + QUERY_MODEL_SOURCE, source, + QUERY_MODEL_NAME, name, + -1); + } + g_list_free (sources); + + gtk_combo_box_set_active (GTK_COMBO_BOX (view->query_combo), 0); +} + +static void +search_combo_setup (void) +{ + GrlRegistry *registry; + GList *sources = NULL; + GList *sources_iter; + GtkTreeIter iter; + + clear_search_combo (); + + registry = grl_registry_get_default (); + sources = grl_registry_get_sources_by_operations (registry, + GRL_OP_SEARCH, + FALSE); + for (sources_iter = sources; sources_iter; + sources_iter = g_list_next (sources_iter)) { + GrlSource *source = GRL_SOURCE (sources_iter->data); + const gchar *name = grl_source_get_name (source); + + gtk_list_store_append (GTK_LIST_STORE (view->search_combo_model), &iter); + gtk_list_store_set (GTK_LIST_STORE (view->search_combo_model), + &iter, + SEARCH_MODEL_SOURCE, source, + SEARCH_MODEL_NAME, name, + -1); + } + g_list_free (sources); + + /* Add "All" option */ + gtk_list_store_append (GTK_LIST_STORE (view->search_combo_model), &iter); + gtk_list_store_set (GTK_LIST_STORE (view->search_combo_model), + &iter, + SEARCH_MODEL_SOURCE, NULL, + SEARCH_MODEL_NAME, "All", + -1); + + gtk_combo_box_set_active (GTK_COMBO_BOX (view->search_combo), 0); +} + +static gchar * +get_config_dir (void) +{ + char *confdir; + GFile *dir; + GError *error = NULL; + + confdir = g_build_filename (g_get_user_config_dir (), + "grilo-test-ui", + NULL); + + /* create the configuration directory if needed */ + if (g_file_test (confdir, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))) + return confdir; + + dir = g_file_new_for_path (confdir); + g_file_make_directory_with_parents (dir, NULL, &error); + g_object_unref (dir); + + if (error && error->code != G_IO_ERROR_EXISTS) { + g_critical ("Could not create config directory %s: %s", + confdir, error->message); + g_clear_error (&error); + return NULL; + } + + return confdir; +} + +static gchar * +load_flickr_token (gchar **secret) +{ + GKeyFile *keyfile; + gchar *path; + gchar *file = NULL; + gchar *token = NULL; + + path = get_config_dir (); + if (path) { + file = g_build_filename (path, "tokens.conf", NULL); + g_free (path); + } + + if (!file) + return NULL; + + keyfile = g_key_file_new (); + if (!g_key_file_load_from_file (keyfile, file, G_KEY_FILE_NONE, NULL)) + goto bailout; + + token = g_key_file_get_value (keyfile, "flickr", "auth-token", NULL); + (*secret) = g_key_file_get_value (keyfile, "flickr", "auth-token-secret", NULL); + +bailout: + g_free (file); + g_key_file_free (keyfile); + return token; +} + +static void +save_flickr_token (const gchar *token, const gchar *secret) +{ + GKeyFile *keyfile; + gchar *path; + gchar *file = NULL; + + path = get_config_dir (); + if (path) { + file = g_build_filename (path, "tokens.conf", NULL); + g_free (path); + } + + if (!file) + return; + + keyfile = g_key_file_new (); + g_key_file_load_from_file (keyfile, file, G_KEY_FILE_NONE, NULL); + g_key_file_set_value (keyfile, "flickr", "auth-token", token); + g_key_file_set_value (keyfile, "flickr", "auth-token-secret", secret); + + { + GError *error = NULL; + gchar *content = g_key_file_to_data (keyfile, NULL, NULL); + g_file_set_contents (file, content, -1, &error); + if (error) { + g_warning ("Could not write %s: %s", file, error->message); + g_clear_error (&error); + } + g_free (content); + } + + g_free (file); + g_key_file_free (keyfile); +} + +#ifdef HAVE_OAUTH +static void +activate_ok_button (GtkLabel *label, + gchar *uri, + gpointer user_data) +{ + GRL_DEBUG ("activate invoked"); + gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (label)), + uri, + GDK_CURRENT_TIME, + NULL); + gtk_widget_set_sensitive (user_data, TRUE); +} +#endif /* HAVE_OAUTH */ + +static void +load_file_config (void) +{ + GrlRegistry *registry; + gchar *config_file; + + registry = grl_registry_get_default (); + config_file = g_strconcat (g_get_user_config_dir(), + G_DIR_SEPARATOR_S, "grilo-test-ui", + G_DIR_SEPARATOR_S, "grilo.conf", + NULL); + if (g_file_test (config_file, G_FILE_TEST_EXISTS)) { + grl_registry_add_config_from_file (registry, config_file, NULL); + } + g_free (config_file); +} + +#ifdef HAVE_OAUTH +static gchar * +authorize_flickr (void) +{ + GtkWidget *dialog; + GtkWidget *fail_dialog; + GtkWidget *label; + GtkWidget *view; + GtkWidget *input; + const gchar *verifier; + gchar *markup = NULL; + gchar *token = NULL; + gchar *login_link = NULL; + GtkWidget *ok_button; + + gchar *rt_secret = NULL; + gchar *at_secret = NULL; + + gchar *rt = flickroauth_get_request_token (FLICKR_KEY, FLICKR_SECRET, &rt_secret); + if (!rt) { + GRL_WARNING ("Unable to obtain a Flickr's Request Key"); + return NULL; + } + + login_link = flickroauth_authorization_url (rt, "read"); + + view = gtk_text_view_new (); + gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)), + FLICKR_AUTHORIZE_MSG, + -1); + gtk_text_view_set_justification (GTK_TEXT_VIEW (view), GTK_JUSTIFY_FILL); + gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD); + gtk_text_view_set_editable (GTK_TEXT_VIEW (view), FALSE); + gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), FALSE); + + markup = + g_markup_printf_escaped ("READ-ONLY AUTHORIZE", + login_link); + label = gtk_label_new (NULL); + gtk_label_set_markup (GTK_LABEL (label), markup); + gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); + + input = gtk_entry_new (); + + dialog = + gtk_dialog_new_with_buttons ("Authorize Flickr access", + GTK_WINDOW (gtk_widget_get_parent_window (view)), + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, + NULL, NULL); + + gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), view, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), label, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), input, TRUE, TRUE, 0); + + ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog), "Authorize", GTK_RESPONSE_OK); + gtk_widget_set_sensitive (ok_button, FALSE); + gtk_dialog_add_button (GTK_DIALOG (dialog), "Cancel", GTK_RESPONSE_CANCEL); + + g_signal_connect (G_OBJECT (label), + "activate-link", + G_CALLBACK (activate_ok_button), + ok_button); + + gtk_widget_show_all (dialog); + if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) { + verifier = gtk_entry_get_text (GTK_ENTRY (input)); + token = flickroauth_get_access_token (FLICKR_KEY, FLICKR_SECRET, rt, rt_secret, verifier, &at_secret); + if (token) { + save_flickr_token (token, at_secret); + } else { + fail_dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_parent_window (view)), + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + "Authorization failed. Retry later"); + gtk_dialog_run (GTK_DIALOG (fail_dialog)); + gtk_widget_destroy (dialog); + } + } + + gtk_widget_destroy (dialog); + g_free (rt); + g_free (rt_secret); + g_free (at_secret); + + g_free (login_link); + g_free (markup); + + return token; +} +#endif /* HAVE_OAUTH */ + +static void +set_flickr_config (void) +{ + GrlConfig *config; + GrlRegistry *registry; + gchar *token; + gchar *secret = NULL; + + registry = grl_registry_get_default (); + + config = grl_config_new ("grl-flickr", NULL); + grl_config_set_api_key (config, FLICKR_KEY); + grl_config_set_api_secret (config, FLICKR_SECRET); + grl_registry_add_config (registry, config, NULL); + + token = load_flickr_token (&secret); + +#ifdef HAVE_OAUTH + if (!token) { + token = authorize_flickr (); + if (!token) { + /* Save empty token to avoid asking again */ + save_flickr_token ("", ""); + } + } +#else + save_flickr_token("", ""); +#endif + + if (token && token[0] != '\0') { + config = grl_config_new ("grl-flickr", NULL); + grl_config_set_api_key (config, FLICKR_KEY); + grl_config_set_api_secret (config, FLICKR_SECRET); + grl_config_set_api_token (config, token); + grl_config_set_api_token_secret (config, secret); + grl_registry_add_config (registry, config, NULL); + } + g_free (token); + g_free (secret); +} + +static void +set_youtube_config (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + config = grl_config_new ("grl-youtube", NULL); + grl_config_set_api_key (config, YOUTUBE_KEY); + + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +static void +set_vimeo_config (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + config = grl_config_new ("grl-vimeo", NULL); + grl_config_set_api_key (config, VIMEO_KEY); + grl_config_set_api_secret (config, VIMEO_SECRET); + + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +static void +set_tmdb_config (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + config =grl_config_new ("grl-tmdb", NULL); + grl_config_set_api_key (config, TMDB_KEY); + + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +static void +set_thetvdb_config (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + config = grl_config_new ("grl-thetvdb", NULL); + grl_config_set_api_key (config, THETVDB_KEY); + + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +static void +set_acoustid_config (void) +{ + GrlConfig *config; + GrlRegistry *registry; + + config = grl_config_new ("grl-acoustid", NULL); + grl_config_set_api_key (config, ACOUSTID_KEY); + + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config, NULL); +} + +static void +set_filesystem_config (void) +{ + GrlConfig *config1, *config2; + GrlRegistry *registry; + + config1 = grl_config_new ("grl-filesystem", NULL); + grl_config_set_string (config1, "base-uri", "recent:///"); + + config2 = grl_config_new ("grl-filesystem", NULL); + grl_config_set_string (config2, "base-uri", "file:///"); + grl_config_set_boolean (config2, "handle-pls", TRUE); + + registry = grl_registry_get_default (); + grl_registry_add_config (registry, config1, NULL); + grl_registry_add_config (registry, config2, NULL); +} + +static void +launchers_setup (void) +{ + launchers = g_new0 (UriLaunchers, 1); + launchers->eog = g_app_info_create_from_commandline ("eog", + "Eye of GNOME (eog)", + G_APP_INFO_CREATE_SUPPORTS_URIS, + NULL); + launchers->totem = g_app_info_create_from_commandline ("totem", + "Totem", + G_APP_INFO_CREATE_SUPPORTS_URIS, + NULL); + launchers->mplayer = + g_app_info_create_from_commandline ("mplayer -user-agent \"QuickTime\" -cache 5000", + "The Movie Player (mplayer)", + G_APP_INFO_CREATE_SUPPORTS_URIS | G_APP_INFO_CREATE_NEEDS_TERMINAL, + NULL); +} + +static void +options_setup (void) +{ + default_options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (default_options, BROWSE_FLAGS); + grl_operation_options_set_skip (default_options, 0); + grl_operation_options_set_count (default_options, BROWSE_CHUNK_SIZE); + + default_resolve_options = grl_operation_options_new (NULL); + grl_operation_options_set_resolution_flags (default_resolve_options, RESOLVE_FLAGS); +} + +static gboolean +delete_event_cb (GtkWidget *widget, + GdkEvent *event, + gpointer user_data) +{ + GApplication *app = g_application_get_default (); + + gtk_widget_hide (widget); + g_application_quit (app); + + return TRUE; +} + +static void +ui_setup (GApplication *app) +{ + view = g_new0 (UiView, 1); + ui_state = g_new0 (UiState, 1); + + /* Main window */ + view->window = gtk_application_window_new (GTK_APPLICATION (app)); + gtk_window_set_title (GTK_WINDOW (view->window), WINDOW_TITLE); + gtk_window_resize (GTK_WINDOW (view->window), 600, 400); + g_signal_connect (G_OBJECT (view->window), "delete-event", + G_CALLBACK (delete_event_cb), NULL); + + /* Menu bar */ + menu_setup (app); + + GtkWidget *mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_container_add (GTK_CONTAINER (view->window), mainbox); + + /* Main layout */ + GtkWidget *box = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); + view->lpane = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + view->rpane = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_pack_start (GTK_BOX (mainbox), box, TRUE, TRUE, 0); + gtk_paned_add1 (GTK_PANED (box), view->lpane); + gtk_paned_add2 (GTK_PANED (box), view->rpane); + + /* Search & Query */ + GtkWidget *hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + GtkWidget *vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + view->search_text = gtk_entry_new (); + gtk_box_pack_start (GTK_BOX (vbox), view->search_text, TRUE, TRUE, 0); + view->query_text = gtk_entry_new (); + gtk_box_pack_start (GTK_BOX (vbox), view->query_text, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0); + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + view->search_combo = gtk_combo_box_new (); + gtk_container_add_with_properties (GTK_CONTAINER (vbox), view->search_combo, + "expand", FALSE, NULL); + GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); + gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (view->search_combo), + renderer, FALSE); + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (view->search_combo), + renderer, "text", 0, NULL); + view->query_combo = gtk_combo_box_new (); + gtk_container_add_with_properties (GTK_CONTAINER (vbox), view->query_combo, + "expand", FALSE, NULL); + renderer = gtk_cell_renderer_text_new (); + gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (view->query_combo), + renderer, FALSE); + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (view->query_combo), + renderer, "text", 0, NULL); + gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0); + + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + view->search_btn = gtk_button_new_with_label ("Search"); + gtk_container_add_with_properties (GTK_CONTAINER (vbox), view->search_btn, + "expand", FALSE, NULL); + view->query_btn = gtk_button_new_with_label ("Query"); + gtk_container_add_with_properties (GTK_CONTAINER (vbox), view->query_btn, + "expand", FALSE, NULL); + gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0); + + gtk_container_add_with_properties (GTK_CONTAINER (view->lpane), hbox, + "expand", FALSE, NULL); + + g_signal_connect (view->search_btn, "clicked", + G_CALLBACK (search_btn_clicked_cb), NULL); + g_signal_connect (view->query_btn, "clicked", + G_CALLBACK (query_btn_clicked_cb), NULL); + search_combo_setup (); + query_combo_setup (); + + /* Advanced search */ + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + view->filter_audio = gtk_check_button_new_with_label ("Audio"); + view->filter_video = gtk_check_button_new_with_label ("Video"); + view->filter_image = gtk_check_button_new_with_label ("Image"); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (view->filter_audio), TRUE); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (view->filter_video), TRUE); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (view->filter_image), TRUE); + + gtk_container_add_with_properties (GTK_CONTAINER (box), + view->filter_audio, + "expand", FALSE, NULL); + gtk_container_add_with_properties (GTK_CONTAINER (box), + view->filter_video, + "expand", FALSE, NULL); + gtk_container_add_with_properties (GTK_CONTAINER (box), + view->filter_image, + "expand", FALSE, NULL); + gtk_container_add_with_properties (GTK_CONTAINER (view->lpane), + box, + "expand", FALSE, NULL); + + /* Toolbar buttons */ + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + view->back_btn = gtk_button_new (); + gtk_button_set_image (GTK_BUTTON (view->back_btn), + gtk_image_new_from_icon_name ("gtk-go-back", + GTK_ICON_SIZE_BUTTON)); + view->store_btn = gtk_button_new (); + gtk_button_set_image (GTK_BUTTON (view->store_btn), + gtk_image_new_from_icon_name ("list-add", + GTK_ICON_SIZE_BUTTON)); + view->remove_btn = gtk_button_new (); + gtk_button_set_image (GTK_BUTTON (view->remove_btn), + gtk_image_new_from_icon_name ("list-remove", + GTK_ICON_SIZE_BUTTON)); + + gtk_container_add_with_properties (GTK_CONTAINER (box), + view->back_btn, + "expand", FALSE, NULL); + gtk_container_add_with_properties (GTK_CONTAINER (box), + view->store_btn, + "expand", FALSE, NULL); + gtk_container_add_with_properties (GTK_CONTAINER (box), + view->remove_btn, + "expand", FALSE, NULL); + gtk_container_add_with_properties (GTK_CONTAINER (view->lpane), + box, "expand", FALSE, NULL); + + g_signal_connect (view->back_btn, "clicked", + G_CALLBACK (back_btn_clicked_cb), NULL); + g_signal_connect (view->store_btn, "clicked", + G_CALLBACK (store_btn_clicked_cb), NULL); + g_signal_connect (view->remove_btn, "clicked", + G_CALLBACK (remove_btn_clicked_cb), NULL); + gtk_widget_set_sensitive (view->store_btn, FALSE); + gtk_widget_set_sensitive (view->remove_btn, FALSE); + + /* Contents tree view */ + GtkWidget *scroll = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), + GTK_POLICY_AUTOMATIC, + GTK_POLICY_AUTOMATIC); + view->browser = gtk_tree_view_new (); + gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view->browser), FALSE); + + gint i; + GtkCellRenderer *col_renders[2]; + gchar *col_attributes[] = {"gicon", "text"}; + gint col_model[2] = { BROWSER_MODEL_ICON, BROWSER_MODEL_NAME}; + col_renders[0] = gtk_cell_renderer_pixbuf_new (); + col_renders[1] = gtk_cell_renderer_text_new (); + GtkTreeViewColumn *col = gtk_tree_view_column_new (); + for (i=0; i<2; i++) { + gtk_tree_view_column_pack_start (col, col_renders[i], FALSE); + gtk_tree_view_column_add_attribute (col, + col_renders[i], + col_attributes[i], + col_model[i]); + } + gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE); + gtk_tree_view_insert_column (GTK_TREE_VIEW (view->browser), col, -1); + + gtk_container_add (GTK_CONTAINER (scroll), view->browser); + gtk_box_pack_start (GTK_BOX (view->lpane), scroll, TRUE, TRUE, 0); + gtk_widget_set_size_request (view->browser, + BROWSER_MIN_WIDTH, + BROWSER_MIN_HEIGHT); + g_signal_connect (view->browser, "row-activated", + G_CALLBACK (browser_activated_cb), NULL); + g_signal_connect (view->browser, "cursor-changed", + G_CALLBACK (browser_row_selected_cb), NULL); + + /* Show button */ + view->show_btn = gtk_button_new_with_label ("Show"); + gtk_container_add_with_properties (GTK_CONTAINER (view->rpane), + view->show_btn, + "expand", FALSE, NULL); + gtk_widget_set_sensitive (view->show_btn, FALSE); + g_signal_connect (view->show_btn, "clicked", + G_CALLBACK (show_btn_clicked_cb), NULL); + /* Contents model */ + view->browser_model = create_browser_model (); + gtk_tree_view_set_model (GTK_TREE_VIEW (view->browser), + view->browser_model); + + /* Metadata tree view */ + GtkWidget *scroll_md = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll_md), + GTK_POLICY_AUTOMATIC, + GTK_POLICY_AUTOMATIC); + view->metadata = gtk_tree_view_new (); + gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view->metadata), FALSE); + + GtkCellRenderer *col_renders_md[2]; + gchar *col_attributes_md[] = {"text", "text"}; + gint col_model_md[2] = { METADATA_MODEL_NAME, METADATA_MODEL_VALUE}; + col_renders_md[0] = gtk_cell_renderer_text_new (); + col_renders_md[1] = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT, + "editable", TRUE, NULL); + col = gtk_tree_view_column_new (); + for (i=0; i<2; i++) { + gtk_tree_view_column_pack_start (col, col_renders_md[i], FALSE); + gtk_tree_view_column_add_attribute (col, + col_renders_md[i], + col_attributes_md[i], + col_model_md[i]); + } + gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE); + gtk_tree_view_insert_column (GTK_TREE_VIEW (view->metadata), col, -1); + + gtk_container_add (GTK_CONTAINER (scroll_md), view->metadata); + gtk_box_pack_start (GTK_BOX (view->rpane), scroll_md, TRUE, TRUE, 0); + + /* Status bar */ + view->statusbar = gtk_statusbar_new (); + +#if GTK_CHECK_VERSION (2, 91, 0) + gtk_window_set_has_resize_grip (GTK_WINDOW (view->window), FALSE); +#else + gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (view->statusbar), FALSE); +#endif + + view->statusbar_context_id = + gtk_statusbar_get_context_id (GTK_STATUSBAR (view->statusbar), + "changes notification"); + gtk_container_add_with_properties (GTK_CONTAINER (view->rpane), + view->statusbar, + "expand", FALSE, NULL); + + gtk_widget_set_size_request (view->metadata, + METADATA_MIN_WIDTH, + METADATA_MIN_HEIGHT); + + /* Populate the browser with the sources */ + show_browsable_sources (); + + gtk_widget_show_all (view->window); +} + +static void +show_browsable_sources () +{ + GList *sources; + GList *sources_iter; + GtkTreeIter iter; + GrlRegistry *registry; + + registry = grl_registry_get_default (); + + clear_panes (); + + sources = grl_registry_get_sources_by_operations (registry, + GRL_OP_BROWSE, + FALSE); + for (sources_iter = sources; sources_iter; + sources_iter = g_list_next (sources_iter)) { + GrlSource *source; + const gchar *name; + GIcon *icon; + + source = GRL_SOURCE (sources_iter->data); + + icon = g_themed_icon_new ("folder"); + name = grl_source_get_name (source); + GRL_DEBUG ("Loaded source: '%s'", name); + gtk_list_store_append (GTK_LIST_STORE (view->browser_model), &iter); + gtk_list_store_set (GTK_LIST_STORE (view->browser_model), + &iter, + BROWSER_MODEL_SOURCE, source, + BROWSER_MODEL_CONTENT, NULL, + BROWSER_MODEL_TYPE, OBJECT_TYPE_SOURCE, + BROWSER_MODEL_NAME, name, + BROWSER_MODEL_ICON, icon, + -1); + g_object_unref (icon); + } + g_list_free (sources); +} + +static void +free_stack (GList **stack) +{ + g_list_free_full (*stack, g_object_unref); +} + +static void +reset_browse_history (void) +{ + free_stack (&ui_state->source_stack); + free_stack (&ui_state->container_stack); + set_cur_browse (NULL, NULL); + set_cur_resolve (NULL, NULL); +} + +static void +reset_ui (void) +{ + cancel_current_operation (); + clear_panes (); + reset_browse_history (); + show_browsable_sources (); +} + +static gboolean +remove_notification (gpointer data) +{ + gtk_statusbar_remove (GTK_STATUSBAR (view->statusbar), + view->statusbar_context_id, + GPOINTER_TO_UINT (data)); + + return FALSE; +} + +static void +content_changed_cb (GrlSource *source, + GPtrArray *changed_medias, + GrlSourceChangeType change_type, + gboolean location_unknown, + gpointer data) +{ + GrlMedia *media; + const gchar *media_id = NULL; + const gchar *change_type_string = ""; + const gchar *location_string = ""; + gchar *message; + guint id, i; + + switch (change_type) { + case GRL_CONTENT_CHANGED: + change_type_string = "changed"; + break; + case GRL_CONTENT_ADDED: + change_type_string = "been added"; + break; + case GRL_CONTENT_REMOVED: + change_type_string = "been removed"; + break; + } + + if (location_unknown) { + location_string = "(unknown place)"; + } + + for (i = 0; i < changed_medias->len; i++) { + media = g_ptr_array_index (changed_medias, i); + media_id = grl_media_get_id (media); + if (grl_media_is_container (media)) { + message = + g_strdup_printf ("%s: container '%s' has %s%s", + grl_source_get_name (source), + media_id? media_id: "root", + change_type_string, + location_string); + } else { + message = + g_strdup_printf ("%s: element '%s' has %s", + grl_source_get_name (GRL_SOURCE (source)), + media_id, + change_type_string); + } + + id = gtk_statusbar_push (GTK_STATUSBAR (view->statusbar), + view->statusbar_context_id, + message); + + g_timeout_add_seconds (NOTIFICATION_TIMEOUT, + remove_notification, + GUINT_TO_POINTER (id)); + g_free (message); + } +} + +static void +metadata_key_added_cb (GrlRegistry *registry, + const gchar *key, + gpointer user_data) +{ + gchar *message; + guint id; + + message = g_strdup_printf ("New metadata key '%s' has been added", key); + id = gtk_statusbar_push (GTK_STATUSBAR (view->statusbar), + view->statusbar_context_id, + message); + g_timeout_add_seconds (NOTIFICATION_TIMEOUT, + remove_notification, + GUINT_TO_POINTER (id)); + g_free (message); +} + +static void +source_added_cb (GrlRegistry *registry, + GrlSource *source, + gpointer user_data) +{ + GRL_DEBUG ("Detected new source available: '%s'", + grl_source_get_name (source)); + + GRL_DEBUG ("\tSource's name: %s", grl_source_get_name (source)); + GRL_DEBUG ("\tSource's description: %s", grl_source_get_description (source)); + + /* If showing the plugin list, refresh it */ + if (!ui_state->cur_source && !ui_state->cur_container) { + show_browsable_sources (); + } + + /* Also refresh the search combos */ + search_combo_setup (); + query_combo_setup (); + + /* Check for changes in source (if supported) */ + if (ui_state->changes_notification && + (grl_source_supported_operations (source) & + GRL_OP_NOTIFY_CHANGE)) { + if (grl_source_notify_change_start (GRL_SOURCE (source), NULL)) { + g_signal_connect (GRL_SOURCE (source), "content-changed", + G_CALLBACK (content_changed_cb), NULL); + } + } +} + +static void +source_removed_cb (GrlRegistry *registry, + GrlSource *source, + gpointer user_data) +{ + GRL_DEBUG ("Source '%s' is gone", + grl_source_get_name (source)); + + if (!ui_state->cur_source && !ui_state->cur_container) { + /* If showing the plugin list, refresh it */ + show_browsable_sources (); + } else if ((gpointer)ui_state->cur_source == user_data ) { + /* If we were browsing that source, cancel operation and go back to + plugin list view */ + GRL_DEBUG ("Currently browsing the removed source: resetting UI."); + reset_ui (); + } + + /* Also refresh the search combo */ + search_combo_setup (); + query_combo_setup (); +} + +static void +load_plugins (void) +{ + GrlRegistry *registry; + registry = grl_registry_get_default (); + g_signal_connect (registry, "source-added", + G_CALLBACK (source_added_cb), NULL); + g_signal_connect (registry, "source-removed", + G_CALLBACK (source_removed_cb), NULL); + g_signal_connect (registry, "metadata-key-added", + G_CALLBACK (metadata_key_added_cb), NULL); + if (!grl_registry_load_all_plugins (registry, TRUE, NULL)) { + g_error ("Failed to load plugins."); + } +} + +static void +shutdown_plugins (void) +{ + GList *plugins; + GList *plugin_iter; + GrlRegistry *registry; + + /* Cancel previous operation, if any */ + cancel_current_operation (); + + clear_ui (); + + registry = grl_registry_get_default (); + + /* Disable "source-removed" handler */ + g_signal_handlers_block_by_func (G_OBJECT (registry), source_removed_cb, + NULL); + + /* Shut down the plugins now */ + plugins = grl_registry_get_plugins (registry, TRUE); + for (plugin_iter = plugins; + plugin_iter; + plugin_iter = g_list_next (plugin_iter)) { + grl_registry_unload_plugin (registry, + grl_plugin_get_id (GRL_PLUGIN (plugin_iter->data)), + NULL); + } + g_list_free (plugins); + + /* Re-enable "source-removed" handler */ + g_signal_handlers_unblock_by_func (G_OBJECT (registry), source_removed_cb, + NULL); + + /* Reload UI */ + reset_ui (); + search_combo_setup (); + query_combo_setup (); +} + +static void +load_all_plugins () +{ + GrlRegistry *registry; + + registry = grl_registry_get_default (); + + grl_registry_load_all_plugins (registry, TRUE, NULL); +} + +static void +configure_plugins (void) +{ + load_file_config(); + set_flickr_config (); + set_youtube_config (); + set_vimeo_config (); + set_tmdb_config (); + set_thetvdb_config (); + set_acoustid_config (); + set_filesystem_config (); +} + +static void +activate (GApplication *app, + gpointer user_data) +{ + launchers_setup (); + options_setup (); + ui_setup (app); + configure_plugins (); + load_plugins (); +} + +int +main (int argc, char **argv) +{ + GtkApplication *app; + int status; + + grl_init (&argc, &argv); + GRL_LOG_DOMAIN_INIT (test_ui_log_domain, "test-ui"); + + app = gtk_application_new ("org.gnome.grilotestui", G_APPLICATION_FLAGS_NONE); + g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); + status = g_application_run (G_APPLICATION (app), argc, argv); + g_object_unref (app); + + clear_ui (); + grl_deinit (); + + return status; +} diff --git a/tools/grilo-test-ui/meson.build b/tools/grilo-test-ui/meson.build new file mode 100644 index 0000000..c698cb8 --- /dev/null +++ b/tools/grilo-test-ui/meson.build @@ -0,0 +1,27 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +configure_file(output: 'config.h', + configuration: cdata) + +sources = [ + 'main.c', +] + +if oauth_dep.found() + sources += [ + 'flickr-oauth.c', + 'flickr-oauth.h', + ] +endif + +executable('grilo-test-ui-@0@'.format(grl_majorminor), + sources, + install: true, + link_with: libgrl, + dependencies: [glib_dep, gobject_dep, gtk_dep, oauth_dep], + include_directories: libgrl_inc) diff --git a/tools/meson.build b/tools/meson.build new file mode 100644 index 0000000..b9b074b --- /dev/null +++ b/tools/meson.build @@ -0,0 +1,13 @@ +# +# meson.build +# +# Author: Juan A. Suarez Romero +# +# Copyright (C) 2016 Igalia S.L. All rights reserved. + +subdir('grilo-inspect') +subdir('grilo-launch') + +if enable_testui + subdir('grilo-test-ui') +endif