1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00

Move db scan functions to the postgresql backend lib.

This commit is contained in:
King_DuckZ 2016-05-22 03:17:26 +01:00
parent 641261306f
commit b6d45eee3c
5 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@ add_library(${PROJECT_NAME} STATIC
tag.cpp tag.cpp
delete.cpp delete.cpp
locate.cpp locate.cpp
scan.cpp
) )
#target_include_directories(${PROJECT_NAME} #target_include_directories(${PROJECT_NAME}

View file

@ -15,7 +15,7 @@
* along with "dindexer". If not, see <http://www.gnu.org/licenses/>. * along with "dindexer". If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "dbbackend.hpp" #include "backends/postgresql/scan.hpp"
#include "pq/connection.hpp" #include "pq/connection.hpp"
#include "dindexer-common/settings.hpp" #include "dindexer-common/settings.hpp"
#include "dindexer-machinery/recorddata.hpp" #include "dindexer-machinery/recorddata.hpp"

View file

@ -4,7 +4,6 @@ include(WithMediaAutodetect)
add_executable(${PROJECT_NAME} add_executable(${PROJECT_NAME}
main.cpp main.cpp
dbbackend.cpp
commandline.cpp commandline.cpp
) )
@ -16,6 +15,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE ${bare_name}-if PRIVATE ${bare_name}-if
PRIVATE ${bare_name}-common PRIVATE ${bare_name}-common
PRIVATE ${bare_name}-machinery PRIVATE ${bare_name}-machinery
PRIVATE ${bare_name}-backend-postgresql
) )
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}") string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")

View file

@ -25,7 +25,7 @@
#include "dindexer-common/common_info.hpp" #include "dindexer-common/common_info.hpp"
#include "dindexer-common/settings.hpp" #include "dindexer-common/settings.hpp"
#include "commandline.hpp" #include "commandline.hpp"
#include "dbbackend.hpp" #include "backends/postgresql/scan.hpp"
#include "dindexer-machinery/scantask/dirtree.hpp" #include "dindexer-machinery/scantask/dirtree.hpp"
#include "dindexer-machinery/scantask/mediatype.hpp" #include "dindexer-machinery/scantask/mediatype.hpp"
#include "dindexer-machinery/scantask/hashing.hpp" #include "dindexer-machinery/scantask/hashing.hpp"