summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* build: Drop autotoolswip/carlosg/drop-autotoolsCarlos Garnacho2018-09-094-50/+0
|
* libtracker-miner: Remove TrackerMinerFS API to add/remove directoriesCarlos Garnacho2017-06-291-1/+7
| | | | | | | The whole set of tracker_miner_fs_add_directory_without_parent(), tracker_miner_fs_directory_add(), directory_remove() and directory_remove_full() are all covered by TrackerIndexingTree and basically unused, except for code in examples/.
* libtracker-miner: Change API of ::process-file[-attributes]Carlos Garnacho2017-06-291-1/+2
| | | | | | | | | | | | | | | | | | | There's a few changes here: - The 2 vmethods are now given a GTask, its cancellable is to be used if the handling goes async. - tracker_miner_fs_file_notify() has changed into a more generic tracker_miner_fs_notify_finish() method, that takes such GTask and completes it. - The vmethods are no longer given a TrackerSparqlBuilder, instead they are expected to create the SPARQL through whatever mean is most fit. The sparql is given in the tracker_miner_fs_notify_finish() func. This opens the door to TrackerMinerFS implementations using TrackerResource. The intent is 1) Pass something to these vmethods that the user can't forge or mess with, as matching on GFile relies that it's the same pointer that it was given in the vmethods. And 2) Make the finish() function more generic to be fit to other methods going async.
* Remove ignore_next_update() APICarlos Garnacho2017-06-291-4/+0
| | | | | | | It's been deprecated for a long time, it stands in the middle of detaching TrackerMiner from DBus, and it's one less piece of ontology-dependent libtracker-miner code. Enough reasons to finally remove this.
* Distribute meson.build files in tarballs generated by AutotoolsSam Thursfield2017-05-223-0/+6
| | | | | | | This is useful for people who are not building from Git but still want to avoid Autotools. See: https://mail.gnome.org/archives/desktop-devel-list/2017-April/msg00091.html
* Meson build instructions for TrackerSam Thursfield2017-05-223-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See <http://mesonbuild.com/> for information about Meson. Remaining issues: * There's no `make dist` equivalent. We currently produce release tarballs containing the output files of the Vala compiler. We need to think through whether we can stop doing that. Shipping the generated .c files does make the Vala preprocessor useless so it would be good if we can stop. * The Firefox, Thunderbird, Evolution and Nautilus plugins are not built * https://github.com/mesonbuild/meson/issues/671 -- means we can't depend on tracker_common_dep in most places and have to manually set link_with, include_directories and sources instead. * https://github.com/mesonbuild/meson/issues/1469 -- without this we have to install generated Vala headers using a script * https://github.com/mesonbuild/meson/issues/1229 -- means adding the #include guard to libtracker-sparql/tracker-generated-no-checks.h is a pain * The test suite has some spurious failures. Here's a rough speed comparison. Meson: time sh -c 'meson .. --prefix=/opt/tracker-meson -D bash_completion=/opt/tracker-meson/share/bash-completion -Dsystemd_user_services=/opt/tracker-meson/lib/systemd/user -Ddbus_services=/opt/tracker-meson/share/dbus-1/services && ninja-build -j 4 && ninja-build install' real 1m8.194s user 2m16.962s sys 0m20.532s Autotools: time sh -c './configure --prefix=/opt/tracker-autotools --with-bash-completion-dir=/opt/tracker-autotools/share/bash-completion --with-session-bus-services-dir=/opt/tracker-autotools/share/dbus-1/services --disable-nautilus-extension && make -j 4 && make install' real 2m37.750s user 4m37.214s sys 0m54.806s Plus 30+ seconds of ./autogen.sh first. Note that Meson builds may fail if your source tree has generated files from an Autotools build in there. If you see errors about duplicate definitions, first try cleaning your source tree (use `git clean -dfx`, but make sure you commit any work first!!)
* examples: Check tracker_sparql_cursor_next() return value.Carlos Garnacho2017-01-301-2/+1
| | | | Coverity ID: 1188420
* examples: Drop unneeded g_object_unref() callCarlos Garnacho2017-01-301-4/+0
| | | | | | Another one. Coverity ID: 1188470
* examples: Check for NULL cursors in class-signal exampleCarlos Garnacho2017-01-281-0/+9
| | | | | | | It is unlikely to receive errors on queries there, but still this is an example, so better be correct there. Coverity ID: 1188420
* examples: Drop unneeded g_object_unref() callCarlos Garnacho2017-01-281-5/+0
| | | | | | The cursor will be NULL in the error paths, no need to try to unref it. Coverity ID: 1188470
* examples: Update example FS miner to current APISam Thursfield2016-11-212-135/+48
| | | | The code didn't work at all due to API changes in libtracker-miner.
* libtracker-extract: Remove from examples/ this library is now privateMartyn Russell2014-07-215-368/+0
|
* libtracker-sparql: Don't use internal tracker_ipc_bus() function in examples/Martyn Russell2014-03-201-3/+1
| | | | | | We don't want people copying this code and then having linking problems and 3rd party apps using libtracker-sparql shouldn't be depending on internal functions or libraries like libtracker-common.
* all: Make GBusType configurable with TRACKER_BUS_TYPEMartyn Russell2014-03-171-1/+3
| | | | | | This works by using G_BUS_TYPE_SESSION if the env var TRACKER_BUS_TYPE is not set and will allow for "system" to be used as a value. If it is set, the system bus is used instead.
* libtracker-extract: Fix example mockup.rule file, we no longer include ↵Martyn Russell2014-02-251-1/+1
| | | | @modulesdir@
* libtracker-extract: Don't break compilation due to missing rules/modules dirMartyn Russell2014-02-252-9/+5
|
* libtracker-extract: Make this a package-private libraryMichael Biebl2014-02-241-1/+1
| | | | | | | Don't install libtracker-extract system-wide and don't generate any introspection data. This is a follow-up commit to 60fdc9b900ae1c66a65721c8314e8cc3358ca461
* tests: Updated gtester scripts to improve testing systemMartyn Russell2014-02-205-10/+0
| | | | | | | | | | | | | | | We imported Makefile.decl from glib when it was using Subversion, a long time ago. The script had a few issues (like running all unit tests twice on make distcheck) and needed to be updated. I've stolen a latest version from GLib's glib.mk and also their m4 macros which are required to make this all work too. This gives us the advantage of defining installable and uninstallable test cases as well as test data, scripts and other useful stuff. The debug output also looks quite good. And distcheck passes :)
* libtracker-extract, tracker-extract: Remove $modulesdir from *.rulesDebarshi Ray2013-10-101-3/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=709703
* Add a newline at the end of fileDebarshi Ray2013-10-101-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=709703
* all: Remove use of g_type_init() now it's deprecated in GLib since 2.35.xMartyn Russell2013-03-083-5/+0
|
* examples: Update async query exampleMartyn Russell2012-11-281-1/+1
|
* libtracker-extract: Fix mockup example which unrefs TrackerExtractInfo->GFileMartyn Russell2011-12-151-2/+1
| | | | This is not returned as a new reference.
* Remove g_thread_init callsJürg Billeter2011-11-271-4/+0
| | | | | | Calling g_thread_init with GLib 2.31 requires explicit dependency on gthread-2.0. However, g_type_init initializes threads since GLib 2.24, so it is no longer needed.
* examples/libtracker-extract: Fix mockup example's API usagePhilip Van Hoof2011-09-061-7/+6
|
* build: Fixed distcheck issuesMartyn Russell2011-08-161-1/+1
|
* libtracker-extract: Don't install examples/ rules mock upMartyn Russell2011-08-031-2/+5
| | | | | This was causing the MP3 extractor to be used even if the MP3 rules file was removed because the mockup uses a similar configuration
* libtracker-miner, libtracker-sparql: Added introspection examplesIvan Frade2011-04-054-0/+111
| | | | | Miner and Async query are not working as expected yet, but the code should be correct.
* libtracker-sparql: Use static linking instead of pluginsJürg Billeter2011-04-043-3/+3
| | | | | | | | | Plugin loading in threads may be problematic in certain environments. As we do not currently support external plugins anyway, this changes libtracker-bus and libtracker-direct to be part of libtracker-sparql. This will also slightly improve initialization performance. Fixes NB#241659.
* tracker-extract: Support extra string for WHERE patterns in GetMetadataJürg Billeter2011-03-281-1/+2
|
* Update .gitignoreJürg Billeter2011-03-181-0/+1
|
* tracker-extract: Use module manager from libtracker-extractCarlos Garnacho2011-03-153-27/+29
| | | | Also fixed mockup example to use new APIs
* build: ignore some built files in gitAleksander Morgado2011-03-141-0/+1
|
* Removing libtracker-client related filesIvan Frade2011-03-021-1/+0
|
* examples: Don't forget to free structure in async-connectionMartyn Russell2011-03-021-0/+2
|
* examples: Don't forget class-signal.cMartyn Russell2011-03-021-0/+111
|
* examples: Move async-connection and class-signal to libtracker-sparql subdirMartyn Russell2011-03-027-132/+7
|
* examples/async-connection: Updated to be fully asyncMartyn Russell2011-03-021-29/+126
|
* examples: Added an example that uses async connection constructionPhilip Van Hoof2011-02-224-5/+96
|
* NMO: Remove nmo:Mailbox and nmo:plainTextMessageContentJürg Billeter2011-01-262-2/+2
| | | | They were deprecated 13 months ago.
* examples: class-signal: GDBus port of the class signal examplePhilip Van Hoof2011-01-182-64/+43
|
* tracker-extract: Relicense to LGPL from GPLJürg Billeter2011-01-131-7/+7
|
* libtracker-miner: Fix progress percentage duplicates in signal emissionsMartyn Russell2010-12-271-6/+6
|
* Merge branch 'music-album-domain-index'Martyn Russell2010-11-101-0/+3
|\
| * tracker-extract: Migrate to nie:title from nmm:albumTitleMartyn Russell2010-11-031-0/+3
| |
* | functional-tests: Do not use dbus-glib where not necessaryJürg Billeter2010-11-101-3/+11
|/
* build: Replaced all trailing tabs before \ for spaces in Makefile.amsMartyn Russell2010-10-275-31/+31
| | | | Also standardise the width to 55 characters (unless line is longer)
* class-signal: Cleaned up order of example Makefile.amMartyn Russell2010-10-271-5/+6
|
* libtracker-miner: Cleaned up order of example Makefile.amMartyn Russell2010-10-271-9/+9
|
* build: Use AM_CPPFLAGS now INCLUDES is deprecatedMartyn Russell2010-10-273-3/+3
|