s3-mdssvc: factor out Tracker backend logic
authorRalph Boehme <slow@samba.org>
Thu, 14 Mar 2019 06:38:20 +0000 (07:38 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 8 Aug 2019 20:24:31 +0000 (20:24 +0000)
commit1ef96e09071458322845b4323fa59cf4e7475783
treec0f2f557612e8f51c67fe0ab567bbcf2a5852b1c
parentf80f8c5f99f6b5949d14ee62261a7dd448e9b0fe
s3-mdssvc: factor out Tracker backend logic

This moves all Tracker backend logic into a modularized component.

This should not result in any change in behaviour, it just paves the way
for adding additional backends. Currently the only available backend is
Gnome Tracker.

slq_destroy_send/recv is not needed anymore as the problem is solved now by
correctly checking if an async Tracker request was cancelled and we got
G_IO_ERROR_CANCELLED in tracker_con_cb() or tracker_query_cb() and avoid using
user_data in that the case.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/mdssvc/mdssvc.c
source3/rpc_server/mdssvc/mdssvc.h
source3/rpc_server/mdssvc/mdssvc_tracker.c [new file with mode: 0644]
source3/rpc_server/mdssvc/mdssvc_tracker.h [new file with mode: 0644]
source3/rpc_server/mdssvc/sparql_parser.y
source3/rpc_server/mdssvc/sparql_parser_test.c
source3/rpc_server/wscript_build