Commit 10695ecd authored by Martyn Russell's avatar Martyn Russell

libtracker-data: Moved internal API tracker_crc32() here from libtracker-common

It's only used in libtracker-data and libtracker-common isn't a public library
parent 6ccf4711
......@@ -29,7 +29,6 @@ libtracker_common_la_SOURCES = \
tracker-storage.c \
tracker-type-utils.c \
tracker-utils.c \
tracker-crc32.c \
tracker-locale.c \
tracker-miner-locale.c
......@@ -49,7 +48,6 @@ noinst_HEADERS = \
tracker-storage.h \
tracker-type-utils.h \
tracker-utils.h \
tracker-crc32.h \
tracker-locale.h \
tracker-miner-locale.h
......
......@@ -27,6 +27,7 @@ libtracker_data_la_SOURCES = \
tracker-turtle-reader.vala \
tracker-class.c \
tracker-collation.c \
tracker-crc32.c \
tracker-data-backup.c \
tracker-data-manager.c \
tracker-data-query.c \
......@@ -56,6 +57,7 @@ endif
noinst_HEADERS = \
tracker-class.h \
tracker-crc32.h \
tracker-data.h \
tracker-collation.h \
tracker-data-backup.h \
......
......@@ -44,7 +44,7 @@
*
*/
#include <libtracker-common/tracker-crc32.h>
#include "tracker-crc32.h"
static const guint32 crcTable[256] = {
0x00000000UL, 0x77073096UL, 0xEE0E612CUL, 0x990951BAUL, 0x076DC419UL, 0x706AF48FUL, 0xE963A535UL, 0x9E6495A3UL,
......
......@@ -37,8 +37,7 @@
# define O_LARGEFILE 0
#endif
#include <libtracker-common/tracker-crc32.h>
#include "tracker-crc32.h"
#include "tracker-db-journal.h"
#ifndef DISABLE_JOURNAL
......
......@@ -8,6 +8,5 @@ tracker-ontology
tracker-thumbnailer
tracker-type-utils
tracker-utils
tracker-crc32-test
tracker-date-time-test
tracker-media-art-test
\ No newline at end of file
tracker-media-art-test
......@@ -8,7 +8,6 @@ test_programs = \
tracker-file-utils \
tracker-utils \
tracker-sched-test \
tracker-crc32-test \
tracker-date-time-test
AM_CPPFLAGS = \
......@@ -36,8 +35,6 @@ tracker_utils_SOURCES = tracker-utils-test.c
tracker_sched_test_SOURCES = tracker-sched-test.c
tracker_crc32_test_SOURCES = tracker-crc32-test.c
tracker_date_time_test_SOURCES = tracker-date-time-test.c
EXTRA_DIST += non-utf8.txt
tracker
tracker-backup
tracker-crc32-test
tracker-ontology
tracker-ontology-change
tracker-sparql
......@@ -7,4 +8,4 @@ tracker-sparql-blank
tracker-db-dbus
tracker-db-journal
tracker-index-writer
tracker-store.journal
\ No newline at end of file
tracker-store.journal
......@@ -29,6 +29,7 @@ test_programs = \
tracker-sparql-blank \
tracker-ontology \
tracker-backup \
tracker-crc32-test \
tracker-ontology-change \
tracker-db-journal
......@@ -54,6 +55,7 @@ tracker_sparql_blank_SOURCES = tracker-sparql-blank-test.c
tracker_ontology_SOURCES = tracker-ontology-test.c
tracker_ontology_change_SOURCES = tracker-ontology-change-test.c
tracker_backup_SOURCES = tracker-backup-test.c
tracker_crc32_test_SOURCES = tracker-crc32-test.c
tracker_db_journal_SOURCES = tracker-db-journal.c
EXTRA_DIST += \
......
......@@ -16,10 +16,12 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include <glib.h>
#include "config.h"
#include <glib-object.h>
#include <libtracker-common/tracker-crc32.h>
#include <libtracker-data/tracker-crc32.h>
// Using http://crc32-checksum.waraxe.us/ to check the result
static void
......
......@@ -17,12 +17,10 @@
* Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include "config.h"
#include <glib/gstdio.h>
#include <libtracker-common/tracker-crc32.h>
#include <libtracker-data/tracker-db-journal.h>
#ifndef DISABLE_JOURNAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment